Neil's News

Polyglot 3: JavaScript

28 August 2004

[JavaScript] Third is JavaScript. JavaScript is great for what it is designed for: scripting the DOM within a web browser. It's also not bad as an HTML-generating server-side language (LiveWire). But it has got to be the stupidest possible language choice for generating and displaying images. It runs like a snail. However, the exercise of translating this application to JavaScript was quite helpful in that it forced me to really think about the algorithm's efficiency. A number of improvements have been made as a result.

This form launches a client-side implementation. The JavaScript source code is included in the resulting web page's HTML.

Width: Height:

< Previous | Next >

 
-------------------------------------
Legal yada yada: My views do not necessarily represent those of my employer or my goldfish.