- Push directly to master, not main
- No command line args, just change the global const and recompile
- No env vars either
- Port numbers only go up to 5280, the number of feet in a mile
- All auth is just a password; tokens are minority developers, not auth, and usernames are identity politics
- No hashes – it's the gateway drug to fentanyl
- No imports. INTERNAL DEVELOPERS FIRST
- Exceptions are now illegal and therefore won't occur, so no need to check for them
- SOAP/XML APIs only
- No support for external machines. If it's good enough for my machine, it's good enough for yours.
Programmer Humor
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
Main branches will be renamed Master
More like Grandwizard
Nope Main branches will be renamed Daddy
MAGA - Make Assembly Great Again
Error handling should only be with "if"
Variable names must be generic and similar to each-other
Debugging is only done with prints
Version numbers must be incoherent, hard to order correctly, contain letters and jump in ways that don't align with the updates done.
Single letters or UTF8 symbols only. Emojis are encouraged.
reverting main back to master
Yeah...this one is sadly on brand
Sadly? Master branch never implied the existence of a slave branch. It was one of the dumbest pieces of woke incursion into tech.
It was kind of pointless, but at least it made software work with custom default branches.
But why even? There's no risk to changing it and some risk to keeping it. That's the reason for the push to change it. Keeping something just because it's tradition isn't a good idea outside ceremonies.
It's the principle of letting uneducated people dictate what words are acceptable to us
letting uneducated people
More like overeducated people
overeducated people who can't see that "master" has multiple meanings.
What makes you think they're uneducated?
Yes exactly. It’s a reference to the recording industry’s practice of calling the final version of an album the “master” which gets sent for duplication.
In alignment with this, we should not replace the master branch with the main branch, we should replace it with the gold branch.
Every time a PR gets approval and it’s time to merge, I could declare that the code has “gone gold” and I am not doing that right now!
Merged -> gone gold
Deployed -> gone platinum
Gone a week without crashing production -> triple platinum
For this political correctness you get trunk.
Git default branch renamed back from main to master
(Someone else made it but I can't find the source)
That one actually seems plausible, if he ever learns about that whole thing
and all the others start with "slave/"
Merge me senpai
Arrays not starting at 1 bother me. I think the entrenched 0-based index is more important than any major push to use 1 instead, but if I could go back in time and change it I would.
this is what messed me up with ZSH for a bit, having a shell default to 1 instead of 0 was weird
It really doesn't make sense to start at 1 as the value is really the distance from the start and would screw up other parts of indexing and counters.
It would screw up existing code but doing [array.length() -1] is pretty stupid.
A lot of languages have a .last()
or negative indexer ([-1]
) to get the last item though.
For i = 0; I < array.length; i++
i < array.length
or else you overflow.
It doesn't make sense that the fourth element is element number 3 either.
Ultimately it's just about you being used to it.
Yeah, but if we went back and time and changed it then there wouldn't be other stuff relying on it being 0-based.
It was not randomly decided. Even before arrays as a language concept existed, you would just store objects in continuous memory.
To access you would do $addr+0, $addr+1 etc. The index had to be zero-based or you would simply waste the first address.
Then in languages like C that just got a little bit of syntactic sugar where the '[]' operator is a shorthand for that offset. An array is still just a memory address (i.e. a pointer).
I know. But in the alternate reality where we'd been using 1-based indices forever you'd be telling me how useful it is that the first element is "1" instead of zero and I'd be saying there are some benefits to using zero based index because it's more like an offset than an index.
Also remove null reference
Halfway to Lua lol