by jeroenhd · 1w ago · 0 comments
Hosting win32 without patches is a recipe for disaster in the image handling libraries and file previews, but it's a pretty neat way of working for the people would would've used Windows XP if they hadn't been forced off away from that.
The closed source nature gets in the way of enjoying Windows (maybe some native components can be replaced with their ReactOS equivalents?) but many of the POSIXisms are just suboptimal designs lauded purely because they're different from what Windows is doing.
You can disable the linter if you want to use custom verbs, but I find their focus on consistency refreshing. There's no Bash version of https://learn.microsoft.com/en-us/powershell/scripting/devel... and the end result is that everybody just sort of does something and the most common behaviour is what sticks (most of the time).
Compare:
$files | % { ...do stuff... }
for file in "${files[@]}"; do ...stuff...; done
I guess by "boilerplate" you mean param blocks. Those replace argparse and switch blocks that are invariably longer. You didn't count those, did you. You don't have to write param blocks: function foo ($param) { ...do stuff... }
But then you only get basic tab-completion. (Which is still more than bash gives you.)The unapproved-verb warning is easily disabled, come on. It's a linter. You use linters, yes? You configure them?