182
OOP for the win (feddit.org)

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
[-] Ephera@lemmy.ml 15 points 2 weeks ago

Yeah, always found that weird as a junior. I basically never touched the main-function, because well, it set up some fundamentals and then called some other function or created some objects and then I was tweaking things somewhere below that.

Now that I'm a senior and taking over the lead of projects, I'm the person that touches the main-function and others generally do not. 🥴

this post was submitted on 22 Jan 2026
182 points (96.0% liked)

Programmer Humor

29647 readers
1080 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