solid principles

SOLID Principles: Open Closed Principle for better Understanding of extension and modification.

Reading Time: 5 minutes Introduction The Open-Closed Principle states that a software module (class, method, etc.) should be open for extension but closed to modification. This principle was proposed by Bertrand Meyer in the late 1970s and early 1980s. As a guideline for designing object-oriented software. The OCP states that the purpose of design patterns is to hide details from clients. And can focus on their specific problem domain Continue Reading

background

SOLID Principle in Scala

Reading Time: 3 minutes Introduction SOLID is one of the most popular design principles in object-oriented software development. Adopting these practices can prevent code smells, refactoring code, and Agile or Adaptive software development. It was promoted by Robert C Martin and is used across the object-oriented design spectrum. It’s a mnemonic acronym for the following five design principles : I’m going to try to explain SOLID Principles in the Continue Reading

All you need to know about SOLID Principles

Reading Time: 3 minutes In this blog post, we will discuss about SOLID principles in Scala which are the 5 most recommended design principles. What are SOLID Principles ? The abbreviation SOLID stands for a collection of principles that, when combined, make code more adaptable to change. SOLID principles assist us in making our software more readable, understandable, flexible. They serve as the foundation for developing object-oriented applications that Continue Reading

Understanding Java enums

Functional Java CodeStyle [Part: 2]

Reading Time: 5 minutes The world is a stage where all of us are artists and constant learning is the foundation of success. So, to improve ourselves here we are going to know more about coding style in which we will look deep into SOLID principles in Java. We will see why it is important and how to achieve that. As in the previous blog, we saw several code Continue Reading

Liskov Substitution Principle and its significance

Reading Time: 3 minutes Solid Principles: Solid principles establish practices that grant software development with considerations for maintaining as well as extending as the project grows. Adopting these practices can also contribute to avoiding code smells, refactoring code, and Agile or Adaptive software development. Liskov Substitution Principle and its significance: “Objects in a program should be replaceable with instances of their subtypes without altering the correctness of that program” Continue Reading

SOLID Principles

Reading Time: 5 minutes SOLID is stand for Single Responsibility Principle, Open-Closed Principle, Liskov Substitution Principle, Interface Segregation Principle, and Dependency Inversion Principle. It is refers to five design principles in object-oriented programming, designed to reduce code and improve the value, class, function, and maintainability of software. The SOLID principles help the user develop minimized coupled code. If code is tightly coupled, a group of classes are dependent on Continue Reading

An approach to SOLID Principles – Object Oriented vs Functional Programming

Reading Time: 6 minutes SOLID PRINCIPLES Before starting to know about what exactly the solid principles are ? We have to know about what exactly the meaning of the principle. Principles are something which give a name of a concept so that you can talk and reason about that concept. They help us to know that our code is in good or bad state . Principles can help you Continue Reading

SOLID PRINCIPLES

SOLID Principles: Basic building block of the software system

Reading Time: 4 minutes “Good software system begins with clean code” and by “clean code”, I mean it is code that is easy to understand and easy to change. This is the point where there is a need to know about SOLID Principles which helps us in writing the clean code as the code is like humour. “When you have to explain it, it’s bad.” The SOLID PRINCIPLES tell Continue Reading

SOLID Principles with Scala

Reading Time: < 1 minute It is quite evident what SOLID principles mean for class typed object oriented languages like Java. However, what do they mean for hybrid languages like Scala which merge the Object oriented and functional approaches. In this KnolX session, we tried to decipher what SOLID principles meant for Scala. Though much of what we know about them can be applied to Scala if we code in Continue Reading

Open Closed Principle in Action

Reading Time: 4 minutes Ivar Jacobson stated that all software entities change during their life cycle and this must be borne in mind when developing systems which are expected to last longer than the first version. A design principle which helps you with long lasting software is OCP (Open Closed Principle). Open Closed Principle was coined by Bertrand Meyer. It states that “Software entities should be open for extension Continue Reading