Airbnb has put together a stellar list of simple ways to make your JavaScript more maintainable and manageable. From comments and whitespace, to hoisting and type casting, this list covers nearly everything you should know when developing a JavaScript app.

The Backstory

Before I begin, I should mention that any views I express here are entirely my own. Now, I recently began working for the summer at Bloomberg L.P., where for the first few days we sit through a few talks and do a few labs that introduce us to the technologies we’ll be using throughout the summer. JavaScript was one of these languages, and I found that a quote on the first slide is all too correct:

“JavaScript is both the most popular and unpopular programming language.”

– Doug Crockford

From there, as you might imagine, the reactions from a predominantly C++ oriented audience towards JavaScript’s quirks were pretty amusing. There are some significant differences between these two languages, and if you’re not careful, they can get annoying quite quickly.

Links

airbnb/javascript

JavaScript might have it’s quirks, but it’s still a vastly powerful language, especially if used well. For any aspiring JavaScript developer, I would highly recommend looking over Airbnb’s JavaScript best practices. Even if you think you’ve got the language down, I’m confident you’ll uncover something useful.

The Birth and Death of JavaScript

While you’re here, check out this video for an incredibly humorous and satisfyingly accurate discussion of JavaScript, from birth to death.

Wat

Aaand while we’re posting humorous JavaScript videos, I’ve gotta throw this one into the mix.



Jake on the Web

If you cared enough to read that far, you should consider following me on GitHub or paying a visit to my homepage. If this post was about one of my open source projects, make sure to star it on GitHub! I love hearing what people think, so feel free to comment, open an issue, or send me an email.

Vim and Haskell in 2016 on OS X

Stephen Diehl’s article “Vim and Haskell in 2016” does a great job of outlining the quickest way to get a quality Haskell development experience. His post presumes Ubuntu; here we presume OS X. Continue reading

Let’s Have a Chat about Encryption

Published on April 17, 2016

SML Dev Setup

Published on March 09, 2016