this post was submitted on 22 Jan 2026
173 points (95.8% liked)

Programmer Humor

28651 readers
1965 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
 

It was literally like that. I had a script of about 310 lines and the main function was like 10-20 lines of code. I had a very nice Setup of objects that handled all functionality possible behaviours independent and so my main function was just receiving a user input from another function and add accordingly which included like 3-4 different scenarios that are being handled in the main function.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] deadbeef79000@lemmy.nz 8 points 1 day ago* (last edited 1 day ago) (1 children)

"My Script" should be another dozen books the same thickness as main.

Not, I stress, for the sake of it, but for proper implementation of the suitable patterns for the application.

Well, it was really just a script that has exact one purpose. I just split it up beautifully, so that my main function is very short.