10

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.

Comments
  • 2
    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.
  • 0
    hmm 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.
  • 3
    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.
  • 2
    god helps you
  • 0
    @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.
  • 0
    @Strannch You poor soul. I got nothing.
  • 0
    Most of the time all of that ends up being redundant code that can be replaced with a some neat one liners.
  • 0
    @Vikram How can an angular app get so big? Haven't the devs heard of DRY and reusable code?
  • 0
    @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.
  • 1
    @snaatan Exactly. Also, blocks of code that could be a top level function. I must've replaced about 1000 lines already doing that.
  • 1
    @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
Add Comment