Skip to main content

Posts

Showing posts from June, 2020

JavaScript, Redux & React

Redux is a state management library that helps you better manage state in your applications. The Redux library is not specific to React. It's a library that you can use in any other library or framework like Angular, Vue , and even vanilla JavaScript. Javascript is executed by browser with the help of execution engine as: Firefox -SpiderMonkey Chrome -V8  ES6 - use let in place of var Equality Operator "===" type and valuecompared "==" value only compared Following are considered False undefined null 0 false NaN ' ' Special loops in javascript: For...In for(let item in items){} For...of for(let item of items){} For for(let i=0;i<10;i++){} Basic rule in javascript - Avoid using Global variables.

SOLID Principle (software design principles)

Code Smell: Rigidity -hard to modify Fragility - any change make code unstable or bug prone  Immobility -components can not be reused in other system Viscosity - single change forces to change lot of places Needless complexity - excessive point of extension Major issue with code smell is Tight Coupling  SOLID principles are introduced to reduce code smells, they are: S  - Single Responsibility Principle O - Open Close Principe (Open for extension and Close for modification) L - Liskove substitute principle (replace the object/instance of a parent class with an object/instance of the child class, without affecting the behavior of the base class instance) I -  Interface Segregation Principle -  Clients should not be forced to implement any methods they don’t use. Rather than one fat interface,  numerous  little interfaces are preferred based on groups of methods  with  each interface serving one submodule . D -  Dependency Inversion Princ...

Docker - changing software installation process

Docker- really changing life of every individual working on system with different software. Docker is a ecosystem, but while I talk, I refer to Docker Image Docker Image (Container) it made life easy. All the issues to install software on machines, update there versions and keep updating dependencies is really tedious.