Tag

interfaces

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
May 30, 2025 · Backend Development

Design Principles, Best Practices, and Hidden Pitfalls of PHP Interfaces in 2025

This article examines the core design principles, modern best practices, and common hidden pitfalls of PHP interfaces in the 2025 ecosystem, providing concrete code examples and guidance on contract‑first design, single responsibility, interface segregation, dependency injection, versioning, testing, and advanced patterns such as adapters and plugin systems.

Design PrinciplesPHPbackend development
0 likes · 9 min read
Design Principles, Best Practices, and Hidden Pitfalls of PHP Interfaces in 2025
php中文网 Courses
php中文网 Courses
Apr 30, 2025 · Backend Development

Understanding Polymorphism in PHP: Types, Code Examples, and Practical Applications

This article explains PHP's polymorphism—covering method overriding, simulated method overloading, interface polymorphism, traits, abstract classes, magic methods, and performance considerations—while providing clear code examples and discussing real‑world uses such as plugin systems, testing mocks, middleware, and strategy patterns.

OOPPHPTraits
0 likes · 9 min read
Understanding Polymorphism in PHP: Types, Code Examples, and Practical Applications
Raymond Ops
Raymond Ops
Jan 17, 2025 · Fundamentals

Unlocking Go’s Type System: From Basic Types to Reflection

This article explains Go’s static type system, introduces custom types and interface types, demonstrates how empty interfaces work, and shows how the reflect package can inspect and modify values at runtime, including struct fields, using concrete code examples.

Gointerfacesprogramming
0 likes · 13 min read
Unlocking Go’s Type System: From Basic Types to Reflection
Top Architect
Top Architect
Dec 22, 2024 · Backend Development

Do Service Layers Need Interfaces? A Critical Discussion on Spring‑Based Projects

The article examines whether a Service layer in a Spring‑based backend should be defined by interfaces, debunks common arguments for using interfaces, proposes a top‑down coding workflow, explores project structures for single and multiple implementations, and concludes that interfaces are only worthwhile when multiple implementations are required, while also containing promotional material for unrelated services.

Service LayerSpringbackend architecture
0 likes · 11 min read
Do Service Layers Need Interfaces? A Critical Discussion on Spring‑Based Projects
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 24, 2024 · Backend Development

Using Function Types and Interfaces to Build Flexible HTTP Handlers in Go

This article explains how Go's net/http package leverages function types combined with interfaces—particularly the Handler and HandlerFunc types—to create concise, flexible HTTP servers, reducing boilerplate, improving code reuse and testability, and demonstrates practical examples and underlying implementations.

GoHandlerbackend development
0 likes · 9 min read
Using Function Types and Interfaces to Build Flexible HTTP Handlers in Go
php中文网 Courses
php中文网 Courses
Apr 15, 2024 · Fundamentals

Understanding Abstraction in Object-Oriented PHP Programming

This article explains the core concept of abstraction in software engineering, illustrating how using interfaces and abstract methods in PHP can simplify code, improve maintainability, and reduce developer focus on low‑level details, demonstrated through concrete Shape examples for rectangles, circles, and triangles.

PHPabstractioninheritance
0 likes · 5 min read
Understanding Abstraction in Object-Oriented PHP Programming
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 14, 2023 · Fundamentals

Comprehensive TypeScript Tutorial: Basics, Types, Interfaces, Classes, and Advanced Features

This extensive tutorial walks readers through TypeScript fundamentals, covering installation, basic and advanced type annotations, functions, interfaces, classes, generics, type compatibility, and utility types, providing clear code examples and practical guidance for developers.

ClassesTutorialgenerics
0 likes · 93 min read
Comprehensive TypeScript Tutorial: Basics, Types, Interfaces, Classes, and Advanced Features
Selected Java Interview Questions
Selected Java Interview Questions
Apr 28, 2021 · Fundamentals

Why Using Interfaces Improves Software Maintainability

The article explains that employing interfaces in a layered software architecture simplifies future maintenance by allowing changes to be made in a single implementation class, avoiding widespread code modifications across services, DAOs, and actions, and thereby reducing recompilation time and potential errors.

Javainterfaceslayered architecture
0 likes · 5 min read
Why Using Interfaces Improves Software Maintainability
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Apr 18, 2021 · Fundamentals

Understanding Inheritance and Multiple Inheritance in Java and C++

This article explains the concepts of single and multiple inheritance, the diamond problem in C++, why Java forbids multiple class inheritance, and how Java 8 uses default methods in interfaces to achieve similar functionality, illustrated with clear code examples and diagrams.

C++JavaMultiple Inheritance
0 likes · 7 min read
Understanding Inheritance and Multiple Inheritance in Java and C++
360 Tech Engineering
360 Tech Engineering
Oct 16, 2020 · Frontend Development

A Comprehensive Guide to TypeScript: Basics, Types, Enums, Interfaces, and Functions

This guide introduces TypeScript, covering its definition, advantages, data types, enums, interfaces, classes, function definitions, parameter handling, overloads, and best practices, with code examples illustrating each concept for developers seeking to write safer, more maintainable JavaScript.

FunctionsTypeScriptenums
0 likes · 12 min read
A Comprehensive Guide to TypeScript: Basics, Types, Enums, Interfaces, and Functions
360 Quality & Efficiency
360 Quality & Efficiency
Sep 4, 2020 · Frontend Development

Comprehensive Introduction to TypeScript: Types, Enums, Interfaces, and Functions

This article provides a thorough overview of TypeScript, covering its definition as a JavaScript superset, key advantages, built‑in data types, enum variations, interface capabilities, function declaration styles, parameter handling techniques, overloads, and practical code examples to illustrate each concept.

FunctionsType AnnotationsTypeScript
0 likes · 11 min read
Comprehensive Introduction to TypeScript: Types, Enums, Interfaces, and Functions
Sohu Tech Products
Sohu Tech Products
Mar 25, 2020 · Frontend Development

A Comprehensive Guide to TypeScript: Indexable Types, Interfaces vs Types, Generics, Utility Types, and More

This article provides an in‑depth overview of TypeScript, covering its motivation over JavaScript, indexable types, the differences between interface and type, inheritance with extends, the keyof operator, generics, utility types such as Partial and Omit, type assertions, function overloads, and practical usage tips, all illustrated with clear code examples.

Advanced TypesTypeScriptUtility Types
0 likes · 19 min read
A Comprehensive Guide to TypeScript: Indexable Types, Interfaces vs Types, Generics, Utility Types, and More