Events2Join

How would you start refactoring a messy spaghetti old legacy code ...


How would you start refactoring a messy spaghetti old legacy code ...

If you opt to clean up the code usually a great first step is to write tests (because probably this spaghetti has no tests). From there you can ...

Is it the correct practice to keep more than 10 years old spaghetti ...

Developers still continuously inject more and more code into those legacy classes. Developers are allowed to refactor their own fairly new code ...

Any tips for legacy spaghetti code? : r/AskComputerScience - Reddit

Once you've read it enough, try to understand what commonalities may exist, see if you can write down a plan for a refactor, and start slicing ...

How do you refactor a large messy codebase? - Stack Overflow

Determine what the purpose of the code was · Draw UML and action diagrams of the classes involved · Shop around for the right design patterns ...

How can you untangle spaghetti code in a legacy system? - LinkedIn

1. Identify the root causes ; 2. Apply the SOLID principles ; 3. Use design patterns ; 4. Avoid anti-patterns ; 5. Refactor incrementally.

Code refactoring on bad system design - Stack Overflow

14 Answers 14 · Revision control. You've made a start by setting-up subversion. · Build and release. Have a way to build stable releases on a ...

Fixing Spaghetti: How to Work With Legacy Code - Ethode

As you refactor more and more, the code base becomes easier and easier to change, and less and less defects will be present. Always focus on ...

5 coding exercises to practice refactoring Legacy Code

Your goal is to turn that little mess into clean code. Whether you're done or you're stuck, you can throw it away and start over! No deadline. Nothing to ship.

How to Refactor Spaghetti Code - One Bite at a Time!

I'm not sorry I started from scratch; it was a good way to reinforce everything I've learned writing the original code, while solidly (oops, a ...

The Simple Ways to Refactor Terrible Code | Personal Website & Blog

You can either fix things like wrong indentation or missing {} around code-blocks as you go or you can take little more systematic approach. The ...

Refactoring and Legacy Code

I've picked up various things about refactoring over the years and in theory I knew but now I've come to really understand that moving a mass of ...

Dealing With Legacy Code: How To Make Anything More Testable

The strategy to make legacy code more testable involves extracting the altered code into a new class and method, thus minimizing the impact on ...

A Simple Way to Fix Legacy Code - LinkedIn

In that article, Spolsky makes a strong case about why you should refactor your codebase instead of rewriting it. Refactoring, if you're not ...

Refactoring Legacy Code: Part 4 - Our First Unit Tests

One of the key moments of refactoring a totally legacy code is when we start extracting small pieces from it and we start writing targeted unit ...

How To Spot The Legacy Code Writer In Your Company (Hint: It's You)

Now, before I correct *any* bug, I always refactor a bit and/or add a test. Over the years, it has greatly paid off. It was difficult and ...

The Engineer's Complete Guide to Legacy Code | by Alex Omeyer

Code refactoring is one way to deal with legacy code. It's about overhauling code to make it more understandable, maintainable and adaptable ...

Untangling Spaghetti Code: Writing Maintainable JavaScript

Common first thoughts are to throw away the code base, and start from scratch. The code can be messy, undocumented and it can take days to fully ...

A high level overview to refactoring monolithic code structures

From that point on the monolith started to grow at a rapid pace up until 2500+ lines of conditional spaghetti code. The sight of working ...

Difficulties You May Face When Working With Legacy Code - Blurify

The most important thing is to rewrite the code only when it's necessary, and it's usually better to refactor it. Refactoring helps to eliminate problems before ...

Refactoring Legacy Code: Steps and Best Practices - ModLogix

There are two options, you can either rewrite the entire code or refactor it. On the one hand, rewriting is quite easy for the developers but ...