Some AI coder: "I" wrote this new thing that searches for hidden strings in files.
Most youngins: Oh wow, that is so useful, I wish I had this years ago!
Us greybeards: Congratulations, you reinvented grep.
This is absolutely a subtoot.
Some AI coder: "I" wrote this new thing that searches for hidden strings in files.
Most youngins: Oh wow, that is so useful, I wish I had this years ago!
Us greybeards: Congratulations, you reinvented grep.
This is absolutely a subtoot.
Cue someone pointing out the code I am talking about may be running multithreaded and be faster than grep.....
Congratulations, you reinvented grep with xargs.
@fiore Basically, read up on the -P option.
"Taco Bell Programming" is a good read, and has an example that'll get you started on the xargs rabbit hole.
http://widgetsandshit.com/teddziuba/2010/10/taco-bell-programming.html
grep -r for recursion and grep -e for regexps. And grep -f secrets.txt to load the secret patterns to match from a file, of course. Of course.https://blogs.kenokivabe.com/article/multi-threaded-processing-using-xargs-and-parallel
decent place to start on the rabbit hole of how awesome xargs can be
Edit: I was on mobile when I found this link, and thus barely scanned it. It isn't actually all that great. Stick to the classics: Taco Bell Programming and then just dig into the man pages.
http://widgetsandshit.com/teddziuba/2010/10/taco-bell-programming.html
@nuintari @StompyRobot with `parallel`, all the bad (really bad! What does the user want to happen when they `ls *.txt | parallel mv -t /mnt/backup`, and what does really happen in case there's zero .txt files?) examples of kind `ls *.png | parallel -opts cmd` should just be `parallel -opts cmd ::: *.png`
reading that article, it's honestly a bit like `parallel`'s man page or quick start tutorial didn't exist!
@alys yeah, it's basically grep -f file-of-strings-and-encodings-to-seek
... with extra steps and shitty vibe coded python
@badsamurai Yeah, somewhere along the way, people forgot that the point of education is the learning, and the letter grade was just a status indicator.
Now, the letter grade has become the goal of most. With modern AI implementations, the learning is just busy work that gets in the way.
Every time I hear someone say they are learning coding with AI assistance, I die a little inside.
@badsamurai @nuintari
I mean the whole point is to teach O(n) etc., I hope students can't complete the curriculum without any understanding.
(Says the comp sci dropout)
@badsamurai @nuintari been coding for years, decided to finally get a bachelor's degree and here's the thing - we mostly do charts and design documents. Occasionally I get to spend a day figuring out why the hideous Java code they handed me won't compile before making the five line change to it that fulfills the assignment rubric (that I probably could have written from scratch in an hour without frameworks).
I'm exaggerating slightly. I did implement a few search algorithms in one course, but the overall focus really seems to be preparing you to go work in some corporate hellscape using outdated tools, not learning all of the fundamentals.
@nuintari @khleedril one of the problems is that unwillingness to learn predates these tools. The llm tools just amplifies it to crazy levels.
Not long ago I saw a python package someone proudly shared (I'm pretty sure it predates the llm tools) which was about 150 lines of code to copy a few files to another directory. I don't remember what it was for, but it was something along the lines of a "configuration backup tool".
I fear we are going to see so much of this, because most people hate learning things, and now they've found yet another way to avoid doing so.
#ThisIsTheContentISignedUpFor, and may I please have some more?
@rl_dane /me bows
I'll see what I can do.
@nuintari yeah, but can grep do this?
*spools up a gas turbine generator*
@nuintari The irony is that this is a tool all the vibe coding harnesses use (including ripgrep).
I do wonder though if we've gone wrong somewhere on the "make this accessible and discoverable" side or if it really is almost exclusively a problem of willful ignorance.
@larsmb - I was not referencing a tool "everybody uses", it was posted yesterday. Somebody boosted it into my timeline, and they were mocked so much for boosting it, that they deleted the retoot as far as I can tell.
@spinnyspinlock - you've been warned, it is some truly awful python code.
https://simonwillison.net/2026/Apr/5/scan-for-secrets-3/
It's basically grep -f file-of-strings-to-find-including-common-encodings
Does anybody pay attention to what is going on around them in that headspace? It's all just, "Ohhh, I am so smart I don't even have to think, look what I can use these tools to do for me!"
@webhat not what I was subtooting about, but okay.
the target of my ire was some truly shitty python code:
@nuintari reimplementing grep, but forgetting the important "do practically nothing"
https://lists.freebsd.org/pipermail/freebsd-current/2010-August/019310.html