You're right. I made myself look very stupid. I realized this a couple of hours later after posting. Made some really dumb mistakes with Javascript. OS is actually really elegant. Thanks for the tips.
I'll finally look into JQuery, been using Prototype for the last few years. On Feb 4, 7:22 am, "Reinoud Elhorst" <[EMAIL PROTECTED]> wrote: > I think it's hardly fair to blame OpenSocial for the fact that Javascript > development is complicated :) > > On the other hand, things like google docs are written completely in > Javascript, and work pretty well. That proves to me that Javascript can be > used to build really large programs. > > Actually, I've been really digging into Javascript for a couple of years > now, and still am amazed by the new things I can learn from other's people > code. I believe it's a huge misconception that Javascript is for script > kiddies. It is being used by a lot of script kiddies (and people that don't > know the first thing about programming), and that gives it the image that > any seasoned programmer should be able to pick it up in just minutes. Still, > in my experience, it takes at least as long to learn proper Javascript as > any other programming language. > > (i could go on here, but don't want to write a blog, and don't want to let > this thread go towards a "the goods and evils of JS programming". > > So now for the practical tips; > - Make sure you have FireBug installed, and use frequent log statements. > - Never do anything on DOM or events directly, use libraries such as > Prototype, Dojo or jQuery (or many others...) for this. When choosing a > library it might be a good idea to try to find out how the Caja > compatibility is. I believe jquery is pretty good here, prototype is being > looked at. The libraries take care of most browser-specific stuff. > - Whenever you have something that works in FF but not in IE, 9 out of 10 > times it's a comma at the end of an array or object-literal: > [1,2,3,4,] is valid in FF, but not in IE. > > Hope this helps! > > On 2/4/08, imagenesis <[EMAIL PROTECTED]> wrote: > > > > > Wow. I want to blow my head off after working on an Hi5 app for the > > last few hours. So far, my app is smaller than the helloworld example. > > Debuggin is SO ANNOYING AND TEDIOUS WITH THIS. You can never find your > > error with javascript. Yes I am new to Javascript but this is just > > ridiculous. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenSocial API Definition" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en -~----------~----~----~----~------~----~------~--~---
