HD DVD / Randomness...Peter Torr's blog on HD DVD, JScript, the Pet Shop Boys, and anything else he feels like blogging.Why the arguments object is bad, Exhibit 3,745- January 30, 2008 Having just written a post with an example of how to use the arguments object, you might question my choice of title for this blog post. In my not-so-humble opinion, the 'arguments' object in ECMAScript is only useful for one thing: The 'arguments' object should only be used by infrastructure functions that simply perform book-keeping on behalf of other functions. Any function that actually operates on its arguments in a meaningful way should never access the 'arguments' object. The reason for.http://blogs.msdn.com/ptorr/archive/2008/01/30/why-the-arguments-object-is-bad-exhibit-3-7... Fun Friends For Functions- January 30, 2008 And now for a more techy post. In ECMAScript, functions are considered first-class objects. "What," you might ask, "differentiates a 'first-class' object from a merely 'economy-class' object" Well, the main thing is that functions in ECMAScript are treated just like any other type of data (strings, numbers, arrays, etc.) in that they can be assigned to variables, they can be passed as function arguments, and they can have properties and methods of their own. They also have a prototype object,...http://blogs.msdn.com/ptorr/archive/2008/01/29/fun-friends-for-functions.aspx A Concert with PowerPoint Slides- January 29, 2008 As you may know, Howard Jones played an acoustic show in Seattle last night with Robin Boult on guitar. The performance was fantastic, and the venue (The Triple Door) was actually quite nice with a limited menu coming from the kitchens of Wild Ginger. (Although I enjoyed the food, I am not really a fan of having the waiters walk past every 5 minutes, or of all the clanging of silverware and glassware as people finish their dessert... but I digress). Anyway, the reason for this blog post is...http://blogs.msdn.com/ptorr/archive/2008/01/29/a-concert-with-powerpoint-slides.aspx Good News- January 14, 2008 Not one but two bits of good news this morning! Firstly, TWICE reported on Toshiba's plans for HD DVD this year. Probably the biggest news was that the entry-level HD-A3 player will have a new recommended price of only $149 and that the higher-end models will get similar price cuts. And in other news: Howard Jones is coming to Seattle!http://blogs.msdn.com/ptorr/archive/2008/01/14/good-news.aspx |