Describe the concept of DRY (Don't Repeat Yourself) in coding.

By vivek kumar in 22 Jul 2024 | 03:54 pm
vivek kumar

vivek kumar

Student
Posts: 552
Member since: 20 Jul 2024

Describe the concept of DRY (Don't Repeat Yourself) in coding.

22 Jul 2024 | 03:54 pm
0 Likes
Prince

Prince

Student
Posts: 557
Member since: 20 Jul 2024

The DRY (Don't Repeat Yourself) principle is a fundamental concept in software development aimed at reducing duplication and promoting code reuse. Here’s a detailed look at the concept:

What is DRY?

Definition:

  • The DRY principle advocates that every piece of knowledge or logic should be represented in a single place in a system. In other words, avoid repeating code or logic across the codebase.

Origin:

  • The principle was introduced by Andrew Hunt and David Thomas in their book The Pragmatic Programmer.
22 Jul 2024 | 05:54 pm
0 Likes

Report

Please describe about the report short and clearly.