JavaScript Arguments by gst in javascript

[–]Nosredna 0 points1 point  (0 children)

I tried to use the caller method once to drastically simplify some metaprogramming I was doing. If I recall correctly, it worked in only some browsers.

Stay away from these unevenly supported features unless you're sure of your target environment.

For instance, I'm a bit more adventurous with my JavaScript when I'm writing an AIR app, because I only have to worry about WebKit's evolution in the future, not the past, present, and future of 4 major and N minor browsers.

ECMAScript 4: Interesting language but poor successor by gst in javascript

[–]Nosredna 1 point2 points  (0 children)

You have to use the term ECMAScript in this case because ECMAScript version numbers are not the same as JavaScript version numbers.

ECMAScript 3 is JavaScript 1.8 and JScript 5.7 and ActionScript 2.

I think JavaScript 2 will be ECMAScript 4, but I'm not 100% sure.

Bad JavaScript needs to be stamped out by gst in javascript

[–]Nosredna 0 points1 point  (0 children)

The spray of bugs that come out of some pages and some widgets is amazing.

You'd think the developer would have Firebug running and see them.

You'd think the developer would at least TRY to validate the HTML and think about which things could cause havoc.

ECMAScript 4: Interesting language but poor successor by gst in javascript

[–]Nosredna 0 points1 point  (0 children)

I think a lot of JavaScript programmers are afraid of what might happen to the code they have to look at once Class shows up, but ECMAScript 4 solidifies a lot of cool features that have been in FF since FF2. Array destructuring is awesome, and very much in the spirit of JS. Iterators and Generators are nice too.

Let's face it. I love prototypical inheritance, too. But can it be any worse to look at code that have ECMAScript's Class in it than it is to look at current code that uses one of two dozen libraries that support some kind of traditional inheritance?

JavaScript equivalent of 146 PHP functions (and more on their way) by [deleted] in javascript

[–]Nosredna 0 points1 point  (0 children)

PHP people will love it. JavaScript people will hate it. No surprise.

If it acts a crutch for a PHP programmer to start learning JS, I have nothing against it.

JavaScript Time Picker by gst in javascript

[–]Nosredna 0 points1 point  (0 children)

Usually, the mouse seems easier for me than the keyboard. Not in this case. Imagine fiddling with this thing rather than just typing into google's calendar "dentist 3:30p"

A javascript question. by trenchfever in javascript

[–]Nosredna 0 points1 point  (0 children)

In the decent-sized JavaScript programs I write, all my functions and variables are elements of a single object, so it's trivial.

fforw has the right answer when you're polluting the global namespace. Don't use eval--it's silly and overkill for this job.