Dev23dev23sa.hashnode.dev·May 20, 2024Object-oriented programming (OOP) ExplainedOOP stands for object-oriented programming. It's a programming paradigm based on the concept of "objects," which can contain data (attributes) and code (methods). These objects can interact with each other, exchanging data and invoking methods. Key c...Discuss·28 readsOOP Design Principles
Muhammad Bilalbilalusman.hashnode.dev·May 7, 2024Creational Design PatternCreational design patterns focus on object creation mechanisms, trying to create objects in a manner suitable to the situation. The basic form of object creation could result in design problems or added complexity to the design. Creational design pat...DiscussOOP Design Principles
Jaydeep Ravatsuperjavacoder.site·Mar 9, 2024Demystifying Design Patterns in Java: A Comprehensive GuideJava, as a pillar of object-oriented programming (OOP), empowers developers to create robust and maintainable applications. However, as projects grow in complexity, the need for well-structured code becomes paramount. This is where design patterns co...Discuss·29 readsJava LearningJava
Shinmen Dokkodoshinmen.hashnode.dev·Jan 10, 2024Understanding the Factory Method Design PatternDefinition The Factory Method pattern is a creational design pattern that defines an interface for creating objects, but allows subclasses to alter the type of objects that will be created. It encapsulates the object creation logic in a separate meth...DiscussDesign Patternsdesign patterns
Shinmen Dokkodoshinmen.hashnode.dev·Jan 10, 2024Understanding the Simple Factory Design PatternDefinition The Simple Factory pattern is a creational design pattern that encapsulates the object creation process by providing a centralized factory method to create instances of different classes based on a given input or condition. It abstracts th...DiscussDesign Patternssimple factory
Chinmay Singhblog.singhch.in·Jan 7, 2024Why you should almost never use Abstract ClassesImagine rules like this one defining a landscape, where maintainable code lives in the valleys. As you add new behavior, it’s like rain landing on your code. Initially you put it wherever it lands. Then you refactor to allow the forces of good design...DiscussComposition over inheritance
Raju Gowdablogs.bitsofdevbrain.com·Nov 16, 2023SOLID Principles Demystified: A Developer's Roadmap to Clean CodeIn the ever-evolving landscape of software development, writing code that is not only functional but also readable, maintainable and adaptable is the main goal. This is where SOLID principles come into play—a set of five design principles that serve ...Discuss·409 readsclean code
Cong Leconglesolutionx.hashnode.dev·Oct 10, 2023Objective-oriented Programming Principles in SwiftObject-oriented programming has four main principles: Encapsulation, Inheritance, abstraction, and polymorphism. Let's see how these four critical principles of Object-Oriented Programming (OOP) apply in Swift. 1. Encapsulation Encapsulation is an OO...DiscussSwift
Namrata Anil Vicharevicharenamrata.hashnode.dev·Sep 26, 2023Inheritance and Polymorphism: The Sibling dynamics of Object Oriented AlchemySpellbinding Objects Object-Oriented Programming (OOP) is an enigmatic yet captivating concept. It's odd because it allows computing to interface with the real world in ways one would never have imagined. Picture this: you're trying to communicate wi...Discussinheritance
Dikshya Subedidikshyasubedi.hashnode.dev·Sep 20, 2023Open/Closed Principle Explain With An Exampleusing System; public class Fighter { private IWeapon _weapon; public Fighter(IWeapon weapon) { _weapon = weapon; } public void Fight() { _weapon.Attack(); } } public interface IWeapon { void Attack(...DiscussOpen Closed Principle