Follow @nxtchg

Author Topic: Code reuse  (Read 602 times)


  • Overlord
  • *****
  • Posts: 1115
  • Respect: +61
    • View Profile
Code reuse
« on: August 26, 2017, 10:17:02 pm »
You know why code reuse never took off? Despite all those decades of people thinking "wouldn't it be be swell?".

Because virtually every time you try to use a component you discover that it lacks some custom feature you need or requires some modification to fit your particular task.

You know why Stack Overflow became so popular? Because code fragments are extremely short and you can copy/paste/tweak easily.

People thought the best way to design components is to try to predict every possible use and add every possible feature. Bzzz! Wrong...

The best way to do it is to create components so simple that they require minimal mental effort to read, understand and modify.
Tentacle Overlord, The Deranged Genius of The Abyss