4 ms·
What lesson was that? From my perspective, this other guy was using a program outside of its design spec. That can be fine, but such a thing is prone to the pr
by noobiemcfoob 8y ago
What lesson was that?
From my perspective, this other guy was using a program outside of its design spec. That can be fine, but such a thing is prone to the problem of safe assumptions suddenly not being safe. You wrote the program for the problem you needed it for, and for which, it worked fine. Unless part of the problem at the time was "we expect to use this program for a couple years", there is no reason to make it overly robust.
- Retric 8y ago"right now, today" and "that specific file" Code designed to be used once has a habit of sticking around.
- coldtea 8y agohttps://en.wikipedia.org/wiki/You_aren%27t_gonna_need_it https://en.wikipedia.org/wiki/You_aren%27t_gonna_need_it
- Retric 8y agoThere is premature optimization and then there is not being stupid. Using one of the 10,000 XML/HTML parsers to get to v0.01 takes about as long on average and avoid ridiculous problems. The only thing regex has going for it is you might already know it. But, this is one of those time when learning something is worth it. PS: XP is doing a depth first search, which can be EXtreamly wasteful.