Tagged articles

best practices

1326 articles · Page 3 of 14
JavaScript
JavaScript
Oct 11, 2025 · Frontend Development

When to Use Arrow Functions vs Traditional Functions in JavaScript

This article explains the fundamental differences between arrow functions and traditional functions in JavaScript, outlines five common scenarios where using a regular function is required, and provides clear code examples to help developers choose the right syntax for reliable code.

Arrow FunctionsJavaScriptbest practices
0 likes · 8 min read
When to Use Arrow Functions vs Traditional Functions in JavaScript
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 4, 2025 · Backend Development

8 Essential Defensive Programming Patterns for Spring Boot 3

This article explains why defensive programming is crucial for production‑grade Spring Boot 3 applications and presents eight concrete patterns—ranging from Optional‑based NPE safety and collection handling to configuration validation, async management, transaction control, testing, exception handling, circuit‑breaker integration, and reactive programming—each illustrated with real‑world code examples and best‑practice recommendations.

Spring Bootbackend developmentbest practices
0 likes · 15 min read
8 Essential Defensive Programming Patterns for Spring Boot 3
Ma Wei Says
Ma Wei Says
Oct 2, 2025 · Databases

Essential Redis Best Practices: Keys, Memory, Security, and Performance

This guide outlines practical Redis best‑practice rules covering key naming conventions, data‑size limits, expiration strategies, script and transaction usage, client connection handling, and security measures to help you build fast, stable, and secure production systems.

Key DesignMemory ManagementRedis
0 likes · 9 min read
Essential Redis Best Practices: Keys, Memory, Security, and Performance
Code Mala Tang
Code Mala Tang
Oct 1, 2025 · Fundamentals

Master Python’s LEGB Rule: Scope Secrets for Faster, Safer Code

This article explains Python’s LEGB rule—Local, Enclosing, Global, Built‑in scopes—detailing each namespace with clear code examples, demonstrating name resolution order, performance impacts, and practical best‑practice tips such as minimizing globals, using nested scopes, and avoiding built‑in overrides.

LEGBNamespaceScope
0 likes · 12 min read
Master Python’s LEGB Rule: Scope Secrets for Faster, Safer Code
Code Mala Tang
Code Mala Tang
Sep 29, 2025 · Fundamentals

Why Python’s Import System Is Fundamentally Flawed—and How to Survive

The article critiques Python’s import mechanism, exposing issues like circular imports, ambiguous absolute vs. relative imports, sys.path pitfalls, and performance costs, then compares other languages and offers practical strategies to mitigate these systemic problems.

Import SystemModule Pathbest practices
0 likes · 12 min read
Why Python’s Import System Is Fundamentally Flawed—and How to Survive
21CTO
21CTO
Sep 26, 2025 · Fundamentals

API vs SDK: When to Use Each and Why It Matters for Developers

This guide explains the core differences between APIs and SDKs, outlines typical use cases, compares popular API styles like REST, GraphQL, and gRPC, and demonstrates how SDKs simplify integration with practical code examples and best‑practice recommendations for building robust software interfaces.

APIIntegrationSDK
0 likes · 14 min read
API vs SDK: When to Use Each and Why It Matters for Developers
Tencent Technical Engineering
Tencent Technical Engineering
Sep 26, 2025 · Fundamentals

10 Hidden C++ Performance Traps Every Developer Must Avoid

This article reveals ten common C++ performance pitfalls—from costly abstractions and virtual functions to hidden copies, destructors, and misuse of smart pointers—while also showcasing practical language features and optimization techniques that can dramatically improve runtime efficiency in production code.

C++Optimizationbest practices
0 likes · 28 min read
10 Hidden C++ Performance Traps Every Developer Must Avoid
Python Crawling & Data Mining
Python Crawling & Data Mining
Sep 26, 2025 · Fundamentals

Why Python Type Annotations Are Your Code’s Safety Net (And How to Use Them)

This comprehensive guide explains why Python type annotations act like a safety net for your code, covering their benefits, basic and advanced syntax, static analysis with mypy, IDE integration, best‑practice strategies, and how to adopt them in existing projects for improved reliability and collaboration.

IDE integrationPythonbest practices
0 likes · 15 min read
Why Python Type Annotations Are Your Code’s Safety Net (And How to Use Them)
Wuming AI
Wuming AI
Sep 26, 2025 · Industry Insights

Why Employees Resist AI at Work: Lessons from a Podcast with Zhou Hongyi

The article analyzes why many workers reject AI adoption, examining technological maturity limits, lack of best‑practice guidance, human‑nature learning barriers, and misaligned incentives, while illustrating points with real‑world examples and personal observations from a podcast discussion.

AI adoptionAI integrationIndustry Insights
0 likes · 7 min read
Why Employees Resist AI at Work: Lessons from a Podcast with Zhou Hongyi
DeWu Technology
DeWu Technology
Sep 24, 2025 · Backend Development

Master Java Thread Pools: Deep Dive into JDK ThreadPoolExecutor Architecture

This article explains why thread pools are essential for performance, explores the JDK ThreadPoolExecutor’s internal architecture, parameters, lifecycle states, common pitfalls, and provides practical best‑practice guidelines—including handling invokeAll timeouts, submit exceptions, rejection policies, and pool isolation techniques—to help developers use thread pools safely and efficiently.

