About Me

My name (as you may already have guessed) is Ben Alman, but most people call me by my nickname, “Cowboy.” I’m a thirty-something web developer living and working in the Boston area. I’m happily married to a wonderful woman and we have two very crazy, but very awesome ragdoll cats.

Feel free to contact me if you have any questions or just want to say “Hi.” And if you want to send me a donation to show your appreciation for my work, I’d really appreciate it!

Recent Photos

Los Amigos Invisibles at Paradise Rock Club in Boston #music
Ramsey Lewis at Scullers! #music #awesome
Checking out Dazz Band (for real) at Scullers
Looks like I picked the Kashi bar that had been through the washing machine. #whoops
My awesome bash prompt
Christian McBride and Inside Straight
FWIW, I did wear my blue "beanie" today #bbd11 #kangol
Damn, this RME Fireface UFX is serious business! #music #proaudio
I have an awesome clock, but when daylight savings time rolls around, I can never remember how to set it!
Damn, 6' USB cable isn't quite cutting it. #music #midi #ergonomicsfail
Pensa Custom 4-String
Pensa Custom 4-String
Pensa Custom 4-String
Pensa Custom 4-String

Featured Projects

jQuery Projects

Other Projects

Recent Project Updates

Recent News

|

I’m not sure where or when it happened, but at some point the JavaScript community decided that multiple, individual var statements were superfluous, instead opting for a single, combined var statement with a comma-separated list of variable declarations and assignments whenever possible.

Just in case you don’t know what I mean, I’ll illustrate:

// Single, combined var statement.
var foo = 1,
    bar = 2;

// Multiple, individual var statements.
var foo = 1;
var bar = 2;

I’ve asked a number of talented JavaScript programmers why they prefer a single, combined var statement with multiple declarations and assignments to multiple, individual var statements, and the only responses I’ve been able to get seem entirely subjective:

  1. Multiple var statements are superfluous.
  2. Multiple var statements are noobish.
  3. Combined var statements look better.

While I can’t argue with the last point, in JavaScript, multiple var statements aren’t superfluous and they aren’t noobish. They reduce the effort it takes to maintain code.

Featured Music

Here’s a collection of songs that I’ve either written, produced, or played on. Enjoy!

Featured music for benalman.com