Tagged articles
154 articles
Page 2 of 2
Tencent Cloud Developer
Tencent Cloud Developer
Nov 8, 2021 · Backend Development

Understanding Generics in Go: History, Concepts, and Practical Examples

The article surveys Go's generics—from their historical origins and the generic dilemma of balancing productivity, compile speed, and runtime performance—to practical implementation using type parameters, constraints, and the built‑in comparable interface, illustrating common patterns such as generic arithmetic, slices, maps, and utility functions.

ConstraintsGenericsGo
0 likes · 23 min read
Understanding Generics in Go: History, Concepts, and Practical Examples
Code Ape Tech Column
Code Ape Tech Column
Oct 26, 2021 · Fundamentals

Understanding Java Generics: Theory, Wildcards, and Practical Examples

This article provides a comprehensive guide to Java generics, covering compilation vs runtime, generic classes, interfaces, methods, wildcard types, bounded and unbounded usage, and practical code examples demonstrating how to design flexible, type‑safe collection utilities and apply generic constraints effectively.

CollectionsGenericsJava
0 likes · 20 min read
Understanding Java Generics: Theory, Wildcards, and Practical Examples
Java Backend Technology
Java Backend Technology
Oct 19, 2021 · Fundamentals

Master Java Generics: Understanding T, ?, extends, and super

This article explains Java generics introduced in JDK 5, covering type safety, the benefits of compile‑time checks, the roles of type parameters like T, E, K, V, the use of wildcards ?, extends, and super, and provides practical code examples illustrating their differences and proper usage.

GenericsJavaType Safety
0 likes · 11 min read
Master Java Generics: Understanding T, ?, extends, and super
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 12, 2021 · Fundamentals

10 Common Java Bugs and How to Avoid Them

This article lists ten typical Java programming mistakes—including array‑to‑ArrayList conversion errors, inefficient value checks, improper element removal in lists, misuse of Hashtable/HashMap, raw generic types, access‑level issues, and mutable versus immutable objects—explaining why they occur and providing correct code examples to prevent them.

CollectionsGenericsJava
0 likes · 12 min read
10 Common Java Bugs and How to Avoid Them
ByteDance ADFE Team
ByteDance ADFE Team
Jul 28, 2021 · Frontend Development

Why Use TypeScript? Benefits, Setup, and Type Definitions for React Development

This article explains the drawbacks of weakly‑typed JavaScript, outlines the advantages of adopting TypeScript, and provides practical guidance on configuring ESLint, Prettier, tsconfig, and React component typings—including hooks, event handling, and generic utilities—to improve code quality and developer productivity.

ESLintGenericsPrettier
0 likes · 14 min read
Why Use TypeScript? Benefits, Setup, and Type Definitions for React Development
Taobao Frontend Technology
Taobao Frontend Technology
Jul 22, 2021 · Frontend Development

Master TypeScript Type Programming: From Generics to Advanced Utility Types

This comprehensive guide walks you through TypeScript’s type programming landscape—starting with generics, exploring type guards, index and mapped types, conditional and infer keywords, then diving into powerful utility types, recursive transformations, template literal types, and key remapping—providing practical code examples to elevate your type‑safe development skills.

Conditional TypesGenericsUtility Types
0 likes · 43 min read
Master TypeScript Type Programming: From Generics to Advanced Utility Types
ByteFE
ByteFE
Jul 4, 2021 · Frontend Development

Achieving Fully Type‑Safe Form Paths with TypeScript 4.3 Template Literal Types

This article explains how the new Template Literal Types and Variadic Tuple Types introduced in TypeScript 4.3 enable developers to statically type every possible nested path of a form object, turning an unsafe change API into a fully type‑safe one through recursive generic utilities and tail‑recursion optimization.

GenericsRecursive TypesTypeScript
0 likes · 16 min read
Achieving Fully Type‑Safe Form Paths with TypeScript 4.3 Template Literal Types
Intelligent Backend & Architecture
Intelligent Backend & Architecture
May 25, 2021 · Fundamentals

Unlock Java Mastery: 52 Essential Tips from Effective Java

This article distills the core lessons from Effective Java, presenting 52 practical guidelines on coding style, object creation, generics, enums, concurrency, and serialization, complete with clear explanations and code examples to help Java developers write cleaner, safer, and more efficient programs.

Genericsbest-practiceseffective-java
0 likes · 87 min read
Unlock Java Mastery: 52 Essential Tips from Effective Java
Intelligent Backend & Architecture
Intelligent Backend & Architecture
May 24, 2021 · Fundamentals

Master Java Best Practices: 75 Essential Tips from Effective Java

This comprehensive guide distills the key lessons from Effective Java, covering static factories, builder patterns, singleton pitfalls, generics, enums, serialization, concurrency, and many other best‑practice recommendations, providing Java developers with actionable advice to write cleaner, safer, and more maintainable code.

