Kjell-Åke Gafvelin
Member since Mar 10, 2015
- Profile: /members/12569-kjell-ke-gafvelin.htm
- URL: http://geekproject.com
- Comments: 4
Recent Blog Comments By Kjell-Åke Gafvelin
-
It Walks Like A Duck, It Quacks Like A Duck, But It's A Donkey - The Problem Of Inappropriately DRY Code
Posted on Mar 20, 2015 at 10:36 AM
You can definitely practice SRP and divide one function into two rather than add a "magic" flag and I strongly suggest that you do. And by doing it like that you will actually get more efficient code re-use than by adding a "magic" flag to a function. Imagine this kinda pseudo-c... read more »
-
It Walks Like A Duck, It Quacks Like A Duck, But It's A Donkey - The Problem Of Inappropriately DRY Code
Posted on Mar 13, 2015 at 4:03 AM
** Previous comment was posted by accident ** What I think is important as well as DRY is Single Responsibility Principle (SRP http://en.wikipedia.org/wiki/Single_responsibility_principle ). Since CF is so forgiving and allows devs to include all kinds of code within one page you get business logi... read more »
-
It Walks Like A Duck, It Quacks Like A Duck, But It's A Donkey - The Problem Of Inappropriately DRY Code
Posted on Mar 13, 2015 at 3:51 AM
What I think is important as well as DRY is Single Responsibility Principle (SRP http://en.wikipedia.org/wiki/Single_responsibility_principle ).... read more »
-
It Walks Like A Duck, It Quacks Like A Duck, But It's A Donkey - The Problem Of Inappropriately DRY Code
Posted on Mar 10, 2015 at 4:00 AM
I understand what you talk about as I'm in a project right now where we have this issue now that we have a lot of code that tries to solve every other problem you throw at it. And it's a complete nightmare to try to understand and then add new functionality to it! The main issue is that they have l... read more »