13 July 2006
I hate Dojo
Alrite, I hate dojo, I mean I really really tried to like it, but it just never seize to surprise me with the load of craps that comes with it.
You know what it is? It’s so freaking bloated. I ran into an issue last night where the dojo widgets aren’t rendering correctly. For the life of me, I couldn’t figure out why. I checked my syntax couple of times and checked the path to the scripts as well, nothing was wrong, so what gives?
Luckily, the version on my local machine works and as it turns out, the version that I uploaded to the server missed a few files, flash files. Then I remembered dojo recently added flash offline storage feature, well the issue is, why would it break my dojo if it’s not there? IT SHOULD BE working if no flash is detected!!! Flash is suppose to be an add-on, not a requirement!! It's suppose to be fixed in v0.3 but it seems to be only available to the the core build, and i'm using the kitchen-sink. Nope, kitchen-sink is not working.
So now I ended up with a framework that
1) Use xmlhttp request object to load script libraries (what an overkill)
2) Use flash and flash is a requirement.
3) Completely custom grammar that is incompatible with the traditional javascript, at least with dojo widgets, you simply can’t use document.getElementById if you decide to do some stuff on your own.
4) Not iframe proxied, meaning if you work in a U.S gov and mostly likely your gov agency disabled activeX, you won’t be able to use it.
It’s a shame really. Dojo really has a lot unique ideas, but as time goes on, its attractiveness is diminishing by the day.
All I want to do is show a freaking date picker, I ended up with having to use XmlHttp and flash. Wow, I feel heavy.