A month ago I got excited about node.js. Watched two presentations, installed it, ran a few tests, and then ran out of steam for lack of a real project idea. Hate when that happens.
I couldn’t make sense of jQuery enough to fix it, so Szelector was born. And really that’s all it is at the moment: a selector. In other words, it parses a CSS3 style selector string and returns elements from the DOM that match the string. I haven’t finished attribute matching, but hierarchy-related fetching mostly works.
My code changed a lot as I learned about optimization (work from references whenever possible, reduce the number of function calls, optimize loops as appropriate, etc) and got a better understanding of the problem space. I even used the sizzle benchmarking setup to test my project against sizzle, jQuery, dojo, mootools. In some cases my project is faster, but mostly sizzle is blazing. And here’s why:
Trying to keep this high level … what else have I gained from this project?
- Came to appreciate once-again just how much jQuery does for me.
At this point it’s been a month since I’ve touched the project. Not what I intended to happen, but there’s a lot of mental energy necessary for something like this, and my brain is needed elsewhere for the time being.
If you have any questions, feel free to ask.