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
-
mishaor17905yWow. *blinks* Wow. They should've read Node.js Best Practices.
inb4 "node js suxx!!!!!!11111111oneoneone" -
First file I worked on at my first job was a Google Maps integration with over 1500 lines of vue. Had to chug very many aspirins that day
-
atombomb1275yA module class in our poject had 6000+ lines of JS. Plus another several thousands in helper classes.. And there isn't much that could be done about it, all of the logic simply required most of the data in the class..
-
inaba46255yI have several unity projects with one scene instead of one unity project with several scenes
-
Quirinus7535yQuestion for people, why do you split classes each in its own file?
I usually group related classes in the same files (if it gets too big, I split it).
I know in PHP there's autoload and stuff... but what about other languages? -
Quirinus7535y@C0D4 i guess. To me it's just a hassle having that many files. Thanks for the reply.
-
C0D4681465y@Quirinus the more the merrier.
If you break you're code apart enough and use namespaces then the file management becomes important, or just having autoloaders finding the class as they look for a file with the same name, unless you have a map somewhere for routing.
for php you could have a single file that goes on forever with class after class, but most languages aren't as relaxed like php is, so getting into a more structured routine is going to be better long term if you start working with other languages. -
Comparing the lines of bad classes seems to be like comparing dicksizes...
Sooooo here is mine: Delphi class with 13k lines of one product disposition planning algorithm
One guy left the company and left me nodeJS project to maintain. It has a file with just a few lines short of 1700 lines of code.
devrant