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
-
Yeah, I know the pain. I have a 49.000 lines file of JavaScript. And it's a 5 years old project I think. Bad implementation at its finest.
-
iRobot13678yhmm cool I got some 50-60 js files more than 6000 codes of line written in Angular ! well you can imagine how vast the application is.
-
Ignore the code as it is, examine the app behaviour and replicate with a full rewrite. I reckon it'll be easier than trying to go through that much code.
-
@scriptex Lebab is incredible, been using it for the past few months. That, coupled with refactoring a few functions brought the number of lines down to under 1800, and I've got a lot of refactoring to do still.
-
snaatan08yMost of the time all of that ends up being redundant code that can be replaced with a some neat one liners.
-
@Vikram How can an angular app get so big? Haven't the devs heard of DRY and reusable code?
-
@Zaphod65 That's what I always do, but this time the deadline is looming. The code is not badly separated, it's just in a single file, but at least the sections are well defined.
-
@snaatan Exactly. Also, blocks of code that could be a top level function. I must've replaced about 1000 lines already doing that.
-
iRobot13678y@VinnyFonseca no worry mate ...It's an enterprise application it will be such vast ! Cz of so many modules..Der is a framework developed for reusing code and design patterns
Related Rants
Number of lines on ONE of the javascript files in the project I'm tasked to convert to a modern, modular, component-based web app: 3022.
There are 6 of these.
undefined
monolithic
kmn
js