Giter Site home page Giter Site logo

awesome-clean-code's Introduction

Awesome Clean Code Awesome

Design Principles

Acronym coined by Robert C. Martin (Uncle Bob) to descibe the following five principles:

  1. The Single Responsibility Principle A class should have only one reason to change.
  2. The Open Closed Principle Software entities should be open for extension, but closed for modification.
  3. The Liskov Substitution Principle Derived classes must be substitutable for their base classes.
  4. The Interface Segregation Principle Make fine grained interfaces that are client specific.
  5. The Dependency Inversion Principle Depend on abstractions, not on concretions.

A local copy of "Design Principles and Design Patterns" by Robert C. Marin from objectmentor.com website. More about this principles with examples can be found here

Kent Beck's Four Rules of Simple Design

A design which:

  1. Passes all tests.
  2. Reveals intention.
  3. No duplication.
  4. Fewest elements.
  1. No null.
  2. No code in constructors.
  3. No getters and setters.
  4. No mutable objects.
  5. No static methods, not even private ones.
  6. No instanceof, type casting, or reflection.
  7. No public methods without @Override.
  8. No statements in test methods except assertThat.
  9. No implementation inheritance.

Featured Articles

Tutorials

Videos

Code Examples

Git Hub

Blogs

Twitter

Books

Other

awesome-clean-code's People

Contributors

kkisiele avatar

Watchers

James Cloos avatar

Forkers

pritomdutta27

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.