Ugne Adomaityteugneadomaityte.hashnode.dev·Mar 11, 2024How and When to Use Type Aliases vs. InterfacesTypeScript has two powerful concepts called type aliases and interfaces. At first, they might seem quite similar, but they have different features and use cases. This article will help you to understand and familiarize yourself with these concepts so...DiscussTypeScript
Sumit Luitelisumit.hashnode.dev·Feb 1, 2024Define interfaces in pythonLet us jump right into it. No BS!Import the ABC (Abstract Base Class) module and abstractmethod from the abc module in Python. The ABC module is used for defining abstract base classes. from abc import ABC, abstractmethod Now, to create a new abstra...Discuss·48 readsabstract base class python
Firas Hassanfiras-hassan.hashnode.dev·Jan 31, 2024Basic Java Questions & Answers (Part 4) - Interface & Abstract ClassI’ve compiled a list of questions and answers about fundamental topics in Java that I believe every Java developer should be aware of. This is part 4, covering the topic of Interface and Abstract class. What are the differences between an interface a...DiscussJava
Mark Maksimarkmaksi.hashnode.dev·Jan 11, 2024The Untapped Power of Interfaces in TypeScript - Create Modular Code with InterfacesMost people believe that interfaces are simply "types for objects". What if I told you that is 100% not the purpose of interfaces? On YouTube I see a lot of hatred towards interfaces for the favor of type aliases. You will always see clickbait thumbn...Discuss·11 likes·201 readsTypeScript
Davide Bellonecode4it.hashnode.dev·Jan 9, 20244 ways to create Unit Tests without Interfaces in C#One of the most common traits of C# developers is the excessive usage of interfaces. For every non-DTO class we define, we usually also create the related interface. Most of the time, we don't need it because we have multiple implementations of an in...DiscussC#
Gaurav J Somanigaurav750.hashnode.dev·Oct 30, 2023Mastering TypeScript: Beyond the Basics with Interfaces, Generics, and MoreMany of us have already dabbled with the basic types TS provides and experienced the safety it provides. But Typescript, like an iceberg, has layers beneath its surface - features that can make our code more flexible, robust and maintainable. In this...Discuss·2 likes·46 readsTypeScript Generics
Daniel Suhettsuhett.com·Oct 24, 2023Aprendendo Go: InterfacesTipos de interface em Go expressam generalizações ou abstrações acerca de outros tipos. Em geral, interfaces nos permitem escrever funções mais flexiveis e adaptaveis porque ela não se determina aos detalhes de uma implementação particular. Em muitas...Discuss·33 readsGo Language
Kriuskrius2023.hashnode.dev·Oct 19, 2023TypeScript - Types and Interfaces which I use in day-to-day project workSyntax ---- TYPE ---- type TUser = { userId: string, name: string, phoneNumber: string, userType: string } --------- INTERFACE --------- interface IUser { userId: string, name: string, phoneNumber: string, userType...DiscussTypes
Muhammad Waseemmwaseemzakir.hashnode.dev·Oct 13, 2023EP 4 : Default Interface Methods in C# 8.0We have been using the interfaces for years and we know that interfaces are just contracts and the class that inherits them must implement all methods of interface. Suppose this Interface is being implemented by multiple classes and now you want to ...Discuss.NET Booster WeeklyC#
Ronil Rodriguesronilrodrigues.hashnode.dev·Sep 28, 2023Understanding Abstract Classes, Interfaces, and Mixins in Object-Oriented ProgrammingObject-oriented programming (OOP) is a paradigm that emphasizes the use of classes and objects to model real-world entities. In Java and other similar languages, we have three powerful tools for achieving this: Abstract Classes, Interfaces, and Mixin...Discussmixins