RESTful API vs REST API

REST (REpresentational State Transfer) is a software architectural style that defines a set of constraints to be used for creating Web services. Web services that conform to the REST architectural style is called RESTful Web services. REST based services follow some of the principles and not allRESTFUL services means it follows all the above principles. Here Leggi tutto…

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