|
|
|
|
|
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? ;-) |
|
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.)