Tag

Best Practices

1 views collected around this technical thread.

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.

Best PracticesComponent DesignTechnical Debt
0 likes · 9 min read
Why Vue Component Design Becomes a Nightmare and How to Fix It
php中文网 Courses
php中文网 Courses
Jun 12, 2025 · Backend Development

When to Use isset() vs array_key_exists() in PHP: Performance and Best Practices

This article compares PHP's isset() and array_key_exists() functions, explaining their functional differences, performance benchmarks, and practical guidelines for choosing the right one in various coding scenarios.

Best PracticesPHParray_key_exists
0 likes · 6 min read
When to Use isset() vs array_key_exists() in PHP: Performance and Best Practices
Continuous Delivery 2.0
Continuous Delivery 2.0
Jun 8, 2025 · Information Security

Why SBOMs Are the Key to Secure Software Supply Chains

This article explains how Software Bill of Materials (SBOM) mirrors hardware BOMs, outlines their core differences, presents best practices, tools, and implementation strategies to improve supply‑chain transparency, compliance, and security for modern software development.

Best PracticesComplianceSBOM
0 likes · 12 min read
Why SBOMs Are the Key to Secure Software Supply Chains
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.

Best PracticesController RefactoringException Handling
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 designBest PracticesEffective Java
0 likes · 24 min read
Master Java API Design: 25 Essential Best‑Practice Rules from Effective Java
Code Mala Tang
Code Mala Tang
Jun 8, 2025 · Fundamentals

Boost Python Performance: 10 Proven Memory Optimization Tricks

Learn how hidden memory leaks, inefficient data structures, and poor import practices can slow Python scripts, and apply practical techniques—such as using weakref, generators, __slots__, lazy imports, and profiling tools—to dramatically reduce memory usage and speed up execution.

Best PracticesPythonmemory management
0 likes · 11 min read
Boost Python Performance: 10 Proven Memory Optimization Tricks
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.

Best PracticesCommentsDocstrings
0 likes · 7 min read
Master Python Comments: Best Practices and Common Pitfalls
Test Development Learning Exchange
Test Development Learning Exchange
Jun 5, 2025 · Fundamentals

Master Python Code Organization: Functions, Modules, and Packages Explained

Learn why organizing Python code with functions, modules, and packages is essential for maintainable, scalable projects, and follow step‑by‑step examples that cover basic syntax, practical tips, package structures, dynamic imports, and a hands‑on mini‑project to build your own utility toolkit.

Best PracticesFunctionsModules
0 likes · 6 min read
Master Python Code Organization: Functions, Modules, and Packages Explained
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.

Best PracticesJavacode quality
0 likes · 7 min read
Boost Java Code Quality: Essential Best Practices Every Developer Should Follow
Test Development Learning Exchange
Test Development Learning Exchange
Jun 4, 2025 · Fundamentals

Understanding Python Exception Handling: Syntax, Usage, and Best Practices

This article explains Python's exception handling mechanisms, covering try, except, else, and finally blocks, detailed usage examples, raising custom exceptions, and best practice recommendations for writing robust and maintainable code in software.

Best PracticesException HandlingPython
0 likes · 7 min read
Understanding Python Exception Handling: Syntax, Usage, and Best Practices
php中文网 Courses
php中文网 Courses
May 30, 2025 · Backend Development

Design Principles, Best Practices, and Hidden Pitfalls of PHP Interfaces in 2025

This article examines the core design principles, modern best practices, and common hidden pitfalls of PHP interfaces in the 2025 ecosystem, providing concrete code examples and guidance on contract‑first design, single responsibility, interface segregation, dependency injection, versioning, testing, and advanced patterns such as adapters and plugin systems.

Best PracticesPHPbackend development
0 likes · 9 min read
Design Principles, Best Practices, and Hidden Pitfalls of PHP Interfaces in 2025
php中文网 Courses
php中文网 Courses
May 30, 2025 · Fundamentals

Understanding Pointers and Memory Management in Go

This comprehensive Go tutorial explains what pointers are, their basic syntax, common uses such as avoiding copies and modifying external variables, memory management including stack vs. heap and escape analysis, and outlines common pitfalls and best practices for safe and efficient pointer usage.