Thread PoolThreadPoolExecutorbest practices
0 likes · 38 min read
Master Java Thread Pools: Deep Dive into JDK ThreadPoolExecutor Architecture
Liangxu Linux
Liangxu Linux
Sep 23, 2025 · Fundamentals

15 Hidden C Language Traps Every Developer Must Avoid

Discover the 15 most common C programming pitfalls—from operator precedence and case sensitivity to pointer misuse and multithreading errors—each illustrated with code examples and practical solutions to help you write safer, more reliable C code.

C++Common pitfallsDebugging
0 likes · 13 min read
15 Hidden C Language Traps Every Developer Must Avoid
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 22, 2025 · Databases

Master Database Table Naming: Clear, Consistent, and Meaningful Designs

This guide explains how to design clear and maintainable database schemas by using meaningful prefixes, full English names, consistent suffixes for booleans, timestamps, and foreign keys, and by applying best‑practice naming conventions, redundancy strategies, and relationship modeling to improve readability and performance.

Database DesignSQLbest practices
0 likes · 14 min read
Master Database Table Naming: Clear, Consistent, and Meaningful Designs
Python Crawling & Data Mining
Python Crawling & Data Mining
Sep 17, 2025 · Fundamentals

Unlock Massive Memory Savings in Python with __slots__: A Complete Guide

This article explains how Python's default class memory overhead can be dramatically reduced using the __slots__ magic attribute, providing detailed code examples, memory and speed benchmarks, practical use cases, limitations, and best‑practice recommendations for developers who need high‑performance, memory‑efficient objects.

Memory OptimizationPython__slots__
0 likes · 12 min read
Unlock Massive Memory Savings in Python with __slots__: A Complete Guide
Python Programming Learning Circle
Python Programming Learning Circle
Sep 13, 2025 · Fundamentals

30 Essential Python Tricks Every Developer Should Know

This article compiles thirty practical Python tips and best‑practice snippets—ranging from version checks, IPython shortcuts, list comprehensions, memory profiling, data classes, swapping variables, dictionary merging, string manipulation, emoji handling, image display, map usage, set operations, counters, chained comparisons, terminal colors, date parsing, integer division nuances, to character‑set detection—each illustrated with clear code examples for immediate use.

Pythonbest practicesprogramming
0 likes · 19 min read
30 Essential Python Tricks Every Developer Should Know
Code Wrench
Code Wrench
Sep 11, 2025 · Fundamentals

Mastering Go Reflection: Principles, Pitfalls, and a Practical DI Container

This article thoroughly explains Go's reflection mechanism, showcases typical scenarios such as function calls, ORM mapping, and dependency injection, highlights common pitfalls and performance concerns, and provides optimization tips along with a concrete lightweight DI container example.

GoORMbest practices
0 likes · 6 min read
Mastering Go Reflection: Principles, Pitfalls, and a Practical DI Container
Code Wrench
Code Wrench
Sep 9, 2025 · Fundamentals

Master Go Pointers: Best Practices, Performance Tips, and Code Review Checklist

This guide explains why Go pointers matter, covers their definition, memory model, and safe usage, provides practical best‑practice checklists, performance comparisons, and code examples—including handling large structs, optional fields, and complex data structures—while highlighting scenarios where pointers should be avoided.

Code ReviewGobest practices
0 likes · 8 min read
Master Go Pointers: Best Practices, Performance Tips, and Code Review Checklist
IT Services Circle
IT Services Circle
Sep 7, 2025 · Fundamentals

Should try‑catch Be Inside or Outside a Loop? Pros, Cons & When to Use

This article examines the trade‑offs of placing try‑catch blocks inside versus outside loops in Java, illustrating each approach with code snippets, discussing efficiency impacts, referencing Alibaba’s Java Development Manual, and outlining scenarios where each placement is appropriate.

Exception Handlingbest practicesjava
0 likes · 4 min read
Should try‑catch Be Inside or Outside a Loop? Pros, Cons & When to Use
IT Architects Alliance
IT Architects Alliance
Sep 4, 2025 · Fundamentals

How to Spot “Toxic” Frameworks and Avoid Costly Tech Missteps

This article reveals the hidden pitfalls of popular frameworks, explains why over‑hyped promises often lead to massive redesign costs, and provides a practical evaluation matrix and best‑practice checklist to help teams choose stable, maintainable technologies for long‑term project success.

best practicesframework evaluationsoftware architecture
0 likes · 10 min read
How to Spot “Toxic” Frameworks and Avoid Costly Tech Missteps
php Courses
php Courses
Sep 4, 2025 · Fundamentals

Master C++11 Range-Based For Loops: Syntax, Benefits, and Best Practices

This article explains C++11's range‑based for loop, covering its concise syntax, advantages over traditional loops, how to modify elements with references, supported container types, the compiler's transformation, and practical best‑practice recommendations for safe and efficient iteration.

C++C++11best practices
0 likes · 7 min read
Master C++11 Range-Based For Loops: Syntax, Benefits, and Best Practices
Code Ape Tech Column
Code Ape Tech Column
Sep 4, 2025 · Backend Development

10 Essential Microservice Best Practices to Boost Efficiency and Security

This article outlines ten practical microservice best practices—including single responsibility, cross‑functional teams, proper tooling, asynchronous communication, DevSecOps, independent data stores, isolated deployment, orchestration, and monitoring—to help developers build scalable, maintainable, and secure backend systems.

