Don't repeat yourself

Don't repeat yourself

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:

  • Don’t repeat yourself — (DRY, рус. Не повторяйся)  это принцип разработки программного обеспечения, нацеленный на снижение повторения информации различного рода, особенно в системах со множеством слоёв абстрагирования. Принцип DRY формулируется как: «Каждая часть… …   Википедия

  • Don't Repeat Yourself — 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… …   Deutsch Wikipedia

  • Don't repeat yourself — In software engineering, Don t Repeat Yourself (DRY) or Duplication Is Evil[citation needed] (DIE) is a principle of software development aimed at reducing repetition of information of all kinds, especially useful in multi tier architectures. The …   Wikipedia

  • Don’t repeat yourself — Dieser Artikel wurde zum Export in das Software Wiki angemeldet. Däädaa 20:00, 18. Nov. 2011 (CET) …   Deutsch Wikipedia

  • Don't Repeat Yourself — Ne vous répétez pas Ne vous répétez pas (Don t Repeat Yourself) est une philosophie en programmation informatique consistant à éviter la redondance de code au travers de l ensemble d une application afin de faciliter la maintenance, le test, le… …   Wikipédia en Français

  • Don't repeat yourself — Ne vous répétez pas Ne vous répétez pas (Don t Repeat Yourself) est une philosophie en programmation informatique consistant à éviter la redondance de code au travers de l ensemble d une application afin de faciliter la maintenance, le test, le… …   Wikipédia en Français

  • repeat — re|peat1 W2S2 [rıˈpi:t] v [T] ▬▬▬▬▬▬▬ 1¦(say again)¦ 2¦(do again)¦ 3¦(learn)¦ 4¦(tell)¦ 5¦(broadcast)¦ 6 something doesn t bear repeating Phrasal verbs  repeat on somebody ▬▬▬▬▬▬▬ [Date: 1300 1400; : Old F …   Dictionary of contemporary English

  • repeat — I UK [rɪˈpiːt] / US [rɪˈpɪt] verb [transitive] Word forms repeat : present tense I/you/we/they repeat he/she/it repeats present participle repeating past tense repeated past participle repeated *** 1) to say or write something again Can you… …   English dictionary

  • repeat — re|peat1 [ rı pit ] verb transitive *** 1. ) to say or write something again: Can you repeat what you just said, please? The first line is repeated throughout the poem. If you repeat those allegations, we will consult our lawyers. repeat that: He …   Usage of the words and phrases in modern English

  • repeat — 1 /rI pi:t/ verb 1 STATE AGAIN (T) to say or write something again: Can you repeat your question? | repeat that: Steven repeated patiently that he was busy. see say 1 2 DO AGAIN (T) to do something again: Repeat the treatment twice a day if… …   Longman dictionary of contemporary English

Share the article and excerpts

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