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 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 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 Leggi tutto…