Go to content Go to navigation Go to search


Browse

RSS / Atom

All Articles

Code!

Bit · 2007-07-18 15:33

Earlier today...

me: Mother... shitter... Son of an... ass
hoon: Whaddya wingeing about now?
me: *throws 1995 IBM Model M keyboard through window*
hoon: Time for a durry?

Bloody prototype, the Javascript library I've been using on my current project, extends the Array object. That's the official version. My version is it fucks it beyond all recognition. Basically don't even think about using your regular array looping constructs like for(var i in arr) anymore because they won't work.

The TrimPath Spreadsheet stuff I've been hacking into our app doesn't use prototype, just regular ECMAscript and I don't have the heart to hack it and make it work. I want my changes to be wanted by others. So fuck it, prototype is gorn!

It's so much fun to get this far into something and have to change to a different library. Yay! more pointless work.

Update @1648: I'm a dumb shit... All the other libraries I tried do the same thing. Time to just stop using for(var i in arr) for associative arrays and start using objects

Commenting is closed for this article.

Social animals The Rude Awakening of Optimus Prime