Effective JavaGenericsbest practices
0 likes · 83 min read
Master Java Best Practices: 75 Essential Tips from Effective Java
ZhiKe AI
ZhiKe AI
May 8, 2021 · Fundamentals

A Reusable Java Utility for Building Tree Structures

This article shares a generic Java utility class that recursively constructs hierarchical tree structures from a flat list by using functional interfaces to identify parent‑child relationships, optionally sorting nodes, and providing a flexible way to set child collections.

CollectionsGenericsJava
0 likes · 4 min read
A Reusable Java Utility for Building Tree Structures
政采云技术
政采云技术
Jan 5, 2021 · Frontend Development

Writing High-Quality Maintainable Code: Awesome TypeScript

This article explains why TypeScript was created to overcome JavaScript's shortcomings, compares the two languages, and details essential TypeScript features such as static typing, enums, interfaces, classes, generics, type guards, and practical coding tips to help developers write clean, robust, and maintainable front‑end code.

GenericsTypeScriptstatic typing
0 likes · 16 min read
Writing High-Quality Maintainable Code: Awesome TypeScript
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 29, 2020 · Fundamentals

Understanding Java Syntactic Sugar: Generics, Autoboxing, Enums, Inner Classes, Varargs and More

This article explains the concept of syntactic sugar in Java, covering generics, autoboxing/unboxing, enums, inner classes, variable‑length arguments, enhanced for‑loops, switch on strings, conditional compilation, assertions, try‑with‑resources, and string concatenation, with code examples and byte‑code analysis.

AutoboxingEnumsGenerics
0 likes · 17 min read
Understanding Java Syntactic Sugar: Generics, Autoboxing, Enums, Inner Classes, Varargs and More
macrozheng
macrozheng
Dec 25, 2020 · Fundamentals

Unveiling Java’s Hidden Syntactic Sugar: From Generics to Try‑with‑Resources

This article explains the concept of syntactic sugar in Java, detailing how features such as generics, auto‑boxing/unboxing, enums, inner classes, var‑args, enhanced for loops, switch with strings, conditional compilation, assertions, try‑with‑resources, and string concatenation are implemented by the compiler and why they improve code readability and safety.

Code ExamplesGenericsJava
0 likes · 18 min read
Unveiling Java’s Hidden Syntactic Sugar: From Generics to Try‑with‑Resources
Programmer DD
Programmer DD
Dec 24, 2020 · Fundamentals

How to Retrieve Generic Types at Runtime with Gson’s TypeToken

This article explains Java's generic type erasure, why it exists, and demonstrates how to use Gson's TypeToken and reflection APIs to obtain actual generic type information at runtime, complete with code examples and a detailed walkthrough of the underlying mechanism.

GenericsGsonJava
0 likes · 7 min read
How to Retrieve Generic Types at Runtime with Gson’s TypeToken
FunTester
FunTester
Oct 21, 2020 · Backend Development

Using Java Generics to Simplify Multithreaded Task Design

This article explores how to apply Java generics in a multithreaded task framework, demonstrates refactoring a ThreadBase class, provides concrete code examples with RequestThreadTimes, and discusses the challenges and solutions for generic type constraints in inheritance hierarchies.

Design PatternsGenericsJava
0 likes · 6 min read
Using Java Generics to Simplify Multithreaded Task Design
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 PatternsGenerics
0 likes · 19 min read
When to Use Java Interfaces Instead of Abstract Classes? A Complete Guide
WeDoctor Frontend Technology
WeDoctor Frontend Technology
Aug 17, 2020 · Frontend Development

Master Advanced TypeScript: Boost Code Safety and Maintainability

This comprehensive guide explores advanced TypeScript concepts—including basic and advanced types, function signatures, type inference, compatibility, generics, modules, declaration files, and compilation options—to help developers write safer, more maintainable code in modern front‑end projects.

CompilationGenericsModules
0 likes · 30 min read
Master Advanced TypeScript: Boost Code Safety and Maintainability
vivo Internet Technology
vivo Internet Technology
Aug 5, 2020 · Mobile Development

An ORM Wrapper for Native SQLite in Android SDKs

The article presents Sponsor, a lightweight ORM‑style wrapper for Android’s native SQLite that uses runtime annotations and dynamic proxies to generate Retrofit‑like, type‑safe CRUD APIs, automatically handling table creation, upgrades, and threading while keeping performance overhead negligible for SDK developers.

AndroidDynamic ProxyGenerics
0 likes · 18 min read
An ORM Wrapper for Native SQLite in Android SDKs
Programmer DD
Programmer DD
May 17, 2020 · Fundamentals

Master Java Generics: Understanding Type Erasure and Wildcards

