Ahmad Awais

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!ย ๐ŸŽป

๐ŸŽฉ

WPTakeaway: Premium WordPress Newsletter!

Takeaway my professional opinion about Full Stack WordPress Development, building a business, growing a family, and everything web! Delivered to your inbox twice a month. ๐Ÿ‘ป I hate spam! Pinky Promise!

๐Ÿฅ‘ OSS Developer Advocate ๐Ÿ”ฅ Ridiculously hard-working Full Stack Web Developer โ“ฆ Regular WordPress Core Contributor ๐Ÿ“ฃ TEDx Speaker โœŒ๏ธ Spends 50% of his time building FOSS (Free & Open Source Software) used by over 91,300 Developers ๐ŸŽ– WordPress Advocate & ๐Ÿ™Œ Community Evangelist ๐ŸŽฏ JavaScript & DevOps fanboy ๐Ÿ˜‚ Cracks silly jokes ๐Ÿ’œ Loves his wife (Maedah) ๐Ÿ• Learn more about Ahmad โ†ฃ

Say ๐Ÿ‘‹ on Twitter @MrAhmadAwais | Subscribe to the WordPress Takeaway!