Backend ArchitectureCloud NativeMicroservices
0 likes · 13 min read
10 Essential Microservice Best Practices to Boost Efficiency and Security
php Courses
php Courses
Sep 3, 2025 · Fundamentals

Mastering C++11’s auto: Rules, Benefits, and Common Pitfalls

This article explores C++11’s auto keyword, detailing its type deduction rules, advantages, typical use cases such as iterator and lambda handling, and highlights common pitfalls and best‑practice guidelines to help developers write clearer, safer, and more efficient code.

C++C++11auto
0 likes · 9 min read
Mastering C++11’s auto: Rules, Benefits, and Common Pitfalls
php Courses
php Courses
Sep 2, 2025 · Fundamentals

Why and How to Create Custom Exceptions in C++ for Robust Error Handling

This article explains why custom exceptions are essential for clear, domain‑specific error reporting in C++, shows step‑by‑step how to define them by inheriting from standard exception classes, provides practical code examples, and outlines best practices for designing maintainable exception hierarchies.

C++best practicescustom-exception
0 likes · 8 min read
Why and How to Create Custom Exceptions in C++ for Robust Error Handling
MaGe Linux Operations
MaGe Linux Operations
Aug 29, 2025 · Information Security

How to Harden Docker for Production: Prevent Privileged Container Breaches

This guide reveals the most common Docker production vulnerabilities, such as privileged containers and outdated base images, and provides step‑by‑step hardening techniques—including minimal Alpine images, multi‑stage builds, user namespace isolation, resource limits, network policies, secret management, runtime security tools, and automated CI/CD scanning—to ensure enterprise‑grade container security.

Container HardeningDockerbest practices
0 likes · 30 min read
How to Harden Docker for Production: Prevent Privileged Container Breaches
Selected Java Interview Questions
Selected Java Interview Questions
Aug 25, 2025 · Information Security

Why 90% of Token Bugs Come from Renewal Mistakes – 5 Proven Solutions

Token renewal is a critical yet often misunderstood component of authentication, balancing security, user experience, and performance; this article examines common pitfalls, compares five practical strategies—including single‑token, double‑token, automatic renewal, and distributed solutions—and offers concrete best‑practice guidelines to avoid security holes and concurrency storms.

Token Renewalauthenticationbackend
0 likes · 10 min read
Why 90% of Token Bugs Come from Renewal Mistakes – 5 Proven Solutions
Data STUDIO
Data STUDIO
Aug 25, 2025 · Fundamentals

Why I Stopped Blindly Using Python Classes

The author reflects on years of overusing classes in Python, explains why simpler constructs like functions, dataclasses, dictionaries, and modules often yield clearer, more maintainable code, and outlines when class‑based design still makes sense.

ClassesPythonbest practices
0 likes · 7 min read
Why I Stopped Blindly Using Python Classes
Ops Community
Ops Community
Aug 24, 2025 · Information Security

Master Docker Container Security: Proven Best Practices to Safeguard Cloud‑Native Apps

This comprehensive guide explains why container security is essential in cloud‑native environments, outlines common threats, and provides step‑by‑step best‑practice recommendations—including secure image building, runtime hardening, Kubernetes hardening, secret management, monitoring, and an actionable implementation roadmap.

DevOpsDockerbest practices
0 likes · 12 min read
Master Docker Container Security: Proven Best Practices to Safeguard Cloud‑Native Apps
Python Programming Learning Circle
Python Programming Learning Circle
Aug 21, 2025 · Fundamentals

27 Essential Python Tricks to Write Cleaner, Faster Code

This article shares 27 practical Python techniques—from f‑strings and decorators to context managers and virtual environments—explaining their benefits, drawbacks, and providing concise code examples so developers of any level can write more readable, efficient, and maintainable Python programs.

Python 3best practicescode optimization
0 likes · 25 min read
27 Essential Python Tricks to Write Cleaner, Faster Code
Liangxu Linux
Liangxu Linux
Aug 18, 2025 · Fundamentals

32 Essential C Programming Practices for Clean, Maintainable Code

This guide outlines 32 practical C programming habits—from proper indentation and commenting to safe memory handling and error management—designed to improve code readability, maintainability, and reliability, helping developers write professional, high‑quality software.

C programmingCode styleSoftware Engineering
0 likes · 40 min read
32 Essential C Programming Practices for Clean, Maintainable Code
MaGe Linux Operations
MaGe Linux Operations
Aug 15, 2025 · Operations

10 Kubernetes Ops Pitfalls and How to Avoid Them – Hard‑Earned Lessons

This article shares ten real‑world Kubernetes production pitfalls—ranging from missing resource limits and storage misconfigurations to faulty probes and over‑privileged RBAC—each illustrated with a concrete case, detailed analysis, and actionable mitigation steps to help operators prevent costly outages.

Kubernetesbest practices
0 likes · 18 min read
10 Kubernetes Ops Pitfalls and How to Avoid Them – Hard‑Earned Lessons
Selected Java Interview Questions
Selected Java Interview Questions
Aug 15, 2025 · Backend Development

Master Spring Boot Controllers: Design Patterns, Best Practices & Code Samples

This comprehensive guide explains how to design high‑quality Spring Boot controller layers, covering architecture planning, RESTful API conventions, parameter validation, unified response structures, exception handling, logging, security, testing, asynchronous processing, and performance optimization with practical code examples and clear best‑practice recommendations.

