This isn't specifically a mochikit question but I'll ask anyway.

Does anyone have advice about development environment / practices that
will keep me from shooting myself in the foot more than absolutely
necessary?

http://www.javascripttoolbox.com/bestpractices/

seems like a pretty good list, but I'm wondering if there is some way
to get part of that happening semi-automatically.

For instance,

1) is there a way to load my code in such a way that it will complain
if I have global vars (not declared with var) rather like in perl you
have "use strict"?

2) is there some mode / environment that will complain if I use the
same function name twice?

I'm developing using mochit with firebug, and these two issues alone
have cost me quite a bit of headache. IE, I would expect firebug to
pop up an error and it would just break out of the function and let
the page load, making the bug a lot harder to track down.

Much obliged for any advice.

t.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" 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/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to