Tagged articles

interface

69 articles · Page 1 of 1
Golang Shines
Golang Shines
Aug 13, 2026 · Backend Development

Why Interviewers Favor These 5 Go Questions—and How to Ace Them

This article breaks down the five Go interview questions interviewers love, explains the underlying concepts such as goroutine and channel mechanics, empty‑interface pitfalls, map concurrency, defer execution, and Go modules, provides high‑scoring code examples, and offers concrete preparation tips to showcase engineering thinking and practical skills.

GoInterviewconcurrency
0 likes · 9 min read
Why Interviewers Favor These 5 Go Questions—and How to Ace Them
Lisa Notes
Lisa Notes
Jul 4, 2026 · Fundamentals

Using Interfaces as Types in Java: A Beginner’s Guide

This note explains how Java interfaces define new data types, how variables of an interface type must reference objects implementing that interface, and demonstrates the concept with a concrete example that casts objects to a Compare interface to select the larger one.

CastingOOPProgramming Fundamentals
0 likes · 3 min read
Using Interfaces as Types in Java: A Beginner’s Guide
Lisa Notes
Lisa Notes
Jul 3, 2026 · Fundamentals

Java Interface Implementation: A Step‑by‑Step Tutorial from Scratch

This tutorial walks through Java interface basics, showing how to declare an interface, implement it in classes, handle method and constant conflicts when implementing multiple interfaces, and demonstrates the concepts with concrete Rectangle and Circle examples.

Code ExampleOOPimplements
0 likes · 10 min read
Java Interface Implementation: A Step‑by‑Step Tutorial from Scratch
Lisa Notes
Lisa Notes
Jul 1, 2026 · Fundamentals

Java Interfaces from Scratch: Core Concepts and Practical Use

This note explains how interfaces act as contracts in collaborative Java projects, covering everyday analogies, definition, syntax, implementation requirements, API role, and how multiple interfaces provide a form of multiple inheritance.

APIMultiple InheritanceOOP
0 likes · 5 min read
Java Interfaces from Scratch: Core Concepts and Practical Use
Golang Shines
Golang Shines
Jun 14, 2026 · Fundamentals

Understanding How Interfaces Work in Go

This article explains Go's interface type, covering its basic concept, syntax, simple and advanced examples—including empty interfaces, interface composition, standard library usage, sorting, error handling, and dependency injection—while also discussing implementation details like value vs. pointer receivers and summarizing key characteristics.

Gocompositiondependency injection
0 likes · 13 min read
Understanding How Interfaces Work in Go
Golang Shines
Golang Shines
Jun 13, 2026 · Fundamentals

Mastering Go Interfaces and Polymorphism: A Deep Dive

This article explains how Go interfaces define behavior contracts, how implicit implementation, empty interfaces, and type assertions work, demonstrates polymorphic patterns with payment and animal examples, and highlights common pitfalls such as nil interfaces, method‑signature mismatches, pointer vs. value receivers, and interface composition.

GoProgramming Fundamentalsempty interface
0 likes · 16 min read
Mastering Go Interfaces and Polymorphism: A Deep Dive
CodeNotes
CodeNotes
Jun 10, 2026 · Fundamentals

How Java 8’s Default and Static Interface Methods Transform Design Patterns

The article explains how Java 8 added default and static methods to interfaces—allowing method bodies, enabling backward‑compatible extensions, illustrating usage with code examples, handling multiple‑interface conflicts, and introducing Java 9 private methods, while summarizing common pitfalls and best‑practice guidelines.

Java 8default methodinterface
0 likes · 9 min read
How Java 8’s Default and Static Interface Methods Transform Design Patterns
TonyBai
TonyBai
Jun 2, 2026 · Fundamentals

Eliminate Boilerplate: Go’s New Proposal to Convert Functions Directly to Interfaces

The article examines Go’s long‑standing boilerplate adapter pattern, explains the newly accepted Issue #47487 that enables explicit conversion of functions to single‑method interfaces, compares it with the rejected implicit assignability approach, and shows how the compiler generates hidden types to preserve safety and reduce code.

CompilerGoboilerplate
0 likes · 11 min read
Eliminate Boilerplate: Go’s New Proposal to Convert Functions Directly to Interfaces
Code Wrench
Code Wrench
Dec 10, 2025 · Fundamentals

