tag:blogger.com,1999:blog-6889884053798500413.post4881714487817312239..comments2023-10-06T07:56:08.792-07:00Comments on The way things work in Llewellyn's world: Do you favor Removing Duplication or Expressive Code?Llewellyn Falcohttp://www.blogger.com/profile/11668997629228826023noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-6889884053798500413.post-84998904556990118022016-10-16T07:09:13.385-07:002016-10-16T07:09:13.385-07:00Removing the duplication doesn't mean going as...Removing the duplication doesn't mean going as far as illustrated in the #2. The example #1 is <b>exactly</b> as "DRY" as the #2 example.Anonymoushttps://www.blogger.com/profile/15217358464167156803noreply@blogger.comtag:blogger.com,1999:blog-6889884053798500413.post-13896468264416333282014-07-01T08:06:52.435-07:002014-07-01T08:06:52.435-07:00Separating the "ing" does not always wor...Separating the "ing" does not always work, it assuming the variable is a verb. Make it a noun and it no longer works. For example; "I like women very much".Anonymoushttps://www.blogger.com/profile/00264592631176852318noreply@blogger.comtag:blogger.com,1999:blog-6889884053798500413.post-15741864923566501692014-06-12T02:04:07.704-07:002014-06-12T02:04:07.704-07:00Rich - I agree and thought of this example
"p...Rich - I agree and thought of this example<br />"playing video games"<br /><br />as in <br /><br />I like playing video games very much.<br /><br />It's a bit of a stretch, but I personally like it when stuff work for things that are a bit outside the original plan. <br />Llewellyn Falcohttps://www.blogger.com/profile/11668997629228826023noreply@blogger.comtag:blogger.com,1999:blog-6889884053798500413.post-48009037411942816432014-06-11T21:54:11.536-07:002014-06-11T21:54:11.536-07:00It is possible to have valid duplication in the sy...It is possible to have valid duplication in the system. This is usually caused by the Single Responsibility Principle. <a href="http://geekswithblogs.net/TimothyK/archive/2014/06/11/dry-and-srp.aspx" rel="nofollow">Here is my reply blog post with my long answer</a>Anonymoushttps://www.blogger.com/profile/09230457779762598901noreply@blogger.comtag:blogger.com,1999:blog-6889884053798500413.post-79355955742314630402014-06-09T05:39:33.164-07:002014-06-09T05:39:33.164-07:00I understand what you are demonstrating, and I wen...I understand what you are demonstrating, and I went with Expressive version. In the past I have done the Removing Duplication method and then later was annoyed that a change in a phrase forced me to re-expand the code. This was after the days when every byte counted, but old habits die hard. So I’ve gotten away from thinking or at least implementing that tightly for very small returns.<br /><br />Looking at the second solution, my first thought was what happens when you have an activity that does not end in –ing, but when I couldn’t come up with one, I searched and found that all apparently gerunds end in -ing. So in this case it may actually be as okay to assume the -ing as it is the”very much.”<br />Rich Shealerhttps://www.blogger.com/profile/06349316644704593604noreply@blogger.com