News for hackers. Stuff that matters.
Re:Channels Are Not Enough by nine_k on Monday September 15, 2014 @02:44AM (#8317564)
Machine code duplication is spending a few extra megabytes on perfectly valid, if duplicate, machine code.

Source code duplication is a risk of spending an hour, or maybe a day, of developer's time to detect the duplication, change it in concert in several places, with an occasional need of detecting and fixing a subtle discrepancy between the copies.

RAM is $0.015 per megabyte. Developer time is $50 per hour.

Re:Channels Are Not Enough by jesstaa on Monday September 15, 2014 @03:29AM (#8317652)
You could also spend that developer time trying to untangle code reuse between various components, or the more subtle breakages caused by changes that don't account for the expectations of all callers. Code reuse is still a tradeoff.
Re:Channels Are Not Enough by the_af on Monday September 15, 2014 @11:58AM (#8319593)
It should be noted that generic code is harder to break. It is, by definition, less entangled with its callers. There are also fewer operations you can do with generic parameters, so there are fewer ways to screw up.