CodeNotes
Author

CodeNotes

Discuss code and AI, and document daily life and personal growth.

51
Articles
0
Likes
212
Views
0
Comments
Recent Articles

Latest from CodeNotes

51 recent articles
CodeNotes
CodeNotes
May 23, 2026 · Artificial Intelligence

AI Era Arrives: What Everyone Should Know

The article introduces the AI era for laypeople, defines artificial intelligence and generative AI, highlights ChatGPT’s 2022 launch and rapid adoption, lists current AI capabilities across text, image, video, code and voice, explains the three drivers—compute, data, and Transformer architecture, and advises a balanced, learning‑oriented mindset.

AI capabilitiesArtificial IntelligenceChatGPT
0 likes · 6 min read
AI Era Arrives: What Everyone Should Know
CodeNotes
CodeNotes
May 22, 2026 · Frontend Development

Mastering ahooks: Practical Tips and Full Guide for React Developers

This article provides a comprehensive, step‑by‑step guide to using Alibaba's ahooks library with React 18, covering installation, core hooks like useRequest, usePagination, state management hooks, side‑effect utilities, performance optimizations, real‑world examples, common pitfalls and best‑practice recommendations.

React HooksState ManagementTypeScript
0 likes · 23 min read
Mastering ahooks: Practical Tips and Full Guide for React Developers
CodeNotes
CodeNotes
May 20, 2026 · Frontend Development

Master CSS Basics: Write Your First Stylesheet (Part 1)

This tutorial walks beginners through CSS fundamentals, covering what CSS is, how to include styles, basic syntax, selector types, cascade and specificity, the box model, units, background, borders, display, positioning, overflow, and a complete card component example, with practical tips for each topic.

Box ModelCSSLayout
0 likes · 23 min read
Master CSS Basics: Write Your First Stylesheet (Part 1)
CodeNotes
CodeNotes
May 17, 2026 · Frontend Development

Modern CSS Development Techniques: Ditch JS, Embrace Pure CSS Possibilities

This article provides a comprehensive guide to modern CSS techniques—including custom properties, native nesting, logical properties, container queries, the :has() selector, dark‑mode theming, pure‑CSS accordions, dialogs, tabs, tooltips, scroll‑driven animations, parallax, sticky elements, advanced Grid layouts, Subgrid, @layer, @scope, color‑mix, math functions, carousels, lazy‑load placeholders, form validation, theme toggles, and performance optimizations—showing how to replace JavaScript‑heavy interactions with pure CSS solutions.

CSSDark Modecontainer-queries
0 likes · 34 min read
Modern CSS Development Techniques: Ditch JS, Embrace Pure CSS Possibilities
CodeNotes
CodeNotes
May 5, 2026 · Frontend Development

Common React Hook Anti‑Patterns That Trip Up 80% of Teams

The article examines why many React projects become unstable due to misuse of hooks, presenting seven frequent anti‑patterns with concrete bad and good code examples, explaining the underlying problems, and offering practical guidelines and a checklist to write reliable Hook‑based effects.

Anti-PatternReactfrontend
0 likes · 14 min read
Common React Hook Anti‑Patterns That Trip Up 80% of Teams
CodeNotes
CodeNotes
May 4, 2026 · Artificial Intelligence

What Is a Token? The Key to Understanding AI’s Billing Unit

This article explains what a token is, how it differs from characters or words, its role in AI model costs, speed, context limits, and quality, and offers practical tips for managing tokens through context engineering to control expenses and improve performance.

AITokencontext window
0 likes · 11 min read
What Is a Token? The Key to Understanding AI’s Billing Unit
CodeNotes
CodeNotes
May 4, 2026 · Backend Development

Mastering ThreadLocal in Java: Core Principles, Real‑World Scenarios & Best Practices

This article explains how ThreadLocal provides per‑thread variable copies in Java web applications, details its internal storage in Thread objects, showcases ten practical scenarios—from request tracing to async tasks—and highlights common pitfalls such as memory leaks and thread‑pool data contamination, offering concrete best‑practice recommendations.

JavaMemoryLeakSpring
0 likes · 23 min read
Mastering ThreadLocal in Java: Core Principles, Real‑World Scenarios & Best Practices
CodeNotes
CodeNotes
May 2, 2026 · Frontend Development

Mastering React useEffect: The Complete Guide to Avoid Common Pitfalls

This guide explains what useEffect does, its three core execution rules, how dependency arrays change its behavior, eight practical scenarios, six typical pitfalls with concrete code examples, and best‑practice recommendations for writing clean, leak‑free React functional components.

JavaScriptReactfrontend
0 likes · 10 min read
Mastering React useEffect: The Complete Guide to Avoid Common Pitfalls