Oct 5, 2025 · 2 min read · As per the book's definition: Objects of a superclass should be replaceable with objects of its subclasses without breaking the application. It means consider the following example: class Bird { public void fly() { System.out.println(...
Join discussionOct 3, 2025 · 11 min read · When working in companies, it’s essential to ensure that our code remains highly maintainable and easy to read. It is that one metric in which AI fails poorly (not following design patterns / SOLID etc.) What exactly is a Design Pattern? It is a Solu...
Join discussion
May 31, 2025 · 5 min read · Gagasan atau idea yang dikenalkan oleh Barbara Liskov pada tahun 1987 pada conference dengan judul Data abstraction and Hierarchy. Dalam gagasannya memiliki kesimpulan kurang lebih seperti ini, Jika S adalah subtitusi dari T, maka T bisa digantikan o...
Join discussion
May 24, 2025 · 2 min read · SOLID Principles | Liskov Substitution Principle Rules Rules 1 . Signature Rulea. Method Argument RuleWhenever we are implementing the parent class methods we have to use the same type arguments or its parent class arguments. like the child classes a...
Join discussionMay 23, 2025 · 3 min read · SOLID Principles | Liskov Substitution principle L : Liskov Substitution principleDefinition: Sub Classes should be substitutable for their base classes.That means we have a Base class A and child class B, which is inherited the function of the class...
Join discussionMar 24, 2025 · 3 min read · In software development, designing scalable, maintainable, and efficient applications is crucial. This is where SOLID principles come into play. Just as an architect follows fundamental design rules to build a strong and functional house, developers ...
Join discussion
Mar 14, 2025 · 5 min read · [38] Introduction The SOLID principles are a set of design principles that aim to make software designs more understandable, flexible, and maintainable. The SOLID acronym stands for: S for Single Responsibility Principle (SRP) O for Open/Closed Pri...
Join discussion
Mar 10, 2025 · 5 min read · When developing scalable and maintainable software, it is critical to follow best practices. Robert C. Martin (Uncle Bob) established the SOLID principles, which give a framework for designing clean, modular, and testable code. These concepts improve...
Join discussionFeb 12, 2025 · 8 min read · Welcome back to our SOLID principles series! If you’ve been following along, we’ve already covered:✅ S: Single Responsibility Principle (SRP): Keep components focused.✅ O: Open/Closed Principle (OCP): Make extensions easy, not modifications. Today, w...
Join discussion