547
Stringly typed (programming.dev)
top 50 comments
sorted by: hot top controversial new old
[-] ICastFist@programming.dev 8 points 13 hours ago

Me, trying to learn flat assembler: "What is even an object?"

[-] expr@programming.dev 6 points 10 hours ago

Me, as a professional Haskeller: "What is even an object?"

[-] fibojoly@sh.itjust.works 7 points 13 hours ago

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.

[-] BenLeMan@lemmy.world 18 points 18 hours ago* (last edited 18 hours ago)

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.

[-] svcg@lemmy.blahaj.zone 5 points 14 hours ago

This certainly Tcl'd my funny bone.

[-] JackbyDev@programming.dev 29 points 22 hours ago

I am strongly strongly statically typed pilled and I will not apologize.

[-] expr@programming.dev 4 points 10 hours ago

100%. Though I can't imagine the meme is actually saying that things being stringly typed is a good thing.

[-] JackbyDev@programming.dev 1 points 8 hours ago

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.

[-] Jankatarch@lemmy.world 1 points 10 hours ago

But what about the absraction and portability and the inheritence and bunch of other buzzwords?!

[-] JackbyDev@programming.dev 4 points 8 hours ago

Every compile error I work through is a runtime error I don't have to troubleshoot by surprise. 🙏

[-] Cruel@programming.dev 64 points 1 day ago

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...

[-] jjjalljs@ttrpg.network 17 points 1 day ago

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.

[-] Cruel@programming.dev 8 points 1 day ago

Yeah, I stopped developing in JS for good ~1.5 years ago. After using TS, it seems crazy to go back.

[-] kubica@fedia.io 66 points 1 day ago

Empty string used to be like my own version of null pointer.

[-] baines@lemmy.cafe 11 points 1 day ago

easy there satan

[-] marcos@lemmy.world 47 points 1 day ago

Oh, you worked at Oracle by any chance?

[-] DScratch@sh.itjust.works 30 points 1 day ago

Dark times…

Like -1 for an Int nil value.

load more comments (10 replies)
[-] Lemminary@lemmy.world 6 points 21 hours ago

[Laughs in computed TypeScript strings]

[-] panda_abyss@lemmy.ca 47 points 1 day ago
[-] joyjoy@lemmy.zip 32 points 1 day ago

Me: Puts a boolean into sqlite

Me: Asks for that boolean

SQLite: "Here's that int you asked for"

[-] JackbyDev@programming.dev 5 points 22 hours ago

They finally added strict tables which avoids most (all?) of those shenanigans.

load more comments (2 replies)
[-] asperan@programming.dev 23 points 1 day ago

It is also the bash approach, isn't it?!

load more comments (5 replies)
load more comments (12 replies)
[-] baines@lemmy.cafe 7 points 1 day ago

where my Ada bros not committing war crimes at?

[-] magic_lobster_party@fedia.io 27 points 1 day ago
[-] InternetPerson@lemmings.world 7 points 1 day ago

We don't touch that unless we really know what we're doing.

[-] kewjo@lemmy.world 5 points 1 day ago

at the end of the day everything's a []u8 if you want it to be

[-] kiri@piefed.social 17 points 1 day ago
[-] Jerkface@lemmy.world 13 points 1 day ago

... Little Endian or Big Endian?

[-] squaresinger@lemmy.world 6 points 1 day ago
[-] JackbyDev@programming.dev 5 points 22 hours ago

I made a joke about that lately after someone suggested YYYY-DD-MM.

load more comments (3 replies)
[-] NigelFrobisher@aussie.zone 2 points 21 hours ago

There are two genders: string and null

[-] NateNate60@lemmy.world 6 points 19 hours ago

There are eight genders: null, undefined, false, NaN, 0, "0", {}, and "".

[-] Jankatarch@lemmy.world 2 points 10 hours ago
load more comments
view more: next ›
this post was submitted on 10 Sep 2025
547 points (98.2% liked)

Programmer Humor

26265 readers
2015 users here now

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

founded 2 years ago
MODERATORS