Ganesh Rama HegdeforDesign Patterns in Software Blogdesignpatterns.hashnode.dev·Sep 1, 2024Abstract Factory PatternThe Abstract Factory Pattern is another creational design pattern that provides an interface for creating families of related or dependent objects without specifying their concrete classes. Instead of just creating one type of object, like in the Fac...Discuss·1 likeTypeScript
Ganesh Rama HegdeforDesign Patterns in Software Blogdesignpatterns.hashnode.dev·Sep 1, 2024Factory Design PatternThe factory design pattern is a creational design pattern that provides an interface for creating objects in a superclass but allows subclasses to change the type of objects that will be created. Instead of calling the constructor directly, we use a ...Discuss·1 likeFactory Design Pattern
Ganesh Rama HegdeforDesign Patterns in Software Blogdesignpatterns.hashnode.dev·Sep 1, 2024Singleton Design PatternThe Singleton pattern is classified as a creational design pattern because its primary purpose is to control the creation of objects. Specifically, the Singleton pattern ensures that a class has only one instance and provides a global point of access...Discuss·1 likeTypeScript
Ganesh Rama HegdeforDesign Patterns in Software Blogdesignpatterns.hashnode.dev·Aug 25, 2024Interface Segregation Principle (ISP)The Interface Segregation Principle (ISP) is one of the SOLID principles in object-oriented design. It states that a class should not be forced to implement interfaces it doesn't use. Instead, it's better to have multiple, smaller, and more specific ...Discuss·1 likeinterface
Carmine Tambasciablog.allaroundjavascript.com·Aug 25, 2024Difference between extending and intersecting interfaces in TypeScript?Have you ever found yourself thinking in a complex project asking this question, then in this article I will try to answer with examples Let's say the following type is defined: interface Shape { color: string; } Now, maybe we need a way to abstra...DiscussTypeScript
Ganesh Rama HegdeforDesign Patterns in Software Blogdesignpatterns.hashnode.dev·Aug 24, 2024Open/Closed Principle (OCP)The definition of OCP that I had mentioned in this blog is this: Software entities (classes, functions, modules, or methods) should be open for extension but closed for modification. This allows you to add new functionality without changing existing ...Discuss·1 likeTypeScript
Abhishek Sharmaabhisheksharmacodes.hashnode.dev·Aug 23, 2024TypeScript's Interfaces and Classes for Type SafetyTypeScript, a superset of JavaScript, has gained immense popularity due to its ability to enhance code quality and maintainability through static type checking. Interfaces and classes play a crucial role in achieving this type safety. Let's delve int...Discussabhisheksharma
Tarun Sharmatapstechie.hashnode.dev·Aug 17, 2024Interfaces and Abstract Base Classes in Python: A Complete OverviewIn Python, abstract base classes (ABCs) and interfaces play a crucial role in designing robust and maintainable software. They help enforce consistency, promote code reuse, and ensure that your objects behave as expected. Whether you're a beginner or...Discuss·1 likePython Interview Prep: Essential Concepts and TechniquesPython
Sheraz Manzoorsherazmanzoor.hashnode.dev·Aug 8, 2024Type ✔ Vs Interface ❌: Why you should chose type over interface in typescript.I have come to a solution that you should always use types over interfaces. Let's breakdown why!! Interfaces can only specify objects, but type alias can specify objects and everything else. Let's say we have a single Address field and with type you...Discusstype alias
Arya M. Pathakarya2004.hashnode.dev·Aug 6, 2024Mastering Interfaces in GoIn the previous segments, we discussed methods, interfaces, and delved into composition. In this post, we will explore intricate details about interfaces, specifically focusing on the concept of a nil interface and its role in error handling. Additio...Discuss·10 likesGo Deep: Mastering Golang FundamentalsGo Language