News for hackers. Stuff that matters.
Re:Microsoft takes .NET open source and cross-platform by StavrosK on Wednesday November 12, 2014 @10:47PM (#8599798)
It's a code smell that usually means there's something there to be abstracted, or that your API isn't as clean as it could be.
Re:Microsoft takes .NET open source and cross-platform by codeulike on Thursday November 13, 2014 @04:31PM (#8604251)
I'd take a bit of copy-paste over premature generalisation any day.
Re:Microsoft takes .NET open source and cross-platform by StavrosK on Thursday November 13, 2014 @04:45PM (#8604340)
I'd take a premature generalisation over a false dichotomy.
Re:Microsoft takes .NET open source and cross-platform by codeulike on Friday November 14, 2014 @04:14AM (#8606377)
So if its not a dichotomy, what are the other options? If you want to avoid copy/paste, you have to use generalisation techniques.
Re:Microsoft takes .NET open source and cross-platform by StavrosK on Friday November 14, 2014 @05:42AM (#8606550)
Yes, and generalisation doesn't mean premature generalisation. It's very possible to just have a well-designed generalisation.
Re:Microsoft takes .NET open source and cross-platform by codeulike on Friday November 14, 2014 @07:12AM (#8606744)
Well OK. But in a lot of cases I see badly designed over complex generalisations ("premature generalisation") because of a phobia of copy/paste. A bit of copy/paste is OK guys, seriously. Wait and see how it goes for a bit and then refactor the general case in later _if_ it seems worth it.