This article explains Java generics, covering basic usage, type erasure, wildcard bounds, and various generic declarations in classes, interfaces, methods, and multi‑type scenarios, illustrated with code examples and reflections on why generics improve type safety and reduce casting in real‑world projects.

GenericsJavaType Erasure
0 likes · 9 min read
Master Java Generics: Understanding Type Erasure and Wildcards
Amap Tech
Amap Tech
May 8, 2020 · Backend Development

Common Java Coding Pitfalls and How to Avoid Them

These seven Java coding pitfalls—from improper object comparison and ternary‑operator null handling to generic type mismatches, BeanUtils copying errors, missing equals/hashCode, and CGLIB proxy issues—are explained with bytecode insights and concrete avoidance strategies such as consistent types, proper generics, correct overrides, and avoiding final members.

GenericsJavaObject Comparison
0 likes · 26 min read
Common Java Coding Pitfalls and How to Avoid Them
Selected Java Interview Questions
Selected Java Interview Questions
Apr 30, 2020 · Fundamentals

Java Collections Framework Interview Questions and Answers

This article compiles a comprehensive set of Java Collections Framework interview questions, explaining its purpose, advantages, generic benefits, core interfaces, iterator behavior, fail‑fast vs fail‑safe, map views, differences among implementations, thread‑safety, and sorting mechanisms.

CollectionsData StructuresGenerics
0 likes · 18 min read
Java Collections Framework Interview Questions and Answers
21CTO
21CTO
Apr 23, 2020 · Backend Development

Avoid These Hidden Java Pitfalls: Object Comparison, Generics, and CGLIB Proxy Gotchas

This article reveals common Java pitfalls—from using Objects.equals versus ==, ternary operator type conversion, generic type mismatches, Set deduplication, BeanUtils property copying, to CGLIB proxy quirks—and provides concrete analysis and practical avoidance techniques for each case.

CollectionsGenericsJava
0 likes · 28 min read
Avoid These Hidden Java Pitfalls: Object Comparison, Generics, and CGLIB Proxy Gotchas
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.

GenericsInterfacesTypeScript
0 likes · 19 min read
A Comprehensive Guide to TypeScript: Indexable Types, Interfaces vs Types, Generics, Utility Types, and More
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Oct 11, 2019 · Frontend Development

From Skeptic to Fan: How TypeScript Won Me Over

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.

GenericsInterfacesJavaScript
0 likes · 31 min read
From Skeptic to Fan: How TypeScript Won Me Over
Java Captain
Java Captain
Mar 1, 2019 · Fundamentals

Introduction and Source Code Analysis of Java ArrayList

This article introduces Java's ArrayList as a dynamic array implementation, explains its non‑thread‑safe nature, details its constructors, capacity‑growth strategy, key methods such as ensureCapacity, add, remove, toArray, and examines the underlying source code including array copying utilities.

ArrayListCollectionsDataStructure
0 likes · 13 min read
Introduction and Source Code Analysis of Java ArrayList
Qunar Tech Salon
Qunar Tech Salon
Dec 19, 2018 · Backend Development

Eliminating Redundant TypeReference: A Deep Dive into Java Generic Type Capture

This article explores the limitations of Java generics, demonstrates how to remove repetitive TypeReference declarations by capturing generic type information via reflection, adds runtime validation for illegal generic types, and presents a comprehensive solution that handles Class, ParameterizedType, GenericArrayType, TypeVariable, and WildcardType.

BackendDesignPatternGenerics
0 likes · 9 min read
Eliminating Redundant TypeReference: A Deep Dive into Java Generic Type Capture
21CTO
21CTO
Nov 30, 2018 · Fundamentals

Go 2.0 Is Coming: Inside the New Proposal Evaluation Process

After five years of dormancy, Go 2.0 is finally arriving, and the Go team has unveiled a community‑driven proposal evaluation process that outlines how selected language and library changes—such as generics, error handling, Unicode identifiers, and binary literals—will be reviewed, implemented, and potentially released.

Error HandlingGenericsGo 2
0 likes · 9 min read
Go 2.0 Is Coming: Inside the New Proposal Evaluation Process
HomeTech
HomeTech
Nov 29, 2018 · Frontend Development

Using TypeScript with React: Types, Generics, and Best Practices

This article explains how to integrate TypeScript with React, covering type definitions, generic components, event handling, utility types, and best practices such as using declaration files, avoiding any, and leveraging TypeScript’s advanced type utilities to improve code safety and developer productivity.

GenericsReactTypeScript
0 likes · 17 min read
Using TypeScript with React: Types, Generics, and Best Practices
Meituan Technology Team
Meituan Technology Team
Nov 1, 2018 · Mobile Development

Understanding Swift Performance: Allocation, Reference Counting, and Dispatch

