4 ms·
I guess, but honestly using a JSON parser sounds like less work. I mean, using regexes for this quick job is fine, it just sounded weird.
by wtetzner 12y ago
I guess, but honestly using a JSON parser sounds like less work. I mean, using regexes for this quick job is fine, it just sounded weird.
- jlarocco 12y agoOn the one hand I agree with the "It doesn't matter here" crowd, but on the other hand, Python (only language mentioned in the article) has a json library in the stdlib, and it's certainly easier than doing it with regexes. So, it doesn't matter much, but it was an odd choice.
- recursive 12y agoEven if it's in the standard library, it still might be more work to find where it is in the standard library than just do it the way you already know how.
- weaksauce 12y agoAgreed... It's a devil you know vs. the "oh I'll just use this other library to do $simple_thing, how hard can it really be?" Hours later you realize that you didn't think it completely through and it's a bit tougher than you thought.
- aestra 12y ago>it's certainly easier than doing it with regexes. ... for you.