Done, and gets things smart.
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 [...]
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
02Dec
Posted by Elf Sternberg as chat, javascript
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 [...]
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 [...]
08Aug
Posted by Elf Sternberg as javascript, programming
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 [...]
18Jun
Posted by Elf Sternberg as javascript, programming
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 [...]
14Feb
Posted by Elf Sternberg as javascript
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, [...]
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.
08Dec
Posted by Elf Sternberg as javascript, programming
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 [...]