ControllerException HandlingRESTful API
0 likes · 15 min read
Master Spring Boot Controllers: Design Patterns, Best Practices & Code Samples
Java Web Project
Java Web Project
Aug 14, 2025 · Backend Development

Why a Unified Controller Response Format Is Essential: Best Practices and AOP Implementation

The article explains how inconsistent API return types, missing error handling, irrelevant or complex parameters, and lack of proper result objects lead to maintenance headaches, and demonstrates a disciplined approach using a generic ResultBean, standardized controller conventions, and Spring AOP for logging and exception handling.

AOPAPI DesignController
0 likes · 11 min read
Why a Unified Controller Response Format Is Essential: Best Practices and AOP Implementation
FunTester
FunTester
Jul 23, 2025 · Artificial Intelligence

Mastering Prompt Iteration: A Step‑by‑Step Guide to Effective LLM Collaboration

This article explains why a perfect answer from a large language model requires iterative prompt design, outlines a six‑step spiral loop for refining prompts, and offers practical tips such as starting with a minimal prompt, focusing on one improvement at a time, and preserving version history.

Artificial IntelligenceIterative DesignLLM
0 likes · 5 min read
Mastering Prompt Iteration: A Step‑by‑Step Guide to Effective LLM Collaboration
php Courses
php Courses
Jul 18, 2025 · Backend Development

10 Common Laravel Pitfalls Even Senior Developers Make (And How to Fix Them)

This article highlights ten frequent Laravel mistakes—from N+1 queries and missing transactions to improper caching and lack of performance monitoring—explaining why they occur and providing concrete code examples of best‑practice solutions to improve efficiency, security, and maintainability.

DatabaseEloquentPHP
0 likes · 8 min read
10 Common Laravel Pitfalls Even Senior Developers Make (And How to Fix Them)
Python Programming Learning Circle
Python Programming Learning Circle
Jul 17, 2025 · Fundamentals

13 Essential Python Tricks to Boost Your Development Efficiency

This article presents thirteen practical Python tips—including argument packing, list comprehensions, alias imports, on‑the‑fly library loading, multi‑input handling, variable scope, safe dictionary access, data trimming, generators, lambda one‑liners, division with remainder, and tuple swapping—to help developers write cleaner, faster code and improve productivity.

Python Tricksbest practicescode
0 likes · 7 min read
13 Essential Python Tricks to Boost Your Development Efficiency
php Courses
php Courses
Jul 16, 2025 · Backend Development

Mastering Failure Handling in PHP: Strategies for Robust Backend Code

This article explains why rewriting logic on failure is essential for PHP applications, outlines common scenarios such as database connection, API calls, and file operations, provides concrete code examples, best‑practice guidelines, and an advanced strategy‑pattern approach to build resilient, user‑friendly backend systems.

Strategy Patternbackendbest practices
0 likes · 6 min read
Mastering Failure Handling in PHP: Strategies for Robust Backend Code
php Courses
php Courses
Jul 15, 2025 · Backend Development

7 Fatal PHP Mistakes Every Developer Must Avoid

This article outlines the seven most common and dangerous errors in PHP development—ranging from SQL injection and unchecked input to poor session handling and lack of autoloading—while offering concrete code‑level solutions to boost security, performance, and maintainability.

PHPbackendbest practices
0 likes · 6 min read
7 Fatal PHP Mistakes Every Developer Must Avoid
dbaplus Community
dbaplus Community
Jul 13, 2025 · Cloud Native

Avoid These 15 Docker Mistakes to Supercharge Your Deployments

This article reveals the 15 most common Docker pitfalls—from oversized images and root‑user containers to insecure secret handling and Kubernetes mismatches—explaining why they happen, showing concrete code fixes, and offering practical tips to build lean, secure, and production‑ready containers.

DevOpsDockerKubernetes
0 likes · 20 min read
Avoid These 15 Docker Mistakes to Supercharge Your Deployments
Liangxu Linux
Liangxu Linux
Jul 10, 2025 · Fundamentals

When to Use const vs constexpr in C++? A Practical Guide

This article explains the differences between C++ const and constexpr, using a kettle analogy, detailed code examples, and practical guidelines to help developers choose the right keyword for compile‑time or runtime constants, improve performance, and write safer code.

C++Runtimebest practices
0 likes · 8 min read
When to Use const vs constexpr in C++? A Practical Guide
JavaScript
JavaScript
Jul 8, 2025 · Frontend Development

Why Overusing !important Breaks Your CSS and How to Fix It

This article explains how excessive use of the CSS !important declaration leads to maintainability and debugging problems, details the CSS specificity calculation, compares specificity rules, and provides practical techniques—including ID selectors, selector chaining, attribute selectors, repeated selectors, pseudo‑classes, and BEM methodology—to increase specificity responsibly.

BEMCSSDebugging
0 likes · 8 min read
Why Overusing !important Breaks Your CSS and How to Fix It
Ops Development & AI Practice
Ops Development & AI Practice
Jul 6, 2025 · Cloud Native

Why Every Enterprise Needs a Cloud Landing Zone: Blueprint for Secure, Scalable Cloud Foundations

In the cloud‑native era, a well‑designed Cloud Landing Zone provides a standardized, multi‑account environment with built‑in identity, networking, security, governance, and automation, preventing costly chaos and enabling fast, safe innovation across the organization.

