Skip to main content

Timeline for Why is DRY important?

Current License: CC BY-SA 3.0

15 events
when toggle format what by license comment
Feb 16, 2012 at 14:53 history edited Bryan Oakley CC BY-SA 3.0
added 37 characters in body
Feb 16, 2012 at 14:24 comment added John @Bryan Copy & Paste. I.e. the opposite of "Don't Repeat Yourself".
Feb 16, 2012 at 12:26 comment added Bryan Oakley @John: what does C&P stand for?
Aug 26, 2011 at 19:15 comment added John @smackfu Have you ever read thedailywtf.com?
Aug 26, 2011 at 19:00 comment added Scott McIntyre No one would cut&paste because it is easier, and then just change a word? Ha. HAHA.
Aug 24, 2011 at 14:28 comment added user3792 @John - I really can't say for that few operations. All I am saying is that there is a big difference between repeating yourself many times, and just a couple times. You seem to be addressing the first but not the second, since your reductio ad absurdum argument would not be very effective assuming the case specified by the OP. It is just a bit circular I suppose.
Aug 24, 2011 at 14:19 comment added John @ironcode - Exaggeration for effect. Anyway, even with only 3 or 4, DRY would still be easier don't you think?
Aug 24, 2011 at 14:00 comment added user3792 @John - this seems like a bit of a straw man argument. Instead of 26 gazillion, does your argument work for 3-4 like the OP presented in the example?
Aug 24, 2011 at 11:35 comment added JeffO If someone thinks a quick copy and pasting of code that is 'never' going change is sufficient, they'll never bother writing tests.
Aug 24, 2011 at 11:16 comment added Svish @9000 Not if you don't have any test suites :p (which actually often might be the case in some projects... unfortunately...)
Aug 24, 2011 at 7:33 comment added HorusKol @Robert - have you read any of the articles at thedailywtf.com ;) - there are some out there who would do just that
Aug 24, 2011 at 3:19 comment added John @Robert I would hope not! I picked a very simple task to try to better illustrate the concept and why it can be a good thing.
Aug 24, 2011 at 2:38 comment added Robert Harvey You've illustrated the concept adequately, but in practice nobody would do what you described with the gazillion functions, not in that way anyway.
Aug 24, 2011 at 2:08 comment added 9000 Also, you need to write as many similar tests suites as you have duplicate functions.
Aug 24, 2011 at 1:55 history answered John CC BY-SA 3.0