The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
It sounds like you support functions with 1000 lines over 15 lines. Extracting out discrete segments of logic into non-public methods/functions not only improves readability but allows you to abstract "complex logic" into an understandable name so new developers can digest it easier.
A caveat, as always, especially since you mention C: If it's for a functional performance requirement, I can't really fault massive functions. I can't seem to find the article but I remember years ago a game engine had to collapse its entire render stack into a single function to improve performance.
If your slogan was "no functions over 250 lines", I'd vote for you Oooo, or "Even books have chapters."
That wouldn't help, you don't vote for Kings.
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash One Fine Saturday. 24/04/2004
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
Last Visit: 23-Sep-20 17:08 Last Update: 23-Sep-20 17:08