JavaScript Hacks for Hipsters

You’ll either find this amusing or anger inducing depending on your proximity to the software maintenance coalface:

http://www.slideshare.net/berzniz/javascript-40065817

The first one made me cry a little for the rotting corpse of software maintainability but I’ve committed most of the others in various languages.

Using && and || inline is a common idiom in Lua which lacks a ternary operator and #5 is often necessary in Xcode which, bizarrely, lacks any kind of useful bookmarking.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s