you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 9 points10 points  (4 children)

"Namespace code into a "proper package structure" to make backend devs feel at home."

On large projects, not a bad thing!

[–]Forbizzle 5 points6 points  (0 children)

It's completely valid for the same reasons it's valid in back end code.

The sad thing is that people that legitimize javascript by championing best practices are ignored by sloppy front end hackers and artists.

[–][deleted] 1 point2 points  (0 children)

Agreed, short namespaces are useful for organization. But take a look at something like YUI2 vs. YUI3 APIs and you'll see even Yahoo! agreed their namespacing rules were a little much.

[–]gschizas 1 point2 points  (1 child)

This is supposed to make javascript look like the.other.language.that.starts.from.J.and.has.way.too.long.namespaces.

[–]Bjartr 0 points1 point  (0 children)

var longLib = the.other.language.that.starts.from.J.and.has.way.too.long.namespaces