News for hackers. Stuff that matters.
Re:The Grug Brained Developer (2022) by withinboredom on Wednesday June 18, 2025 @05:40AM (#44308237)
I mean, it would be faster to just import them into an in-memory sqlite database, run a `union all` query and then dump it to a csv...

That's still probably the wrong way to do it, but 10 minutes for a 20k line file? That seems like poor engineering in the most basic sense.

Re:The Grug Brained Developer (2022) by isoprophlex on Wednesday June 18, 2025 @06:30AM (#44308551)
It's a twenty line bash script. Pipe some shit into sqlite, done.

But the guy 'is known to get the job done' apparently.

Re:The Grug Brained Developer (2022) by bee_rider on Wednesday June 18, 2025 @07:16AM (#44308836)
Maybe he’s recognized something brilliant. Management doesn’t know that the program he wrote was just a reimplementation of the Unix “cut” and “paste” commands, so he might as well get rewarded for their ignorance.

And to be fair, if folks didn’t get paid for reinventing basic Unix utilities with extra steps, the economy would probably collapse.

Re:The Grug Brained Developer (2022) by isoprophlex on Wednesday June 18, 2025 @08:20AM (#44309238)
Clearly I'm the dumbass in this story, as we're all paid by the hour...
Re:The Grug Brained Developer (2022) by bee_rider on Wednesday June 18, 2025 @08:25AM (#44309265)
Clearly! He’s found a magic portal to the good old days when the fruit was all low hanging, and you keep showing up with a ladder.
Re:The Grug Brained Developer (2022) by strken on Wednesday June 18, 2025 @06:02AM (#44308362)
I'd probably think of xsv, go to its github repo, remember it's unmaintained and got replaced by qsv, and then use qsv.
Re:The Grug Brained Developer (2022) by xnx on Friday June 27, 2025 @11:37AM (#44397638)
csvkit and duckdb would also be good options. Any llm will spit out a one-liner for any type of join you can describe.