Readit News logoReadit News
anothergoogler commented on Removing JavaScript's 'this' keyword makes it a better language   medium.freecodecamp.org/r... · Posted by u/tejohnso
benbristow · 7 years ago
var self = this;
anothergoogler · 7 years ago
Yes, I know. That doesn't make an assertion about the "pitfalls" of `self` less muddy. It's literally a variable. It's a code smell too, but that's another conversation. Are we calling out variables in JS now? Maybe we should just hold ourselves to bootcamp standards, copy and paste StackOverflow or something like that. Programming is hard, etc.

Dead Comment

anothergoogler commented on Removing JavaScript's 'this' keyword makes it a better language   medium.freecodecamp.org/r... · Posted by u/tejohnso
zeroname · 7 years ago
It has nothing to do with OOP. Off the top of my head, I cannot think of another OOP language where "this" (or "self") works the way it does in Javascript. There are pitfalls associated with it and I can't think of any benefit that would outweigh that.
anothergoogler · 7 years ago
Good luck doing OOP in JS without `this` with minimal contortions. And to be clear, there is no `self` in JS.

Dead Comment

anothergoogler commented on What America can learn from the fall of the Roman republic   vox.com/2019/1/1/18139787... · Posted by u/mooreds
mooreds · 7 years ago
Amazing! I predict you and your snark will be very successful :).

But on serious note, do you not plan for the future or speculate on it?

anothergoogler · 7 years ago
Not with such confidence to say things like "we are in the early days of decay."
anothergoogler commented on What America can learn from the fall of the Roman republic   vox.com/2019/1/1/18139787... · Posted by u/mooreds
mooreds · 7 years ago
I agree, it isn't a straightforward comparison. Suspect the USA see more and more demagogues/populists as the years go on (cue Idiocracy comparison), but right now we are in early days of decay. As the author of the book says, we can still walk back from the edge.
anothergoogler · 7 years ago
What's it like being able to see into the future?

Dead Comment

anothergoogler commented on     · Posted by u/leothekim
mbrumlow · 7 years ago
I have one question. How does taxing the rich make the poor any better off ?

At the end of the day the poor will still be poor right?

anothergoogler · 7 years ago
You sincerely believe that tax revenue would be lost to waste and graft with no benefit to the poor? Higher taxes sting me as much as the next USAer, but I think you're being obtuse.
anothergoogler commented on If San Francisco Is So Great, Why Is Everyone I Love Leaving?   medium.com/s/story/if-san... · Posted by u/jseliger
101km · 7 years ago
The first time I went to work here a few months ago I got out of the Lyft around 9am and two meters away a homeless man was injecting something into his veins. My office is in the Mission.

Some parts of San Francisco are very dirty and the homeless issue is not exaggerated. Everybody knows about the Tenderloin at night.

With that being said, I drove across the US two years ago and if you keep your eyes open you realize it is all over - Portland and Seattle are no better, just less talked about.

My rent is $1300, I live with one roommate on Russian Hill. I'm flexible and lucky so this is not representative. A girl I know who works at Google lives in inner Richmond (arguably a less desirable area) by herself and pays nearly triple for some reason.

It is hard to find a proper gym for less than a Benjamin and food is above average for an American city but hilariously expensive. Good way to gauge is pick some fast food chain and compare, Dennys is x2 here than the rest of the country.

All in all this place isn't the shiny happy city you'd imagine from watching Full House or or the counter culture epicenter of hippie times gone by. It doesn't suck, I'd definitely visit for a week or two if you have never been, and there's a lot of history here but in the end it is no longer a very remarkable place to live.

anothergoogler · 7 years ago
If you're commuting in a Lyft/Uber, you're part of the problem. That aside, for better or worse, most of us city-dwellers are numbed to shocking! displays of hard drug use.
anothergoogler commented on Ruby 2.6   anamaria.martinezgomez.na... · Posted by u/merk_
slifin · 7 years ago
anothergoogler · 7 years ago
I'm talking about the flat namespace.

u/anothergoogler

KarmaCake day162March 26, 2018View Original