Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4669025yDoes that go along the lines of database queries should not be 1000 lines long?
Coz man do I do things wrong 😅
Mind you it's quicker then collecting the data separately in different queries and doing the calculations 🤷♂️ -
@C0D4 ya know, at least that's a legitimate reason. I'm dealing with a case of the previous dev on this project never having heard the term "Object Oriented" in their life.
-
C0D4669025y@OmgItBurns oh one of those.
Yea those projects can be "fun" especially when the dev barely graduated to reusable code let alone OOP. -
374 lines isn't bad provided that the control structures including if/else don't stretch out that much.
My functions often have that length, but including comments , { and } on lines of their own, line break after variable declaration also within blocks, and line breaks between small blocks that are a bit like a paragraph. -
gdb123110925yat least split it into 10 functions that each one specialices in doing one thing right.
-
Had debug a vb legacy function with +2k lines the other day
If condition Then
'1k+ lines
Else
' the very freaking 1k+ lines with 1 extra line somewhere in the middle
End If
Ffs!
Related Rants
Functions should not be 374 lines.
rant
old code
vb.net