October 18th, 2006
Update: Now works in IE6 thanks to a hack. Just look for the <!–[if lt IE 7]> conditional comment in the source code for details
For some reason, I decided that I want to draw triangles in a browser… without Flash, the canvas tag, or Java applets. I also wanted it to be as fast as possible, so that rules out the obvious method of creating a thin DIV for every horizontal scanline of the triangle (too many DIVs). After 2 evenings of work, I present this proof of concept.
If you like it, please digg it!
Posted in Web Development, Javascript | 23 Comments »
October 14th, 2006
I’ve finally released an updated version of the $class library. Includes many optimizations and refinements to make it even easier to develop complex object-oriented javascript. My next step will be to work on commenting the code and creating better documentation and examples.
Posted in Web Development, Javascript | 2 Comments »
June 7th, 2006
I got flooded with over 50 spam comments last night ranging from random phrases that mean nothing to a short pornographic story involving a 17 year old boy and his dog. Until I get some time to work on preventing automated comment submissions, I have changed my settings to allow only registered users to post comments.
Posted in General | No Comments »
June 2nd, 2006
[extremely edited - I originally had a very detailed post here about a javascript library I just released. I realized that that amount of detail deserves a more static page than a blog entry, so I moved the details out of this post (to a page created through the blog software because I’m lazy
)]
Javascript is a very loosely-typed and dynamic language. Variables can be of any type, function parameters can be of any type, and properties of objects can be added and removed at runtime. This can be very useful in many situations, but it can also create some pretty nasty messes that are a nightmare to maintain. Sometimes more rigid structuring is needed.
There are several techniques and libraries available for creating object-oriented Javascript that support inheritance, but they usually involve some difficult-to-read syntax and fail to provide other object-oriented features like abstract methods and interfaces. My goal is to create a Javascript library that provides many of these features and eases the pain of developing complex javascript solutions. My first step towards that goal is the initial release of The $class Library (as of this posting, I’ve actually made one change since the initial version in response to the first comment).
The $class Library will be improving as I receive feedback. Check it out and tell me how it could be better (I already know the file could be smaller; I’ll work on that soon).
Posted in Web Development, Javascript | 3 Comments »
March 12th, 2006
Posted in General | 4 Comments »