Swift performance hinges on allocation choices, ARC overhead, and method dispatch, so using stack‑allocated structs instead of heap‑allocated classes, applying final or private to force static dispatch, leveraging protocol‑oriented containers, specializing generics, and enabling whole‑module optimization together yield faster, more efficient iOS code.

DispatchGenericsMemory Management
0 likes · 26 min read
Understanding Swift Performance: Allocation, Reference Counting, and Dispatch
Java Captain
Java Captain
Oct 20, 2018 · Fundamentals

Summary of Java Fundamentals and Core Concepts

This article provides a comprehensive review of essential Java fundamentals, covering object‑oriented principles, primitive types, strings, final keyword, abstract classes and interfaces, class loading order, packages, exceptions, generics, reflection, enums, serialization, dynamic proxies, multithreading, I/O streams, network programming, and Java 8 features.

GenericsJavaOOP
0 likes · 19 min read
Summary of Java Fundamentals and Core Concepts
Java Captain
Java Captain
Jul 4, 2018 · Fundamentals

Understanding Java Generics: Type Erasure, Wildcards, and Common Pitfalls

This article explains Java generics as a type‑parameter mechanism that provides compile‑time safety, describes type erasure, generic classes, methods, interfaces, the three kinds of wildcards, reflection tricks that bypass erasure, and the practical limitations of generics.

GenericsJavaType Erasure
0 likes · 17 min read
Understanding Java Generics: Type Erasure, Wildcards, and Common Pitfalls
Java Captain
Java Captain
May 29, 2018 · Fundamentals

Understanding Java Generics: Concepts, Usage, and Practical Examples

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.

CollectionsGenericsJava
0 likes · 21 min read
Understanding Java Generics: Concepts, Usage, and Practical Examples
Liulishuo Tech Team
Liulishuo Tech Team
Apr 25, 2018 · Fundamentals

Mastering Swift 4.1: Recursive Associated Types and Type Erasers Explained

Swift 4.1 finally supports recursive constraints on associated types, allowing protocols like Sequence to define SubSequence in terms of itself; this article explains the new syntax, demonstrates a minimal DummySequence implementation, and shows how type‑erasing wrappers such as AnySequence and a custom AnyList enable heterogeneous collections.

Associated TypesGenericsSequence
0 likes · 8 min read
Mastering Swift 4.1: Recursive Associated Types and Type Erasers Explained
Java Captain
Java Captain
Nov 15, 2017 · Fundamentals

Understanding Java Generics: Basics, Wildcards, Bounds, and Type Erasure

This article introduces Java generics, covering generic classes and methods, wildcard usage with the PECS principle, bounded type parameters, and the implications of type erasure, illustrating each concept with code examples and discussing common pitfalls such as generic arrays, bridge methods, and runtime type checks.

GenericsPECSReflection
0 likes · 17 min read
Understanding Java Generics: Basics, Wildcards, Bounds, and Type Erasure
Hujiang Technology
Hujiang Technology
Aug 7, 2017 · Fundamentals

Kotlin Generics, Collections, and Operators – Chapter 6

This article explains Kotlin's generic type system, collection interfaces, variance with in/out keywords, collection initialization methods, and the extensive set of operators, providing code examples and implementation details to help developers master Kotlin's core language features.

CollectionsGenericsKotlin
0 likes · 8 min read
Kotlin Generics, Collections, and Operators – Chapter 6
Java Backend Technology
Java Backend Technology
Oct 12, 2016 · Backend Development

Java Compile-Time vs Runtime: Constant Folding, Overloading, Generics

This article explains key Java concepts such as compile‑time constant folding, the distinction between compile‑time and runtime calculations, method overloading versus overriding, generics type erasure, annotations, exception handling, and aspect‑oriented programming, while illustrating each topic with clear code examples.

Compile-timeGenericsJava
0 likes · 12 min read
Java Compile-Time vs Runtime: Constant Folding, Overloading, Generics
Qunar Tech Salon
Qunar Tech Salon
Sep 30, 2016 · Fundamentals

Understanding Java's Type Interface and Its Subinterfaces

This article explains the origin, purpose, and usage of the java.lang.reflect.Type interface and its subinterfaces—including ParameterizedType, TypeVariable, GenericArrayType, and WildcardType—detailing their methods, relationships with Class, and role in Java generics and reflection.

GenericsJavaParameterizedType
0 likes · 7 min read
Understanding Java's Type Interface and Its Subinterfaces
Qunar Tech Salon
Qunar Tech Salon
Feb 12, 2015 · Fundamentals

Understanding Java Generics: Motivation, Structure, and Usage

This article provides a comprehensive overview of Java generics, explaining their motivation, syntax, type‑safety benefits, class and method declarations, wildcard usage, and best‑practice principles such as PECS, while illustrating concepts with clear code examples.

CollectionsGenericsJava
0 likes · 12 min read
Understanding Java Generics: Motivation, Structure, and Usage