Cloud Landing ZoneInfrastructure as CodeMulti-Account
0 likes · 8 min read
Why Every Enterprise Needs a Cloud Landing Zone: Blueprint for Secure, Scalable Cloud Foundations
Code Mala Tang
Code Mala Tang
Jul 5, 2025 · Fundamentals

Master Python Code Style: Practical PEP8 Guidelines and Tools

This guide explains Python's evolving code‑style conventions, emphasizing readability, consistent indentation, line length, spacing, import ordering, and provides an overview of popular linting and formatting tools such as Pylint, Flake8, Isort, Autopep8, Yapf, and Black.

Code styleFormattingLinting
0 likes · 14 min read
Master Python Code Style: Practical PEP8 Guidelines and Tools
AndroidPub
AndroidPub
Jul 3, 2025 · Mobile Development

Mastering Kotlin Coroutine Cancellation: Avoid Zombie Coroutines and Hidden Bugs

This article explains how Kotlin coroutine cancellation works, why catching CancellationException can create zombie coroutines, and provides concrete patterns—using isActive, coroutineContext.ensureActive(), and proper try‑catch placement—to reliably stop repeating tasks without resource leaks.

CancellationExceptionKotlinasync
0 likes · 9 min read
Mastering Kotlin Coroutine Cancellation: Avoid Zombie Coroutines and Hidden Bugs
Shepherd Advanced Notes
Shepherd Advanced Notes
Jul 2, 2025 · Fundamentals

45 Tips for Writing Clean, Beautiful Code

This article presents 45 practical coding tips—from naming conventions and formatting to exception handling, thread safety, and design patterns—illustrated with Java examples and real‑world scenarios, helping developers produce readable, maintainable, and robust code.

Design PatternsThread Safetybest practices
0 likes · 29 min read
45 Tips for Writing Clean, Beautiful Code
Ops Development & AI Practice
Ops Development & AI Practice
Jun 28, 2025 · Information Security

Why Assuming AWS Roles Beats Direct Permissions: A Security Deep Dive

The article explains how using AWS AssumeRole for temporary, scoped credentials transforms static access keys into dynamic, short‑lived permissions, dramatically reducing attack windows, enforcing least‑privilege, simplifying cross‑account management, and improving auditability compared to granting permanent IAM user rights.

AWSAssumeRoleCloud Native
0 likes · 8 min read
Why Assuming AWS Roles Beats Direct Permissions: A Security Deep Dive
Code Mala Tang
Code Mala Tang
Jun 27, 2025 · Fundamentals

10 Python Tricks to Write Cleaner, Faster, and More Magical Code

Discover ten powerful Python techniques—from using any() and all() to streamline loops, to leveraging the walrus operator, set operations, and defaultdicts—that make your code more concise, faster, and aligned with Pythonic best practices.

PythonPython Tricksbest practices
0 likes · 5 min read
10 Python Tricks to Write Cleaner, Faster, and More Magical Code
php Courses
php Courses
Jun 26, 2025 · Fundamentals

Master Go Design Patterns: Practical Implementations & Best Practices

This article explores common design patterns in Go, explaining how the language’s emphasis on simplicity, composition, and interfaces influences implementations of Singleton, Factory, Strategy, Observer, and more, while providing idiomatic code examples and best‑practice recommendations such as using sync.Once, dependency injection, and context for robust, maintainable Go applications.

Design Patternsbest practicesfactory
0 likes · 8 min read
Master Go Design Patterns: Practical Implementations & Best Practices
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 26, 2025 · Backend Development

Avoid Common Spring Boot Mistakes and Write Cleaner Backend Code

This article highlights common pitfalls in Spring Boot development—such as exposing sensitive data, neglecting records, field injection, using RestTemplate, bloated controllers, and poor exception handling—and provides concise, code‑driven solutions to write cleaner, more secure, and maintainable backend applications.

DTOException HandlingWebClient
0 likes · 8 min read
Avoid Common Spring Boot Mistakes and Write Cleaner Backend Code
Alibaba Cloud Observability
Alibaba Cloud Observability
Jun 24, 2025 · Operations

Avoid These 6 Log Management Anti‑Patterns to Keep Your Observability Reliable

This article examines common log‑management anti‑patterns—such as copy‑truncate rotation, NAS storage, multi‑process writes, file‑hole creation, frequent overwrites, and Vim edits—explains why they cause data loss or duplicate collection, and offers practical best‑practice recommendations for reliable log handling in cloud‑native environments.

Operationsanti-patternsbest practices
0 likes · 8 min read
Avoid These 6 Log Management Anti‑Patterns to Keep Your Observability Reliable
21CTO
21CTO
Jun 22, 2025 · Fundamentals

Four Mistakes That Stopped Me From Becoming a True Senior Developer

In this reflective essay, a former programmer-turned-CTO shares four common mistakes—misunderstanding user behavior, neglecting testing and documentation, over‑relying on familiar tech stacks, and poor collaboration with product managers—that hinder senior‑level growth and offers practical advice to avoid them.

CTObest practicessenior engineer
0 likes · 9 min read
Four Mistakes That Stopped Me From Becoming a True Senior Developer
JavaScript
JavaScript
Jun 17, 2025 · Frontend Development

When to Use Arrow Functions vs Traditional Functions in JavaScript

This article explains the fundamental differences between arrow functions and traditional functions in JavaScript, shows five common scenarios where using a regular function is essential, and highlights the best situations to prefer arrow functions for concise, lexical this binding.

