What is meant by DRY | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is meant by DRY

9th Jan 2017, 5:16 PM
Garrach_hazem
Garrach_hazem - avatar
6 Answers
+ 9
DRY stands for "Don't Repeat Yourself " that means you should not have the same piece of code twice (or more ) in your program. If this is needed, you can make a function from this piece of code
11th Jan 2017, 7:21 PM
CodingForFun
CodingForFun - avatar
+ 3
Don't repeat yourself I. e. never copy & paste the same peace of code in your program, but create a function from it and reuse the function
9th Jan 2017, 5:22 PM
CodingForFun
CodingForFun - avatar
+ 1
When you will need some function more than one time, make sure this function use 'return'
11th Jan 2017, 11:55 PM
guest013
guest013 - avatar
+ 1
@guest013 @carsten Thankx
12th Jan 2017, 2:36 PM
Garrach_hazem
Garrach_hazem - avatar
- 1
@carsten sorry I didn't understand you
11th Jan 2017, 7:08 PM
Garrach_hazem
Garrach_hazem - avatar
- 1
don't repeat yourself
12th Jan 2017, 11:47 AM
Ray