Posts

Showing posts from October, 2025

SOLID PRINCIPLES IN JAVA SCRIPT

Image
  SOLID PRINCIPLES IN  JAVA SCRIPT who invented the solid principal ? In the year of 2000 Software engineer Robert C.Martin (Uncle bob) Five   key design principalin his paper "Design Principesl&Design Patterns" The principal aimed to improve Object-Oriented Software Design and reduce code rot. Michael Feathers:                                 In year of 2004  Micheal Feathers coined the acronym SOLID  make the 5  Principles eaiser to remember and tech.Since then,SOLID has became a cornerstone of clean code and algile development. What are all the SOLID PRINCIPLES? Each letter in SOLID stands for the principle. Lets break them down with examples: Single Responsibillity Principles (SRP)    A  clean function should have only one reason to change. ex:function saveUser(user){ saveToDB(user); } function notifyUser(user){ sendWelcomeEmail(user); } Why it matters: E...