So I’ve been thinking about JavaScript performance, because I’m hoping to make my animations run smoother. The actual animation steps (changing position, opacity, or size of a node) can’t be improved by anyone other than the browser vendor. So what can I do to optimise my code and allow me to get more raw horsepower [...]
Category Archives: Art of Coding
Don’t Software Engineers Write JavaScript?
The other day, I posted the following to the Prototype Core mailing list:
Has anyone taken the time to verify that the numerous warnings generated by running JavaScript Lint against Prototype are innocuous? Prototype 1.5.1 generates 160 warnings. For example: prototype.js:2300: WARNING: undeclared identifier: node [...]
When Is A Beta Not a Beta?
Reading the news this morning, I ran across the following statement:
It’s very early in development but there’s a beta available if you’d like to try it.
Based on my background of hard-core product development, this seems a little bit contradictory to me. I always understood a Beta to be a feature complete product that’s [...]
Beware Experts
I’m accustomed to making broad statements without qualification (hey, I was in Sales for a while). But the other day, I was reading the Web site of a somewhat popular Javascript library written by a PhD, and after nearly every article on the site, I had to shake my head and ask, “Is this what [...]
A Few Words on Naming
By now you may have noticed that I like long, descriptive names. Take an example from the Key-Value Coding/Observing library, setKeysTriggerChangeNotificationForDependentKey. That’s quite a mouthful for anyone. But most editors will complete this automatically after typing only a few characters.
Most importantly, the name setKeysTriggerChangeNotificationForDependentKey leaves absolutely no doubt what the function does.
In the hopes that [...]