Master Go Interview Essentials: Concurrency, Interfaces, GC, and More

This comprehensive guide covers the core Go concepts most frequently asked in interviews—including goroutine scheduling, channel communication, interface internals, garbage‑collection mechanics, toolchain utilities, error handling patterns, and struct memory layout—providing clear explanations, code examples, and practical tips to help candidates transition from writing Go code to truly understanding the language.

Goconcurrencyerror handling
0 likes · 12 min read
Master Go Interview Essentials: Concurrency, Interfaces, GC, and More
Zhuanzhuan Tech
Zhuanzhuan Tech
Sep 14, 2025 · Fundamentals

What’s Inside a Laptop Hard Drive? A Deep Dive into HDD, SSD, and Hybrid Storage

This article explains the different types of laptop storage devices—including movable and fixed hard drives, mechanical HDDs, solid‑state SSDs, and hybrid SSHDs—detailing their classifications, internal structures, performance characteristics, interface standards, and the underlying principles of how they store and retrieve data.

HDDSSDhard drive
0 likes · 33 min read
What’s Inside a Laptop Hard Drive? A Deep Dive into HDD, SSD, and Hybrid Storage
php Courses
php Courses
Aug 19, 2025 · Fundamentals

Mastering Abstract Classes and Interfaces in C++: A Practical Guide

This article explains how C++ uses abstract classes and pure virtual functions to define interfaces, compares abstract classes with simulated interfaces, provides concrete code examples, and outlines common real‑world scenarios such as game objects, GUI widgets, and plugin systems.

Abstract ClassC++OOP
0 likes · 5 min read
Mastering Abstract Classes and Interfaces in C++: A Practical Guide
Architect
Architect
Jul 21, 2025 · Backend Development

Do You Really Need Interfaces for Service and DAO Layers in Spring?

While many developers add interfaces to every Service and DAO class, this article argues that with Spring’s dependency injection you can often omit them, examines common reasons for using interfaces, and proposes practical project structures and workflows for both single and multiple implementation scenarios.

Service LayerSpringbackend development
0 likes · 9 min read
Do You Really Need Interfaces for Service and DAO Layers in Spring?
Java Captain
Java Captain
May 11, 2025 · Fundamentals

Understanding Abstract Classes and Interfaces: Design Principles and Practical Uses

Abstract classes and interfaces are core object‑oriented concepts that enable reusable, extensible, and maintainable code; this article explains their definitions, design considerations, and real‑world applications, illustrated with Java examples of a Control hierarchy and a Shape interface implementation.

Abstract ClassOOPinheritance
0 likes · 5 min read
Understanding Abstract Classes and Interfaces: Design Principles and Practical Uses
Raymond Ops
Raymond Ops
Mar 19, 2025 · Fundamentals

Unlocking Go’s Empty Interface: How Any Type Becomes a Value

This article explains Go’s empty interface, showing how it can hold values of any type, how to declare and use it in functions and data structures, and why copying between concrete slices and empty‑interface slices requires element‑wise assignment due to its two‑word memory layout.

Goempty interfaceinterface
0 likes · 5 min read
Unlocking Go’s Empty Interface: How Any Type Becomes a Value
Java Backend Technology
Java Backend Technology
Mar 4, 2025 · Backend Development

When Are Service‑Layer Interfaces Really Needed?

This article examines the three classic reasons for defining interfaces on Service and DAO layers, explains why they often fall short when using Spring's dependency injection, and offers practical structuring and workflow tips for projects that may or may not require multiple implementations.

Service LayerSpringbackend
0 likes · 8 min read
When Are Service‑Layer Interfaces Really Needed?
FunTester
FunTester
Sep 3, 2024 · Fundamentals

Understanding Nil Pointers and Interfaces in Go

This article explains how Go treats nil pointers within interfaces, why an interface containing a nil pointer is still non-nil, demonstrates the behavior with code examples, compares it to Java, and discusses practical implications for writing robust Go programs.

fundamentalsinterfacenil pointer
0 likes · 13 min read
Understanding Nil Pointers and Interfaces in Go
Liangxu Linux
Liangxu Linux
Aug 4, 2024 · Backend Development

