3 ms·
Many will refer to stackoverflow since that's the reason this website was created in the first place. But one of the most important thing in solving problems in
by firefoxd 5y ago
Many will refer to stackoverflow since that's the reason this website was created in the first place. But one of the most important thing in solving problems in programming is context.
Here is one real question I got in an interview: How do you efficiently sort a table containing a million record in JavaScript?
My question was "in the front end?"
And my answer was it's probably not a good idea to sort that much data in the front end since the user will most likely not be able to consume that much data. Since it was an interview, I explained how to sort the table anyway.
Sorting in the backend makes sense, but even then using a database is more efficient then doing it in JavaScript.
If this question was on SO, I'd probably answer: You shouldn't do that in the front end, explain why. And of course they will get pissed for not answering how.
- rileymat2 5y agoBut it is nice when you stumble across an answered question that fits your use case. For instance, if I was making heavy use of local storage where I have no back end, it is nice if that question is already answered. At that point I don't really care if the previous user got a better method, that's what I need to do now.
- anoncake 5y agoOf course they would be pissed. You spammed something into the answer field that does not answer the question. Just write a comment instead.