Ahmad Awais

NAVIGATE


SHARE


What Does “Pragma” Mean in Programming?

Ahmad AwaisAhmad Awais

Programming is hard. Well, anything technical is inherently hard. With that out of the way, today I’m writy a short post to let you in on a secret about what is pragma in the world of programming languages.

So, What Does “Pragma” Mean in Programming?#

Pragma is short for pragmatic information. So, simple. In plain English, pragmatic is an adjective that means sensible and practical. In programming, pragma refers to:

🤔 JavaScript also has few pragmas, one of them is strict.

'use strict';

By the above pragma, the JavaScript code will be executed in strict mode. In strict mode, bad syntax isn’t allowed, hoisting isn’t

done, silent errors are shown, etc. It helps in writing a more secure and optimized JavaScript code.

That’s about it.

Peace! 🎻

Founder & CEO of Langbase.com — The most powerful serverless AI developer platform for building AI products · Ship agentic AI pipes, tools, and memory with BaseAI — The first Web AI Framework (free, open-source, local-first, deploys serverless, agentic pipes, tools, and memory)

Ex VP DevTools & DevRel Eng. Rapid · Google Developers Advisory Board (gDAB) founding member. 🧑‍💻 AI/ML/DevTools Angel InvestorAI/ML Advisory Board San Francisco, DevNetwork

🎩 Award-winning Open Source Engineer & Dev Advocate 🦊 Google Developers Expert Web DevRel 🚀 NASA Mars Ingenuity Helicopter mission code contributor 🏆 8th GitHub Stars Award recipient with 5x GitHub Stars Award (Listed as GitHub's #1 JavaScript trending developer).

🌳 Node.js foundation Community Committee Outreach Lead, Member Linux Foundation, OpenAPI Business Governing Board, and DigitalOcean Navigator. 📟 Teaching thousands of developers Node.js CLI Automation and VSCode.pro course. Over 142 million views, 24 yrs Blogging, 108K developers learning, 200+ FOSS.

✌️ Author of various open-source dev-tools and software libraries utilized by millions of developers worldwide WordPress Core Developer 📣 TEDx Speaker with 100+ international talks.

As quoted by: Satya Nadella · CEO of Microsoft — Awais is an awesome example for developers.
💜 Loves his wife (Maedah) ❯ Read more about Ahmad Awais.

👋… Awais is mostly active on 𝕏 @MrAhmadAwais

📨

Developers Takeaway

Stay ahead in the web dev community with Ahmad's expert insights on open-source, developer relations, dev-tools, and side-hustles. Insider-email-only-content. Don't miss out - subscirbe for a dose of professional advice and a dash of humor. No spam, pinky-promise!

✨ 172,438 Developers Already Subscribed
Comments 0
There are currently no comments.