Mastering Go’s Empty Interface: Store Any Type and Copy Data Safely

This guide explains Go's empty interface, how any value can be stored in it, demonstrates declaring variables and functions with interface{}, shows practical slice examples, discusses memory layout, and provides the correct way to copy data into an empty‑interface slice.

empty interfacegolanginterface
0 likes · 5 min read
Mastering Go’s Empty Interface: Store Any Type and Copy Data Safely
Architect
Architect
Jun 28, 2024 · Backend Development

Do Service and DAO Layers Really Need Interfaces? A Practical Spring Analysis

This article examines whether defining interfaces for Service and DAO layers is necessary in Spring projects, debunks common arguments for interfaces, proposes a top‑down coding workflow, and outlines strategies for handling multiple implementations without adding unnecessary abstraction.

DAOService LayerSpring
0 likes · 9 min read
Do Service and DAO Layers Really Need Interfaces? A Practical Spring Analysis
Go Programming World
Go Programming World
Jun 4, 2024 · Backend Development

Understanding and Using Empty Structs (struct{}) in Go

This article explains the zero‑size nature of Go's empty struct, demonstrates how its memory address behaves, shows its impact on struct alignment, and presents multiple practical patterns such as set implementation, large arrays, signal channels, no‑op methods, interface stubs, and the noCopy identifier.

MemorySetchannel
0 likes · 17 min read
Understanding and Using Empty Structs (struct{}) in Go
php Courses
php Courses
May 9, 2024 · Backend Development

Using Enums in PHP: Interfaces, Traits, Attributes, and Best Practices

This article explains PHP enums, showing how they improve code readability and safety, and demonstrates their integration with interfaces, traits, attributes, validation rules, casting, and matching mechanisms, providing practical examples and best‑practice recommendations for backend developers.

EnumPHPattribute
0 likes · 7 min read
Using Enums in PHP: Interfaces, Traits, Attributes, and Best Practices
MaGe Linux Operations
MaGe Linux Operations
Apr 29, 2024 · Fundamentals

Unlocking Go’s Empty Interface: Store Any Type in One Variable

An empty interface in Go, defined as interface{}, can hold values of any type because it has no methods, enabling flexible data structures like slices, maps, and structs, and is commonly used in functions such as fmt.Println, though copying between typed and empty interface slices requires careful handling.

Goempty interfacegeneric programming
0 likes · 5 min read
Unlocking Go’s Empty Interface: Store Any Type in One Variable
Code Ape Tech Column
Code Ape Tech Column
Apr 27, 2024 · Backend Development

Do Service and DAO Layers Need Interfaces? When to Use Them in Spring Projects

This article examines whether every Service and DAO class in a Spring‑based backend should implement an interface, discusses the three traditional reasons for using interfaces, explains why they often do not hold up, and proposes practical structuring alternatives for single‑ and multi‑implementation scenarios.

DAOService LayerSpring
0 likes · 8 min read
Do Service and DAO Layers Need Interfaces? When to Use Them in Spring Projects
Architect's Tech Stack
Architect's Tech Stack
Apr 16, 2024 · Backend Development

Should the Service Layer Use Interfaces? A Critical Discussion

This article examines whether a Service layer in Java Spring projects truly requires interfaces, debunking common arguments, exploring development workflows without interfaces, discussing project structuring for single and multiple implementations, and concluding when interfaces are beneficial or unnecessary.

Service LayerSpringarchitecture
0 likes · 7 min read
Should the Service Layer Use Interfaces? A Critical Discussion
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 12, 2024 · Frontend Development

Improving TypeScript Type Reuse and Component Props in a UI Library

This article examines common TypeScript type‑reuse issues in a component library, compares type aliases and interfaces, demonstrates using utility types like Omit and Pick, introduces unified base props, shows tuple usage for hooks, and explains function overloads to improve code maintainability and type safety.

FrontendTypeScriptUtility Types
0 likes · 10 min read
Improving TypeScript Type Reuse and Component Props in a UI Library
Ops Development & AI Practice
Ops Development & AI Practice
Apr 6, 2024 · Backend Development

How to Simulate Monkey Patching in Go Using Interfaces and Reflection

The article explains why Go does not support traditional monkey patching, then demonstrates two practical approaches—using interfaces with wrapper types and employing reflection—to extend a SimpleLogger with log levels without modifying its source, while discussing trade‑offs such as readability and performance.

