You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- Is the original developer still available to decipher the code? This would heavily influence my decision making. The only thing you said in the question that was scary (rather than just sad) was, "will be used in production this summer". I can only hope not.andy mango– andy mango2020-02-18 02:40:13 +00:00Commented Feb 18, 2020 at 2:40
- The original author is still at the company, and I've been given carte blanche from management to do anything necessary to get this codebase production ready and maintainable. The original author will be required to work with me, but he is also very proud of what he built (and rightfully so, as it performs a very important analysis). I want to make sure that whatever I do, I don't offend the original author in the process of this.Kyle– Kyle2020-02-18 02:55:43 +00:00Commented Feb 18, 2020 at 2:55
- 200KLOC, that's 500 days if programming at 400LOC/day. So 2 years of work. If you're alone. And if you clearly know what is to be done. Maybe it's worth after all to look at the root cause of the leaks? Or to refactor progressively, as Kain suggests...Christophe– Christophe2020-02-18 07:47:32 +00:00Commented Feb 18, 2020 at 7:47
- In Things You Should Never Do, Part I, Joel Spolsky, one of the two founders of Stack Overflow, argues that rewriting code from scratch is usually the worst thing you can do.pschill– pschill2020-02-18 08:16:07 +00:00Commented Feb 18, 2020 at 8:16
- 1I agree with Joel's stance of never rewriting a big project and with the answers in that direction, so I won't repeat that in an answer. However I want to add the advice that you should get the "Working with legacy code" book from Michael Feathers. I'm not a book person and that's one of maybe 2 books I would actually advise other programmers to get. It's old, but it's almost like it gets better with age. Even if you don't work on legacy code it's incredibly helpful, and which programming language you use doesn't really matter either.R. Schmitz– R. Schmitz2020-02-18 21:11:31 +00:00Commented Feb 18, 2020 at 21:11
| Show 2 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you