Skip to content

Instantly share code, notes, and snippets.

@xeptore
Last active October 12, 2019 04:16
Show Gist options
  • Save xeptore/7554d2574cde7ae0122c91e631900a46 to your computer and use it in GitHub Desktop.
Save xeptore/7554d2574cde7ae0122c91e631900a46 to your computer and use it in GitHub Desktop.
Some Quotes and Remarks To Become A Daily Habit

Implementation

  • If an instance of B should be used anywhere an instance of A, the use inheritance. If an instance of B should use an instance of A, use composition/delegation.
  • Use composition/delegation, unless you want substitutability.

Core

  • Be unemotional about designing your software.
  • It is almost impossible to get it right the first time.
  • Defer decisions that are possible to be deferred.

Good Design

  • A good design has high cohesion and low coupling.

Simplicity

  • Simple keeps you focused.
  • Simple is not necessarily familiar.

A good architecture allows major decisions to be deferred. "Bob Martin"

A good architecture maximizes the number of decisions NOT made. "Bob Martin"

OO is all about dependency management. "Bob Martin"

Architecture is the decisions that are hard to change. "Martin Fowler"

A good code should read like a story, not like a puzzle. "Dr. Venkat Subramaniam"

Good code is like a good joke, wrting comments is like explaining it. "Dr. Venkat Subramaniam"

Write (in comments) why you are doing that, not what you are doing.

If code is hard to understand, refactor it, not comment it.

Variable names represent abstractions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment