Do you start with a full on framework or library no matter what the project size, or do you have a small script you use similiar to Dan’s? Do you go with a clean slate until you really feel pain, or do you just swear off javascript and start with GWT or a drag and drop IDE?

@handcoder – looks like somone has a case of the Mondays! I use Prototype as well and some bits n peaces that I have put togeather to compliment it.

Comment by Mario — January 15, 2007

I’m a bit of a “notbuilthere” person. Been building my library since before the names “Prototype” and “Dojo” were known, so it’s not so easy to port my work to use either of those.

My own portables include the standards such as addEvent(), X() and $(), and a load of generally useful functions such as date_m2h(d) (translates MySQL dates to Human-readable), isArray(obj), newNumberRange(from,to,pad) (returns an array of numbers, optionally padded (03,04,05, etc)).

There are about 3 dozen functions I bring around project to project. Those are probably the more interesting ones.

On large projects I use prototype + my personal library.
For one-off pages or tiny projects I just write pure naked Javascript.
Mootools is starting to look pretty slick. I might end up using that with some of the new stuff I’ll be doing soon.
I might have to steal the new scriptaculous morph function though (Tobie Langel is a genius).

Prototype?! Isn’t that about 50+kB large? Plus for all the fun stuff you’d need scriptaculous too, right? Thanks, but I’ll pass. Most of the time I use plain old JS scripts and whenever I want some bells and whistles I use jQuery.