News for hackers. Stuff that matters.
Re:Advanced Shell Scripting Techniques: Automating Complex T... by flaminHotSpeedo on Tuesday June 18, 2024 @08:52PM (#40723633)
Was this article written by AI? It's a strange mix of really basic stuff and true advanced suggestions, jumbled together with no apparent organization scheme.

Then the "complex tasks" are just a couple basic system administration examples that I can't figure out the purpose of either, they don't show off most of the tips mentioned above and don't really help inspire a sense of power for shell scripts.

Re:Advanced Shell Scripting Techniques: Automating Complex T... by ethbr1 on Tuesday June 18, 2024 @08:56PM (#40723657)
> a strange mix of really basic stuff and true advanced suggestions, jumbled together with no apparent organization scheme

Sounds very bash-ish.

Re:Advanced Shell Scripting Techniques: Automating Complex T... by ramses0 on Tuesday June 18, 2024 @11:29PM (#40724480)
Plus none of this "advanced" garbage is handling quoting properly. ShellCheck would light it up like Christmas.
Re:Advanced Shell Scripting Techniques: Automating Complex T... by chubot on Tuesday June 18, 2024 @09:12PM (#40723766)
If I look at the other posts, yeah it feels very LLM-ish

https://omid.dev/posts/

They are good at generating code with some stilted prose around it

Also yeah the cadence and number and topics of the posts makes me suspicious -- I don't a theme or purpose, just a bunch of "content"

Re:Advanced Shell Scripting Techniques: Automating Complex T... by nsayoda on Tuesday June 18, 2024 @09:41PM (#40723936)
I'm 110% certain it's ChatGPT based on the other posts. If you look at the current top three latest posts:

https://omid.dev/2024/06/19/advanced-shell-scripting-techniq...

https://omid.dev/2024/06/19/advanced-angular-change-detectio...

https://omid.dev/2024/06/18/haskell-monads-functors-and-appl...

They all end with: "Happy coding!", "Happy scripting!", and "Happy Haskell coding!". For some reason, when you ask ChatGPT for a blog post about coding, it'll always end with "Happy coding/scripting".

I run a similar blog, and there's a lot more massaging I have to do post-query to get it into a more "human-like" state (removing any match to "Happy%" as last line, expanding certain sections, etc). Also, all of the blog posts are about the same length - which is a dead giveaway if you don't ask it for a variable length.

The script I wrote that does the query changes topics/categories at random, and assigns a random length between 2000 to 4000 words, then it does paragraph length detection and re-queries when a paragraph is not-long-enough. Does a few more things like updating the Front matter and adding some times to the Front matter (this linked blog also runs on Hugo with the hugo-coder theme by the looks of it lol) before outputting to the markdown file.

Re:Advanced Shell Scripting Techniques: Automating Complex T... by chubot on Tuesday June 18, 2024 @11:22PM (#40724432)
Yup, so the question is then why does this story have 56 points?

I thought Hacker News readers were better than that ...

"Slop" is indeed taking over the web, even Hacker News.

Re:Advanced Shell Scripting Techniques: Automating Complex T... by nsayoda on Wednesday June 19, 2024 @04:08AM (#40726004)
That's a very good question. I don't post mine because I just use it to drive adsense traffic - and because it's disingenuous to post autogen stuff and pass it off as your own.

I honestly would have thought readers here would have been better at picking this sort of stuff out.

Re:Advanced Shell Scripting Techniques: Automating Complex T... by upon_drumhead on Tuesday June 18, 2024 @09:13PM (#40723775)
I really don't understand the "User Management" example.

Rather than typing `useradd foo`, you can type `user.sh add foo`! So much easier?

Re:Advanced Shell Scripting Techniques: Automating Complex T... by soraminazuki on Tuesday June 18, 2024 @09:37PM (#40723907)
Also quite a few of the explanations are flat out false.