Linked Questions
                        35 questions linked to/from What is the most effective way to add functionality to unfamiliar, structurally unsound code?
                    
                
            
            
                463
            
            votes
        
        
            
                19
            
            answers
        
        
            
                200k
            
            views
        
        
            
            
            
        I've inherited 200K lines of spaghetti code -- what now?
                    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
        
        
            
            
            
        How do you dive into large code bases?
                    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
        
        
            
            
            
        Understanding already existing complex code base [duplicate]
                    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 (...
                
            
       
        
            
                41
            
            votes
        
        
            
                11
            
            answers
        
        
            
                4k
            
            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 ...
                
            
       
        
            
                9
            
            votes
        
        
            
                4
            
            answers
        
        
            
                2k
            
            views
        
        
            
            
        I have 200k lines of poorly designed code, will units tests or integration tests be more valuable? [duplicate]
                    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 ...
                
            
       
        
            
                4
            
            votes
        
        
            
                1
            
            answer
        
        
            
                1k
            
            views
        
        
            
            
            
        How to work with a messy codebase and client [duplicate]
                    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 ...
                
            
       
        
            
                8
            
            votes
        
        
            
                3
            
            answers
        
        
            
                637
            
            views
        
        
            
            
            
        How do you find your way in deeply nested, interfacey code? [duplicate]
                    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 ...
                
            
       
        
            
                1
            
            vote
        
        
            
                3
            
            answers
        
        
            
                1k
            
            views
        
        
            
            
            
        Legacy code: what to do in regards to maintenance and moving forward? [duplicate]
                    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 ...
                
            
       
        
            
                3
            
            votes
        
        
            
                4
            
            answers
        
        
            
                868
            
            views
        
        
            
            
            
        Considerations before rewriting a software component from scratch? [duplicate]
                    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 ...
                
            
       
        
            
                -1
            
            votes
        
        
            
                2
            
            answers
        
        
            
                398
            
            views
        
        
            
            
            
        What's a good way to manage long piece of code in files? [duplicate]
                    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 ...
                
            
       
        
            
                2
            
            votes
        
        
            
                1
            
            answer
        
        
            
                502
            
            views
        
        
            
            
            
        How to approach legacy code? Desperate case [duplicate]
                    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 ...
                
            
       
        
            
                0
            
            votes
        
        
            
                2
            
            answers
        
        
            
                505
            
            views
        
        
            
            
        How to add cases to large legacy code base project? [duplicate]
                    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 ...
                
            
       
        
            
                0
            
            votes
        
        
            
                2
            
            answers
        
        
            
                841
            
            views
        
        
            
            
        Strategy for reading and understanding Node.js code [duplicate]
                    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 ...
                
            
       
        
            
                127
            
            votes
        
        
            
                16
            
            answers
        
        
            
                70k
            
            views
        
        
            
            
            
        When is unit testing inappropriate or unnecessary? [duplicate]
                    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
        
        
            
            
            
        How can I quantify the amount of technical debt that exists in a project?
                    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 ...