Activity Log
hackers.town: 2024-10-06 Sun 06:55
Pausing from evaluating this code and its authors with a tangent to look up etymology and usage of the word “jackass.”
I didn’t think the two activities were related, and yet.
hackers.town: 2024-10-06 Sun 09:05
That was another one of those “brain dump then fall asleep and forget by the time you wake up” toots but yeah.
If I can run away from a legacy Flask app, I will.
hackers.town: 2024-10-06 Sun 09:40
Started cleaning up a Bash script and brain immediately remembered to apply Bash Strict Mode. Thanks, brain!
hackers.town: 2024-10-06 Sun 10:09
@GeoffWozniak Yep, when -e isn’t good enough that means I need a different tool. Bash is and should remain a flexible user shell.
I want a B&D shell I’ll use Nu. Which I do a lot, but I’m kinky like that.
hackers.town: 2024-10-06 Sun 10:15
@GeoffWozniak excuse me, I’m gonna go write that bit about arrays and quotes down. I don’t spend a lot of time writing Bash scripts, and this sounds like the kind of thing I’d want to know.
hackers.town: 2024-10-06 Sun 10:25
@GeoffWozniak Yah I’ll readily admit when I got some idea of Bash capabilities and CoreUtils I actually got mad for a couple days. Lots of times I’d reach for a bigger language because of features, when a significant chunk of the time those features were already available to me.
I still lean towards other things, but now I admit it’s about structure, not features.
hackers.town: 2024-10-06 Sun 14:11
@m @perigrin @jxyzn Oh my it’s even less fun if you know how the sausage is made.
hackers.town: 2024-10-06 Sun 17:07
Watched The Amazing Digital Circus and it was kind of — insane? But I think I enjoyed it.
hackers.town: 2024-10-06 Sun 20:48
My linter preferences are not unlike a firewall config: start with the strictest setting and select rules to ignore one at a time until I know what I need to know about the code.
First Ruff report on this code I’m looking at, with select = ["ALL"] and an empty ignore list: somewhere around 5,000 items (and a few dozen syntax errors, worryingly). I emptied it out by adding 120 rules to the ignore list (and fixing the syntax errors). Around ten are personal preferences. The rest are categories that I agree need fixing. I want to re-enable the rules one at a time, fixing reported items as I go.
The code could be worse. “ALL” in Ruff means something over 800 rules. Anyways, it’s nice to see an itemized list elaborating on the gut feelings I had looking at the code.
https://docs.astral.sh/ruff/rules/
hackers.town: 2024-10-06 Sun 22:56
@rafial I’ve done it before with linters I trust. Using an ignore list instead of an include list is also a great way to stay caught up on new stylistic habits.
hackers.town: 2024-10-06 Sun 23:06
@IamMrsGeek crushing the little people who get in your way.