Hacker News new | ask | show | jobs
by spike021 61 days ago
Imagine you have application code with a function to parse some json. But every time you decide to use it, you re-implement the entire function. This is despite it working the same way every time.

It's not like it's being rewritten for efficiency. "Just because".

1 comments

And on top it's far more likely to be faulty than a well-designed tool specifically crafted for the job.

Like it may issue an incorrect jq invocation but that's surely cheaper to fix than rewriting the python script. And then it's a simple problem, but let's say you clearly see that "manually editing git files instead of using git" is worse, and most tasks are somewhere in-between.