IT Niuke
Author

IT Niuke

Focused on IT technology sharing, original and innovative content. IT Niuke, we grow together.

37
Articles
0
Likes
21
Views
0
Comments
Recent Articles

Latest from IT Niuke

37 recent articles
IT Niuke
IT Niuke
Jan 2, 2024 · Fundamentals

How to Use the Chain of Responsibility Pattern for Real‑World Data Filtering

This article explains the Chain of Responsibility design pattern, defines its three core roles, compares external and internal composition, demonstrates a lead‑filtering use case with Java and Spring code, and discusses benefits, drawbacks, and differences from the Strategy pattern.

Chain of ResponsibilityDependency InjectionDesign Patterns
0 likes · 9 min read
How to Use the Chain of Responsibility Pattern for Real‑World Data Filtering
IT Niuke
IT Niuke
Jan 2, 2024 · Fundamentals

How the Flyweight Pattern Cuts Memory Use in Real‑World Java Services

The article explains the Flyweight design pattern, shows how a surge of 30 KB country objects caused memory pressure in a marketing service, and demonstrates a Java implementation with Flyweight, FlyweightFactory, and related code, while comparing it to Singleton and caching approaches.

CachingDesign PatternsFlyweight
0 likes · 8 min read
How the Flyweight Pattern Cuts Memory Use in Real‑World Java Services
IT Niuke
IT Niuke
Dec 31, 2023 · Fundamentals

Still Using Git Merge? Why You Should Consider Rebase

The article explains how Git merge and rebase work in typical development workflows, compares their effects on commit history, shows when each command is appropriate, warns against rebasing public branches, and offers practical naming conventions for parallel version development.

GitVersion Controlbranch management
0 likes · 7 min read
Still Using Git Merge? Why You Should Consider Rebase
IT Niuke
IT Niuke
Dec 31, 2023 · Databases

How to Optimize MyBatis-Plus Batch Insert Performance

This article explains why MyBatis-Plus saveBatch does not perform true batch inserts, shows how to enable JDBC rewriteBatchedStatements, creates a custom SQL injector with InsertBatchSomeColumn, implements batch splitting in a service layer, and presents benchmark results that demonstrate a several‑second speedup for inserting tens of thousands of rows.

Batch InsertJavaMyBatis-Plus
0 likes · 11 min read
How to Optimize MyBatis-Plus Batch Insert Performance
IT Niuke
IT Niuke
Dec 30, 2023 · Operations

Mastering tcpdump: A Complete Guide to Command‑Line Packet Capture

This article provides a thorough walkthrough of tcpdump, covering installation on Ubuntu, essential command‑line options, practical filtering techniques, logical expressions, examples for saving and reading capture files, and how to combine tcpdump with Wireshark for deeper packet analysis.

command-linelibpcaplinux
0 likes · 24 min read
Mastering tcpdump: A Complete Guide to Command‑Line Packet Capture
IT Niuke
IT Niuke
Dec 27, 2023 · Mobile Development

Is Building a WeChat Mini‑Program Store Hard? Key Entry Points After Launch

The article examines how companies like Jiumu Wang and Xikadegao use training and Tencent Cloud to boost performance, outlines three development approaches for a WeChat mini‑program store, and details the various user entry points such as search, nearby listings, QR codes, and third‑party platform features.

App DevelopmentMobile DevelopmentTencent Cloud
0 likes · 6 min read
Is Building a WeChat Mini‑Program Store Hard? Key Entry Points After Launch
IT Niuke
IT Niuke
Dec 25, 2023 · Backend Development

Master MyBatis-Plus: From Basics to Advanced Features

This article introduces MyBatis-Plus, an enhancement layer for MyBatis, and walks through its core features—non‑intrusive CRUD, Lambda queries, primary‑key strategies, automatic field filling, optimistic locking, pagination, logical delete, performance analysis, condition builders, and a code generator—providing complete code examples and configuration steps for Spring Boot integration.

CRUDJavaMyBatis-Plus
0 likes · 17 min read
Master MyBatis-Plus: From Basics to Advanced Features
IT Niuke
IT Niuke
Dec 24, 2023 · Fundamentals

Eliminate NullPointerExceptions with Java Optional: Detailed Code Examples

This article demonstrates how to use Java's Optional class—through concrete examples of ofNullable, map, filter, and orElse—to safely handle potentially null objects and collections, thereby preventing NullPointerExceptions in production code.

JavaNullPointerExceptionOptional
0 likes · 5 min read
Eliminate NullPointerExceptions with Java Optional: Detailed Code Examples
IT Niuke
IT Niuke
Dec 24, 2023 · Fundamentals

Unveiling HashMap's Inner Mechanics: Design, Source Code Walkthrough, and Best Practices

This article dissects Java's HashMap by first explaining the collection framework's design goals—generality, scalability, performance, interoperability, readability, and thread safety—then walks through the core source code of HashMap (hash, put, resize, get, remove, treeify, etc.), illustrates LRU cache implementation, and finally offers practical usage tips, performance considerations, and version‑specific changes up to JDK 9.

Data StructuresHashMapJDK
0 likes · 28 min read
Unveiling HashMap's Inner Mechanics: Design, Source Code Walkthrough, and Best Practices