Best PracticesEscape AnalysisGo
0 likes · 8 min read
Understanding Pointers and Memory Management in Go
Code Mala Tang
Code Mala Tang
May 29, 2025 · Fundamentals

Master Regular Expressions: Key Patterns, Real-World Uses & Common Pitfalls

Regular expressions provide a powerful way to search, match, and extract patterns in text, and this guide covers fundamental syntax, practical applications such as email, phone, and date extraction, as well as performance, encoding, security, compatibility considerations, and common mistakes to avoid.

Best PracticesPattern MatchingPython
0 likes · 9 min read
Master Regular Expressions: Key Patterns, Real-World Uses & Common Pitfalls
AndroidPub
AndroidPub
May 29, 2025 · Mobile Development

Avoid These 5 Dangerous Kotlin Coroutine Pitfalls in Android

This article highlights five common Kotlin coroutine pitfalls for Android developers—directly calling suspend functions in Views, misusing GlobalScope, sequential network calls, improper exception handling, and ignoring cancellation—while providing correct implementations and best‑practice guidelines to avoid them.

Best PracticesConcurrencyCoroutines
0 likes · 10 min read
Avoid These 5 Dangerous Kotlin Coroutine Pitfalls in Android
Top Architecture Tech Stack
Top Architecture Tech Stack
May 27, 2025 · Backend Development

Analyzing and Cleaning Maven Project Dependencies with mvn dependency:analyze

This guide explains why and how to use Maven's dependency analysis tool to detect used undeclared and unused declared dependencies, demonstrates the required commands, interprets the warnings, and outlines best‑practice timing and risk considerations for Java backend projects.

Best PracticesIntelliJ IDEAJava
0 likes · 8 min read
Analyzing and Cleaning Maven Project Dependencies with mvn dependency:analyze
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.

Best PracticesJSONJava
0 likes · 18 min read
Java Serialization: Ten Common Pitfalls and Safer Alternatives
Raymond Ops
Raymond Ops
May 26, 2025 · Operations

Master Dockerfile: Essential Commands and Best Practices for Building Efficient Images

This article explains how Docker images are created, introduces Dockerfile syntax and key instructions such as FROM, COPY, RUN, CMD, and ENTRYPOINT, and provides practical guidelines and real‑world examples for building clean, lightweight containers.

Best PracticesContainer ImagesDocker
0 likes · 21 min read
Master Dockerfile: Essential Commands and Best Practices for Building Efficient Images
Java Tech Enthusiast
Java Tech Enthusiast
May 26, 2025 · Fundamentals

Push Ifs Up, Push Fors Down: Improving Code Clarity and Performance

The article explains Alex Kladov’s two simple yet powerful rules—moving conditional checks out of functions and pushing loop bodies down—to reduce duplicated checks, simplify control flow, and boost performance, especially in batch‑processing scenarios.

Best PracticesRustcode quality
0 likes · 7 min read
Push Ifs Up, Push Fors Down: Improving Code Clarity and Performance
Code Mala Tang
Code Mala Tang
May 26, 2025 · Fundamentals

10 Common Python Anti‑Patterns and How to Avoid Them

This article examines ten frequent Python anti‑patterns—such as mutable default arguments, catching broad exceptions, overly long functions, reinventing the wheel, misusing list comprehensions, excessive lambdas, hard‑coded values, ignoring virtual environments, overusing inheritance, and neglecting code formatting—explaining why they harm readability, maintainability or performance and offering clear, better‑practice alternatives.

Best PracticesPythonanti-patterns
0 likes · 8 min read
10 Common Python Anti‑Patterns and How to Avoid Them
Tencent Cloud Developer
Tencent Cloud Developer
May 22, 2025 · Fundamentals

Understanding Protobuf Encoding: Varints, ZigZag, Embedded Messages and Best Practices

This article explains Google Protocol Buffers' binary serialization, covering its advantages and drawbacks, the encoding mechanisms of tags, varints, ZigZag, embedded and repeated fields, and provides practical best‑practice guidelines for designing robust .proto schemas.

Best PracticesGoProtobuf
0 likes · 11 min read
Understanding Protobuf Encoding: Varints, ZigZag, Embedded Messages and Best Practices