Posts

Showing posts from March, 2021

KoaJS in NodeJS

Image
What is KOA? Widely used server-side framework for Node.js. Koa was created by the same creators of express, another popular backend Jawa Script framework Koa provides a minimal interface for developing apps and APIs Accordingly, the creators sought to take into account all the shortcomings of the predecessor and make it more  modern and convenient  to use Extremely Lightweight Smaller footprint than any other Node.js framework including Express. Better and Thinner middleware. You have the option to extend the framework with an added module Modern Framework Koa is Built ES6+ and promotes modern JavaScript syntax Uses generators and async /await. Helps devs create apps that remain relevant over a long period of time Request and Response Koa uses a req and res object on top of the standard vanilla JS request and the response It accelerates HTTP server development by providing additional functionality Encapsulates req/res into a single object using context. This helps devs build ...

S.O.L.I.D Principles

Image
S.O.L.I.D  Principles  Introduction  SOLID principles are the look principle that allows us to manage most of the software design problems.  The principles are a subset of many principles by Robart C Martin S.O.L.I.D are 5 object-oriented principles that should be followed when design software   S-  Single Responsibility Principle (SRP) O- Open- Closed Principle (OCP) L- Liskov Substitution Principle (LSP) I - Interface Segregation Principle (ISP) D- Dependency Inversion Principle (DIP) Single Responsibility Principle (SRP) And that responsibility should be entirely encapsulated by the class every module or class should have responsibility for one part of the functionality provided by the software   Open-Closed Principle (OCP) Adding new classes, attributes, and methods, instead of changing the current ones or existing ones should implement any new functionality. Bertrand Meyer originated the term OCP.     Why OCP? if not followed  ...

Introduction to Git and Commands

Image
01. Introduction to Git Git is officially defined as a distributed (VCS) version Control System. It's a system that monitors changes in our project files over time. It allows us to record project changes at any time and return to a selected version of the tracked files. This method is often utilized by many to figure efficiently and collaborate on team projects, where each developer can distribute their own version of the project on their computer. Later, these individual versions of the project are also merged to suit the most version of the project. Basically, it's a hugely popular tool for coordinating parallel work and managing projects between individuals and groups. Needless to mention, knowing the way to use Git may be an important skill for any developer today - it's definitely an excellent addition to your resume! The version control system is the management of changes to document changes in computer programs, large websites, and other collections of information. T...