Once and Only Once

Once and Only Once

Don’t-Repeat-Yourself (DRY, auch bekannt als Once and Only Once, dt. etwa: Wiederhole dich nicht) ist ein Prinzip, das besagt, Redundanz zu vermeiden oder zumindest zu reduzieren. Ein Anwendungsgebiet für das DRY-Prinzip ist z. B. die Programmierung.

Redundant vorhandene Informationen (z. B. Quellcode = Code-Duplizierung) sind schwierig zu pflegen, da die Konsistenz zwischen den einzelnen Duplikaten gewährleistet sein muss. Bei Systemen, die dem DRY-Prinzip treu bleiben, müssen hingegen Änderungen nur an einer Stelle vorgenommen werden.

Während das DRY-Prinzip die Vermeidung von Redundanz zum Ziel hat, hat das SPOT-Prinzip den Umgang mit (gewollter) Redundanz zum Gegenstand.

Inhaltsverzeichnis

Softwaretechnik

DRY ist ein Grundprinzip in Andy Hunts und Dave Thomas Buch Der pragmatische Programmierer. Darin schlagen sie vor, DRY auch für Datenbank-Beschreibungen, Tests, Build-Skripte und sogar für die Dokumentation anzuwenden.

Literatur

  • The Pragmatic Programmer, Seite 26, „The Evils of Duplication“, ISBN 978-0-201-61622-4
  • Der Pragmatische Programmierer, Seite 24, „Das Übel der Wiederholungen“, ISBN 3-446-22309-6

Siehe auch

Weblinks


Wikimedia Foundation.

Игры ⚽ Нужно сделать НИР?

Schlagen Sie auch in anderen Wörterbüchern nach:

  • The One and Only, Genuine, Original Family Band — Directed by Michael O Herlihy Produced by …   Wikipedia

  • And the Children Shall Lead — Star Trek: The Original Series episode The children of the Starnes expedition Episode no. Episode 59 …   Wikipedia

  • Once Sent from the Golden Hall — Studio album by Amon Amarth Released 1998 …   Wikipedia

  • Once In A Blue Moon — is a series of graphic novels published by Oni Press, written by Nunzio DeFilippis and Christina Weir. The first volume was published in 2004, and featured art by Jennifer Quick. The series is looking for a new artist and has thus yet to publish… …   Wikipedia

  • Only You (Harry Connick Jr. album) — Infobox Album | Name = Only You Type = Album Artist = Harry Connick, Jr. Released = February 3 2004 Recorded = Capitol Studios, Hollywood, CA, May 13 22, 2003 Genre = Pop, Ballads Length = Label = Sony/Columbia Producer = Tracey Freeman Reviews …   Wikipedia

  • And Having Writ… — infobox Book | name = And Having Writ… title orig = translator = image caption = 1978 second printing author = Donald R. Bensen illustrator = cover artist = country = United States language = English series = genre = Science Fiction, Alternate… …   Wikipedia

  • Only Fools and Horses — Title screen Genre Sitcom Created by John Sullivan …   Wikipedia

  • Once Upon a Forest — Original theatrical release poster Directed by Charles Grosvenor Animation: Dave Michener …   Wikipedia

  • Once Upon a Time in Mexico — Directed by Robert Rodriguez Produced by Robert Rodriguez Elizabeth Avellan Carlos Gallardo …   Wikipedia

  • Once Upon a Time in America — (C era una volta in America) Theatrical release poster by Tom Jung Directed by Sergio Leone …   Wikipedia

  • Once Caldas — Full name Corporación Deportiva Once Caldas Nickname(s) El blanco Founded March 1 …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”