314
True crime (europe.pub)
you are viewing a single comment's thread
view the rest of the comments
[-] dev_null@lemmy.ml 1 points 1 day ago* (last edited 1 day ago)

Depends on your requirements.

If the admin status needs to be checked in a database, but most actions don't require authentication at all, it's pointless to waste resources checking and it would be left null until the first action that needs the information checks it and fills it in as true or false.

[-] orgrinrt@lemmy.world 1 points 1 day ago

I don’t really follow you there, wouldn’t it be exactly the opposite and wouldn’t checking for nulls be, as a premise, more wasteful? But doesn’t really matter, time to digress. I’m conventionally educated as an engineer so what I know and find reasonable today might be outdated and too strict for most contemporary stuff.

this post was submitted on 14 Aug 2025
314 points (96.4% liked)

Programmer Humor

25750 readers
1497 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