Skip to content

Instantly share code, notes, and snippets.

@NikitashP
NikitashP / inversion_of_control.md
Last active December 2, 2018 19:34
Inversion Of Control

Inversion of Control

  • when the framework decides on the mehods to invoke based in the bindings meantioned in the configuration, that is inversion of control. The framework decides on the metods to call over the developer making t
  • one important charecteristics of a framework is that the methods defined by the user to tailor the framework will often be called by the framework itlself, rather than from the user's application code. The framework often plays role of the main program in coordinating and sequencing the application activity. The inversion of control gives the framework the power to serve as extensible skeletons. The method supplied by the user tailor the generic algorithm defined in the frameowrk for a particular application
  • template method as a design pattern defines flw of control that is preserved with the super class while the child classes implement the abstract method defined in the parent class
  • JUnit, the framework code calls setUp and tearDown methods for you to create and clean u
@NikitashP
NikitashP / clean_code.md
Created October 19, 2018 11:55 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules