refactoring

  • submit to reddit

The Mikado Method - Making Code Changes Less of an Impact

Kev McCabe - Mikado Method - Making Code Changes Less of an Impact from Lean Agile Scotland on Vimeo. The Mikado Method is a simple straight forward...

0 replies - 1533 views - 12/26/12 by Mitch Pronschinske in Articles

You Can’t Refactor Your Way Out of Every Problem

Refactoring is a disciplined way to clarify, retain or restore the design of a system as you make changes, and to help cleanup and correct the mistakes and...

0 replies - 3398 views - 12/26/12 by Jim Bird in Articles

What Refactoring is, and what it isn’t - According to Kent Beck and Martin Fowler

Sometimes a programmer will come to me and explain that they don’t like the design of something and that “we’re gonna need to do a whole bunch of...

3 replies - 38032 views - 12/16/12 by Jim Bird in Articles

Top 20 Refactoring Features in IntelliJ IDEA

Following up on the previous article where we highlighted the top 20 features of Code Completion, I’d like to talk about the top Refactoring features that...

0 replies - 13924 views - 10/29/12 by Andrey Cheptsov in Articles

Transform switches in maps

This article is about a recurring pattern you can apply while encountering chain of conditionals or switch statements. Although their usage can be limited via...

0 replies - 4927 views - 08/29/12 by Giorgio Sironi in Articles

Lean Tools: Refactoring

Refactoring is one of the basic tools in Agile development: it consists in changing the form of the code without changing its function. While refactoring, you...

0 replies - 3033 views - 08/01/12 by Giorgio Sironi in Articles

Is Copy and Paste Programming Really a Problem?

Copy and Paste Programming – taking a copy of existing code in your project and repurposing it – violates coding best practices like Don’t Repeat...

4 replies - 11372 views - 06/28/12 by Jim Bird in Articles

Testing PHP scripts

Let's see a common scenario: you want to refactor some legacy code (without any test), which may not even be object-oriented, into some discrete chunks that...

0 replies - 5927 views - 04/25/12 by Giorgio Sironi in Articles

Bullets for legacy code

The most common legacy code definition is that of a project not covered by automated tests: picture in your mind a big ball of mud, difficult to change or...

1 replies - 8843 views - 03/27/12 by Giorgio Sironi in Articles

Practical PHP Refactoring: Extract Hierarchy

Suppose you have a God class that is full of ifs and case statements, or boolean flags. Many refactorings try to segregate responsibilities in smaller...

0 replies - 4611 views - 02/15/12 by Giorgio Sironi in Articles

Practical PHP Refactoring: Separate Domain from Presentation

PHP is unfortunately famous for spaghetti code, but instances of tangle logic is a product of the programmer and not of the language.One of the anti-patterns...

0 replies - 4287 views - 02/13/12 by Giorgio Sironi in Articles

Practical PHP Refactoring: Convert Procedural Design to Objects

Even in languages where there are no constructs but classes, there is no constraint that can force a programmer into writing object-oriented code. In many...

0 replies - 5128 views - 02/08/12 by Giorgio Sironi in Articles

Practical PHP Refactoring: Tease Apart Inheritance

We are entering into the final part of this series, on large scale refactorings: this kind of operations is less predictable and less immediate. However, it is...

0 replies - 3115 views - 02/06/12 by Giorgio Sironi in Articles

Practical PHP Refactoring: Replace Delegation with Inheritance

Delegation is a more flexible solution with respect to inheritance, because it allows to change collaborators by introducing new classes. However, it hides the...

0 replies - 3899 views - 02/01/12 by Giorgio Sironi in Articles

Practical PHP Refactoring: Replace Inheritance with Delegation

When a subclass violates the Liskov Substitution Principle, or uses only part of a superclass, it is a warning sign that composition can simplify the...

0 replies - 4662 views - 01/30/12 by Giorgio Sironi in Articles