Check the global temp vars, files and caches. Encapsulated scoping is a lie we’ve been told to help us sleep better at night. Some of those seemingly well defined system functions bleed out to caches for (slight) performance gains.
You could have the most locked down explicitly defined well scoped code in the world, and it just takes one measly baked in call to a global function to shatter that dream house into a thousand pieces.
I’m looking at you string-match
, you know what you did
Give a man a fish, and he’ll be fed for a day
Teach a man to fish, and he’ll be training orcas to attack shipping vessels
Perl is the original GOAT! It took a look at shell, realised it could do (slightly) better, and forged its own hacky path!
That’s good, but if you like to name your arguments first before testing them, then it falls apart
#!/bin/bash
set -euo pipefail
myarg=$1
if [[ -z "${myarg}" ]]
then
echo "we need an argument!" >&2
exit 1
fi
This fails. The solution is to do myarg=${1:-}
and then test
Edit: Oh, I just saw you did that initialisation in the if statement. Take your trophy and leave.
My only issue is -u
. How do you print help text if your required parameters are always filled. There’s no way to test for -z if the shell bails on the first line.
Edit: though I guess you could initialise your vars with bad defaults, and test for those.
Alright, ive watched this anime twice and i guess im clearly missing something. What’s special about it? The animation was okay. They could have thrown in a couple of jokes to spice it up. Maybe toss a pie at the floaty girl once in a while, huh?
I just make all my test messages Dirty Harry gifs
Oh I thought it was one of newer ones. I was envisioning the creep of conservatism into films, like that scene from Independence Day where Will Smith declares that he never wants to pay taxes
WHICH IS WHY WE SHOULD DEREGULATE EVERYTHING! INCLUDING FOOD AND DRINKING WATER, AND WE SHOULD ALLOW ALLOW COMAPNIES TO DUMP INTO RIVERS!
I love hollywood
Refuel your car next time instead of your tank, sheesh
binaries aren’t assembly though, they’re *peers at notes, draws a blank* they’re… something else
I don’t get it. That’s clearly a sign to a corridor where the toilets are.
To be honest I’m still confused by a lot of these microcontroller languages (PlatformIO/Arduino/ESPHome)…
Are they just drag and drop feature blocks that are essentially C macros, but you never get to see the code and its all abstracted with flow diagrams?
I was not expecting turkish Spongebob today
That’s easy. We’d just use Greg time.
Greg’s age and mood is highly deterministic, and he has atoms in his body present from the big bang. His sense of time varies, and seems to accelerate as he gets older, and he will tell you about it with extreme detail down to either 2 decimal places or 3 beers. If you call him up and ask him what time it is, the degree of the obscenities used in his reply is usually a good enough correction coefficient when calling over long distances.
Also two of his kids hate him, and his current wife is thinking of leaving him; all countable metrics that one can use to ascertain what stage in his life Greg is at, and thus what the local date/time in your area is, based on all the above Greg stats.
I guess that’s why they’re hoping that cloud gaming takes off, so that people “rent” consoles instead of owning anything
Object permanence in a game still has yet to blow my mind. Dwarf fortress does it pretty well (abandoning a mine to ruin only to revisit the walls you etched aeons ago as an adventurer), and minecraft of course, but any game with decent graphics seem to just abandon this altogether. You’re just visiting that world, you’re not making any change
BUT HOW DO WE FORCE PEOPLE TO BUY OUR NEW CONSOLES?
Its a flesh eating virus that causes violent explosive diarrhoea in pregnant women during their birthdays. Or something.