![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://programming.dev/pictrs/image/170721ad-9010-470f-a4a4-ead95f51f13b.png)
Wouldn’t you think that the coffee pays for itself when you factor in productivity?
Wouldn’t you think that the coffee pays for itself when you factor in productivity?
YAML is the Excel of data formats due to the Norway Problem
You could also run a shell command that kills vim from within vim… :!killall -9 vim
.
Agreed. This meme is in media res.
Not really. I believe : is the “true” builtin. So it’s like running a program that exits with zero and writes nothing to stdout. The >> streams the empty stdout into the named file.
Because now touch does two things.
Without touch, we could “just” use the shell to create files.
: > foo.txt
To bonbatenate files?
That’s funny, plain “programmer” would be my preferred term if it weren’t for the fact that non-tech folks think it sounds like menial work. I’ve landed on “software engineer” because that’s what my employer calls me and other people seem to understand a little bit, too.
I’m terrified by this binary config file. Why?! Was he writing C and said “fuck it, memcpy”?
Edit: I suppose it would be more like “fuck it, fprintf(f, (char*)my_config_object, sizeof(my_config_object))”
Wow, that is an unhelpful error message. It could have told you it was expecting a number. It turns out that -i
is short for “interval” and expects a number, whereas -I
is used to specify an interface.
Please don’t show me how the sausage is made
Slap an Apple Vision Pro on ya face
Yup!! Never look under the hood in software, you’ll just be disappointed ☹️
Maybe it’s a myth, but it sure sounds plausible. The software that checks the “Windows 9” substring doesn’t even have to exist for this to be reason they chose to skip to version 10 — they just had to be concerned that it might exist.
Sure, maybe there’s no C function that returns the string, but there’s a ver
command. It would be trivial to shell out to the command. https://en.wikipedia.org/wiki/Ver_(command)
This doesn’t prove anything, but there are a TON of examples of code that checks for the substring. It’s not hard to imagine that code written circa 2000 would not be future proof. https://sourcegraph.com/search?q=context:global+“\“windows+9\””&patternType=keyword&sm=0
Can’t call it Windows 9
But that actually made sense! They care about backwards compatibility.
For those not in the know: some legacy software checked if the OS name began with “Windows 9” to differentiate between 95 and future versions.
Ctrl+s means “stop the presses” to VT100 terminal emulators and you have to press ctrl+q to resume. Key combinations from a different era.
Well duh. I wonder what happens if you shadow the list constructor and try to use it as a type hint…
def foo(list: list):
def bar(thingies: list):
pass
Besides the obvious flaws… is that parameter a list named list
, shadowing the list()
constructor?
Sonic looks pregnant in the first game. Oh, that must be the baby in the sequel.
The needlessly learned dogs are flooding the job market!