this post was submitted on 16 Dec 2025
1348 points (99.3% liked)

Programmer Humor

28225 readers
791 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] KairuByte@lemmy.dbzer0.com 8 points 2 weeks ago (3 children)

Why are we using magic strings for behavior?

[–] joyjoy@lemmy.zip 28 points 2 weeks ago (2 children)

Feel free to fork my comment. 

[–] uranibaba@lemmy.world 2 points 6 days ago
CREATE VIEW NiceList AS
 SELECT * FROM Children
  WHERE behavior > 2000
   AND parent.income > 40000; 
CREATE VIEW NaughtyList AS
 SELECT * FROM Children
  WHERE behavior <= 2000; 
[–] Tja@programming.dev 11 points 2 weeks ago

Does Santa accept PRs?

[–] TheOctonaut@mander.xyz 15 points 2 weeks ago (1 children)

It's an ENUM and other people have to read this fucking codebase too, Brian!

[–] Olap@lemmy.world 5 points 2 weeks ago (1 children)

I've a DBA who would insist on this being in a dimension table and using a foreign key constraint instead of just a fucking string

[–] luciferofastora@feddit.org 5 points 2 weeks ago

I like your DBA!

Users probably don't.

[–] djmikeale@feddit.dk 10 points 2 weeks ago

He used to have an is_nice bool but consultants convinced Santa it isn't future proof enough to capture the nuances of kids behaviour in today's world, such as "nice but always is really smug about it". But the consultants kept making PowerPoints instead of updating the backend, so now Santa also has added a new value to behaviour: "consultant-like"