Timeline for How to implement DRY principle when using 'using' keyword?
Current License: CC BY-SA 3.0
17 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 9, 2011 at 3:41 | vote | accept | Saeed Neamati | ||
| Aug 27, 2011 at 15:07 | answer | added | Sean | timeline score: 2 | |
| Aug 26, 2011 at 17:38 | answer | added | Cohen | timeline score: 4 | |
| Aug 26, 2011 at 17:10 | comment | added | John Tobler | The using statement actually provides C# language support to apply the DRY principle to help avoid repetitive coding while managing resource disposal with the Dispose design pattern. That doesn't mean we can't find ways to make things DRYer! Personally, I think of DRY as a recursive process. | |
| Aug 26, 2011 at 16:09 | answer | added | Travis | timeline score: 1 | |
| Aug 26, 2011 at 15:47 | answer | added | Phil | timeline score: 9 | |
| Aug 26, 2011 at 12:59 | answer | added | Brook | timeline score: 24 | |
| Aug 26, 2011 at 12:54 | answer | added | Ben Hughes | timeline score: 23 | |
| Aug 26, 2011 at 12:50 | comment | added | David | some languages can have particular syntax that can help you factor a bit of your code. I don't know C#, but in Ruby, I think you could use blocks to factor the using part. | |
| Aug 26, 2011 at 12:48 | history | edited | David | edited tags | |
| Aug 26, 2011 at 12:41 | comment | added | Saeed Neamati | Yeah @David, sorry that I didn't mention my language. How it can affect the answer? | |
| Aug 26, 2011 at 12:41 | history | tweeted | twitter.com/#!/StackProgrammer/status/107070042088284160 | ||
| Aug 26, 2011 at 12:38 | comment | added | David | is this C# ? The answer to your question could be language dependant | |
| Aug 26, 2011 at 12:25 | history | edited | Saeed Neamati | CC BY-SA 3.0 | added 204 characters in body |
| Aug 26, 2011 at 12:22 | answer | added | back2dos | timeline score: 7 | |
| Aug 26, 2011 at 12:21 | answer | added | arunmur | timeline score: 3 | |
| Aug 26, 2011 at 12:06 | history | asked | Saeed Neamati | CC BY-SA 3.0 |