{"id":19771,"date":"2014-04-08T23:01:24","date_gmt":"2014-04-08T15:01:24","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=19771"},"modified":"2024-05-27T22:29:58","modified_gmt":"2024-05-27T14:29:58","slug":"hack-language-facebook","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/hack-language-facebook\/","title":{"rendered":"Hack &#8211; The Programming Language Powering Facebook"},"content":{"rendered":"<p>Hack is the new language behind <a href=\"https:\/\/www.hongkiat.com\/blog\/facebook-privacy-matters\/\">Facebook<\/a>, which remains the most popular social network today. It is a web programming language invented and <strong>recently open-sourced by Facebook<\/strong>. The company claims that Hack helps programmers to code more quickly and easily avoid errors early on.<\/p>\n<p>Hack is designed to <strong>build complex websites swiftly<\/strong> while ensuring the site\u2019s source code is <strong>well-organized and relatively error-free<\/strong>. Its \u201csafety net\u201d features allow programmers to write safer code, which <a href=\"https:\/\/www.hongkiat.com\/blog\/developer-habits\/\">reduces the risk<\/a> of encountering problems later.<\/p>\n<p>In this post, we\u2019ll explore Hack and some of its features that are arguably better than PHP, the current leading <a href=\"https:\/\/www.hongkiat.com\/blog\/beginners-guide-to-css3\/\">web programming language<\/a> used for most websites. Hack is built to run on Facebook\u2019s HHVM virtual machine, which is <strong>known for its superior performance<\/strong>.<\/p>\n<div class=\"ref-block ref-block--post\" id=\"ref-post-1\">\n\t\t\t\t\t<a href=\"https:\/\/www.hongkiat.com\/blog\/programming-myth\/\" class=\"ref-block__link\" title=\"Read More: Learning Programming: 10 Misconceptions That Are Not True\" rel=\"bookmark\"><span class=\"screen-reader-text\">Learning Programming: 10 Misconceptions That Are Not True<\/span><\/a>\n<div class=\"ref-block__thumbnail img-thumb img-thumb--jumbo\" data-img='{ \"src\" : \"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/programming-myth.jpg\" }'>\n\t\t\t\t\t\t\t<noscript>\n<style>.no-js #ref-block-post-18138 .ref-block__thumbnail { background-image: url(\"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/programming-myth.jpg\"); }<\/style>\n<\/noscript>\n\t\t\t\t\t\t<\/div>\n<div class=\"ref-block__summary\">\n<h4 class=\"ref-title\">Learning Programming: 10 Misconceptions That Are Not True<\/h4>\n<p class=\"ref-description\">\n\t\t\t\t\t\tThere are plenty of misconceptions and myths surrounding the art of programming. Many people view it as a...\t\t\t\t\t\t<span>Read more<\/span><\/p>\n<\/div>\n<\/div>\n<h2>The Dynamics of a Problem<\/h2>\n<p>Back in 2003, when Mark Zuckerberg started building Facebook, he used a web development language called \u201cPHP\u201d. It was the most popular and (relatively) easy programming language at the time to <strong>create dynamic websites<\/strong> quickly.<\/p>\n<p>PHP is a dynamically-typed language, which means you <strong>don\u2019t need to spend time defining variables<\/strong>, and once you finish your code, you can almost run it instantly. This makes coding easier and reduces development time and effort, but significantly increases the chances of encountering errors, which only become apparent during execution.<\/p>\n<div class=\"ref-block ref-block--post\" id=\"ref-post-2\">\n\t\t\t\t\t<a href=\"https:\/\/www.hongkiat.com\/blog\/things-programmers-say\/\" class=\"ref-block__link\" title=\"Read More: 30 Common Reactions Programmers Have When Things Go Wrong\" rel=\"bookmark\"><span class=\"screen-reader-text\">30 Common Reactions Programmers Have When Things Go Wrong<\/span><\/a>\n<div class=\"ref-block__thumbnail img-thumb img-thumb--jumbo\" data-img='{ \"src\" : \"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/things-programmers-say.jpg\" }'>\n\t\t\t\t\t\t\t<noscript>\n<style>.no-js #ref-block-post-18335 .ref-block__thumbnail { background-image: url(\"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/things-programmers-say.jpg\"); }<\/style>\n<\/noscript>\n\t\t\t\t\t\t<\/div>\n<div class=\"ref-block__summary\">\n<h4 class=\"ref-title\">30 Common Reactions Programmers Have When Things Go Wrong<\/h4>\n<p class=\"ref-description\">\n\t\t\t\t\t\tDeveloping applications can be a very stressful job. Nobody is perfect, and running into buggy code is fairly...\t\t\t\t\t\t<span>Read more<\/span><\/p>\n<\/div>\n<\/div>\n<h3>Can\u2019t Afford to Have Mistakes<\/h3>\n<p>This further intensifies the problem because you need to <em>run<\/em> the code to find errors, unlike statically-typed languages. These errors continue to grow with the size of the codebase. Small projects might not face major issues, but with a large codebase containing 5 errors per thousand lines of code, potentially up to 5000 errors, that\u2019s a lot to debug.<\/p>\n<p>The situation worsens for Cloud-scale companies like Facebook, where thousands of programmers write and ship new code every day. They can\u2019t afford to have errors in their code, which could lead to user data being compromised. So, what can be done?<\/p>\n<div class=\"ref-block ref-block--post\" id=\"ref-post-3\">\n\t\t\t\t\t<a href=\"https:\/\/www.hongkiat.com\/blog\/developer-habits\/\" class=\"ref-block__link\" title=\"Read More: 10 Programming Habits Developers Should Adopt\" rel=\"bookmark\"><span class=\"screen-reader-text\">10 Programming Habits Developers Should Adopt<\/span><\/a>\n<div class=\"ref-block__thumbnail img-thumb img-thumb--jumbo\" data-img='{ \"src\" : \"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/developer-habits.jpg\" }'>\n\t\t\t\t\t\t\t<noscript>\n<style>.no-js #ref-block-post-19516 .ref-block__thumbnail { background-image: url(\"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/developer-habits.jpg\"); }<\/style>\n<\/noscript>\n\t\t\t\t\t\t<\/div>\n<div class=\"ref-block__summary\">\n<h4 class=\"ref-title\">10 Programming Habits Developers Should Adopt<\/h4>\n<p class=\"ref-description\">\n\t\t\t\t\t\tThese outcomes can bring down our confidence but in fact, they can be solved with proper development practices....\t\t\t\t\t\t<span>Read more<\/span><\/p>\n<\/div>\n<\/div>\n<h3>Reinventing the Wheel<\/h3>\n<p>Since Facebook\u2019s front-end was mostly written in PHP, switching to a new language would require migrating the entire site code, which is both impractical and unfeasible. Additionally, if the programmers are already accustomed to PHP, this would necessitate a <strong>massive overhaul in human resources<\/strong>.<\/p>\n<p>Fortunately, there is a better solution \u2013 they reinvented a language, derived from PHP, that can coexist with the traditional language.<\/p>\n<p>\u201cThus, Hack was born. We believe that it offers the best of both dynamically typed and statically typed languages, and that it will be valuable to projects of all sizes,\u201d it was <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/code.facebook.com\/posts\/264544830379293\/hack-a-new-programming-language-for-hhvm\/\">announced<\/a> on Facebook\u2019s Engineering blog.<\/p>\n<h2>Hack Is Simply Better PHP<\/h2>\n<p>Essentially, Hack is \u201cbetter PHP\u201d. Derived from PHP, it <strong>inter-operates seamlessly with PHP for faster and safer web development<\/strong>. You can have a project containing PHP and Hack code side-by-side, and still, the project runs as required. This key feature will attract PHP developers to try Hack and possibly encourage them to gradually migrate their PHP code to Hack.<\/p>\n<p>Hack primarily adds to PHP <strong>the power of static typing<\/strong>, along with many more features found in other modern programming languages. It\u2019s a language developed for <strong>HHVM<\/strong> (<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.facebook.com\/login\/?next=https%3A%2F%2Fwww.facebook.com%2Fnotes%2Ffacebook-engineering%2Fthe-hiphop-virtual-machine%2F10150415177928920\">HipHop Virtual Machine<\/a>), an <strong>open-source runtime platform built by Facebook to execute programs<\/strong> written in Hack and PHP.<\/p>\n<p>The Hack and HHVM combo targets one of the foundations of modern web development: <strong>rapid app development<\/strong>. Testing and debugging web applications have never been easy, but Hack changes that by allowing programmers to detect errors early without compromising the development cycle of PHP. The conclusion from several tech sites has been that Hack is good news.<\/p>\n<h2>Advantages of Hack<\/h2>\n<p>The greatest enhancement that Hack provides over PHP is the <strong>removal of unnecessary and error-prone features<\/strong>. Hack adds safety nets (without slowing you down) so you make fewer errors. It also adds various features found in modern programming languages, making writing code in Hack enjoyable.<\/p>\n<p>Hack is both a <strong>dynamically typed<\/strong> and <strong>statically typed web development language<\/strong>, bringing the best of both typed languages. This is called \u201cgradual typing,\u201d a type system that allows variables to be <strong>typed either at compile-time or at run-time.<\/strong> It can run your code without compiling \u2013 you can edit a file, reload the webpage, and see the changes instantly.<\/p>\n<h3>Other Features<\/h3>\n<p>Hack includes features such as collections, lambda expressions, run-time enforcement of return types and parameter types, addition of generics, asynchronous programming, and more.<\/p>\n<p>These new <strong>features are non-obstructive<\/strong>, so code written using Hack will still look and feel like traditional dynamic code created using PHP. Moreover, engineers will better understand the code as static typing acts a lot like documentation.<\/p>\n<h2>What\u2019s Not So Advantageous<\/h2>\n<p>The greatest disadvantage of Hack is that <strong>it has abandoned the features that make PHP a simpler language<\/strong> <a href=\"https:\/\/www.hongkiat.com\/blog\/sites-to-learn-coding-online\/\">for beginners<\/a>. You cannot embed HTML directly in your source code, and you can\u2019t have code written outside of a function or class. But this is a relatively small problem. While it may deter beginners, PHP programmers will likely find it easy to adapt to Hack and will probably deem the advantages of Hack convincing enough for adoption.<\/p>\n<div class=\"ref-block ref-block--post\" id=\"ref-post-4\">\n\t\t\t\t\t<a href=\"https:\/\/www.hongkiat.com\/blog\/sites-to-learn-coding-online\/\" class=\"ref-block__link\" title=\"Read More: 13 Sites to Learn How to Code for Web Developers\" rel=\"bookmark\"><span class=\"screen-reader-text\">13 Sites to Learn How to Code for Web Developers<\/span><\/a>\n<div class=\"ref-block__thumbnail img-thumb img-thumb--jumbo\" data-img='{ \"src\" : \"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/sites-to-learn-coding-online.jpg\" }'>\n\t\t\t\t\t\t\t<noscript>\n<style>.no-js #ref-block-post-17606 .ref-block__thumbnail { background-image: url(\"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/sites-to-learn-coding-online.jpg\"); }<\/style>\n<\/noscript>\n\t\t\t\t\t\t<\/div>\n<div class=\"ref-block__summary\">\n<h4 class=\"ref-title\">13 Sites to Learn How to Code for Web Developers<\/h4>\n<p class=\"ref-description\">\n\t\t\t\t\t\tGone are the days when programming languages could only be mastered programmers like Bill Gates, who later got...\t\t\t\t\t\t<span>Read more<\/span><\/p>\n<\/div>\n<\/div>\n<p>Facebook has already deployed Hack on its website, which serves more than 1.2 billion people worldwide. \u201cWe have deployed Hack at Facebook, and it has been a great success. Over the last year, we have migrated nearly our entire PHP codebase to Hack,\u201d stated the article on the Facebook Engineering blog.<\/p>\n<h2>The Future<\/h2>\n<p>It will be interesting to see how the PHP community at large adopts this new language. We hope to see Hack supported on other PHP virtual machines and parsers, which will simplify code migration.<\/p>\n<p>An open-source project also means it\u2019s <strong>not dependent on its original creators for new features and bug corrections<\/strong>. We may encounter some awesome features in the future suggested or added by the open-source developers community to this new language.<\/p>\n<p>Moreover, Facebook is also working to improve Hack. They did create the language after all. \u201cThis is just the first step, and we are dedicated to continuing to evolve this software to make development even easier for both our own engineers and the broader community,\u201d as posted on the Facebook Engineering blog.<\/p>\n<p><strong>What do you think about Hack? Do you think Hack is better than PHP? Can it replace PHP? Please post your answers in the comments.<\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>Hack is the new language behind Facebook, which remains the most popular social network today. It is a web programming language invented and recently open-sourced by Facebook. The company claims that Hack helps programmers to code more quickly and easily avoid errors early on. Hack is designed to build complex websites swiftly while ensuring the&hellip;<\/p>\n","protected":false},"author":120,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3409],"tags":[158],"topic":[4523],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Hack - The Programming Language Powering Facebook - Hongkiat<\/title>\n<meta name=\"description\" content=\"Hack is the new language behind Facebook, which remains the most popular social network today. It is a web programming language invented and recently\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/hack-language-facebook\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hack - The Programming Language Powering Facebook\" \/>\n<meta property=\"og:description\" content=\"Hack is the new language behind Facebook, which remains the most popular social network today. It is a web programming language invented and recently\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/hack-language-facebook\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2014-04-08T15:01:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-27T14:29:58+00:00\" \/>\n<meta name=\"author\" content=\"Ashutosh KS\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ashutosh KS\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hack-language-facebook\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hack-language-facebook\\\/\"},\"author\":{\"name\":\"Ashutosh KS\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/0c0611010da9a578caa32a34232cf7bd\"},\"headline\":\"Hack &#8211; The Programming Language Powering Facebook\",\"datePublished\":\"2014-04-08T15:01:24+00:00\",\"dateModified\":\"2024-05-27T14:29:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hack-language-facebook\\\/\"},\"wordCount\":1066,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"keywords\":[\"Facebook\"],\"articleSection\":[\"Social Media\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hack-language-facebook\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hack-language-facebook\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hack-language-facebook\\\/\",\"name\":\"Hack - The Programming Language Powering Facebook - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"datePublished\":\"2014-04-08T15:01:24+00:00\",\"dateModified\":\"2024-05-27T14:29:58+00:00\",\"description\":\"Hack is the new language behind Facebook, which remains the most popular social network today. It is a web programming language invented and recently\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hack-language-facebook\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hack-language-facebook\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hack-language-facebook\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hack &#8211; The Programming Language Powering Facebook\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/0c0611010da9a578caa32a34232cf7bd\",\"name\":\"Ashutosh KS\",\"description\":\"Ashutosh is a writer, entrepreneur, and a tech evangelist with expertise in the area of Computer Programming.\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\\\/\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/ashutosh_ks\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Hack - The Programming Language Powering Facebook - Hongkiat","description":"Hack is the new language behind Facebook, which remains the most popular social network today. It is a web programming language invented and recently","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/hack-language-facebook\/","og_locale":"en_US","og_type":"article","og_title":"Hack - The Programming Language Powering Facebook","og_description":"Hack is the new language behind Facebook, which remains the most popular social network today. It is a web programming language invented and recently","og_url":"https:\/\/www.hongkiat.com\/blog\/hack-language-facebook\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2014-04-08T15:01:24+00:00","article_modified_time":"2024-05-27T14:29:58+00:00","author":"Ashutosh KS","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Ashutosh KS","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/hack-language-facebook\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/hack-language-facebook\/"},"author":{"name":"Ashutosh KS","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/0c0611010da9a578caa32a34232cf7bd"},"headline":"Hack &#8211; The Programming Language Powering Facebook","datePublished":"2014-04-08T15:01:24+00:00","dateModified":"2024-05-27T14:29:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/hack-language-facebook\/"},"wordCount":1066,"commentCount":5,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"keywords":["Facebook"],"articleSection":["Social Media"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/hack-language-facebook\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/hack-language-facebook\/","url":"https:\/\/www.hongkiat.com\/blog\/hack-language-facebook\/","name":"Hack - The Programming Language Powering Facebook - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"datePublished":"2014-04-08T15:01:24+00:00","dateModified":"2024-05-27T14:29:58+00:00","description":"Hack is the new language behind Facebook, which remains the most popular social network today. It is a web programming language invented and recently","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/hack-language-facebook\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/hack-language-facebook\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/hack-language-facebook\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Hack &#8211; The Programming Language Powering Facebook"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/0c0611010da9a578caa32a34232cf7bd","name":"Ashutosh KS","description":"Ashutosh is a writer, entrepreneur, and a tech evangelist with expertise in the area of Computer Programming.","sameAs":["https:\/\/www.hongkiat.com\/"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/ashutosh_ks\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-58T","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/19771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/120"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=19771"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/19771\/revisions"}],"predecessor-version":[{"id":72012,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/19771\/revisions\/72012"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=19771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=19771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=19771"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=19771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}