tag:blogger.com,1999:blog-37251267.post7152824087361681712..comments2023-07-27T10:14:52.457+02:00Comments on eferro's random stuff: Applying the DRY principleeferrohttp://www.blogger.com/profile/09351299557419046663noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-37251267.post-65084349123644920702018-04-22T11:07:41.747+02:002018-04-22T11:07:41.747+02:00Hi Fran
I was talking about different idioms used ...Hi Fran<br />I was talking about different idioms used in some languages... For example, if you are using a C++, iterating over a collection and doing several operations is expected in a for a loop. And usually you don't try to abstract this iteration, is a common idiom... but for the same chunk of code implemented in clojure, the usual implementation try to avoid the explicit iteration (using filters, maps, reduce, etc) or abstract it using high order functions.<br /><br />Similar thing for Go error handling... is repetitive... but is an accepted duplication and trying to remove it will confuse common Go developers. The same for Go not having generics and the amount of boilerplate needed...<br /><br />So, look for C++, Java, Go idioms and a lot of them include boilerplate code. But is "expected" boilerplate and sometimes, try to remove this boilerplate is counterproductive.<br /><br />I hope is more clear now... :)eferrohttps://www.blogger.com/profile/09351299557419046663noreply@blogger.comtag:blogger.com,1999:blog-37251267.post-78505756246214006472018-04-05T21:42:58.790+02:002018-04-05T21:42:58.790+02:00"Depending on the language (C++, Python, Java..."Depending on the language (C++, Python, Java...) there are some kinds of duplication.." Do you have any example? Thanks :)Fran Reyeshttps://www.blogger.com/profile/17018617428066513312noreply@blogger.comtag:blogger.com,1999:blog-37251267.post-38486786654493495432017-09-12T18:42:16.718+02:002017-09-12T18:42:16.718+02:00Hello Eduardo,
I always love to read your blog and...Hello Eduardo,<br />I always love to read your blog and your rules and principles of creating software always inspires me to do things in better way. I really enjoyed reading this Applying the DRY principle. Keep it up.<br /><br />Thanks,<br />Freya, UK<br /><a href="http://www.theidioms.com/" rel="nofollow">theidioms.com</a>Freyahttps://www.blogger.com/profile/12357440558529151872noreply@blogger.com