this post was submitted on 21 Jan 2024
1347 points (99.4% liked)

Programmer Humor

19512 readers
418 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 25 points 9 months ago (12 children)

Project A: Has 6 different implementations of the same complex business logic.

Project B: Has one implementation of the complex business logic... But it's ALL in one function with 17 arguments and 1288 lines of code.

"The toast always lands the buttered side down."

[–] [email protected] 7 points 9 months ago (4 children)

Only 1288 lines? Can I raise you a 6000+ lines stored procedure that calls to multiple different sql functions that each implements a slightly different variation of the same logic?

[–] [email protected] 4 points 9 months ago (2 children)

Are there triggers in the sql database? It's too easy otherwise

[–] [email protected] 3 points 9 months ago

There are on delete triggers to fix circular dependencies when deleting rows, triggers on update and triggers on row creation!

load more comments (1 replies)
load more comments (2 replies)
load more comments (9 replies)