found drama

get oblique

Category Archives: tech

Reviews, speculation, and other idle thoughts on hardware, software, firmware…

a jshint pre-commit hook for git

by Rob Friesel

JavaScript is a wily beast: optional semi-colons and braces 1, sneaky performance hits, promiscuous equality operators and other dirty tricks… If you’re not careful, you could get yourself in trouble. Fortunately, there are tools out there to help. One of the recent additions to the JavaScript developer’s code quality toolkit is jshint. 2 Even more […]

a JavaScriptCore wrapper for jshint

by Rob Friesel

Last night, I opened a pull request (my second) on the JSHint project. I created a wrapper for Apple’s JavaScriptCore (JSC) engine, which ships with (effectively) every Mac that’s out there. Why JavaScriptCore? That’s the obvious question, right? Why even bother creating a wrapper for JSC when JSHint is already out-of-the-box ready for Node.js, and ships with […]

a better version comparator

by Rob Friesel

Back in February, I wrote a little Ruby script to deal with sorting version numbers as they’re dumped out of the git tag command. The problem (in a nutshell) is that “1.0.2” < “1.0.10” — except that git returns these as strings which sort alphabetically. Hence the original Ruby script. Now: if you’re behaving yourself, and following […]

“My God, it’s full of semi-colons.” (or: yes, maybe we are all a little overwhelmed with the micro-framework threads)

by Rob Friesel

“Can everyone stop writing JS micro-libraries for a second. I need to catch my breath.” 1 There are a few posts (on both sides of the fence) about this shit-storm 2 of “micro-frameworks” that seem to be getting announced every other day lately; and while I’m not sure if the following referenced post is the […]

don’t get lost in the sea of tags

by Rob Friesel

Ever feeling lost in a sea of not-exactly-ordered tags when you enter git tag at the command prompt? It seems that a common tagging idiom in a lot of git repos is to tag important milestones or releases. Some repos use <major>.<minor>, others <major>.<minor>.<version>, still others <major>.<minor>.<version>.<patch> (and so on?). And as those repos get […]

the pleasures and perils of JavaScript’s promiscuous comparison operator

by Rob Friesel

Spoiler alert: toString has its mitts in everything. This all started when we saw a candidate put the following into an exercise we had given him: if (arrayToTest == ”) Our first thought was well that seems wrong… And though it seems like something that shouldn’t work, it did–when the array contained a single item, […]