Skip to content

Instantly share code, notes, and snippets.

@MauricioRobayo
Created October 30, 2022 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MauricioRobayo/ef5cad2fcbc2ad21dc47578723a4bd23 to your computer and use it in GitHub Desktop.
Save MauricioRobayo/ef5cad2fcbc2ad21dc47578723a4bd23 to your computer and use it in GitHub Desktop.
Surface Area
It's much easier to recover from no abstraction, than the wrong abstraction.
Abstractions come with a significant cost and a significant risk.
It's better to under-abstract to begin with.
Start with a few abstractions and lots of repetitions. Find repetitive patterns. If the pattern doesn't lead to bugs, don't fix it. It might look ugly but it's not hurting anyone. Try to generalize it and you risk adding bugs in the generalization. It only adds surface area to everyone.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment