this post was submitted on 21 Jan 2024
38 points (100.0% liked)

Programmer Humor

19187 readers
1172 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] 1 points 8 months ago (2 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] 1 points 8 months ago (2 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] 0 points 8 months ago

Feels like my old job.

[–] [email protected] 1 points 8 months ago (1 children)

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

[–] [email protected] 1 points 8 months ago (1 children)

Project B is just called neural network

[–] [email protected] 1 points 8 months ago

Actually, I bet you could implement that in less. You should be able to legibly get several weights in one line.