Tagged articles
interfaces
34 articles · Page 1 of 1
The article dissects spf13’s go‑skills repository, exposing how Java‑style project layouts, layered packages, heavy frameworks and misuse of generics clash with Go’s philosophy, and presents concrete, Go‑centric guidelines for package organization, interfaces, error handling, concurrency, testing, standard‑library usage, CLI design, and a pre‑code review checklist.
ConcurrencyGocli
0 likes · 27 min read

The article recounts a developer’s struggle with missing generic methods in Go, explains the language team’s proposal to allow type‑parameterized methods while forbidding their use in interfaces, illustrates the feature with practical code examples, and discusses the remaining trade‑offs such as lack of reflection support.
GenericsGoReflection
0 likes · 13 min read

The article explains Go's static typing, shows how interface types are method sets—including the empty interface—demonstrates type assertions, and walks through using the reflect package to inspect and modify values, highlighting settable constraints and struct field updates.
GoReflectionempty interface
0 likes · 15 min read

This article systematically explores Go's most confusing features—including pointer semantics, defer execution order, lightweight object‑oriented patterns via struct embedding, interface‑based polymorphism, and the empty interface with type assertions—through over twenty runnable code snippets that reveal the underlying design principles.
GoPolymorphismdefer
0 likes · 17 min read

This article explains Go's function syntax, closures, method definitions on structs, interface mechanics, and provides a concise overview of essential Go commands such as build, install, get, doc, test, list, and fix, illustrated with code examples and output results.
GoGo commandsclosures
0 likes · 11 min read

The article explains Go's core language constructs—functions (including parameter rules, multiple return values, named returns, and closures), methods on structs, and interfaces—illustrated with code examples, and then introduces common Go command‑line tools such as go build, install, get, doc, test, list and fix.
Goclosurescommand-line-tools
0 likes · 11 min read

This article walks through Go’s approach to object‑oriented design using a pet‑clinic example, covering struct definitions, pointer vs. value receivers, interface contracts, and a practical payment‑gateway demo, while illustrating memory behavior and the language’s duck‑typing philosophy.
Backendinterfacesmethods
0 likes · 6 min read

Four years after Go introduced generics, the language’s core team has proposed adding generic methods, a change that resolves the long‑standing asymmetry between generic functions and types, improves API fluency, and reshapes code organization while preserving backward compatibility, though interface support remains limited.
API DesignGenericsGo
0 likes · 12 min read

The article explains how Java inner classes can be used to encapsulate related functionality, access private members of the outer class, implement interfaces for callbacks, and hide implementation details, providing clear code examples such as Car/Engine, Counter/Incrementer, Button listeners, and a Calculator with an Operation inner class.
EncapsulationInner ClassesJava
0 likes · 4 min read

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

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.
OOPPHPPolymorphism
0 likes · 9 min read

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.
Reflectioninterfacesprogramming
0 likes · 13 min read

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 Layerbackend architecturedependency-injection
0 likes · 11 min read

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.
Gobackend developmentfunction types
0 likes · 9 min read


21CTOMay 19, 2024 · Fundamentals
This article explores the power of abstraction in software design, explaining its hierarchical levels, the role of interfaces, and practical questions to ask when modeling real‑world problems, guiding developers to create more maintainable, scalable, and communicative systems.
SOLIDabstractioninterfaces
0 likes · 7 min read

This article explains Go's static type system, introduces custom types and interface definitions, demonstrates how interfaces store concrete values, and shows how the reflect package can inspect and modify values, covering empty interfaces, type assertions, and mutable reflect values with practical code examples.
Reflectionempty interfaceinterfaces
0 likes · 14 min read

This article explains Go's function syntax, parameter rules, multiple return values, closures, method definitions with value and pointer receivers, and interface implementation, providing clear code examples and output illustrations to help developers deepen their backend programming skills.
Backendclosuresfunctions
0 likes · 10 min read

This article explains Go's static type system, how types and interfaces work, the role of the empty interface, and demonstrates using the reflect package to inspect and modify values, including structs, with practical code examples and type assertions.
GoReflectionStruct
0 likes · 15 min read

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.
InheritancePHPabstraction
0 likes · 5 min read

This article explores Go's unique implicit interface implementation, detailing its advantages, challenges, and how it shapes software design and development practices by promoting simplicity, flexibility, and efficient code reuse.
Goimplicit implementationinterfaces
0 likes · 5 min read

This article explores Go interfaces, explaining how they enable polymorphism, reduce coupling, and support extensibility through clear examples and real‑world scenarios such as API design, testing, plugins, and dependency injection.
DecouplingExtensibilityPolymorphism
0 likes · 8 min read

This article presents fourteen practical guidelines for designing Go interfaces, covering small interfaces, avoiding type switches, using interfaces for mocking, composition, proper abstraction levels, avoiding empty interfaces, cautious type assertions, full implementation, behavior declaration, and other pitfalls to write robust backend code.
interfacessoftware design
0 likes · 5 min read

This article provides a comprehensive, beginner‑friendly walkthrough of Go language fundamentals, covering variable and constant declarations, zero values, functions with multiple returns and variadic parameters, struct‑based OOP, non‑intrusive interfaces, slices, maps, goroutines, channels, and the simple error‑handling model with defer, panic, and recover.
ConcurrencyGobasics
0 likes · 24 min read

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.
ClassesGenericsTutorial
0 likes · 93 min read

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.
JavaLayered Architectureinterfaces
0 likes · 5 min read

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++InheritanceJava
0 likes · 7 min read

This article explains what a Java interface really is, how it serves as a communication protocol between modules, and demonstrates the concepts with a complete computer‑assembly example, covering interface definitions, implementations, default methods, static methods, and conflict‑resolution rules introduced in Java 8.
Default MethodsJavaJava 8
0 likes · 15 min read

This article explains what Java interfaces are, how they act as contracts between modules, and demonstrates their use with concrete examples—including hardware analogies, default and static methods, conflict resolution rules, and practical code snippets for building a modular computer simulation.
Default MethodsJavainterfaces
0 likes · 15 min read

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.
Frontend DevelopmentTypeScriptenums
0 likes · 12 min read

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.
TypeScriptenumsfunctions
0 likes · 11 min read

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.
GenericsTypeScriptUtility Types
0 likes · 19 min read

This article explains how Go avoids traditional class inheritance by using implicit interfaces and composition, demonstrates the Template Method pattern in Go, explores orthogonal design principles, details Go Modules versioning and migration from GOPATH/vendor, and reviews Go's concurrency models including goroutine, channel and context.
CompositionContextGo
0 likes · 53 min read

This comprehensive guide explains why TypeScript has surpassed JavaScript in popularity, introduces its core concepts, basic and advanced types, generics, interfaces, classes, and modules, and provides step‑by‑step instructions for integrating TypeScript into both frontend and Node.js projects.
GenericsJavaScriptTutorial
0 likes · 31 min read

This article introduces TypeScript as a Microsoft‑created superset of JavaScript that adds static typing, explains its type‑system fundamentals, compares it with lint tools, showcases practical code examples—including interfaces, implementations, and function overloads—and demonstrates how static analysis can catch bugs early and improve documentation for both front‑end and Node.js projects.
JavaScriptTypeScriptinterfaces
0 likes · 14 min read
