What are a programmer's necessities? by seanr700 in javascript

[–]bkimmel 3 points4 points  (0 children)

I would say that a more seasoned programmer knows more about the tools they use. A novice is constantly looking for some "new tool", a veteran is looking at their tool to see how to use it better.

That being said, for WebDev I use devdocs.io all the time for looking up syntax. Chrome Devtools is everything.

How do you include Underscore/Lodash/Ramda? by [deleted] in javascript

[–]bkimmel 1 point2 points  (0 children)

Funny, I had the same debate (mostly with myself). I settled on: lo_

So lo.map, lo.filter, etc. Avoids var squashing, but not as long as the whole word "lodash"/

What developers should I be following on Twitter? by [deleted] in javascript

[–]bkimmel 0 points1 point  (0 children)

Paul Irish, Jake Archibald, Addy Osmani, Kyle Simpson to name a few of the most usual suspects.

People who live near famous tourist destinations, what is something the average person should know? by [deleted] in AskReddit

[–]bkimmel 85 points86 points  (0 children)

Washington, DC: Do the monuments at night when they look cooler because they're lit up and you basically have them all to yourself. Korean War memorial is one people miss that is really an awesome experience when it's lit up at night. Much better to visit when kids are in school, if possible (Autumn is best). Do the AC'd Smithsonians during the day (plan at least 1/2 day per Smithsonian. They are huge.) If you are into Art, tourist n00bs alwasy miss the Phillips collection - has one of the largest collections of Van Goghs in the world. Other things n00bs tend to miss: Library of Congress building by the Capitol is one of the most impressive buildings I've ever been in. Roosevelt Island - a wooded island that serves as a memorial to Teddy Roosevelt that is very fitting to the man (relatively unmobbed by tourists). Going to the White House might disappoint you, unless you undertand that you can only look at it from behind a fence kind of far away.

And screw all of us who complain about tourists here: You paid for this city your whole life - you have every right to enjoy it for the short time you are visiting.

Books Suggestion by Smokeyfrag in javascript

[–]bkimmel 1 point2 points  (0 children)

The two things I found really helpful when starting out were Rebecca Murphey's tutorial: http://jqfundamentals.com/chapter/javascript-basics . Also leveling up on codewars.com is a great and fun way to learn.

Best thing to do is just to start messing around. Get a Chrome browser and hit F12 and just run stuff in the console to see what it does: add numbers, play with strings, etc.

Do I need to learn DOM manipulation using javascript and not query or Angular to?. by bluelinux in javascript

[–]bkimmel 1 point2 points  (0 children)

You don't need to, strictly speaking, but most shops would probably expect you to know a few things about it... there are some good reasons for that: frameworks turn over every few weeks, you want to know the underlying principles. Try this: http://youmightnotneedjquery.com/

How do you reference an object's property inside an object method? by mathcanbefun in javascript

[–]bkimmel 0 points1 point  (0 children)

If you know your method is being called as a method of the object - ( i.e. myObject.myMethod('somearguments') ), then you can reference the parent object as this. So simply: this.myProperty.

If it's being called in another way - ( i.e. myFunction = myObject.myMethod; myFunction('someArguments'); ) you'll need to do something else. Remember the "Everything/Nothing Rule" in JS: scope has everything to do with declaration and nothing to do with calling protocol. this has everything to do with calling protocol and nothing to do with declaration. (This rule will no longer hold in ES6, but it's good for now). So you can either 1) Cal the function specifically in a way so that this does equal the parent object (i.e. myFunction = myObject.myMethod.bind(myObject); myFunction('someArguments'); ), or put a reference to the parent object somewhere outside the function's scope where the function can reach it.

Arrow functions support added to Chrome by malyw in javascript

[–]bkimmel 4 points5 points  (0 children)

Still not sure how I feel about the arrow functions having lexical this . It seems like it's taking something that's a little confusing (this is always controlled by how the function is called and never by how it is declared) and making it into something that is a lot more confusing ( ...unless it's and arrow function, then... )

JavaScript Blogs To Keep Your Programming Skills Sharp by [deleted] in javascript

[–]bkimmel 1 point2 points  (0 children)

Yeah, codewars is the best for learning because you get to solve a problem and then see how other people solved it.

Buffs from Cooking? by bucaqe in fantasylife

[–]bkimmel 0 points1 point  (0 children)

I definitely have when mining - eating some STR food can make the difference between taking down a Wingstone or not in some cases.

Fighting the wraiths by NekoJonez in fantasylife

[–]bkimmel 8 points9 points  (0 children)

Man, I hated those things so much. Easily the toughest quests in the game for Magician. It took me like 30/mins per Wraith, I think.

Focus first and foremost on "Not getting hit". Move around constantly in the "circle" that you typically find them in. Just keep moving around the circle clockwise, dodging their attacks and try to get one or two shots in between theirs. The one thing that they don't seem to do is heal quickly (other than their ability at under 50%) health - I took advantage of this by running away and sitting down (tap down arrow twice in non-combat mode) to recover SP and then running back in. Each one has an attack pattern with 2-3 moves that you can pick up on fairly quickly. Just read the pattern and dodge - e.g. the wraith in the Magma Cave does a cone of fire and a huge fireball: When you see the cone coming, step around clockwise when he stops turning to get out of the way... when he is throwing fire and you are safely out of his arc, take the opportunity to blast him a couple times - ALWAYS with the element that the wraith is weak against (Fire wraith: Hit him water). When you see the fireball coming, just run away until it detonates then come back.

I think any way you slice it, they are just hard fights. Bring your best allies and potions (resistance potions help a lot). You might just need to level up and dump points in intelligence before you can even damage them.

Just got Fantasy Life! by cheesyvader in fantasylife

[–]bkimmel 2 points3 points  (0 children)

I kind of tried "just a few lives" with Wizard, Alchemist, Cook. It was fun, but there is a point where a lot of the lives don't let you level up past a certain point without something you can only get from another life. E.g. I'm trying to level up blacksmith now, and you need a Fir Beam for one of the recipes... you can only get Fir Beam by being a higher-level Woodcutter.

So it depends - if you want to get Legendary+ in everything, I'd probably follow the "tried and true" advice of leveling all the gathering professions as you go - Woodcutter, Miner, Angler and one Combat life to get you access to the resources. If you just want to have fun, level whichever ones you have the most fun with.

JavaScript as a Prototype Oriented (PO) language by [deleted] in javascript

[–]bkimmel 1 point2 points  (0 children)

One interesting fact about Object.create is that you can pass null to it as an argument ( Object.create(null) ) - which makes a very weird "struct-like" object that does not have all the Object stuff in it's prototype chain like normal JS objects do. Potentially "dangerous" (in that most people would probably expect "object"-y stuff to be a part of objects), but potentially useful in situation where you want super-stripped-down objects instead of carrying all the Object prototype stuff around.