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

Programmer Humor

19564 readers
1478 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 10 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 10 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 10 months ago (2 children)

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

[–] [email protected] 3 points 10 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 (8 replies)