Tag

generics

1 views collected around this technical thread.

Java Captain
Java Captain
May 12, 2025 · Backend Development

Automatic Construction of MyBatis-Plus QueryWrapper Using Reflection and Generics

This article describes a utility method that leverages Java reflection and generics to automatically generate a MyBatis-Plus QueryWrapper from a DTO, handling field‑name mapping, type‑specific query conditions, and camel‑to‑snake case conversion for seamless database queries.

JavaMyBatis-PlusORM
0 likes · 4 min read
Automatic Construction of MyBatis-Plus QueryWrapper Using Reflection and Generics
Selected Java Interview Questions
Selected Java Interview Questions
May 12, 2025 · Fundamentals

Understanding Upper and Lower Bounds in Java Generics

This article explains Java generics' upper (extends) and lower (super) bounds, illustrating their usage with comprehensive code examples for generic classes, methods, and collections, and compares reading versus writing scenarios, helping developers write more flexible and type‑safe Java code.

JavaUpper Boundgenerics
0 likes · 12 min read
Understanding Upper and Lower Bounds in Java Generics
php中文网 Courses
php中文网 Courses
Apr 23, 2025 · Backend Development

Key New Features in PHP 9.0 and Their Impact on Modern Web Development

PHP 9.0 introduces a dramatically optimized JIT compiler, native generics and advanced type system, a stabilized fiber‑based async model, numerous developer‑experience enhancements, and strong backward‑compatibility tools, together delivering 15‑25% speed gains, lower memory usage, and better scalability for modern web applications.

AsyncJITPHP
0 likes · 7 min read
Key New Features in PHP 9.0 and Their Impact on Modern Web Development
Code Ape Tech Column
Code Ape Tech Column
Mar 24, 2025 · Backend Development

Optimizing Large-Scale Excel Import/Export in Java with EasyExcel, Generics, and Thread Pools

This article explains how to efficiently handle massive Excel import and export tasks in Java by using EasyExcel, Java 8 functional programming, reflection, generics, thread‑pool batching, and custom ReadListener implementations, while also providing Maven dependencies and reusable export utilities.

EasyExcelExcel importJava
0 likes · 10 min read
Optimizing Large-Scale Excel Import/Export in Java with EasyExcel, Generics, and Thread Pools
Code Mala Tang
Code Mala Tang
Mar 21, 2025 · Fundamentals

How Python 3.12 Simplifies Generics with New PEP‑695 Syntax

Python 3.12 introduces PEP‑695, a new generic syntax that streamlines type annotations by allowing direct use of type parameters without extra imports, enabling clearer, more concise code for functions and classes, and aligning Python’s typing capabilities with modern programming languages.

PEP-695PythonType Annotations
0 likes · 6 min read
How Python 3.12 Simplifies Generics with New PEP‑695 Syntax
php中文网 Courses
php中文网 Courses
Feb 17, 2025 · Frontend Development

Comprehensive TypeScript Course Outline: Basics to Advanced Topics

This course provides a concise yet thorough introduction to TypeScript, covering installation, VSCode setup, data types, enums, unions, type inference, classes, inheritance, generics, modules, and more, guiding learners step‑by‑step through foundational and advanced concepts for effective TypeScript development.

CourseTypeScriptclasses
0 likes · 2 min read
Comprehensive TypeScript Course Outline: Basics to Advanced Topics
Raymond Ops
Raymond Ops
Jan 29, 2025 · Backend Development

Why Go Generics Hurt Performance: A Deep Dive into gcshape and Type Parameters

After a year of using Go's generics in production and open‑source projects, this article reveals the hidden performance penalties, pointer handling quirks, and best‑practice recommendations caused by the gcshape implementation and type‑parameter semantics.

best practicesgcshapegenerics
0 likes · 17 min read
Why Go Generics Hurt Performance: A Deep Dive into gcshape and Type Parameters
IT Services Circle
IT Services Circle
Jan 1, 2025 · Backend Development

Go 1.24 Introduces Generic Type Alias Support

The article explains how Go 1.24 finally enables type aliases to have their own generic type parameters, provides background on the previous limitation, demonstrates usage with concrete code examples, and notes the experimental flag required in Go 1.23.

Go1.24backend developmentgenerics
0 likes · 5 min read
Go 1.24 Introduces Generic Type Alias Support
Architecture Digest
Architecture Digest
Dec 2, 2024 · Backend Development

Refactoring Data Validation with Java 8 Functional Interfaces

This article demonstrates how Java 8's functional interfaces and lambda expressions can be used to abstract and reuse data validation logic, reducing repetitive code and improving readability and maintainability in backend services.

Functional ProgrammingJavaMyBatis-Plus
0 likes · 12 min read
Refactoring Data Validation with Java 8 Functional Interfaces
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 16, 2024 · Frontend Development

Resolving TypeScript Generic Component Props Type Mismatch and Discriminated Union Issues

This article discusses a TypeScript typing problem where a generic component array fails to produce type errors for mismatched props, explains why the compiler reports missing properties from unrelated unions, and presents several refined type definitions that correctly enforce prop validation for Input and Select components.

Component PropsDiscriminated UnionTypeScript
0 likes · 9 min read
Resolving TypeScript Generic Component Props Type Mismatch and Discriminated Union Issues
DaTaobao Tech
DaTaobao Tech
Nov 6, 2024 · Fundamentals

