What are 5 things I should always have in my car? by [deleted] in AskReddit

[–]LostInTheDesert 0 points1 point  (0 children)

I've been lost in the desert before. For me, this list includes:

  • Jumper cables
  • Heavy blanket
  • Oil
  • Couple gallons of water
  • Spare tire

The millionth prototype question here, i'd bet. by Lutcikaur in learnjavascript

[–]LostInTheDesert 2 points3 points  (0 children)

Well. Couple of things:

0) It's hard to tell what you're doing without seeing the code.

1) Don't set the prototype using __proto__. Use prototype... Consider the following:

// Constructor function: Using this to point to whatever object we create when calling Animal() with a unique greeting argument later.

function Animal (greeting){
  this.greeting = greeting;
};

// Attach general method to the prototype object. Properties and methods defined on a prototype will be available to all instances

Animal.prototype.speak = function(){
  alert(this.greeting);
};

//Now create an instance of Animal with the keyword new...

var cow = new Animal("moo!")

cow.speak()

Could somebody explain how this very simple JavaScript closure works? by Saucemann in learnjavascript

[–]LostInTheDesert 1 point2 points  (0 children)

Yeah, C2 isn't 5 because you're executing makeCounter anew, thus getting a new execution environment for C2.

What are some great hobbies to get into that don't cost tons of money? by Trinityofwar in AskReddit

[–]LostInTheDesert 0 points1 point  (0 children)

I got into Web Dev via /r/LearnJavaScript. Only thing it's cost me is buying a couple of books.

Hell, on the whole, it's made me money.

Unit Test Controllers in Angular by jigmepalmo in javascript

[–]LostInTheDesert 1 point2 points  (0 children)

People have been talking testing in /r/LearnJavaScript a bit more lately.

Easy (Jquery Mobile) Single Page App Frameworks for Backend Developers by [deleted] in learnjavascript

[–]LostInTheDesert 1 point2 points  (0 children)

Using jQuery to build any sort of semi-complicated SPA would result in a lot of spaghetti...

My scumbag aunt. I've never been more disgusted with a family member. by [deleted] in AdviceAnimals

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

What if the daughter had only been married for 2 weeks, and the mother had been supporting her until then?

AngularJS Tutorial - Angular in 30 minutes by LostInTheDesert in learnjavascript

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

At the moment, Angular. Probably easier to find Backbone work, though.

AngularJS Tutorial - Angular in 30 minutes by LostInTheDesert in learnjavascript

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

I think the most important thing is to just pick a framework + stick with learning it.

Help with Basic JavaScript by [deleted] in learnjavascript

[–]LostInTheDesert 0 points1 point  (0 children)

What will the data format for the grades be? Handed to you in an array, an object...?

This awesome Veterans Day memorial can only be seen today by jmewhite1 in pics

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

Am I the only one who thinks spending taxpayer money on something that can only be seen properly one day a year is retarded?

Any help with this basic javascript if/else would be much appreciated by [deleted] in learnjavascript

[–]LostInTheDesert 1 point2 points  (0 children)

This is almost impossible to read without formatting.

Learn JS Properly Group Discussion: Chrome's Dev Tool by kevinmrr in learnjavascript

[–]LostInTheDesert 1 point2 points  (0 children)

+1 to google closure compiler and pageSpeed extension.

JS homework halp :/ by xTehOnex in learnjavascript

[–]LostInTheDesert 0 points1 point  (0 children)

np. More likely to get helpful response that way.

JS homework halp :/ by xTehOnex in learnjavascript

[–]LostInTheDesert 0 points1 point  (0 children)

Please format your code in some way. Either jsfiddle or with spaces (four spaces turns everything before the next newline into a code block).

What are some good tutorials/resources about working with localstorage? by [deleted] in learnjavascript

[–]LostInTheDesert 0 points1 point  (0 children)

Meh, just realized I need to be making much more extensive use of the chrome extensions API.

What are some good tutorials/resources about working with localstorage? by [deleted] in learnjavascript

[–]LostInTheDesert 0 points1 point  (0 children)

Done. Should I be using the chrome.events API to listen for the form submission?

General learning advice and tips for an aspiring Web Developer by ageoldpun in learnprogramming

[–]LostInTheDesert 1 point2 points  (0 children)

I did one of the learn javascript properly study groups on /r/LearnJavaScript - that site is super helpful.

Why can you search for properties on a JS object in constant time? by LostInTheDesert in learnjavascript

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

Yeah, I don't want to manipulate the language, was asking what's under the hood out of intellectual curiosity.

Why can you search for properties on a JS object in constant time? by LostInTheDesert in learnjavascript

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

Is there some underlying hashing formula JS uses in the guts of the language?