Alan Hogan
These are my comments on music, movies, books, web development and programming, Mac tips, and life in general. Enjoy!
Steve put so much of himself into Apple, it’s really no wonder we tend to conflate the two.
But we should not forget that Steve was more than Apple. He was a man unsure of his future.
…
this does.
A PHP programmer (name withheld to protect the ignorant).
This kind of glib comment gives PHP developers the bad reputation they have earned over the years.
CoffeeScript is a layer over JavaScript, but it does more than make code “prettier”. It can seriously reduce repetition and lines of code, while generating highly readable output. After using it for a couple weeks, I get just a bit annoyed when I need to write real JavaScript and find all the parentheses are necessary again.
jQuery is not a layer on top of JavaScript — it’s mostly a wrapper for the DOM — one that makes more sense, is more memorable, is quicker to type, and allows for greater conciseness. Who doesn’t like jQuery at least a bit?
Similarly arguing that Sass (and Compass!) aren’t huge wins for anyone who writes CSS is merely an argument from ignorance. Prettiness?! The preferred, popular Sass syntax is now .scss, which is a superset of CSS. Additional prettiness: Zero.
Haml is more debatable but also reduces repetition and eliminates some opportunities for errors while authoring markup.
Do I even need to comment about this baseless criticism of CoffeeScript?
Comments like this a knee-jerk reaction to the justified language superiority enjoyed by the likes of Python & (especially) Ruby users, for PHP devs to bash anything “pretty”.
The seemingly inescapable conclusion is that a lot of PHP developers are still PHP developers because they are not motivated enough to start using a language that is better designed, and guys like this who pretend their language is “just as good,” if not as “pretty” as others, do nothing more than reinforce such a perception.
A Review & Comparison with Sparrow
Just over a month ago, I reviewed Sparrow, a new Gmail- and Twitter-inspired mail app for OS X.
I had a number of complaints, but also a fair amount of…
In Episode 0.3.5, Max wished for an app that would give him Growl alerts any time someone added a Homebrew formula to any Homebrew fork.
Well, Clint Shryock has created just such an app. Github Notifier is a simple menu bar application for OS X that listens for GitHub updates in any of your repos and then alerts you via Growl.
Useful!
Simulating the Ternary Operator
x = (falseValue, trueValue)[condition]
That’s how people simulated the ternary operator in Python 2.4 and less. It’s interesting because it uses a fairly unique feature of Python — tuples — to make up for its lack of a language construct equivalent to common C-like-languages’ ternary operator (condition ? trueValue : falseValue).
Of course, now you should never write such obtuse code, given the actual Python ternary has existed for a while (trueValue if condition else falseValue).
[Tornado] ImportError: No module named ioloop
In case anyone is as dumb as I am:
If you are trying to run a Tornado server and keep getting the error ImportError: No module named ioloop, it means you shouldn’t have named your own file tornado.py. There can only be one tornado, and yours ain’t got ioloop. Rename your file to something like serve.py and get on with it.
David Friedman suggests that we replace the common floppy-disk “Save” toolbar icon with a new visual metaphor:
Not only don’t people use floppy disks anymore, but the options for saving are even more varied now than simple disk format. You might save to your own computer, or a drive on a…
Auto-save can even be fairly reliable in web apps, thanks to localStorage.
(Source: marco)
The classic problem of not being able to indent or outdent text in textarea elements on the Web has been solved by Ted Devito. Thatâs right, you can now use the Tab and Shift+Tab keys to…
It’s not a surprise, but it still came as a shock.
Yesterday Twitter told third-party developers not to compete against official client apps. No new “Twitter clients” will be permitted, and old…