Design PatternsGoMonkey Patching
0 likes · 6 min read
How to Simulate Monkey Patching in Go Using Interfaces and Reflection
Architects' Tech Alliance
Architects' Tech Alliance
Dec 13, 2023 · Fundamentals

Evolution of PCIe Standards and Test Requirements

This article traces the evolution of the PCI Express (PCIe) standard from its 1.0 inception to the latest 6.0 specification, highlighting key differences in data rates, encoding schemes, equalization techniques, and test requirements that enable higher bandwidth and reliability for modern data‑center and AI workloads.

PCIeencodingequalization
0 likes · 11 min read
Evolution of PCIe Standards and Test Requirements
php Courses
php Courses
Oct 21, 2023 · Backend Development

Using the Stringable Interface in PHP 8 for Simplified String Operations

This article introduces PHP 8’s new Stringable interface, explains its purpose, shows how to implement it with example code, and demonstrates its seamless integration with common string functions such as str_replace, strlen, and substr for more concise string handling.

PHPString OperationsStringable
0 likes · 5 min read
Using the Stringable Interface in PHP 8 for Simplified String Operations
JavaEdge
JavaEdge
Jan 21, 2023 · Fundamentals

Mastering Software Design: Why Model, Interface, and Implementation Matter

When joining a new project, understanding its software design by first examining the model, then the interface, and finally the implementation helps avoid getting lost in code, clarifies design decisions, and builds a clear mental map of the system.

ImplementationModelSoftware Design
0 likes · 10 min read
Mastering Software Design: Why Model, Interface, and Implementation Matter
Sohu Tech Products
Sohu Tech Products
Sep 14, 2022 · Frontend Development

Front‑Back End Collaboration Guidelines and Best Practices

This article presents a comprehensive set of front‑back end collaboration standards, covering why a coordination protocol is needed, detailed workflow steps, interface design rules, common pitfalls with concrete code examples, and the measurable benefits of adopting a unified development contract.

APIFrontendcollaboration
0 likes · 16 min read
Front‑Back End Collaboration Guidelines and Best Practices
FunTester
FunTester
Aug 31, 2022 · Fundamentals

Understanding Java Interfaces: Protocols, Default and Static Methods

This article explains the role of Java interfaces as communication protocols between modules, demonstrates their use with a computer‑assembly analogy, and covers Java 8 features such as default and static methods, method‑conflict resolution, and best practices for interface design.

OOPdefault methodinterface
0 likes · 15 min read
Understanding Java Interfaces: Protocols, Default and Static Methods
Architects' Tech Alliance
Architects' Tech Alliance
Aug 17, 2022 · Fundamentals

Overview of PCIe Evolution: From 3.0 to 7.0 and Future Roadmap

This article provides a comprehensive overview of the PCIe interface evolution, detailing the specifications, version milestones, bandwidth improvements, encoding and signaling changes from PCIe 3.0 through PCIe 7.0, and their impact on data‑center, AI/ML, and consumer hardware.

DataCenterHardwarePAM4
0 likes · 9 min read
Overview of PCIe Evolution: From 3.0 to 7.0 and Future Roadmap
IT Architects Alliance
IT Architects Alliance
Feb 17, 2022 · Backend Development

Understanding Abstraction and Decoupling in Java Interface‑Based Development

The article discusses how abstraction and decoupling through Java interfaces—such as service layers, RPC APIs, and middleware adapters—can improve code maintainability, enable flexible implementation swaps, and clarify responsibilities, while also warning against over‑engineering in most business scenarios.

Middlewareabstractioninterface
0 likes · 8 min read
Understanding Abstraction and Decoupling in Java Interface‑Based Development
Top Architect
Top Architect
Jan 4, 2022 · Frontend Development

Guidelines for Front‑End/Back‑End Separation and API Specification (Version 1.0.0)

This article explains why and how to separate front‑end and back‑end responsibilities, introduces the SPA‑based architecture, outlines development processes, and provides a detailed API specification (including request/response formats, pagination, and special field rules) to improve collaboration and reduce integration effort.

