Articles tagged #javascript

Prefix - ForEach Statements

Thursday, September 29th, 2011     #javascript #everything

Prefix now supports foreach loops but their not exactly as you might expect....

Keep reading...


Prefix - Anonymous Functions and Lambdas

Monday, September 26th, 2011     #javascript #everything

A day or two ago I wrote about Prefix' support for delegates types - which are great, but they're only half the story. To make the most of them, you really need anonymous functions and lambda expressions.

Keep reading...


Prefix - typeof and typename operators

Monday, September 26th, 2011     #javascript #everything

Prefix does not (and will not) have an equivalent to .NET's runtime reflection capabilities. It does however have something a little better than what JavaScript provides - introducing the typename and typeof operators...

Keep reading...


Porting 'Burst Fish' to Prefix

Sunday, September 25th, 2011     #javascript #everything

A couple of days ago I stumbled on this great little JavaScript game tutorial and I thought it would be interesting to port it to Prefix as an example of something a little more "real world" than the hundreds of unit tests I've been using.

Keep reading...


Prefix - Delegates

Sunday, September 25th, 2011     #javascript #everything

In JavaScript, functions are "first-class objects" that can be stored in variables or passed as arguments to other functions. Prefix delegates are similar except they're strongly typed.

Keep reading...


Prefix - Arrays

Tuesday, September 20th, 2011     #javascript #everything

Prefix now supports arrays and starts to diverge from C#/.NET a little...

Keep reading...


Prefix - Generics (again), indexers, read only fields, variadic parameters

Friday, September 16th, 2011     #javascript #everything

In this last week or so I've been working on getting Prefix to the point where arrays are working. Unfortunately this highlighted a couple of design flaw in generics...

Keep reading...


Prefix takes One Giant Leap with Support for Generics

Tuesday, September 6th, 2011     #javascript #everything

After a week or so of mind melting work, Prefix now support Generics! This was a challenge both in compiling the Prefix code and in working out how to generate the required JavaScript. But since there's not much point to a strongly typed language without strongly typed collections, I'm sure the effort is worth it...

Keep reading...


Unit Testing Prefix with V8, V8Sharp and PetaTest (and hints on what's coming next)

Tuesday, August 30th, 2011     #javascript #everything

In developing Prefix I needed a reliable, flexible and fast unit testing framework. To build this I used V8 (Google's JavaScript Engine from Chrome), V8Sharp (a .NET wrapper for V8) and PetaTest (my tiny unit testing framework).

Keep reading...


Prefix - Support for Interfaces

Wednesday, August 24th, 2011     #javascript #everything

Prefix now supports interfaces and is cause for the first bit of "runtime support" code to be generated by the compiler.

Keep reading...


A Language (temporarily) called Prefix

Tuesday, August 16th, 2011     #javascript #everything

For the time being, I've decided to call this language Prefix. I'm not particularly fond of it, but I just need a name - anything's got to be better than [something]. As for the project itself, static constructors and enumerated types are now working.

Keep reading...


A Language Called [something] - Code Path Analysis

Saturday, August 13th, 2011     #javascript #everything

This is not so much a language feature but the compiler now does a fairly good job of code path analysis.

Keep reading...


A Language Called [something] - more language features

Wednesday, August 10th, 2011     #javascript #everything

I still haven't decided on a name for this project, but the compiler itself is coming along nicely and now supports static members, virtual properties, the using statement and more...

Keep reading...


A Language Called [something] - The Story So Far - Part II

Saturday, August 6th, 2011     #javascript #everything

Part II of describing what's been implemented in this language compiler I'm working on.

Keep reading...


A Language Called [something] - The Story So Far

Friday, August 5th, 2011     #javascript #everything

As mentioned in my previous post I've made some pretty good progress on this little language I'm working on.

Keep reading...


Implementing Shortcut Keys with jQuery

Tuesday, February 15th, 2011     #javascript #everything

Using Jab last night to setup a new theme for another site I'm working on went pretty smoothly except for two slightly annoying issues. Short-cut keys required.

Keep reading...


Clearing an HTML file input

Saturday, February 5th, 2011     #javascript #everything

You'd think reseting a HTML file input from JavaScript would be pretty simple - but each browser seems to behave a little differently.

Keep reading...


MiniME - New Build

Wednesday, September 8th, 2010     #javascript #everything

A couple of tiny tweaks making MiniME just that little bit more awesome.

Keep reading...


MiniME - Now with added lint!

Wednesday, August 25th, 2010     #javascript #everything

Finally, a simple JavaScript lint tool that doesn't suffer from OCD!

Keep reading...


MiniME JavaScript Minifier

Sunday, August 15th, 2010     #javascript #everything

While suffering a severe case of "not invented here" syndrome I decided it would be a good idea to write my own JavaScript minifier... as you do.

Keep reading...