Arrow FunctionsJavaScriptbest practices
0 likes · 9 min read
When to Use Arrow Functions vs Traditional Functions in JavaScript
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 17, 2025 · Frontend Development

Why Vue Component Design Becomes a Nightmare and How to Fix It

After three years of building Vue apps, the author reveals how naive component extraction leads to sprawling directories, tangled props and events, and mounting technical debt, then offers concrete strategies—clear responsibilities, minimal APIs, slots, and abstraction skills—to design maintainable, reusable components.

FrontendVuebest practices
0 likes · 9 min read
Why Vue Component Design Becomes a Nightmare and How to Fix It
Java Backend Technology
Java Backend Technology
Jun 16, 2025 · Backend Development

14 Essential Java Code Optimization Tips Every Backend Developer Should Know

Discover 14 practical Java code optimization techniques—from using configuration properties and @RequiredArgsConstructor to modularizing methods, avoiding null returns, leveraging IDE suggestions, and applying design patterns—each illustrated with clear examples and snippets to help backend developers write cleaner, more maintainable code.

Design PatternsSpring Bootbest practices
0 likes · 8 min read
14 Essential Java Code Optimization Tips Every Backend Developer Should Know
Java Captain
Java Captain
Jun 8, 2025 · Backend Development

How to Refactor Bloated Spring Controllers into Clean, Maintainable Code

The article critiques overly large and tangled Spring MVC controllers, demonstrates ugly examples filled with try‑catch blocks, field validations, and business logic, then presents streamlined, elegant alternatives using @Valid, @Autowired, proper exception handling, and best‑practice guidelines to dramatically reduce code size and improve readability.

Controller RefactoringException HandlingSpring Boot
0 likes · 10 min read
How to Refactor Bloated Spring Controllers into Clean, Maintainable Code
Architect's Guide
Architect's Guide
Jun 8, 2025 · Fundamentals

Master Java API Design: 25 Essential Best‑Practice Rules from Effective Java

This article distills key guidelines from Effective Java, covering static factory methods, builder patterns, singleton protection, utility class design, memory‑leak avoidance, equals/hashCode contracts, composition over inheritance, generics, enums, exception handling, and many other best‑practice rules to help Java developers write cleaner, safer, and more maintainable code.

API DesignEffective Javabest practices
0 likes · 24 min read
Master Java API Design: 25 Essential Best‑Practice Rules from Effective Java
Code Mala Tang
Code Mala Tang
Jun 6, 2025 · Fundamentals

Master Python Comments: Best Practices and Common Pitfalls

This guide explains what comments are in Python, shows how to write single‑line and multi‑line comments using the # symbol, warns against misuse of triple quotes, covers docstring usage, and provides IDE shortcut keys for efficient commenting.

DocstringsIDE shortcutsPython
0 likes · 7 min read
Master Python Comments: Best Practices and Common Pitfalls
Big Data Technology Tribe
Big Data Technology Tribe
Jun 5, 2025 · Backend Development

Boost Java Code Quality: Essential Best Practices Every Developer Should Follow

This article outlines essential Java coding habits—including unit testing with TDD, using Optional to avoid nulls, preferring StringBuilder, proper exception handling, composition over inheritance, Streams API, try‑with‑resources, dependency injection, naming conventions, and design patterns—to dramatically improve code readability, performance, and maintainability.

Design Patternsbest practicescode quality
0 likes · 7 min read
Boost Java Code Quality: Essential Best Practices Every Developer Should Follow
FunTester
FunTester
May 27, 2025 · Backend Development

Java Serialization: Ten Common Pitfalls and Safer Alternatives

Java serialization, while convenient for persisting objects, suffers from versioning issues, hidden fields, mutable data snapshots, performance overhead, security vulnerabilities, singleton breaches, final field tampering, external dependencies, maintenance burdens, and format limitations, and the article recommends explicit serialVersionUID, custom methods, and JSON/Protobuf alternatives.

ProtobufSerializationbest practices
0 likes · 18 min read
Java Serialization: Ten Common Pitfalls and Safer Alternatives
JavaScript
JavaScript
May 26, 2025 · Frontend Development

Why Overusing !important Breaks CSS and How to Fix It

The article explains how excessive use of the !important declaration leads to maintainability issues, debugging difficulty, and style conflicts, then details CSS specificity calculation, comparison rules, practical techniques to increase specificity, and modern architecture approaches like BEM to write cleaner, more maintainable styles.

BEMCSSSpecificity
0 likes · 6 min read
Why Overusing !important Breaks CSS and How to Fix It
Su San Talks Tech
Su San Talks Tech
May 22, 2025 · Backend Development

30 Practical Java Code Optimization Tips to Boost Performance

A comprehensive guide presenting thirty proven Java optimization techniques, from efficient string handling and buffered I/O to proper resource management, connection pooling, multithreading, naming conventions, and safe use of APIs, each illustrated with concise code examples.

CodingOptimizationbest practices
0 likes · 41 min read
30 Practical Java Code Optimization Tips to Boost Performance
FunTester
FunTester
May 21, 2025 · Fundamentals

7 Proven Unit Test Naming Conventions to Boost Readability

This article outlines seven practical unit‑test naming patterns, explains their structure with real‑world code examples, compares their advantages and drawbacks, and offers guidance on selecting the most suitable convention for different project sizes and team workflows.

