

{"id":3905,"date":"2018-03-02T23:34:01","date_gmt":"2018-03-02T18:34:01","guid":{"rendered":"https:\/\/staging-ahmadawais.kinsta.cloud\/?p=3905"},"modified":"2018-03-02T23:34:01","modified_gmt":"2018-03-02T18:34:01","slug":"pragma-mean-programming","status":"publish","type":"post","link":"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/","title":{"rendered":"What Does &#8220;Pragma&#8221; Mean in Programming?"},"content":{"rendered":"<p>Programming is hard. Well, anything technical is inherently hard. With that out of the way, today I&#8217;m writy a short post to let you in on a secret about what is <code>pragma<\/code>\u00a0in the world of programming languages.<\/p>\n<h2 id=\"so-what-does-pragma-mean-in-programming\">So,\u00a0What Does &#8220;Pragma&#8221; Mean in Programming?<a href=\"#so-what-does-pragma-mean-in-programming\" class=\"heading-link\">#<\/a><\/h2>\n<p><strong>Pragma<\/strong> is short for pragmatic information. So, simple. In plain English, pragmatic is an adjective that means sensible and practical. In programming, pragma refers to:<\/p>\n<ul>\n<li>The code that consists of useful information on how a compiler or interpreter or assembler should process the program<\/li>\n<li><code>pragma<\/code> does not contribute anything to the programming language itself<\/li>\n<li><code>pragma<\/code> only affect the compiler behavior<\/li>\n<li><code>pragma<\/code>&#8216;s syntax may vary<\/li>\n<\/ul>\n<\/section>\n<div class=\"postcontents full dark\">\n<div class=\"wrapper\">\n<p>\ud83e\udd14\u00a0JavaScript also has few pragmas, one of them is <code>strict<\/code>.<\/p>\n<pre><code>'use strict';<\/code><\/pre>\n<p>By the above pragma, the JavaScript code will be executed in strict mode. In strict mode, bad syntax isn&#8217;t allowed, hoisting\u00a0isn&#8217;t<\/p>\n<p>done, silent errors are shown, etc. It helps in writing a more secure and optimized JavaScript code.<\/p>\n<\/div>\n<\/div>\n<section class=\"postcontents wrapper\">\n<p>That&#8217;s about it.<\/p>\n<p>Peace!\u00a0\ud83c\udfbb<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Programming is hard. Well, anything technical is inherently hard. With that out of the way, today I&#8217;m writy a short post to let you in on a secret about what is pragma\u00a0in the world of programming languages.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[181],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.4.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What Does &quot;Pragma&quot; Mean in Programming?<\/title>\n<meta name=\"description\" content=\"Programming is hard. Well, anything technical is inherently hard. With that out of the way, today I&#039;m writy a short post to let you in on a secret about what is pragma\u00a0in the world of programming languages.\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What Does &quot;Pragma&quot; Mean in Programming?\" \/>\n<meta property=\"og:description\" content=\"Programming is hard. Well, anything technical is inherently hard. With that out of the way, today I&#039;m writy a short post to let you in on a secret about what is pragma\u00a0in the world of programming languages.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/\" \/>\n<meta property=\"og:site_name\" content=\"Ahmad Awais\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/AhmadAwais\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/AhmadAwais\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-02T18:34:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/staging-ahmadawais.kinsta.cloud\/wp-content\/uploads\/2018\/03\/Ahmad-Awais-featured-image.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1440\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/MrAhmadAwais\" \/>\n<meta name=\"twitter:site\" content=\"@MrAhmadAwais\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ahmad Awais\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/#website\",\"url\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/\",\"name\":\"Ahmad Awais\",\"description\":\"Open Source Developer Advocate\",\"publisher\":{\"@id\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/#webpage\",\"url\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/\",\"name\":\"What Does \\\"Pragma\\\" Mean in Programming?\",\"isPartOf\":{\"@id\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/#website\"},\"datePublished\":\"2018-03-02T18:34:01+00:00\",\"dateModified\":\"2018-03-02T18:34:01+00:00\",\"description\":\"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\u00a0in the world of programming languages.\",\"breadcrumb\":{\"@id\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What Does &#8220;Pragma&#8221; Mean in Programming?\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/#webpage\"},\"author\":{\"@id\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b\"},\"headline\":\"What Does &#8220;Pragma&#8221; Mean in Programming?\",\"datePublished\":\"2018-03-02T18:34:01+00:00\",\"dateModified\":\"2018-03-02T18:34:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/#webpage\"},\"wordCount\":168,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b\"},\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b\",\"name\":\"Ahmad Awais\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg\",\"contentUrl\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg\",\"width\":2299,\"height\":1705,\"caption\":\"Ahmad Awais\"},\"logo\":{\"@id\":\"https:\/\/staging-ahmadawais.kinsta.cloud\/#personlogo\"},\"description\":\"Helping businesses understand developers. Head of Developer Relations RapidAPI. \ud83d\udcdf Edutainer at Node.js CLI Automation course (100 videos \u00b7 22 Projects) & VSCode.pro course (over 20K devs). \ud83c\udfa9 Award-winning Open Source Engineer & Dev Advocate \ud83e\udd8a Google Developers Expert Web DevRel \ud83d\ude80 Mars Ingenuity Helicopter code contributor \ud83c\udfc6 8th GitHub Stars Award recipient \ud83c\udf33 Node.js foundation Community Committee Outreach Lead, Member Linux Foundation, OpenAPI Business Governing Board, and DigitalOcean Navigator. \u270c\ufe0f Author of various open-source dev-tools and software libraries used by millions of developers worldwide \u24e6 WordPress Core Developer \ud83d\udce3 TEDx Speaker with 100+ international talks. \ud83d\udd25 Satya Nadella \u00b7 CEO of Microsoft, said \u2014 Awais is an awesome example for developers. \ud83d\ude4c Leading developers and publishing technical content for over a decade \ud83d\udc9c Loves his wife (Maedah) \u276f Read more about Ahmad Awais. \ud83d\udc4b\u2026 Awais is mostly active on Twitter @MrAhmadAwais\",\"sameAs\":[\"https:\/\/staging-ahmadawais.kinsta.cloud\",\"https:\/\/facebook.com\/AhmadAwais\",\"https:\/\/instagram.com\/MrAhmadAwais\/\",\"https:\/\/www.linkedin.com\/in\/MrAhmadAwais\/\",\"https:\/\/twitter.com\/https:\/\/twitter.com\/MrAhmadAwais\",\"https:\/\/youtube.com\/AhmadAwais\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What Does \"Pragma\" Mean in Programming?","description":"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\u00a0in the world of programming languages.","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"What Does \"Pragma\" Mean in Programming?","og_description":"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\u00a0in the world of programming languages.","og_url":"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/","og_site_name":"Ahmad Awais","article_publisher":"https:\/\/facebook.com\/AhmadAwais","article_author":"https:\/\/facebook.com\/AhmadAwais","article_published_time":"2018-03-02T18:34:01+00:00","og_image":[{"width":1440,"height":960,"url":"https:\/\/staging-ahmadawais.kinsta.cloud\/wp-content\/uploads\/2018\/03\/Ahmad-Awais-featured-image.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/MrAhmadAwais","twitter_site":"@MrAhmadAwais","twitter_misc":{"Written by":"Ahmad Awais","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/staging-ahmadawais.kinsta.cloud\/#website","url":"https:\/\/staging-ahmadawais.kinsta.cloud\/","name":"Ahmad Awais","description":"Open Source Developer Advocate","publisher":{"@id":"https:\/\/staging-ahmadawais.kinsta.cloud\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/staging-ahmadawais.kinsta.cloud\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/#webpage","url":"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/","name":"What Does \"Pragma\" Mean in Programming?","isPartOf":{"@id":"https:\/\/staging-ahmadawais.kinsta.cloud\/#website"},"datePublished":"2018-03-02T18:34:01+00:00","dateModified":"2018-03-02T18:34:01+00:00","description":"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\u00a0in the world of programming languages.","breadcrumb":{"@id":"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/staging-ahmadawais.kinsta.cloud\/"},{"@type":"ListItem","position":2,"name":"What Does &#8220;Pragma&#8221; Mean in Programming?"}]},{"@type":"Article","@id":"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/#article","isPartOf":{"@id":"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/#webpage"},"author":{"@id":"https:\/\/staging-ahmadawais.kinsta.cloud\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b"},"headline":"What Does &#8220;Pragma&#8221; Mean in Programming?","datePublished":"2018-03-02T18:34:01+00:00","dateModified":"2018-03-02T18:34:01+00:00","mainEntityOfPage":{"@id":"https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/#webpage"},"wordCount":168,"commentCount":0,"publisher":{"@id":"https:\/\/staging-ahmadawais.kinsta.cloud\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b"},"articleSection":["JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/staging-ahmadawais.kinsta.cloud\/pragma-mean-programming\/#respond"]}]},{"@type":["Person","Organization"],"@id":"https:\/\/staging-ahmadawais.kinsta.cloud\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b","name":"Ahmad Awais","image":{"@type":"ImageObject","@id":"https:\/\/staging-ahmadawais.kinsta.cloud\/#personlogo","inLanguage":"en-US","url":"https:\/\/staging-ahmadawais.kinsta.cloud\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg","contentUrl":"https:\/\/staging-ahmadawais.kinsta.cloud\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg","width":2299,"height":1705,"caption":"Ahmad Awais"},"logo":{"@id":"https:\/\/staging-ahmadawais.kinsta.cloud\/#personlogo"},"description":"Helping businesses understand developers. Head of Developer Relations RapidAPI. \ud83d\udcdf Edutainer at Node.js CLI Automation course (100 videos \u00b7 22 Projects) & VSCode.pro course (over 20K devs). \ud83c\udfa9 Award-winning Open Source Engineer & Dev Advocate \ud83e\udd8a Google Developers Expert Web DevRel \ud83d\ude80 Mars Ingenuity Helicopter code contributor \ud83c\udfc6 8th GitHub Stars Award recipient \ud83c\udf33 Node.js foundation Community Committee Outreach Lead, Member Linux Foundation, OpenAPI Business Governing Board, and DigitalOcean Navigator. \u270c\ufe0f Author of various open-source dev-tools and software libraries used by millions of developers worldwide \u24e6 WordPress Core Developer \ud83d\udce3 TEDx Speaker with 100+ international talks. \ud83d\udd25 Satya Nadella \u00b7 CEO of Microsoft, said \u2014 Awais is an awesome example for developers. \ud83d\ude4c Leading developers and publishing technical content for over a decade \ud83d\udc9c Loves his wife (Maedah) \u276f Read more about Ahmad Awais. \ud83d\udc4b\u2026 Awais is mostly active on Twitter @MrAhmadAwais","sameAs":["https:\/\/staging-ahmadawais.kinsta.cloud","https:\/\/facebook.com\/AhmadAwais","https:\/\/instagram.com\/MrAhmadAwais\/","https:\/\/www.linkedin.com\/in\/MrAhmadAwais\/","https:\/\/twitter.com\/https:\/\/twitter.com\/MrAhmadAwais","https:\/\/youtube.com\/AhmadAwais"]}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/staging-ahmadawais.kinsta.cloud\/api\/wp\/v2\/posts\/3905"}],"collection":[{"href":"https:\/\/staging-ahmadawais.kinsta.cloud\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging-ahmadawais.kinsta.cloud\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging-ahmadawais.kinsta.cloud\/api\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/staging-ahmadawais.kinsta.cloud\/api\/wp\/v2\/comments?post=3905"}],"version-history":[{"count":1,"href":"https:\/\/staging-ahmadawais.kinsta.cloud\/api\/wp\/v2\/posts\/3905\/revisions"}],"predecessor-version":[{"id":3906,"href":"https:\/\/staging-ahmadawais.kinsta.cloud\/api\/wp\/v2\/posts\/3905\/revisions\/3906"}],"wp:attachment":[{"href":"https:\/\/staging-ahmadawais.kinsta.cloud\/api\/wp\/v2\/media?parent=3905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging-ahmadawais.kinsta.cloud\/api\/wp\/v2\/categories?post=3905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging-ahmadawais.kinsta.cloud\/api\/wp\/v2\/tags?post=3905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}