• Use coding standards to improve readability.
  • SOLID coding principles:
    • Single responsibility, build chunks of code that do one single thing each so that they are replicable, easier to test and to identify errors;
    • Open/Close, instead of adding to and compromising existing modules, reference a locked instance and build on them;
    • Liskov substitiution, substitute only if it fits the original space;
    • Interface Segregation, modules should not know about functionality they do not use, split in smaller abstractions;
    • Dependency inversion, add interfaces to isolate parts of your code so they are easier to swap out. Interfaces work in a input-output logic.
  • You should use clear naming and test the code.

By Doc

Leave a Reply

Your email address will not be published. Required fields are marked *