BDDbest practicesnaming conventions
0 likes · 8 min read
7 Proven Unit Test Naming Conventions to Boost Readability
Continuous Delivery 2.0
Continuous Delivery 2.0
May 21, 2025 · Fundamentals

What Makes Code Good or Bad? Practical Standards for Maintainable Software

The article defines good code as functional and easy to modify, explains why focusing on maintainability and simplicity beats fast but fragile development, lists common signs of bad code, and offers concrete practices like small modules, clear naming, and test‑driven development to boost productivity.

Software EngineeringTDDbest practices
0 likes · 4 min read
What Makes Code Good or Bad? Practical Standards for Maintainable Software
Java Tech Enthusiast
Java Tech Enthusiast
May 20, 2025 · Fundamentals

12 Toxic Coding Habits That Destroy Readability (And How to Spot Them)

The article lists twelve common but harmful coding practices—such as over‑splitting micro‑services, writing massive methods, nesting deep conditionals, misusing comments, and avoiding logging—that dramatically reduce code readability and increase maintenance difficulty, illustrated with a fictional programmer’s missteps.

MicroservicesSoftware Engineeringbest practices
0 likes · 11 min read
12 Toxic Coding Habits That Destroy Readability (And How to Spot Them)
Java Tech Enthusiast
Java Tech Enthusiast
May 18, 2025 · Operations

Ten Rules for Writing High‑Quality Logs in Production Systems

This article presents ten practical rules for producing high‑quality, searchable logs—including unified formatting, stack‑trace inclusion, proper log levels, complete parameters, data masking, asynchronous writing, trace‑ID linking, dynamic level control, structured storage, and intelligent monitoring—to help developers quickly diagnose issues in high‑traffic applications.

Monitoringbest practiceslogback
0 likes · 11 min read
Ten Rules for Writing High‑Quality Logs in Production Systems
Liangxu Linux
Liangxu Linux
May 14, 2025 · Fundamentals

How to Detect and Prevent Race Conditions in Embedded Firmware

Embedded firmware bugs such as race conditions and non‑reentrant functions are hard to reproduce, but by understanding their causes, using atomic operations, mutexes, and clear naming conventions, developers can systematically identify, avoid, and mitigate these hidden errors in RTOS‑based systems.

RTOSbest practicesnon-reentrant
0 likes · 7 min read
How to Detect and Prevent Race Conditions in Embedded Firmware
JavaScript
JavaScript
May 14, 2025 · Frontend Development

When Should You Avoid Arrow Functions? Pitfalls and Best Practices

This article examines the limitations of JavaScript arrow functions—such as this binding, inability to serve as constructors, and lack of an arguments object—while outlining scenarios where they remain a concise and effective choice.

Arrow Functionsbest practicesthis binding
0 likes · 4 min read
When Should You Avoid Arrow Functions? Pitfalls and Best Practices
Tencent Cloud Developer
Tencent Cloud Developer
May 14, 2025 · Fundamentals

9 Essential Git Tricks Every Developer Should Master

This guide presents nine practical Git techniques—including squashing commits, recovering lost history, cleaning workspaces, amending recent commits, partial file staging, protecting shared branches, undoing merges, purging files from history, and other handy commands—each explained with clear commands, warnings, and visual examples.

Gitbest practicesfilter-branch
0 likes · 9 min read
9 Essential Git Tricks Every Developer Should Master
php Courses
php Courses
May 13, 2025 · Backend Development

Understanding PHP 8.0 Named Parameters: Benefits, Drawbacks, and Best Practices

This article examines PHP 8.0's named parameters feature, outlining how passing arguments by name improves readability and flexibility, while also discussing potential drawbacks such as learning curve, verbosity, and IDE dependence, and offers practical recommendations for when to adopt this syntax.

API EvolutionPHPbackend
0 likes · 6 min read
Understanding PHP 8.0 Named Parameters: Benefits, Drawbacks, and Best Practices
Eric Tech Circle
Eric Tech Circle
May 8, 2025 · Artificial Intelligence

How to Tame AI Code Generation with Cursor Rules: A Practical Guide

This article shares practical experience using Cursor's AI code editor, explains the common problem of uncontrolled AI edits, and presents a structured set of Cursor Rules—including basic, three‑layer, and auto‑generated approaches—to improve code quality, reduce rejections, and streamline development workflows.

AI code generationAutomationCursor AI
0 likes · 6 min read
How to Tame AI Code Generation with Cursor Rules: A Practical Guide
DaTaobao Tech
DaTaobao Tech
May 7, 2025 · Frontend Development

Technical Summary of Front‑end AI Practices: AI Quadrant Model, Hongyan AI Coder, and Nextdy Aone Copilot

The article outlines a front‑end AI framework using an AI Four‑Quadrant model and presents two toolchains—Hongyan AI Coder, which automates design‑to‑code and raises productivity by over 30 % with up to 90 % UI generation, and Nextdy Aone Copilot, a VS Code extension that enables LLM‑guided code refactoring and migration via CI—supported by case studies and a roadmap toward a closed‑loop design‑to‑deployment workflow.

AI code generationAutomationFront-end AI
0 likes · 13 min read
Technical Summary of Front‑end AI Practices: AI Quadrant Model, Hongyan AI Coder, and Nextdy Aone Copilot
Continuous Delivery 2.0
Continuous Delivery 2.0
May 7, 2025 · Fundamentals

