Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Auszug
hiddentrue

Nuclos good code: refactoring, interface, DefaultValueProviderWithIds, readability, avoid duplication.

globe with meridians Language: Deutsch · English

open book How to do it right:

Refactoring of the negative example – a shared interface instead of code duplication.

Status
colourGrey
titleReferenz
Status
colourBlue
titleDeveloper
Status
colourGreen
titleStand: Jul 2026
Status
colourGrey
titlegilt fuer Nuclos 4.2026.x

The refactored counterpart to the negative example: a sensible interface (here DefaultValueProviderWithIds) implemented by both providers removes code duplication and confusing nesting – the code becomes readable and logical:

Codeblock
languagejava
Beispiel für schlechte Programmierung

Related pages

gear Example of bad programming:


Before.

Öffnen →