SOLID design principles

http://blog.wolksoftware.com/implementing-solid-and-the-onion-architecture-in-node-js-with-typescript-and-inversifyjs Single responsibility principle A class should only have a single responsibility, that is, only changes to one part of the software’s specification should be able to affect the specification of the class.Afferma che ogni classe dovrebbe avere una ed una sola responsabilità, interamente incapsulata al suo interno. Open–closed principle Leggi tutto

Design pattern

A design pattern is the re-usable form of a solution to a design problem. Singleton Is a software design pattern that restricts the instantiation of a class to one “single” instance Factory or Factory Method https://refactoring.guru/design-patterns/factory-method Is a creational design pattern that provides an interface for creating objects in a superclass, but Leggi tutto

JavaScript – Permutations & combinations

Combinations Sum Using JavaScript Interviewing.io: Watch a technical mock interview with a Google engineer Pairwise combinations of an array in Javascript https://medium.com/@0.618/combinations-and-permutations-algorithm-in-javascript-9c3d2a2f9afa Javascript ES6 without push/pop Implement All Permutations of a Set in JavaScript LeetCode Combinations and Permutations Algorithm in JavaScript

Learning JavaScript Design Patterns

https://addyosmani.com/resources/essentialjsdesignpatterns/book/ Preface Design patterns are reusable solutions to commonly occurring problems in software design. They are both exciting and a fascinating topic to explore in any programming language. One reason for this is that they help us build upon the combined experience of many developers that came before us and Leggi tutto