Understanding Code Smells: Module, Function, and Implementation Level Issues

This article explains how Tencent evaluates code quality at module, function, and implementation levels, describing common code smells such as low cohesion, God classes, developer congestion, God functions, DRY violations, nested complexity, and Bumpy Road, and emphasizes the importance of identifying and fixing these issues to improve maintainability and team efficiency.

Software Engineeringbest practicescode quality
0 likes · 5 min read
Understanding Code Smells: Module, Function, and Implementation Level Issues
Code Mala Tang
Code Mala Tang
May 5, 2025 · Information Security

6 Essential Python Security Practices Every Developer Should Follow

Learn how to safeguard your Python applications by avoiding hard‑coded secrets, using .env files, employing virtual environments, validating and sanitizing inputs, handling files securely, encrypting sensitive data, and implementing proper exception handling—all essential steps for robust information security.

Exception HandlingPythonbest practices
0 likes · 5 min read
6 Essential Python Security Practices Every Developer Should Follow
Java Architect Essentials
Java Architect Essentials
May 4, 2025 · Backend Development

Mastering Request Timeouts in SpringBoot with @Timeout Annotation

Learn how the @Timeout annotation in SpringBoot simplifies request timeout management by eliminating repetitive configuration code, offering automatic timeout control, customizable fallback methods, and improved maintainability, with practical examples and step-by-step guidance for integrating it into your APIs.

AnnotationSpringBootbackend
0 likes · 7 min read
Mastering Request Timeouts in SpringBoot with @Timeout Annotation
Cognitive Technology Team
Cognitive Technology Team
May 4, 2025 · Backend Development

Understanding Java ThreadLocal Memory Leaks: Mechanisms, Risks, Diagnosis, and Defensive Practices

This article explains the inner workings of Java's ThreadLocal, analyzes how weak and strong references can cause memory leaks in thread pools, demonstrates typical leak scenarios with code examples, and provides diagnostic tools and defensive coding practices to prevent such leaks.

Garbage CollectionThreadLocalbest practices
0 likes · 9 min read
Understanding Java ThreadLocal Memory Leaks: Mechanisms, Risks, Diagnosis, and Defensive Practices
Cognitive Technology Team
Cognitive Technology Team
May 3, 2025 · Backend Development

Understanding ThreadLocal: Core Principles, Use Cases, Pitfalls, and Best Practices

ThreadLocal provides per‑thread variable storage to achieve thread isolation, improving concurrency performance, and is essential for safe data handling in Java, but improper use can cause memory leaks, data contamination, and other issues; this article explains its internal mechanism, common scenarios, pitfalls, and best‑practice guidelines with code examples.

ThreadLocalbest practicesconcurrency
0 likes · 19 min read
Understanding ThreadLocal: Core Principles, Use Cases, Pitfalls, and Best Practices
JavaScript
JavaScript
May 3, 2025 · Frontend Development

Why Google Engineers Avoid JavaScript Default Parameters (And What to Use Instead)

This article explains the subtle bugs, predictability issues, scope interactions, and readability concerns that can arise from JavaScript default parameters, and presents explicit argument handling and object destructuring as safer alternatives for large‑scale development.

Default ParametersFunction ArgumentsJavaScript
0 likes · 3 min read
Why Google Engineers Avoid JavaScript Default Parameters (And What to Use Instead)
Liangxu Linux
Liangxu Linux
May 2, 2025 · Fundamentals

5 Essential Coding Style Tips Every Beginner Should Master

This article presents five practical programming style recommendations—meaningful variable names, consistent indentation, clear comments, short line lengths, and concise functions—explaining why they matter, showing poor examples, and providing improved code snippets to help beginners write more readable, maintainable, and efficient code.

best practicescoding stylemaintainability
0 likes · 6 min read
5 Essential Coding Style Tips Every Beginner Should Master
21CTO
21CTO
May 1, 2025 · Fundamentals

What Navy Pilots Can Teach You About Writing Better Code

Drawing on his experience as a Navy aviator, the author shares four essential software‑development lessons—attention to detail, teamwork, clear communication, and strict standard operating procedures—showing how military discipline can improve code quality and project success.

attention to detailbest practicescommunication
0 likes · 7 min read
What Navy Pilots Can Teach You About Writing Better Code
Cognitive Technology Team
Cognitive Technology Team
May 1, 2025 · Backend Development

10 Tips and Tricks for Using ExecutorService in Java

This article presents ten practical tips for Java developers on naming thread‑pool threads, dynamically changing thread names, safely shutting down executors, handling interruptions, bounding queue sizes, proper exception handling, monitoring wait times, preserving client stack traces, preferring CompletableFuture, and using SynchronousQueue with ThreadPoolExecutor.

ThreadPoolbest practicesconcurrency
0 likes · 15 min read
10 Tips and Tricks for Using ExecutorService in Java
JavaScript
JavaScript
May 1, 2025 · Frontend Development

Avoid Common Arrow Function Pitfalls in JavaScript

Arrow functions in ES6 offer concise syntax, but they come with several traps—such as lacking their own this binding, being unusable as constructors, missing arguments, and incompatibility with call/apply/bind—so developers must know when to avoid them and when they’re appropriate.

JavaScriptbest practiceses6
0 likes · 5 min read
Avoid Common Arrow Function Pitfalls in JavaScript