Me, trying to learn flat assembler: "What is even an object?"
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
Me, as a professional Haskeller: "What is even an object?"
Haha! Reminds me when I arrived in a team whose API accepted JSON and all the booleans were "True" or "False" (meaningful case, obv.) That was fun.
God, that reminds me of the debate on XML that I had with a developer about fifteen years ago.
Both our companies were working for a client who needed to publish product catalogues in several languages twice a year.
They had implemented a sort of Content Management System which they used with a plugin to feed data into Quark Xpress files as well as their website, IIRC. Cross-media publishing, essentially, and they had their own little set of format instructions to make words appear in bold, different colors, etc.
Since my company was tasked with translating the text into various languages, I suggested they come up with a way to store their data as XML. The standard tools in the translation industry can be easily customized to work with that, and XML would be a good way to future-proof their software. After a lot of delaying, grumbling, and ho-hum, they agreed to implement this plan.
Lo and behold, when the first meeting on the new XML format came around they showed it to me for the first time and... everything was in CDATA sections. Entire paragraphs of text with proprietary formatting instructions. 😐
When I tried to explain, very politely, and very patiently, that this was not going to work, the lead dev started insulting me. I swear to God, I've never been this close to punching someone in the face at a business meeting. 🤬
Thankfully, the client understood the issue and we eventually got an XML-based data exchange going. It is probably still in use today.
I am strongly strongly statically typed pilled and I will not apologize.
100%. Though I can't imagine the meme is actually saying that things being stringly typed is a good thing.
I don't think it is, and I'm not saying they don't have their place, I'm just a bit of a hater of dynamic types, like in a fun way, I don't think they're the bane of existence or anything. I just really love static typing.
But what about the absraction and portability and the inheritence and bunch of other buzzwords?!
Every compile error I work through is a runtime error I don't have to troubleshoot by surprise. 🙏
This certainly Tcl'd my funny bone.
I took great pains last week to convert a big python project to make it typed. (shoutout to MonkeyType)
It's so much nicer to develop now...
Oh that's a neat library. Type annotations in python are really nice, and you don't have to add tooling like when you switch from JS to TS.
Yeah, I stopped developing in JS for good ~1.5 years ago. After using TS, it seems crazy to go back.
Empty string used to be like my own version of null pointer.
Oh, you worked at Oracle by any chance?
easy there satan
Ah, the SQLite approach!
Me: Puts a boolean into sqlite
Me: Asks for that boolean
SQLite: "Here's that int you asked for"
It is also the bash approach, isn't it?!
Also, Tcl (a cute little scripting language from the 90s, best known for giving the world the Tk UI toolkit; it was somewhat Lispy, only under the hood, worked like sh, where everything was a string).
more directly, sqlite was originally for tcl which is why they share the semantics.
also I'd argue that sqlite is a bigger contribution than tk, but I suppose in a more roundabout way
They finally added strict tables which avoids most (all?) of those shenanigans.
[Laughs in computed TypeScript strings]
void*
We don't touch that unless we really know what we're doing.
where my Ada bros not committing war crimes at?
Everithing is bytes.
... Little Endian or Big Endian?
Middle Endian ftw!
I made a joke about that lately after someone suggested YYYY-DD-MM.
The NHL banned the use of 00 as a number in the 95-96 season because they claimed their databases couldn't handle it. They still are fools because this continues to be a banned number to this day.
at the end of the day everything's a []u8 if you want it to be