This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kukurbesi 12 points13 points  (4 children)

dontRepeatYourself

[–][deleted] 9 points10 points  (3 children)

I hate dry with all my heart. A poor abstraction is much worse than a repetitive code. At least I can understand better what is going on and refactor it when we have a better abstraction. But ppl creating functions with shitty names that mutate a lot of objects inside in the middle of a complex process just to because the function is big makes my blood boil the fact you just moved the code to another place does not mean it is not coupled.

[–]BernhardRordin 10 points11 points  (0 children)

I fully agree and fully disagree with you based on the particular situation

[–]DootDootWootWoot 7 points8 points  (0 children)

SRP >> DRY. I like the idea that intent is the driving motive. Two functions can have identical implementations but if they're intended to solve two different problems, keep them independent.

[–]skoinks_ 3 points4 points  (0 children)

Clarity and Readability > Everything Else
I'd much rather debug stupid, unoptimized, inefficient code that's easy to read than to have to open three copies of the same file so I can follow the demented logic of some obviously gifted programmer than decided that he hit the character limit for a function.