Hacker News new | ask | show | jobs
by Stratoscope 2638 days ago
> You can see how stupid people are when you just read the questions on Stackoverflow today. Nobody seems to figure things out by themselves anymore.

I resemble that remark!

It was just yesterday that I was looking up a bit of JavaScript trivia, how to format a number rounded to some number of decimal places.

Yeah, I'm supposed to be some kind of JavaScript expert, so I could have done the obvious "mdn tofixed", right?

But I was working on a Google Maps API project and typed in the first thing that popped into my mind:

https://www.google.com/search?q=six+digit+decimal+place+goog...

And you know what? It took me straight to my own Stack Overflow answer where I explained how to do this, either preserving or removing any trailing zeroes.

Who needs to remember things when you have a service like that? ;-)

2 comments

I don't think that you're and author of parent comment are talking about the same thing. Most of low-quality questions on SO that make you think that author is lazy and unqualified are not about trivia or API bits like that. They're about a medium-level task that could be decomposed into more elementary subtasks without the need to know anything specific about the language or framework - but the author didn't even do that.

Following your example, it wouldn't be a question about formatting a number. It would be a question where the user would ask something along the lines of, "how do I write an app that calculates user's effective tax rate?". If someone is not able to decompose this at least to the level of "take input, process it, calculate it, present output" and then ask questions about each of those individual steps, or linking them together - then, in my opinion, he is stupid. (At least in the field of computer programming.)

Agreed. This is a thinking problem not even a programming problem. That question could be answered without a single line of code. Of course what the asked was probably looking for was all the code necessary, written for them.
Yeah, I love the feeling when end up with your own answers... You feel so stupid that you didn't remember, but also happy that you wrote that answer back in the day ;-)