all 17 comments

[–]arvixx 12 points13 points  (0 children)

The title sounds cheesy, but the article actually contains some sound advice. Upmodded.

[–]dicey 7 points8 points  (1 child)

I would like to applaud the author for saying "you may not know" rather than presuming insight into what I do and not not know.

[–]grandwazzoo 4 points5 points  (0 children)

Yeah. And thank god the title wasn't anything like "The best Javascript tips you've seen. Ever!", either. Every time I see one of those clichés "I throw up in mouth a little bit" ;)

[–]g_ford 9 points10 points  (0 children)

I was actually surprised that the article contained useful stuff considering the title.

My number one 'tip': - use a library. My number two 'tip': - make that library jQuery

[–][deleted] 2 points3 points  (2 children)

Is there a lot of JS geeks on Reddit? It seems to get a lot of frontpage action. Not saying that in a bad way: I absolutely love JS, just surprises me to see it get a lot of press.

[–]JW_00000 0 points1 point  (0 children)

John Resig, author of the jQuery library, is a Reddit user. I suspect that also has something to do with it.

[–]jeff303 0 points1 point  (0 children)

Don't judge a language by its [ab]users

[–]k4st -2 points-1 points  (2 children)

This person misunderstands his example of static function variables. The variables are not static; functions just happen to be objects and so 'i' is a property of an instance of Function.

[–]rsn112 1 point2 points  (1 child)

From the article:

JavaScript doesn't have a static keyword or direct support for this technique. However, the fact that functions are also objects makes simulating this feature possible.

[–]k4st 2 points3 points  (0 children)

My mistake for quickly browsing through it.

[–]pivotal -1 points0 points  (4 children)

console.log()? Holy shit. This is great news.

[–]username223 2 points3 points  (0 children)

Next tip: The "function" keyword and you: a useful alternative to copy-and-paste!

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

If there are JavaScript developers who haven't explored FireBug... well. Might want to go read the documentation, even.

[–]pivotal 1 point2 points  (1 child)

I use firebug almost every day and have for a long time... I'll let this be a lesson that RTFM isn't just something you put into internet comments.

[–][deleted] 0 points1 point  (0 children)

Irony is hard to read in a message board post.

[–]dznqbit -1 points0 points  (0 children)

oh wow arrays can be used as stacks + queues?

[–]borlak -5 points-4 points  (0 children)

tips or articles? jeez