2 ms·
No, please no. Just because it is on SO and it appears to do what you need, doesn't mean it does what you need, or does everything you need, or is production qu
by chrismcb 11y ago
No, please no.
Just because it is on SO and it appears to do what you need, doesn't mean it does what you need, or does everything you need, or is production quality. You should make sure you understand what the code is doing. Only then will you know if it solves your problem and solves the edge cases.
You are right in that you need to balance a hack versus a proper fix. But always aim for the proper fix first.