Answer the question
In order to leave comments, you need to log in
What to do if there is a lot of bad code in the project?
Came to a new project. I was warned that everything is bad there, but to be honest, tears of pain have been covering my eyes for the second week. Controllers for 2k lines, written by a schoolboy js, Hindu copy-paste, storage with select and hellish joins in EF - in neighboring files.
Motivation drops a lot when you look at this. Especially when new tasks are set in the form of "make it work yesterday, don't touch the old code, it works anyway".
How to deal with legacy depression? Leaving the project is, of course, an option, but the last one, in this spirit of answers, is not necessary.
Answer the question
In order to leave comments, you need to log in
How to deal with legacy depression?
Sabotage in the form of secret edits to the old code.
And sometimes you can openly. "In order for this new one to work, you need to rewrite this old block of code"))
If you have free time and energy, then definitely rewrite. But most likely you will not have time, so crutches, crutches, crutches ... Or on your own after hours, but no one will pay you for it.
"I came to a new project. I was warned that everything is bad there" - so would you look at these 2 kilostrings on the controller in advance? Were the sources hidden from you?
If you "successfully" support the project, then they will sit on you for a long time and will not give you anything interesting in the future until the project stalls or you pull it out to a good level. I would advise you to find out the details of the development of the project, the need for its application, where did it come from and decide for yourself - do you even need to participate in this project? Although it is sometimes useful to read someone else's code.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question