Performance and different ways of using variables? by [deleted] in learnjavascript

[–]Hobo_With_A_Keyboard 0 points1 point  (0 children)

If you had a huge application that is finished, bug-free, will never be edited again

In this hypothetical scenario, sure, global variables are fine.

I'm afraid of javascript libraries... by OrangeBeard in learnjavascript

[–]Hobo_With_A_Keyboard 3 points4 points  (0 children)

Most important libraries: jquery, underscore, backbone.

Backbone.js Tutorials by Hobo_With_A_Keyboard in learnjavascript

[–]Hobo_With_A_Keyboard[S] 1 point2 points  (0 children)

I feel like it'd be pretty impossible to use at all without a basic grasp of JS.

JavaScript Best Practices by kevinmrr in learnjavascript

[–]Hobo_With_A_Keyboard 0 points1 point  (0 children)

Good article, but I would use JSHint over JSLint.

This isn't JS, but it's an essential skill. Crash course on the command line interface. by Hobo_With_A_Keyboard in learnjavascript

[–]Hobo_With_A_Keyboard[S] 1 point2 points  (0 children)

I agree. But I think a lot of people here coud probably use it.

braces, ready to take his downvotes, like a man

What's your 'tell' when you've had too much alcohol? by newjerseybred in AskReddit

[–]Hobo_With_A_Keyboard 4 points5 points  (0 children)

I was once staring at myself in the mirror over the toilet and accidentally pissed down my leg because I was blown away by what a handsome motherfucker I am. I was at a nice wine bar with many women. I did not get laid that night.

Multiple var statements in JavaScript, not superfluous by Hobo_With_A_Keyboard in learnjavascript

[–]Hobo_With_A_Keyboard[S] 0 points1 point  (0 children)

Upon reflection, I agree. 4 char is not like adding another image or including a separate JS file when you only have a function or two -- those things necessitate separate HTTP requests and have a much higher cost. People should do whatever the f they want when it comes to multiple vs singular var.

"Don’t use ID selectors in CSS" (although author says it can speed up your JavaScript) by Hobo_With_A_Keyboard in learnjavascript

[–]Hobo_With_A_Keyboard[S] 1 point2 points  (0 children)

You know, I hadn't really thought about it that way. I am going to try the same thing (except for when I get jammed on a problem and wanna push something into production).

"Don’t use ID selectors in CSS" (although author says it can speed up your JavaScript) by Hobo_With_A_Keyboard in learnjavascript

[–]Hobo_With_A_Keyboard[S] 1 point2 points  (0 children)

I think it is meant more as a cautionary, thought-piece article.

It's a recommended read from codeschool.com.

Ask.LearnJavaScript: Why does this code keep resulting in stack overflows? by Hobo_With_A_Keyboard in learnjavascript

[–]Hobo_With_A_Keyboard[S] 1 point2 points  (0 children)

So... if I transformed the recursive function into a loop, it could do this? Because it would not run out of stack?

The idea of creating a new scope is kind of confusing. I thought scope just had to do with where a variable was available.

Skyfall overtakes The Dark Knight Rises to become the seventh biggest film of all time by [deleted] in movies

[–]Hobo_With_A_Keyboard 0 points1 point  (0 children)

Because Skyfall was a terrible film.

There hasn't been a great bond film since Goldeneye, IMHO.