Linked Questions

116
votes
8answers
12k views

What is the most effective way to add functionality to unfamiliar, structurally unsound code? [duplicate]

This is probably something everyone has to face during the development sooner or later. You have an existing code written by someone else, and you have to extend it to work under new requirements. ...
86
votes
9answers
10k views

Estimating time costs in legacy codebase

Recently I started working on a project where a very old monolithic application is being migrated into microservice-based architecture. The legacy codebase is very messy ('spaghetti code') and often ...
49
votes
7answers
7k views

How can I avoid causing bugs in the software when I fix unrelated bugs? [duplicate]

I'm a software intern and I am assigned bugs to fix as well as features to add to the software. When I add features, everything works well. My problem is more with fixing bugs. I'm working on an ...
38
votes
11answers
3k views

Techniques to re-factor garbage and maintain sanity? [duplicate]

So I'm sitting down to a nice bowl of c# spaghetti, and need to add something or remove something... but I have challenges everywhere from functions passing arguments that doesn't make sense, someone ...
34
votes
6answers
5k views

Methodology for documenting existing code base

I work as part of a team on an existing application that has no inline documentation, nor does it have technical documentation. As I've been working on various bug reports on the application, I've ...
30
votes
6answers
8k views

Thousands of errors!

I was assigned to a new project recently. Well, an old project actually, written in classic ASP. Now a new version of the application is being written in the latest ASP.NET, but it's not expected to ...
26
votes
6answers
2k views

How to properly take over a complex PHP project [duplicate]

I've been tasked to correct some issues on the backend of a large website project that has been outsourced for some time. The original developers and us are not on good terms so it's not feasible to ...
22
votes
8answers
4k views

Agile - What we doing wrong?

I'm a developer in an agile team, and we try to use Scrum. So I'll put here a hypothetical problem to illustrate the situation. We have a very old app, using some messy and bad maintainability ...
15
votes
5answers
911 views

Should older code be updated to use newer language constructs, or should outdated constructs be stuck with?

I want to make some enhancements in some still-functional code that was written a long time ago, before the programming language it is written in grew in features. In theory, the whole project uses ...
13
votes
4answers
681 views

Is there any commonly accepted guidelines about how to write modern C?

I have a strong Java/Groovy background and I've been assigned to a team that maintain quite a big C code base for an administrative software. Some pain points, like dealing with blob in the database ...
13
votes
3answers
9k views

How would you test Google Maps “Get Directions” feature?

(I imagine this would be a good interview question, but in my case it's more pragmatic than that.) We have a large & complex application that models an extremely long and sophisticated chemical ...
12
votes
12answers
1k views

What to do with a not well organized application? [duplicate]

I'm a newly graduate programmer and just got hired before my graduation. In the office, I used to create and revise modules of some applications developed by other programmers in our company. The ...
12
votes
18answers
5k views

How to read thousands lines of code without any documentation? [closed]

Previously I was searching for a good TimeLine control for a WPF project. I found an answer in Here which direct me to this CodePlex project. Now I want to change code to feed my culture needs. But ...
12
votes
6answers
4k views

What to do when you inherit an unmaintainable codebase? [duplicate]

Possible Duplicate: Techniques to re-factor garbage and maintain sanity? I've inherited 200K lines of spaghetti code — what now? I'm currently working at a company with 2 other PHP ...
11
votes
4answers
11k views

How to document a project which is already developed?

I would like to know what options are available for documenting a project which has already been developed, as the developers who worked on didn't write even a single page of documentation. The ...

15 30 50 per page