Posts for August, 2008

Object oriented javascript slides and samples

In 2008 I did a talk at a .NET user group in Oxford about the nuts and bolts of how objects actually work in javascript. Here are the presentation slides and code samples.
Published in Javascript, My presentations, Web development on Sunday, August 31st, 2008

Javascript anonymous functions

Anonymous functions are functions that are dynamically declared at runtime. They're called anonymous functions because they aren't given a name in the same way as normal functions.
Published in Javascript on Saturday, August 23rd, 2008

Functions are first class objects in javascript

Functions in javascript are first class objects. This means that javascript functions are just a special type of object that can do all the things that regular objects can do. Really, just like any other variable Here are a few of the important objects things that you can do with a function in javascript. A […]
Published in Javascript on Tuesday, August 19th, 2008

Building simple objects

Javascript objects are basically just hash tables, a group of related properties and functions that can be accessed by a key. Properties are dynamically added at runtime. Methods are just properties that happen to be functions. Building a simple object The simplest way to build objects in Javascript is by declaring a new variable of […]
Published in Javascript on Sunday, August 17th, 2008

How javascript objects work

A look at the features of the javascript that can be used to write object oriented code and how javascript objects really work at the language level. Useful for people writing bare metal javascript or to understand how you framework really works.
Published in Javascript on Sunday, August 17th, 2008

VS2008 SP1 – Microsoft replace my VS with a new one

I just downloaded VS2008 SP1. I just have to wonder what they’re patching that takes 831MB. The installed parts on my harddrive is only 700MB and surely they’re not making me download all the help, bitmaps and tools again? :) At least they have fast servers. :)
Published in .NET on Friday, August 15th, 2008

Saving server control properties to ViewState with custom attributes

Use custom attributes to take the tedious work out of creating server control properties that persist to ViewState. Declare a normal property and use an Attribute to tag it for storage to ViewState. See how to use reflection to see which properties need to be persisted.
Published in Server controls on Wednesday, August 13th, 2008

IETester: test IE5.5 to IE8 on the same computer

My favourite new webdev tool of the moment is IETester. You can use it to test pages in IE5.5, IE6, IE7 and IE8 all on the same machine without messing around with your main installed version of IE. I was pretty amazed when I saw it because I’d always believed that it was a bit […]
Published in Browsers, Tools on Thursday, August 7th, 2008