Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Code reuse
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Criticism == Code reuse results in [[Coupling (computer programming)|dependency]] on the component being reused. [[Rob Pike]] opined that "A little copying is better than a little dependency". When he joined [[Google]], the company was putting heavy emphasis on code reuse. He believes that Google's [[codebase]] still suffers from results of that former policy in terms of compilation speed and maintainability.<ref>{{Citation|last=The Go Programming Language|title=Go Proverbs β Rob Pike β Gopherfest β November 18, 2015|date=2015-12-01|url=https://www.youtube.com/watch?v=PAAkCSZUG1c |archive-url=https://ghostarchive.org/varchive/youtube/20211222/PAAkCSZUG1c |archive-date=2021-12-22 |url-status=live|accessdate=26 February 2016}}{{cbignore}}</ref> Reusable code requires usually more effort to write and design. [[Fred Brooks]] discusses the significantly higher cost associated with that effort in his essays "The Tar Pit" and "[[No Silver Bullet]]" The fallacy is that effort is often spent without careful understanding of the mechanisms through which that cost will be redeemed. The justification often comes from incorrectly drawing parallels to reusable parts in a physical manufacturing process. Incorrect because writing code is analogous to design of a single product rather than production of multiple units.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)