Archive for the ‘javascript’ Category

22Jan

ToneMatrix for HTML5

Posted by Elf Sternberg as javascript

This morning, I had an attack of SRMD, aka “Mad Scientist’s Disease.” Many moons ago, I admired a lovely little program called ToneMatrix by Andre Michelle. I had Flash envy hard after seeing it, and I wanted to figure out if it was possible to make such a thing using only HTML. Well, with the [...]

15Jan

Coffeescript is a gateway drug to Haskell

Posted by Elf Sternberg as javascript

So, I’ve been working my way through Learn You A Haskell For Great Good, and in chapter five there’s a quicksort example that reads: quicksort [] = [] quicksort (x:xs) =            let smallerOrEqual = [a | a

I got a call last night from a recruiter who was looking for “A front end guy: Javascript, HTML, CSS.  But the real kicker is they need someone with experience in Backbone.  Do you know anyone with that?” I said, “Sure. Me.” I told him about the tutorials I had written for Backbone, the current [...]

28Nov

I should stop reading magazines.

Posted by Elf Sternberg as chat, css, Design, javascript

I have to say that I’m really disappointed with .net magazine this month. .Net is a popular magazine for web designer and developers, and frequently has great articles and tutorials. For someone in my class of developer it’s not always that useful, but there’s always one or two tutorials worth perusing– and reading the tutorials [...]

It’s no secret that I’m a Backbone.js fan, along with everything else. One of my other preferences is for Backbone-Relational, a nifty hack on top of Backbone that allows you to create, manage, and maintain simple relationships between objects. If you have a CouchDB or other JSON-oriented database, and you want to manipulate a record [...]

Introduction To Version 2.0 When I wrote the original Backbone Store, I didn’t have a clear understanding of how Backbone worked.  I wrote it to teach myself Backbone, after all.  Since then, I’ve come to understand that there is some Javascript about which I didn’t have the world’s clearest understanding.  This version of the store clears [...]

So, this afternoon, I spent about four hours and played around with Raphael, the SVG library for HTML 5, and the native Canvas renderer.  Originally, I was only going to go with Raphael, until someone pointed out to me that Raphael doesn’t work on Android phones.    Since my apps have to work on Android [...]

Ever have the problem where you want to fade out a whole collection of stuff, and then show only one? A naive implementation looks like this: $(‘.options .option’).fadeOut(‘fast’, function() { $(‘.options .option:eq(4)’).fadeIn(‘fast’)}); If you have five options, however, the callback gets called five times. Now, this is okay in the current example: fadeIn is idempotent, [...]

03Feb

Backbone Store v 0.2 released

Posted by Elf Sternberg as javascript, programming

The last version of the Backbone Store was pretty sloppy. I’ve cleaned it up, with some serious revisions to both the code and the commentary, and you’re welcome to look it over. As always, it’s available from my Github.

Introduction I’ve been playing with Backbone.js, a small but nifty Javascript library that provides a small Model-View-Controller framework where Models can generate events that trigger View changes, and vice versa, along with a Collections models so groups of models can cause view-level events, and a Sync library that provides a basic REST architecture for propagating [...]


Recent Comments