Understanding Java Generics: Origins, Features, and the PECS Principle

Java generics, introduced in Java 5 to replace unsafe Object usage, provide compile‑time type safety, clearer code, and eliminate unchecked casts by allowing type‑parameterized classes, methods, and collections, while type erasure and bridge methods preserve backward compatibility, and the PECS rule (producer extends consumer super) guides safe use of wildcards through covariance and contravariance.

JavaPECSType Erasure
0 likes · 11 min read
Understanding Java Generics: Origins, Features, and the PECS Principle
Architecture Digest
Architecture Digest
Aug 30, 2024 · Fundamentals

MoonBit: A Next‑Generation Cloud‑Native Programming Language with Modern Generics, Precise Error Handling, and Efficient Iterators

MoonBit is a Chinese‑developed, Rust‑like programming language that offers zero‑cost generics, compile‑time precise error handling, and high‑performance iterators, delivering dramatically faster compilation and smaller WebAssembly binaries for cloud and edge computing workloads.

IteratorsMoonBitWebAssembly
0 likes · 7 min read
MoonBit: A Next‑Generation Cloud‑Native Programming Language with Modern Generics, Precise Error Handling, and Efficient Iterators
Code Mala Tang
Code Mala Tang
Jul 10, 2024 · Frontend Development

Master TypeScript: Practical Tips, Advanced Types, and Real-World Projects

This comprehensive guide walks you through initializing a TypeScript project, explains core and advanced type features, shows how to integrate third‑party libraries, and provides real‑world examples for React and Node.js, while offering best‑practice tips to boost code quality and performance.

Node.jsReactTypeScript
0 likes · 11 min read
Master TypeScript: Practical Tips, Advanced Types, and Real-World Projects
Java Tech Enthusiast
Java Tech Enthusiast
Jun 25, 2024 · Fundamentals

Critique of Go 1.23 Iterators and Their Impact on Language Complexity

Aliaksandr Valialkin criticizes Go 1.23’s new iterator feature, arguing it adds hidden control‑flow, memory overhead and readability challenges to an already minimalist language, and warns that such complexity undermines Go’s goals of simplicity, productivity, and performance.

Iteratorscomplexitygenerics
0 likes · 9 min read
Critique of Go 1.23 Iterators and Their Impact on Language Complexity
IT Services Circle
IT Services Circle
Jun 15, 2024 · Fundamentals

Understanding Java Generics: Type Erasure, Bridge Methods, and Practical Examples

This article explains Java generics, covering their syntax, type parameters, benefits such as compile‑time type safety and code reuse, demonstrates bounded and unbounded type erasure, and illustrates the need for bridge methods with detailed code examples.

JavaJava CollectionsType Erasure
0 likes · 12 min read
Understanding Java Generics: Type Erasure, Bridge Methods, and Practical Examples
DaTaobao Tech
DaTaobao Tech
May 8, 2024 · Fundamentals

Comprehensive Overview of Java Fundamentals

This article surveys Java fundamentals, explaining OOP principles, differences from C++, polymorphism, static/final keywords, abstract classes versus interfaces, generics with type erasure, reflection, exception handling, core data structures, HashMap internals, serialization, key design patterns, and essential language constructs for developers.

Data StructuresException HandlingHashMap
0 likes · 16 min read
Comprehensive Overview of Java Fundamentals
Java Captain
Java Captain
Mar 14, 2024 · Fundamentals

Understanding Java Generics: Concepts, Principles, Applications, and Benefits

This article explains Java generics, covering their basic concepts, type‑erasure implementation, common use cases such as collections, generic methods and classes, and the resulting improvements in type safety, readability, and code reusability.

Javacollectionsgenerics
0 likes · 4 min read
Understanding Java Generics: Concepts, Principles, Applications, and Benefits
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Mar 1, 2024 · Frontend Development

Understanding TypeScript Type Inference in Zustand and Custom React Hooks

This article explores how TypeScript’s type inference works in the Zustand state‑management library, demonstrates practical examples such as automatic value inference, function return inference, generic‑based inference, and builds custom utilities like a pick method and a reusable useRequest hook, while also delving into middleware typing and advanced type‑level tricks.

HooksReactTypeScript
0 likes · 15 min read
Understanding TypeScript Type Inference in Zustand and Custom React Hooks
Java Captain
Java Captain
Jan 31, 2024 · Fundamentals

Java Annotations and Reflection: Built‑in Annotations, Meta‑annotations, Custom Annotations, Class Loading, and Reflection API

This article provides a comprehensive overview of Java annotations—including built‑in, meta‑ and custom annotations—explains how they are used with reflection, describes class loading and ClassLoader mechanisms, and demonstrates how to obtain generic and annotation information at runtime using the Reflection API.

AnnotationsClassLoaderJava
0 likes · 19 min read
Java Annotations and Reflection: Built‑in Annotations, Meta‑annotations, Custom Annotations, Class Loading, and Reflection API
FunTester
FunTester
Dec 17, 2023 · Fundamentals

Understanding Java Generics: Concepts, Benefits, and Practical Examples

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.

Generic MethodsJavaWildcard
0 likes · 15 min read
Understanding Java Generics: Concepts, Benefits, and Practical Examples