Tagged articles
generic-methods
10 articles · Page 1 of 1

TonyBaiAug 26, 2026 · Backend Development
Go 1.27 introduces generic methods, struct‑literal key selectors, expanded function‑type inference, a complete rewrite of the JSON package with encoding/json/v2, native post‑quantum signature support, a GA goroutine‑leak detector, 30 % faster small‑object allocation, and numerous toolchain and ecosystem refinements that together reshape the language, standard library, runtime, and developer experience.
GoJSONToolchain
0 likes · 20 min read

The article examines Go’s ten‑year commitment to minimalism, explains why generic methods were previously rejected due to complexity and interface issues, details the precise design of Go 1.27’s struct‑only generic methods, and demonstrates with code how they eliminate redundancy while preserving performance.
GoGo 1.27code reuse
0 likes · 14 min read


TonyBaiJun 24, 2026 · Backend Development
The upcoming Go 1.27 release brings a suite of hard‑core upgrades—including the long‑awaited generic methods, deep struct‑literal field selectors, size‑specialized memory allocation, a production‑ready goroutine‑leak profiler, modernized toolchain commands, a new encoding/json/v2 package, built‑in UUID support, and post‑quantum cryptography—signaling a major leap for high‑performance, secure backend development.
GoGo 1.27Post-Quantum Cryptography
0 likes · 15 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


21CTOMar 7, 2026 · Fundamentals
The Go team has approved generic methods, overturning a long‑standing stance, while keeping full backward compatibility, sparking developer excitement, revealing lingering limitations with generic interfaces, and highlighting survey‑driven demand for additional language features such as enums and error handling.
GenericsProgramming Language Designgeneric-methods
0 likes · 5 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

This article explains why Java developers need generics, traces their introduction in Java 5, details their benefits, demonstrates type parameters, class and method generics, explores type erasure, bridge methods, variance, and the PECS rule for safe generic usage.
GenericsJavaPECS
0 likes · 12 min read

This article explains Java generics, covering type parameters, generic classes and interfaces, bounded types, wildcards, and generic methods, while highlighting benefits such as type safety, code reuse, readability, and performance, and provides multiple code examples demonstrating generic usage across different data types.
GenericsJavacode reuse
0 likes · 15 min read

This guide explains why IntelliJ IDEA often misreports Groovy syntax, shows the three ways to access object properties, demonstrates generic method definitions, and clarifies the behavior of the 'it' keyword in nested loops, providing concrete code examples and practical work‑arounds.
GroovyIDE errorsIntelliJ IDEA
0 likes · 6 min read

This article explains the importance of Java generics, demonstrates common pitfalls with raw collections, shows how generics provide compile‑time type safety, and covers generic classes, interfaces, wildcards, methods, bounds, and array usage with clear code examples.
GenericsJavacollections
0 likes · 21 min read
