4 ms·
> you really should just say don't do that You should also say WHY not to do that. This lets whoever asked decide whether the reasoning applies to their own u
by cgdub 8y ago
> you really should just say don't do that
You should also say WHY not to do that.
This lets whoever asked decide whether the reasoning applies to their own unique situation. Perhaps they are doing a one-off scrape of a single file with consistent structure like in the other comment.
The asker can also apply the same reasoning to similar situations. They won't come back to ask if they should use regex to parse JSON tomorrow.
And if you can't explain why something is "best practice", maybe it shouldn't be "best practice".