about

JavaScript is a language we love despite it giving us so much to hate. This is a collection of those very special irregularities, inconsistencies and just plain painfully unintuitive moments for the language of the web.

contributing authors

These fine folk have been the brave warriors of code whom kicked out a wtf for your laughter (or perhaps compassionate tears).

Interested in joining the list above? Read this post for more info.

building your own

Way back in the day, wtfjs.com was a tumblr tumblog where I embedded github gists for the code. It was supposed to be a quick and dirty place to capture those special js moments. Unfortunately, the use of gists made ppl all like, "wtf dude", when the code samples (arguably the entire reason for wanting to see the site) where not visible due to the embedded js nature of gists.

At that point, there was only 10^2000000 JavaScript frameworks inspired by Sinatra. The ability to author a site about javascript with javascript, while possible, was still a pain in the ass if not downright irresponsible. Times have changed. There are now more JavaScript frameworks inspired by Sinatra than stars in the sky. And if you are reading this page then The Great Rewrite thwarted statistical failure.

One of the real motivators for me to do this was Heroku. Deployment of NodeJS projects is super simple. Over a couple of days wtfjs went from being a shameful hollow shell of PHP and inline everything to a gleaming landscape of bleeding edge tech buzzword pornography:

templating

Nothing is perfect. And sometimes shit is just plain wack. The ExpressJS framework is seriously awesome but it has a hardon for HAML which solves problems I do not have. I opted, out of lazyness, for EJS which is not beautiful; tho it is functional. Its like the craigslist of templating solutions. I'd love to reauthor with MustacheJS.

testing

The testing situation around here is presently dire. ExpressJS utilizes JSSpec which is good. I tend to prefer qUnit with ShouldaJS sugar.

persistence

Inspired by Jekyll, Toto and perhaps Scantly I opted to allow posts to be authored in nothing more than simple markdown. Perhaps there is a better way.

Fork me on GitHub