APIFrontendSPA
0 likes · 13 min read
Guidelines for Front‑End/Back‑End Separation and API Specification (Version 1.0.0)
DevOps Cloud Academy
DevOps Cloud Academy
May 7, 2021 · Operations

Understanding DevOps as an Interface, Not a Job Role

The article explains that DevOps should be viewed as an interdisciplinary interface rather than a specific job title, contrasts it with traditional roles like software developer or system administrator, and illustrates the concept with a Java‑style code example, while also including a brief promotional note about a DevOps training course.

Code ExampleDevOpsEngineering Roles
0 likes · 3 min read
Understanding DevOps as an Interface, Not a Job Role
ZhiKe AI
ZhiKe AI
Mar 15, 2021 · Backend Development

Building a Standalone In-Memory Cache with Expiration Support

This article explains how to create a simple single‑node in‑memory cache that supports per‑entry expiration by defining a generic cache interface and implementing it with Caffeine, using ConcurrentHashMap to store multiple caches keyed by expiration time.

CaffeineIn-Memorycache
0 likes · 5 min read
Building a Standalone In-Memory Cache with Expiration Support
Nullbody Notes
Nullbody Notes
Feb 21, 2021 · Fundamentals

Implementing the Chain of Responsibility Pattern in Go

This article explains the Chain of Responsibility design pattern, illustrates it with a company expense‑approval scenario, and provides complete Go code—including an interface, Staff, Manager, and CEO structs—showing how to build a flexible, extensible approval chain.

Chain of ResponsibilityDesign PatternGo
0 likes · 6 min read
Implementing the Chain of Responsibility Pattern in Go
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jan 29, 2021 · Mobile Development

GKI Transformation Principles and Implementation Methods

The article explains Google’s GKI transformation requirements—preserving a stable Kernel Module Interface, using only exported and whitelisted symbols, employing vendor hook mechanisms for custom SoC/OEM code, detecting interface mismatches, and offering alternatives such as padding macros and existing kernel event registration to avoid breaking KMI.

AndroidAndroid11GKI
0 likes · 11 min read
GKI Transformation Principles and Implementation Methods
Java Captain
Java Captain
Jan 9, 2021 · Backend Development

Do Service and DAO Layers Need Interfaces? When to Use Them in Spring Projects

This article examines whether Service and DAO layers in Java Spring projects should always have interfaces, discusses the arguments for and against using interfaces, and proposes practical structuring and dependency‑injection techniques to decide when interfaces are truly necessary.

DAOService LayerSpring
0 likes · 8 min read
Do Service and DAO Layers Need Interfaces? When to Use Them in Spring Projects
Architecture Digest
Architecture Digest
Dec 21, 2020 · Backend Development

Do You Need an Interface for the Service Layer? A Critical Examination

This article examines whether a Service layer in a Spring‑based backend project truly requires an interface, debunks common justifications, proposes practical development workflows, and outlines the advantages and drawbacks of using or omitting interfaces in various architectural scenarios.

Backend ArchitectureService LayerSpring
0 likes · 8 min read
Do You Need an Interface for the Service Layer? A Critical Examination
Nullbody Notes
Nullbody Notes
Dec 16, 2020 · Fundamentals

Understanding the Adapter Pattern in Go

The article explains the Adapter pattern by defining its purpose, illustrating the concept with mobile charging ports, and providing a complete Go code example that shows how to wrap incompatible interfaces so they can work together through adapters.

Code ExampleDesign PatternsGo
0 likes · 3 min read
Understanding the Adapter Pattern in Go
Top Architect
Top Architect
Nov 3, 2020 · Backend Development

Do Service and DAO Layers Need Interfaces? When to Use Them in Spring Projects

This article examines whether every Service and DAO class in a Spring‑based backend should implement an interface, evaluates the common arguments for using interfaces, explains why they often do not hold up, and proposes practical structuring and development approaches for projects that may or may not need multiple implementations.

DAOService LayerSpring
0 likes · 9 min read
Do Service and DAO Layers Need Interfaces? When to Use Them in Spring Projects
Alibaba Cloud Developer
Alibaba Cloud Developer
Sep 2, 2020 · Fundamentals

Mastering C++ Interfaces: Zero‑Overhead Techniques and Practical Patterns

