Linked Questions

463 votes
19 answers
200k views

I hope this isn't too general of a question; I could really use some seasoned advice. I am newly employed as the sole "SW Engineer" in a fairly small shop of scientists who have spent the last 10-20 ...
144 votes
31 answers
160k views

What tools and techniques do you use for exploring and learning an unknown code base? I am thinking of tools like grep, ctags, unit-tests, functional test, class-diagram generators, call graphs, ...
40 votes
10 answers
49k views

Possible Duplicate: What is the most effective way to add functionality to unfamiliar, structurally unsound code? Till now, all I have worked on is with Java projects that I build from scratch (...
Ankit's user avatar
  • 551
41 votes
11 answers
4k views

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 ...
Incognito's user avatar
  • 3,478
9 votes
4 answers
2k views

I've inherited a lot of poorly designed code; the code has no tests. I am putting tests in place before I attempt a major refactor, but I have run into a problem with my unit tests. The problem is, I ...
Buttons840's user avatar
  • 1,886
4 votes
1 answer
1k views

A client came to me with some features he wanted implementing. Easy enough to do what he asked. He paid me, I agreed to start on the start date and finish in 3 weeks. The code base is a disaster. It ...
James Jeffery's user avatar
8 votes
3 answers
637 views

I know most people hate flat and long functions, and hate when code is not full of ISomethings. The problem is that I guess my mind works in different way, and I always have problems with that type ...
Coder's user avatar
  • 6,978
1 vote
3 answers
1k views

I am currently working on an application with legacy code that was built using proof of concepts (POCs). These POCs became the finished production-ready code, there were no tests, and the classes have ...
eparham7861's user avatar
3 votes
4 answers
868 views

A piece of software is a patchwork of old and undocumented efforts. There are no comments, no documentation, and the code is hairy -- it involves Unix shell scripts that check for dummy files and then ...
Torben Gundtofte-Bruun's user avatar
-1 votes
2 answers
398 views

I am a web developer and at the moment am finding it hard to cope with long un-documented code written by previous developers in an organisation I work for. With the deadline gun always pointed at my ...
Anon's user avatar
  • 101
2 votes
1 answer
502 views

I have a methodological question. I am faced with a reasonably large legacy system (Java Enterprise). I am new to its codebase -as everybody in the team- since it's a product we had in outsourcing ...
jjengineer's user avatar
0 votes
2 answers
505 views

There is a legacy project full of C++ code. As a MFC GUI project, it contains lots of businesses logic out of control and beyond average level programmer to understand. To work on such GUI project, is ...
upton's user avatar
  • 673
0 votes
2 answers
841 views

Concretely I am looking at this 2000 line file of what I will pretty arbitrarily call "mediocre" code. It's not well-commented variable names and function names seem consistently intelligent functions ...
djechlin's user avatar
  • 2,212
127 votes
16 answers
70k views

It seems to be generally assumed (on Stack Overflow at least) that there should always be unit tests, and they should be kept up to date. But I suspect the programmers making these assertions ...
73 votes
12 answers
20k views

Does anyone know if there is some kind of tool to put a number on technical debt of a code base, as a kind of code metric? If not, is anyone aware of an algorithm or set of heuristics for it? If ...
Erik Dietrich's user avatar

15 30 50 per page