Written by: Kelly Turner
Primary Source: Writing Rhetoric and American Cultures
Last Thursday, Facebook revealed its latest achievement, Hack, a new programming language. When Facebook was created ten years ago, it was coded entirely in PHP. However, as Facebook became bigger, the language became harder to manage and developers were more susceptible to making mistakes. The manager of Facebook’s Hack team, Bryan O’Sullivan, helped eliminate those errors by creating Hack. The website has moved almost all of its code over to Hack in the last year. The company released an open-source version of the language for the public last week.
As an open-source programming language, Hack was designed to allow developers to write bug-free code fast. By keeping some elements of PHP and combining the structure of other programming languages, Hack was born. In order to debug code more efficiently, instead of checking while the program is running, which is what PHP does, Hack will check for errors ahead of time, which is called static typing. The language itself is most similar to PHP; O’Sullivan encourages programmers that want to use Hack to only convert the parts of their code that are the most important, as it is not necessary to redo everything. This blending of both static and dynamic typing forms a method called “gradual typing” which has been shown to provide swift feedback and incredible accuracy.
Read more about this new language at ReadWrite.