

The indent syntax is one of the obviously bad decisions in the design of python so it makes sense
The indent syntax is one of the obviously bad decisions in the design of python so it makes sense
I use the same heuristic… if I need a hashmap or more complex math, I need a different language
Also if the script grows beyond 100 lines, I stop and think about what I’m doing. Sometimes it’s OK, but it’s a warning flag
I imagine adding --
so it becomes tar -caf archive.tar.bz2 -- "$@"
would fix that specific case
But yeah, putting bash in a position where it has more rights than the user providing the input is a really bad idea
I don’t disagree with your point, but how does set -e
break conditionals? I use it all the time without issues
Pipefail I don’t use as much so perhaps that’s the issue?
Get a better boss
You don’t think some people who consider trying linux make a web search or ask a question somewhere only to get turned off by people immediately arguing about distros and calling them brain damaged?
Right now it’s ubuntu that’s the meme target, but there’s always something like this. If everyone stopped using ubuntu tomorrow, the people who somehow get their self esteem from having a better distro will find something else to fuel that. They will never be happy
I’m happy if people use linux. I’m even happy if they use WSL or homebrew rather than plain windows or os x as it’s a gateway drug, even though having windows in particular as a base system seems needlessly painful
This silly infighting serves to perpetuate people staying on windows or mac os
Distro wars are silly. If someone is happy using Ubuntu, I’m happy they’re a linux user.
It’s pretty good at starting services. It just keeps adding bundled things people wouldn’t use otherwise, in a fairly microsoft fashion
Just don’t do yaml.
yq
can translate yaml to json and in most cases json is still valid yaml
Then you can just use a conmon delimiter like comma or semicolon or something. It’s better even as you’re less likely to have something that seems to work until your exotic delimiter pops up in the data.
Better yet, use a commonly used data format like csv or json and don’t build your own
Bombing campaigns are surprisingly ineffective at winning wars. Iran could possibly kill some people but it would be very far from winning that way. Not in an hour, not in a decade
My sweet spot is
set -ue
because I like to be able to use things likeif grep -q ...; then
and I like things to stop if I misspelled a variable.It does hide failures in the middle of a pipeline, but it’s a tradeoff. I guess one could turn it on and off when needed