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 (TV series) — Infobox Television show name = The One and Only country= UK caption = genre = Reality picture format = runtime = 6 Weeks creator = presenter = Graham Norton channel = BBC One first aired = 5 January 2008 last aired = 16 February 2008 num series …   Wikipedia

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

  • Once a Day — Single by Connie Smith from the album Connie Smith B …   Wikipedia

  • Once Over Lightly — Studio album by Jo Stafford Released January 1, 1957 …   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

  • Once Bitten (album) — Infobox Album Name = Once Bitten Type = studio Artist = The Snakes Released = flagicon|Japan August 1998 Recorded = 1998 Genre = Hard rock, Blues rock Length = Label = Pony Canyon Producer = Ronni Le Tekrø Reviews = Last album = This album = Once …   Wikipedia

Share the article and excerpts

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