top | item 42892829

(no title)

graerg | 1 year ago

>A Sysadmin would take 5 minutes with a shitty language and a shitty tool and get way more done in less time.

Most people aren't sysadmins, but occasionally have to do sysadmin-like things. I've been programming with python and go for years. I've never been able to get the "core" command line utilities to really stick in my head. A sysadmin uses them every day, whereas I rarely have to reach for them. On the rare occasion when I _do_ have to reach for them, it is excruciating (what was the flag I need for `find` again?). If it were life or death and I had to debug even the simplest sed/awk command, it would be death for me! But this package makes perfect sense to me and really enables me to write this sort of quick and dirty thing in a language I'm familiar with and can confidently maintain.

This isn't for everyone, but there's definitely a population that can get a lot of value out of this.

discuss

order

0xbadcafebee|1 year ago

I completely understand this perspective. But it helps to consider your broader choices.

Let's say you're an "Engineer" engineer, and you deal with units of measurement. You grow up in the US, so you first learn the Imperial system. But so much of the rest of the world uses Metric measurements. Do you find and acquire Imperial versions of every tool, fastener, etc, because it's what you're familiar with? Or do you learn Metric as well, so you can access all of the tools, fasteners, etc found all over the world?

Or take an example from a thousand years ago. Say you're a trader in the Mediterranean and you want to sell your wares. Do you only sell in your local town, where everyone speaks your dialect? Or do you pick up the "Frankish Language", the pidgin language spoken by sailors and other Western Europeans? Learning this mix of Venetian, Catalan, Portuguese, Tamazight, Turkish, Greek, and Arabic will give you extra skills you can use to trade with a vast array of peoples.

POSIX is the closest we have to a 'Mediterranean Basin' for operating systems, and shell scripting is its pidgin language. You don't have to learn it to make a living, but it sure as hell helps.

wpm|1 year ago

>what was the flag I need for `find` again

This is not on you, `find`'s command line syntax is awful even if you have to use it everyday.

oguz-ismail|1 year ago

> `find`'s command line syntax is awful

What's awful about it?

mbreese|1 year ago

And don’t forget GNU vs BSD version differences…

Zamiel_Snawley|1 year ago

LLMs are pretty good at using the standard utilities.

That, combined with reading the man pages if it doesn’t work first try has been really effective for me.

solidsnack9000|1 year ago

I mean, no one really remembers all the flags. They remember a few common ones, due to using them over and over again.

If you are making a genuine effort to avoid the shell, you won't ever learn these basic flags -- you are holding yourself back. It is like a person complaining about using the stairs -- "On the rare occasion when I _do_ take the stairs, it is excruciating..." -- the problem is not necessarily with the stairs.

graerg|1 year ago

I totally agree. My counterpoint is that this tool is the equivalent of portable stair lift. Yes, it may hinder me from developing the ability to walk up the stairs, but I'm fine with that. The only thing that matters is that I get up the stairs.