Jit Mitraeclair.hashnode.dev·Jun 7, 2024Types v/s Interfaces in TypeScript - A DilemmaWhen venturing into TypeScript, many encounter the dilemma of whether to employ Types or Interfaces, as both appear to fulfill the same function: predefining data or object types for future use. The TypeScript official documentation recommends priori...Discuss·34 readsTypeScript
Vikas Guptavikasfeedingdotnet.hashnode.dev·May 31, 2024Exploring C# 12: Latest Features and EnhancementsAs developers, we constantly seek ways to improve our productivity and code quality. Microsoft's C# language has evolved significantly over the years, introducing new features with each iteration to streamline development processes and enhance functi...Discuss·105 readsc#12
Chetan Dattachetan77.hashnode.dev·May 23, 202412 Java - Interfaces (Functional & Lambda)What is Functional Interface? If an interface contains only 1 abstract method, that is known as Functional Interface. Alos known as SAM interface (Single Abstract Method). @ FunctionalInterface keyword can be used at top of the interface(But its o...DiscussJavafunctional interfaces
Chetan Dattachetan77.hashnode.dev·May 19, 202411 Java - Interfaces (Latest Versions)1. Default Method (Java 8) Issue Before Java8, Interface can have only Abstract method. And all child classes has to provide abstract method implementation. public interface Bird{ public void canFly(); } public class Eagle implements Bird{ ...DiscussJavaInterfaces
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