71
Cyanide
3y

New job
New project
Main React component file
20028 loc
Can’t make this shit up

Comments
  • 10
    render() method starts at 13202 :)
  • 9
    It's faster if the code is in the same file and doesn't take as much disk space because It's just one file! Who needs to cut concerns and define domains anyway?
  • 3
    I hope half of the line is just coding style issue
  • 7
    Is .prettierrc printWidth: 15 ?
  • 5
    Welcome to the team, I didn't knew there was new joinee in our project?!
  • 4
    What's the biggest nested if you got? Do you have an entire screen worth of closing brackets?
  • 4
    @webketje Even if the problem is lines that are too short, it's still way too much. Set it to 80 or 100 and it will still be a few thousand lines.
  • 4
    20k is completely nuts!
  • 9
    Half of it is a switch case tree mentioned in The Guinness Book of Records.
  • 1
    @Hazarth it „some sort“ of strategic design. Or just ordered at wish!?
  • 3
    What's the longest and largest source file ever though?

    What's your personal best?

    Mines 28k loc.
  • 1
    Man i feel you. Hope there is a refractoring
  • 1
    @Wisecrack This would be my personal best.
  • 1
    Do you think they would complain if you start refactoring it?
  • 1
    @TrevorTheRat Nah man! Refactoring is actually in the near future plans.
  • 2
    @Cyanide that’s good then, you can show them what good looks like.
    It’d be a whole different thing if they recognise it’s bad but won’t change it.
  • 3
    Thank god you have a bracket pair colorizer
  • 1
    Do you mal-loc? Haha get it?
    (Ik joke is stupid, just ignore)
  • 1
    just how.... the time alone for it to render in an editor is enough to make anyone want to break it up! i dare you to put a tsx extension on it, theres probably so many masked variables, repeats, and broken shit its not even worth working at that company anymore
  • 2
    looks like they forgot to give you the real code. Or they plain didn't give you the real one. Best guess, might be a compiled version.

    like a noob backend dev. I gave him frontend code and he had no idea about SCSS. So he copied the compiled AND minified css and put his own changes by searching the class names.
  • 2
    @Wisecrack dang, mine is 18k, both you and OP beat me!
Add Comment