in reply to Re: "When code reuse turns ugly"
in thread "When code reuse turns ugly"
The great thing about predicting doom
I'm not sure that I ever "predicted doom" so much as railed against the logic of substituting a dependency for a 1 or a few lines of code you write and maintain yourself.
Would you call this "predicting doom"? Or this? Or this?
Is a week of broken builds and surprise scrambling all over the world less than or greater than the uncountable commits, arguments, and shipped bugs of splitting out an ostensibly simple little block of code to 50,000 projects and 39,273 developers who couldn't get it right the first few passes? Legitimately curious but it's rhetorical since there is no way to measure it. I wish there were.
The other paragraph in the article that stood out for me was: "Is it possible that we've become too lazy? Rather than write one-line functions, folks are pulling in outside code, and thus overly relying on dependencies. Here's some widely used open-source NPM modules that caught our eye:"
I see people pulling in whole (large and complex) packages in order to use 1 or 2 lines. Eg, Sub::Exporter
Turning things we like into virtue and things we dislike into sin should be a bit of a red flag on an opinion piece.
I think the keyword is balance. Not writing your own DBI from scratch is obvious; Math::Round to get round() less so.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: "When code reuse turns ugly"
by VinsWorldcom (Prior) on Mar 30, 2016 at 19:43 UTC | |
by BrowserUk (Patriarch) on Mar 30, 2016 at 20:41 UTC | |
by soonix (Chancellor) on Mar 31, 2016 at 07:57 UTC | |
by BrowserUk (Patriarch) on Mar 31, 2016 at 10:31 UTC | |
by soonix (Chancellor) on Mar 31, 2016 at 11:16 UTC | |
| |
by hippo (Archbishop) on Mar 31, 2016 at 11:35 UTC | |
| |
by VinsWorldcom (Prior) on Mar 30, 2016 at 20:48 UTC |