Hack Community Roundup #2
Since the last roundup, our community has continued to produce some really cool projects using Hack. I’m really excited to have another long list to share with all of you!
Github Projects
-
Nathan Davidson is porting his “groundwork” framework to Hack. He describes groundwork as “a lightweight RESTful-like framework … designed to quickly get a backend communicating with a backbone.js, or equivalent, frontend.”
-
Brian Scaturro posted “Hacktions”, a simple framework for sending messages to observers. It sits in his “HackPack” alongside HackUnit which I mentioned last roundup.
-
Tobias Nyholm wrote a small twig filter to “take a HTML string as input and make it shorter without breaking the HTML”. He also wrote a short blog post on the plugin.
-
The prismic.io team ported their PHP kit to Hack, as well as a simple Hack starter project. See their blog post about it for more information.
-
Andy Hawkins of Bombsquad released Link-Hack, a “version of Amanpreet Singh’s minimal PHP Router”.
Blog Posts / Other
-
The Hack team and knowledgeable community members monitor the StackOverflow tag “hacklang” for questions, and we’ve gotten some good ones. In particular, I loved this question about converting some PHP code to Hack. It’s an extremely good question about thinking about how to write well-structured Hack strict-mode code; make sure to read the author’s comment on my answer about why the author’s code was structured that way.
-
In the same vein, as part of his groundwork framework rewrite mentioned above, Nathan Davidson wrote a great blog post about his experience with the conversion, including some insightful discussion of the finer points of a Hack conversion and what it means to be well-typed.
-
Knecht Rootrecht has started a German language Hack forum.
One reminder for anyone thinking of starting a new project in Hack: the type system itself is enforced by a separate typechecker, not by HHVM itself, so make sure you follow the directions on getting it set up, otherwise you’re missing out on a huge amount of the power of Hack!
Leave your thoughts down in the comments. In particular, please let me know what I’ve missed so I can feature it in the next post!
Comments
- Raju: Hi, I am a php developer, new to HHVM HACK, i would like to learn HHVM HACK language, we are using Linux-Ubunto 13.10, I have few questions, Please help me out. 1) What is the text editor (IDE) to use hhvm hack language and how to download for ubunto 13.10 ? 2) how to complile hack code before exicute.? 3) do we have any coverter to convert existing php project to hhvm hack.? quick response is highly appreciated, thanks in advance, Raju, emai : raju.sriramoju@shoregrp.com
- Josh Watzman: Hey Raju! 1. This was answered at http://stackoverflow.com/questions/23582444/what-ides-have-support-for-the-hack-language. Facebook also has our own IDE, FBIDE, that we are going to release at some point. 2. The directions on http://hhvm.com/ are pretty good. Once you have HHVM working, http://docs.hhvm.com/manual/en/install.hack.bootstrapping.php is how you start with Hack code. 3. This was answered at http://stackoverflow.com/questions/22541250/how-would-you-migrate-from-php-to-hack.