This article explores various ways to implement interfaces in C++, comparing virtual functions, the Pimpl idiom, hidden subclasses, callback mechanisms, function pointers, std::function, member function pointers, and non‑intrusive traits, highlighting their trade‑offs in performance, binary compatibility, and design flexibility.

C++callbackinterface
0 likes · 13 min read
Mastering C++ Interfaces: Zero‑Overhead Techniques and Practical Patterns
Programmer DD
Programmer DD
Sep 2, 2020 · Fundamentals

When to Use Java Interfaces Instead of Abstract Classes? A Complete Guide

This article explores three common doubts about Java interfaces, demonstrates how interface references can point to implementing objects, compares abstract classes and interfaces for achieving polymorphism, and provides detailed animal‑hierarchy examples with code, generics, and best‑practice recommendations.

Abstract ClassDesign PatternsOOP
0 likes · 19 min read
When to Use Java Interfaces Instead of Abstract Classes? A Complete Guide
Programmer DD
Programmer DD
Aug 19, 2020 · Fundamentals

Why Does Java’s Comparable Interface Matter? A Deep Dive with Code Examples

This article explains the purpose of Java's Comparable interface, demonstrates how built‑in classes like String use it for natural ordering, shows the failure when custom objects lack it, and provides a step‑by‑step guide to implementing Comparable with practical code samples.

CollectionsComparableinterface
0 likes · 9 min read
Why Does Java’s Comparable Interface Matter? A Deep Dive with Code Examples
360 Tech Engineering
360 Tech Engineering
Mar 6, 2020 · Fundamentals

Understanding Method Sets, Interfaces, and Embedding in Go

This article explains Go's method sets, the relationship between method receivers and method sets, how interfaces work, and the role of embedding, providing code examples that illustrate value vs pointer receivers, interface implementation rules, and embedding differences for struct types.

EmbeddingStructinterface
0 likes · 10 min read
Understanding Method Sets, Interfaces, and Embedding in Go
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Dec 20, 2019 · Fundamentals

Understanding Duck Typing and Interface Implementation in Go

This article analyzes Go's duck typing and interface mechanisms, explaining how interfaces are defined, implemented, and converted at runtime, including details of underlying structures like iface and eface, method sets, pointer vs value receivers, and type assertions, supplemented with code examples and assembly insights.

GoRuntimeduck-typing
0 likes · 22 min read
Understanding Duck Typing and Interface Implementation in Go
Didi Tech
Didi Tech
May 17, 2019 · Fundamentals

Understanding Go Reflection: Types, Values, and Practical Applications

Go’s reflection, accessed via the reflect package’s TypeOf and ValueOf functions, lets programs inspect and modify runtime types and values—including fields, tags, and slices—while obeying settable rules, enabling generic utilities such as JSON serialization, deep equality checks, and dynamic ORM-like behavior.

DeepEqualGoType
0 likes · 27 min read
Understanding Go Reflection: Types, Values, and Practical Applications
Java Captain
Java Captain
Jan 8, 2018 · Fundamentals

Understanding Abstract Classes and Interfaces in Java

This article explains the concepts, syntax, and design differences between Java abstract classes and interfaces, illustrating how each is used for abstraction, inheritance, and behavior contracts with code examples.

Abstract ClassOOPinterface
0 likes · 9 min read
Understanding Abstract Classes and Interfaces in Java
网易UEDC
网易UEDC
Sep 27, 2017 · Fundamentals

Beyond Screens: Rethinking Interfaces for Future Interaction Design

This article explores how interaction designers can expand the concept of interfaces beyond traditional screens, examining the evolution from CUI to NUI and showcasing diverse examples such as elevator panels, smart bikes, conversational robots, shape‑changing metal, and tactile displays for the blind.

Human-Computer InteractionNUIUX
0 likes · 9 min read
Beyond Screens: Rethinking Interfaces for Future Interaction Design
Suning Design
Suning Design
Apr 17, 2014 · Frontend Development

6 Essential UI Design Principles to Boost User Experience

This article outlines six fundamental UI design guidelines—clarity, simplicity, familiarity, responsiveness, consistency, and visual appeal—to help designers create interfaces that enhance user experience and improve the success of web projects.

Design PrinciplesFrontendUI design
0 likes · 6 min read
6 Essential UI Design Principles to Boost User Experience