Skip to Content
Softwareentwicklung von Kopf bis Fuß
book

Softwareentwicklung von Kopf bis Fuß

by Dan Pilone, Russ Miles
July 2008
Intermediate to advanced
496 pages
10h 40m
German
O'Reilly Verlag
Content preview from Softwareentwicklung von Kopf bis Fuß

A.5. Refactoring

Refactoring ist der Prozess der Veränderung der Struktur Ihres Code, ohne dabei sein Verhalten zu ändern. Refactoring wird durchgeführt, um die Sauberkeit, Flexibilität und Erweiterbarkeit Ihres Codes zu verbessern, und bezieht sich in der Regel auf eine bestimmte Verbesserung Ihres Entwurfs.

Die meisten Refactoring-Vorgänge sind ziemlich einfach und konzentrieren sich auf einen bestimmten Entwurfsaspekt Ihres Codes. Ein Beispiel:

public double getArbeitsunfähigkeitsrente() {
       // Auf Anwartschaft prüfen
       if (dienstalter < 2)
         return 0;
       if (monateArbeitsunfähig> 12)
         return 0;
       if (isTeilzeitkraft)
         return 0;
       // Arbeitsunfähigkeitsrente berechnen und liefern
     }

Refactoring ändert die interne Struktur Ihres Codes, OHNE sein Verhalten ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

HTML5-Programmierung von Kopf bis Fuß

HTML5-Programmierung von Kopf bis Fuß

Eric Freeman, Elisabeth Robson
JavaScript-Programmierung von Kopf bis Fuß

JavaScript-Programmierung von Kopf bis Fuß

Eric Freeman, Elisabeth Robson
Programmieren von Kopf bis Fuß

Programmieren von Kopf bis Fuß

David Griffiths, Paul Barry

Publisher Resources

ISBN: 9783897218628