News for hackers. Stuff that matters.

Chaseph

Re:In Defense of Copy and Paste on Friday February 08, 2013 @07:12PM (#5190906)
These articles are a dime a dozen. This popular philosophy isn't right, because look at my poorly coded example of it.

You're dry code, is only dry is the laziest of senses, and represents a lousy programmer cluttering the system. A really lousy implementation of any of these programming paradigms would make one side look wrong.

In your example, the refactored code would look excellent if it implemented OOP and the Strategy Pattern. The two different feeds can inherit their similarities from the same place, and their differences implemented in separate places. Which feed to produce can be chosen dynamically, rather than one crappy grab-all function.

Ask HN: What's your programming setup?

I'm always looking for ways to make my programming environment and workflow more efficient. So what setup do you have that you think makes you work as efficiently as possible?Right now I do all my code editing in OSX, and have a VMware virtual-machine running Ubuntu Server. I have a script running that syncs any changed files from OSX to the virtual machine, so I can run / test in an...

( Read More... | 9 comments | 15 points | on HN )