Hey everyone. My online game requires me to display a map, and that involves making a lot of divs on the page at specified places. If I do this with PHP, it assembles the divs which takes a long time and results in a big file, THEN it sends it to the client. Lots of CPU time. Lots of transfer. Very, very bad.
I'm thinking, hey! There's client-side languages, right? I can give all the work to the browser, and everyone will be happy. Huzzah! So I look into it. Apparently, javascript's the main client-side language everyone use. I look at tutorials, I get myself acquainted with javascript, I'm pretty confident in my javascripting skills.
Three weeks and 100 errors later, I'm cursing javascript to an untimely death involving lots of pain:
1. It can never give you the right line number of an error!
2. The error messages it does give you make no sense.
3. Classes don't involve real classes at all... they're... functions?! (yeah, I know, personal preferences and whatnot, but its frickin sloppy)
4. Execution stops at an error? It should keep going!
5. You need 3 sets of code, one for netscape, one for IE, and one for firefox.
So, screw javascript. I need a different language to program in, but I can't figure it out... the only other language I've heard of is VBscript, but is it supported? and does it have the same faults as javascript? And then theres Flash, but its a very steep learning curve...
What do I do? PHP is power-hungry in this situation and javascript is as unstable as a house of cards.
- E