Tagged articles
314 articles
Page 1 of 4
SpringMeng
SpringMeng
May 2, 2026 · Artificial Intelligence

10 Essential AI Prompt Templates Every Programmer Needs

This article presents ten practical AI prompt templates that help programmers efficiently handle requirement clarification, unit test generation, code explanation, refactoring, exception troubleshooting, performance tuning, SQL creation, knowledge documentation, design review, and cross‑language translation, each illustrated with concrete examples and usage tips.

AI promptingBackend DevelopmentCode review
0 likes · 13 min read
10 Essential AI Prompt Templates Every Programmer Needs
FunTester
FunTester
Apr 26, 2026 · Fundamentals

Why Test Coverage Isn’t the Answer: Limits, Types, and Practical Guidance

The article explains that while test coverage helps spot untested code, 100% statement or branch coverage still leaves many scenarios unchecked, discusses statement, branch, and path coverage with concrete Go examples, and offers pragmatic advice on using coverage as a signal rather than a definitive quality metric.

GoSoftware Testingcode quality
0 likes · 13 min read
Why Test Coverage Isn’t the Answer: Limits, Types, and Practical Guidance
Lao Guo's Learning Space
Lao Guo's Learning Space
Apr 25, 2026 · Artificial Intelligence

30 Proven Prompt Templates to Unlock Tongyi Lingma’s Full Potential

This guide compiles the 30 most effective prompt templates for Alibaba's Tongyi Lingma code‑assistant, explains its three interaction modes, and offers concrete examples—from code generation and unit‑test creation to multi‑file refactoring—plus five universal tips to double output quality.

AI coding assistantCode GenerationDebugging
0 likes · 13 min read
30 Proven Prompt Templates to Unlock Tongyi Lingma’s Full Potential
Woodpecker Software Testing
Woodpecker Software Testing
Dec 30, 2025 · Frontend Development

Testing movie-web: From Unit Tests to End‑to‑End Validation

This article outlines a comprehensive testing strategy for the movie-web application, covering unit tests for utility functions and state management, component tests with React Testing Library, integration tests using MSW, and a proposed end‑to‑end workflow with Cypress or Playwright, plus CI/CD automation and coverage goals.

React Testing Libraryci/cde2e testing
0 likes · 12 min read
Testing movie-web: From Unit Tests to End‑to‑End Validation
Woodpecker Software Testing
Woodpecker Software Testing
Dec 28, 2025 · Backend Development

Deep Dive into JUnit: Core Concepts, Components, and Design Pattern Integration

This comprehensive tutorial explains JUnit's definition, core components, annotations, assertion methods, test suite creation, custom test rules, and how common design patterns such as Factory, Decorator, Strategy, and Template Method can be applied to write flexible, maintainable Java unit tests, plus installation steps and advanced usage tips.

Design PatternsJUnitJava
0 likes · 25 min read
Deep Dive into JUnit: Core Concepts, Components, and Design Pattern Integration
Woodpecker Software Testing
Woodpecker Software Testing
Dec 28, 2025 · Fundamentals

Mastering JUnit 5: The Modern Java Unit‑Testing Framework

JUnit 5 introduces a modular architecture with Platform, Jupiter, and Vintage, adds a fresh annotation model, dynamic and parameterized tests, tagging, exception assertions, and nested tests, and offers clear advantages over JUnit 4, as demonstrated through a complete Calculator example and Maven execution.

JUnit 5Javaannotations
0 likes · 8 min read
Mastering JUnit 5: The Modern Java Unit‑Testing Framework
Code Wrench
Code Wrench
Dec 26, 2025 · Backend Development

How Unit Tests Saved My Go Service: A Hands‑On Guide to Testing Core Modules

This article walks through a real‑world Go project, showing why adding unit tests to core modules prevents regressions, how to mock tightly‑coupled dependencies, and provides complete example test code and best‑practice tips for reliable backend development.

BackendMocktest‑driven development
0 likes · 13 min read
How Unit Tests Saved My Go Service: A Hands‑On Guide to Testing Core Modules
Woodpecker Software Testing
Woodpecker Software Testing
Dec 25, 2025 · Backend Development

Using ChatGPT to Refine Java Unit Tests – Episode 23

This article walks through adjusting Java unit tests with ChatGPT, measuring coverage using JaCoCo, rewriting test code for User and PasswordRecovery classes, adding Mockito and PowerMock mocks, and showing how the changes raise coverage from 73.7% to over 80% across the project.

ChatGPTJUnitJaCoCo
0 likes · 17 min read
Using ChatGPT to Refine Java Unit Tests – Episode 23
FunTester
FunTester
Dec 11, 2025 · Fundamentals

When and Where to Test: Choosing the Right Test Types for Your Application

This article outlines a comprehensive testing matrix that maps common test types—unit, API, UI, security, performance, smoke, and regression—to their problem domains, SDLC stages, and execution methods, helping teams select and prioritize tests based on risk, feedback speed, and ownership.

API testingPerformance TestingSoftware Testing
0 likes · 11 min read
When and Where to Test: Choosing the Right Test Types for Your Application
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 6, 2025 · Fundamentals

Why Long Functions Hurt Maintainability and How to Refactor Them into Pure Units

Long functions exceeding about 20 lines often hide multiple responsibilities, increase cognitive load, impede testing, and introduce hidden side effects; this article explains the problems, illustrates them with real JavaScript examples, and demonstrates a functional‑programming‑inspired refactor that splits logic into small, pure, testable functions.

Pure Functionscode qualityrefactoring
0 likes · 12 min read
Why Long Functions Hurt Maintainability and How to Refactor Them into Pure Units
Cognitive Technology Team
Cognitive Technology Team
Oct 12, 2025 · Backend Development

Java Diff Utils Guide: Compare Text, Generate Patches, and Visualize Changes

This tutorial introduces Java Diff Utils, a lightweight open-source library for computing text differences, showing how to set it up in a Spring Boot project, compare string lists, generate unified diffs, apply patches, and create side-by-side visualizations for robust version-control and change-tracking in Java applications.

diff-utilspatchspring-boot
0 likes · 11 min read
Java Diff Utils Guide: Compare Text, Generate Patches, and Visualize Changes
FunTester
FunTester
Sep 26, 2025 · Frontend Development

How to Choose the Right JavaScript Unit Testing Framework for Your Project

This guide explains why unit testing is essential, compares manual and automated testing, outlines the components of JavaScript test frameworks, and provides a step‑by‑step process for selecting the most suitable framework based on project needs and team capabilities.

JavaScriptJestSoftware quality
0 likes · 9 min read
How to Choose the Right JavaScript Unit Testing Framework for Your Project
Go Programming World
Go Programming World
Sep 5, 2025 · Backend Development

How to Test Concurrent Go Code with the New testing/synctest Package

Go’s built‑in concurrency primitives make parallel programming easy, but testing such code is tricky; this article explains the experimental testing/synctest package introduced in Go 1.24/1.25, shows how to rewrite flaky, slow tests into fast, reliable ones, and demonstrates its use with real‑world examples.

GoGoroutineconcurrency
0 likes · 15 min read
How to Test Concurrent Go Code with the New testing/synctest Package
Alibaba Cloud Native
Alibaba Cloud Native
Aug 31, 2025 · Backend Development

How AI Can Auto‑Generate a Complete Java E‑Commerce Order System from 0 to 1

This tutorial walks through using the Lingma AI assistant to automatically create, configure, and run a full Java Maven e‑commerce order project—including environment setup, SQLite persistence, CRUD services, unit tests, and architecture visualization—showing each prompt, command, and generated code snippet.

AI code generationBackend DevelopmentJava
0 likes · 11 min read
How AI Can Auto‑Generate a Complete Java E‑Commerce Order System from 0 to 1
FunTester
FunTester
Aug 29, 2025 · Fundamentals

How to Tackle Automated Testing in Legacy Systems: Practical Tips & Refactoring

Automated testing is essential but challenging for legacy systems; this guide explains testing types, prioritizes unit and integration tests, classifies code for targeted testing, demonstrates refactoring techniques with Java examples, and applies SOLID principles to improve testability and maintainability of aging codebases.

Automated TestingLegacy CodeSOLID principles
0 likes · 13 min read
How to Tackle Automated Testing in Legacy Systems: Practical Tips & Refactoring
FunTester
FunTester
Jul 16, 2025 · Backend Development

Master Go Unit and Integration Testing: Practical Guide with Code Samples

Go’s built‑in testing framework makes writing and running unit and integration tests straightforward, offering clear conventions, command‑line tools, and examples that help developers isolate bugs, ensure code correctness, and safely refactor while covering scenarios from simple functions to full‑stack workflows.

Gointegration testingsoftware development
0 likes · 12 min read
Master Go Unit and Integration Testing: Practical Guide with Code Samples
Didi Tech
Didi Tech
Jul 10, 2025 · Backend Development

Why Unit Testing Matters: Go Basics, Mocking, and Table‑Driven Tests

This article explains why unit testing is essential for code quality, API design, and documentation, then walks through Go's built‑in testing conventions, common *testing.T methods, table‑driven test patterns, mocking with gomonkey, and best practices for writing maintainable tests.

GoMockingsoftware design
0 likes · 27 min read
Why Unit Testing Matters: Go Basics, Mocking, and Table‑Driven Tests
Test Development Learning Exchange
Test Development Learning Exchange
Jun 25, 2025 · Backend Development

Boost Your Python Tests with Hypothesis: Property‑Based Testing Made Easy

Learn how to install and use the Hypothesis library for Python to perform property‑based testing, automatically generating diverse inputs, covering edge cases, and enhancing test coverage with examples on arithmetic properties, list sorting, custom strategies, settings, and real‑world scenarios like JSON and URL validation.

HypothesisPythonproperty-based testing
0 likes · 6 min read
Boost Your Python Tests with Hypothesis: Property‑Based Testing Made Easy
FunTester
FunTester
Jun 17, 2025 · Backend Development

How to Test Java ExecutorService Without Thread.sleep(): Reliable Strategies

This article explains why using Thread.sleep() in Java ExecutorService unit tests is unreliable and inefficient, and introduces three robust alternatives—Future.get(), CountDownLatch, and shutdown/awaitTermination—to achieve stable and performant testing of asynchronous code.

CountDownLatchExecutorServiceFuture
0 likes · 13 min read
How to Test Java ExecutorService Without Thread.sleep(): Reliable Strategies
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 PatternsJavabest practices
0 likes · 7 min read
Boost Java Code Quality: Essential Best Practices Every Developer Should Follow
Code Mala Tang
Code Mala Tang
May 22, 2025 · Fundamentals

9 Essential Python Debugging Techniques Every Developer Should Master

This guide presents nine practical Python debugging methods—including try‑except blocks, print statements, the pdb debugger, assertions, stack trace analysis, linting tools, IDE breakpoints, logging, and unit testing—to help developers quickly identify and resolve errors in their code.

DebuggingError HandlingPython
0 likes · 4 min read
9 Essential Python Debugging Techniques Every Developer Should Master
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.

BDDSoftware qualitybest practices
0 likes · 8 min read
7 Proven Unit Test Naming Conventions to Boost Readability
php Courses
php Courses
May 14, 2025 · Backend Development

Why Static Methods Should Be Avoided in PHP and Better Alternatives

The article explains that overusing static methods in PHP violates core OOP principles, hampers testability, creates global state, and reduces extensibility, while outlining appropriate scenarios for static usage and recommending alternatives such as dependency injection, service containers, and cautious singleton patterns.

OOPPHPstatic methods
0 likes · 6 min read
Why Static Methods Should Be Avoided in PHP and Better Alternatives
Code Mala Tang
Code Mala Tang
May 13, 2025 · Backend Development

Master FastAPI Testing: Unit & Integration Tests with Pytest & HTTPX

This guide walks you through setting up a FastAPI testing environment, creating a project structure, writing both unit and integration tests using pytest, httpx, and FastAPI's TestClient, and running the tests to ensure reliable, maintainable applications.

BackendFastAPIhttpx
0 likes · 6 min read
Master FastAPI Testing: Unit & Integration Tests with Pytest & HTTPX
FunTester
FunTester
Apr 23, 2025 · Fundamentals

Mastering Mock in Go: Boost Test Stability and Speed

This article explains why mocking is essential for reliable unit testing, outlines its core benefits such as environment isolation, speed, and coverage, and provides practical Go examples—including dynamic behavior control, state verification, and using gomock—to help engineers implement robust mock strategies.

GoMock FrameworksMocking
0 likes · 10 min read
Mastering Mock in Go: Boost Test Stability and Speed
Raymond Ops
Raymond Ops
Apr 17, 2025 · Backend Development

Master HTTP Mocking in Go: httptest & gock Tutorial

This article explains how to use Go's httptest package and the gock library to mock HTTP servers and external API calls, providing step‑by‑step code examples, test case design, and practical tips for reliable backend unit testing.

Backend DevelopmentGoMocking
0 likes · 13 min read
Master HTTP Mocking in Go: httptest & gock Tutorial
FunTester
FunTester
Apr 14, 2025 · Backend Development

Common Mistakes in Go Unit Testing and How to Avoid Them

This article examines nine frequent errors developers make when writing Go unit tests—such as improper test classification, neglecting the race detector, ignoring parallel and shuffle flags, avoiding table‑driven tests, using sleep, mishandling time APIs, overlooking httptest/iotest, misusing benchmarks, and skipping fuzz testing—providing analysis and concrete code‑based solutions to improve test reliability and efficiency.

BenchmarkingGoconcurrency
0 likes · 11 min read
Common Mistakes in Go Unit Testing and How to Avoid Them
Selected Java Interview Questions
Selected Java Interview Questions
Apr 3, 2025 · Fundamentals

How to Write Clean and Maintainable Code: Naming, Classes, Functions, and Testing

This article explains why clean code is essential for team development and provides practical guidelines on naming, class design, function composition, and testing—including SOLID principles, meaningful identifiers, single‑responsibility classes, short functions, and test‑driven development—to improve readability, extensibility, and overall software quality.

clean codenaming conventionsrefactoring
0 likes · 19 min read
How to Write Clean and Maintainable Code: Naming, Classes, Functions, and Testing
Efficient Ops
Efficient Ops
Mar 23, 2025 · Operations

Why Using Unit Test Coverage as a Hard Gate Fails and What Actually Works

The article critiques the practice of enforcing unit‑test coverage as a strict quality gate, explains why both overall and incremental coverage thresholds can be gamed, and proposes showing incremental coverage in merge requests while improving overall coverage through broader engineering processes.

DevOpsSoftware Engineeringquality gate
0 likes · 4 min read
Why Using Unit Test Coverage as a Hard Gate Fails and What Actually Works
Code Mala Tang
Code Mala Tang
Mar 12, 2025 · Fundamentals

Master Python Doctest: Embed Tests Directly in Your Docs

This guide explains how Python's built‑in doctest module lets you write test cases inside docstrings, run them from the command line or programmatically, handle common pitfalls like whitespace and floating‑point issues, and integrate doctests into larger projects for reliable documentation‑driven testing.

Code ExamplesDocumentationdoctest
0 likes · 7 min read
Master Python Doctest: Embed Tests Directly in Your Docs
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Mar 1, 2025 · Fundamentals

How Two Prompts Enable Cursor to Batch‑Generate Unit Tests

The article details a step‑by‑step workflow that uses two carefully crafted prompts with Cursor to automatically locate source files in a large monorepo, record tasks, iteratively generate Vitest unit tests, track progress, and handle failures, turning a 11 k‑line codebase into a semi‑automated test suite.

CursorLLM automationMonorepo
0 likes · 8 min read
How Two Prompts Enable Cursor to Batch‑Generate Unit Tests
Volcano Engine Developer Services
Volcano Engine Developer Services
Dec 26, 2024 · Artificial Intelligence

How LLMs Can Auto-Generate Unit Tests: Insights from ByteDance’s QCon Talk

This article summarizes ByteDance’s quality‑efficiency expert Zhao Liang’s QCon presentation on using large language models to automatically generate unit tests, covering pain points, goals, data‑quality engineering, model‑analysis fusion, architecture, evaluation metrics, and future plans for a production‑grade testing tool.

AILLMSoftware Engineering
0 likes · 26 min read
How LLMs Can Auto-Generate Unit Tests: Insights from ByteDance’s QCon Talk
Radish, Keep Going!
Radish, Keep Going!
Dec 23, 2024 · Backend Development

Speed Up Go Cache Expiration Tests with testing/synctest

This article explains how Go's testing/synctest experiment speeds up cache expiration tests by using a virtual clock and bubble isolation, providing code examples that reduce a five‑second wait to milliseconds while ensuring reliable concurrent test execution.

Goconcurrencygo-cache
0 likes · 7 min read
Speed Up Go Cache Expiration Tests with testing/synctest
JD Tech
JD Tech
Nov 28, 2024 · Fundamentals

Comprehensive Guide to Unit Testing Strategies and Tools for Java Projects

This article presents a detailed, step‑by‑step guide on improving unit test coverage in large Java codebases, covering strategies such as mocking, divide‑and‑conquer, tool‑assisted test generation, reflection‑based coverage, Maven configuration, and practical tips for handling static methods, final classes, and test data replay.

JUnitJavaMockito
0 likes · 27 min read
Comprehensive Guide to Unit Testing Strategies and Tools for Java Projects
php Courses
php Courses
Oct 28, 2024 · Backend Development

Introduction to Unit Testing with PHPUnit for PHP

This article explains the concept and importance of software testing, outlines various test types, and provides a step‑by‑step guide with code examples on installing PHPUnit, creating a Calculator class, writing unit tests, and running them to ensure reliable PHP applications.

Backend DevelopmentPHPphpunit
0 likes · 7 min read
Introduction to Unit Testing with PHPUnit for PHP
Alibaba Cloud Native
Alibaba Cloud Native
Oct 25, 2024 · Fundamentals

How to Tackle Legacy Code: Strategies, Unit‑Testing Pitfalls, and Cost‑Benefit Analysis

This article defines legacy code, categorizes its types, outlines practical handling strategies—including rewriting, refactoring, and targeted unit testing—examines common unit‑testing mistakes, introduces a cost‑benefit quadrant model, and shows how the Tongyi Lingma tool can assist each step.

Code RefactoringLegacy Codecost-benefit analysis
0 likes · 9 min read
How to Tackle Legacy Code: Strategies, Unit‑Testing Pitfalls, and Cost‑Benefit Analysis
Test Development Learning Exchange
Test Development Learning Exchange
Oct 12, 2024 · Fundamentals

Comprehensive Guide to Common pytest Assertion Techniques

This article introduces the core assertion methods in pytest, covering basic assertions, multiple assertions, exception handling, specific exception messages, list and dictionary checks, floating‑point approximations, string and tuple validation, subset verification, and log capture, each illustrated with clear Python code examples.

Pythonassertionspytest
0 likes · 8 min read
Comprehensive Guide to Common pytest Assertion Techniques
Test Development Learning Exchange
Test Development Learning Exchange
Oct 9, 2024 · Backend Development

Understanding pytest Fixtures: Concepts, Scope, Dependencies, Parameterization, and Usage

This article explains pytest fixtures, covering their basic concept, definition, scope options (function, module, class, session), dependencies, parameterization, use of yield for cleanup, common usage scenarios such as data preparation, database connections, and mock objects, as well as custom markers and global registration.

Automationfixturepytest
0 likes · 7 min read
Understanding pytest Fixtures: Concepts, Scope, Dependencies, Parameterization, and Usage
Test Development Learning Exchange
Test Development Learning Exchange
Sep 27, 2024 · Backend Development

Master pytest: Simplify Python Testing with Powerful Features

This article provides a comprehensive, step‑by‑step guide to using pytest for Python unit testing, covering its simplicity, advanced assertions, parameterized tests, automatic discovery, plugin ecosystem, custom fixtures, command‑line options, exception handling, parallel execution, and detailed error reporting.

Parallel TestingPluginsfixtures
0 likes · 8 min read
Master pytest: Simplify Python Testing with Powerful Features
Test Development Learning Exchange
Test Development Learning Exchange
Sep 20, 2024 · Fundamentals

Using pytest-assume for Assumption‑Based Testing in Python

This guide introduces the pytest‑assume plugin, showing how to install it, write assumption‑based tests with code examples, handle failures, apply advanced features like decorators, combine with regular asserts, perform conditional checks, and customize error messages for more flexible Python testing.

assumptionpytestpytest-assume
0 likes · 8 min read
Using pytest-assume for Assumption‑Based Testing in Python
Test Development Learning Exchange
Test Development Learning Exchange
Sep 11, 2024 · Fundamentals

Python Basics: Dictionaries, Sets, File Operations, Regular Expressions, Logging, Unit Testing, Profiling, and Third‑Party Libraries

This tutorial introduces core Python concepts—including dictionaries, sets, file and directory handling, regular expressions, logging, unit testing, performance profiling, and common third‑party libraries—providing clear explanations and ready‑to‑run code examples for each topic.

Profilingfile-handlinglogging
0 likes · 6 min read
Python Basics: Dictionaries, Sets, File Operations, Regular Expressions, Logging, Unit Testing, Profiling, and Third‑Party Libraries
Alibaba Cloud Developer
Alibaba Cloud Developer
Aug 27, 2024 · Fundamentals

Why Robust Testing Is the Key to Software Quality: From Shift‑Left to Automation

This article explains how comprehensive testing—from early shift‑left practices and lifecycle coverage to automated unit, integration, and end‑to‑end tests—ensures software quality, reduces costs, and supports rapid development, illustrated with real‑world case studies and practical design techniques.

Shift-LeftSoftware Testinge2e testing
0 likes · 21 min read
Why Robust Testing Is the Key to Software Quality: From Shift‑Left to Automation
Java Tech Enthusiast
Java Tech Enthusiast
Aug 22, 2024 · Fundamentals

Using PowerMock for Unit Testing in Java: Basics and Advanced Techniques

The article demonstrates how PowerMock can be used to unit‑test a Java FileParser class—showing basic mocks for files and streams, advanced techniques for final and static classes, and achieving full coverage—while warning that its heavy class‑loader overhead can dramatically slow large test suites and increase memory consumption.

JUnitJavaMocking
0 likes · 10 min read
Using PowerMock for Unit Testing in Java: Basics and Advanced Techniques
Alibaba Cloud Developer
Alibaba Cloud Developer
Aug 20, 2024 · Backend Development

Why Switch from PowerMock to Mockito‑Only? A Practical Migration Guide

This article explains why upgrading JDK 11 prompts the removal of the unmaintained PowerMock framework, outlines the steps to replace it with Mockito‑Only—including JUnit runner configuration, handling static, private, and final methods, multithreaded mock limitations, and performance gains—while providing code examples and migration tips.

JDK11 migrationJava TestingMocking
0 likes · 15 min read
Why Switch from PowerMock to Mockito‑Only? A Practical Migration Guide
DevOps
DevOps
Aug 4, 2024 · Fundamentals

Understanding Test‑Driven Development (TDD), UTDD, ATDD, and BDD with a Practical Java Example

This article explains the concepts of Test‑Driven Development (TDD), Unit Test‑Driven Development (UTDD), Acceptance Test‑Driven Development (ATDD) and Behavior‑Driven Development (BDD), discusses why TDD is not dead, compares the three approaches, and provides a step‑by‑step Java implementation with code samples, testing workflow, and refactoring guidance.

ATDDBDDJava
0 likes · 14 min read
Understanding Test‑Driven Development (TDD), UTDD, ATDD, and BDD with a Practical Java Example
ITPUB
ITPUB
Jul 17, 2024 · Backend Development

10 Proven Techniques to Slash Java Bugs and Boost Code Quality

This guide presents ten practical strategies—including IDE selection, static analysis tools, unit testing, code reviews, and learning from others' post‑mortems—to help developers dramatically reduce bugs, improve code quality, and increase overall productivity.

Code reviewJavabug reduction
0 likes · 10 min read
10 Proven Techniques to Slash Java Bugs and Boost Code Quality
Architect
Architect
Jul 8, 2024 · Fundamentals

Master Clean Code: Naming, Classes, Functions, and Testing Best Practices

This guide explains why clean code matters, outlines practical naming conventions, class design principles, function structuring rules, and testing strategies—including TDD, the FIRST criteria, and automated test generation—to help developers write maintainable, readable, and high‑quality software.

SOLID principlesTDDclean code
0 likes · 16 min read
Master Clean Code: Naming, Classes, Functions, and Testing Best Practices
Continuous Delivery 2.0
Continuous Delivery 2.0
May 30, 2024 · Artificial Intelligence

Meta’s TestGen‑LLM: AI‑Driven Automatic Unit Test Generation for Kotlin Code

In 2024 Meta introduced TestGen‑LLM, an AI‑powered tool that automatically generates Kotlin unit tests using large language models, improving test coverage through a multi‑stage pipeline of candidate generation, compilation filtering, execution filtering, coverage validation, refactoring, and engineer review, with reported coverage gains across Facebook and Instagram codebases.

AIKotlinLLM
0 likes · 6 min read
Meta’s TestGen‑LLM: AI‑Driven Automatic Unit Test Generation for Kotlin Code
Go Programming World
Go Programming World
May 16, 2024 · Backend Development

Using Monkey Patching with gomonkey for Unit Testing in Go

This article demonstrates how to apply Monkey Patching in Go using the gomonkey library to unit‑test a simple HTTP service, covering code examples, dependency analysis, patch creation, test execution parameters, and practical considerations such as inlining and concurrency limitations.

BackendGoHTTP
0 likes · 12 min read
Using Monkey Patching with gomonkey for Unit Testing in Go
Java Architect Essentials
Java Architect Essentials
May 14, 2024 · Fundamentals

Master Clean Code: Naming, Classes, Functions, and Testing Made Simple

This article explains why clean code is essential for productivity and project health, and provides practical guidance on naming, class design, function design, and testing—including SOLID principles, parameter handling, exception use, and test‑driven development—to help developers write maintainable, high‑quality software.

SOLIDclean codenaming conventions
0 likes · 17 min read
Master Clean Code: Naming, Classes, Functions, and Testing Made Simple
JD Retail Technology
JD Retail Technology
May 13, 2024 · Backend Development

A Minimalist Guide to Setting Up Unit Tests in Spring Boot

This article presents a concise, beginner-friendly approach to building a Spring Boot unit testing environment using only essential Maven dependencies and test classes, covering both integration-style and pure unit test techniques, complete with annotated examples and practical testing tips.

Integration TestJUnitJava
0 likes · 9 min read
A Minimalist Guide to Setting Up Unit Tests in Spring Boot
Java Tech Enthusiast
Java Tech Enthusiast
Apr 29, 2024 · Fundamentals

Nine Practical Techniques to Reduce Code Bugs

To cut bugs and boost productivity, developers should use a robust IDE, integrate static analysis tools like FindBugs and CheckStyle, run SonarQube and Fortify for quality and security checks, write unit and functional tests, automate regression suites, and regularly conduct peer code reviews.

Code reviewbug reductioncode quality
0 likes · 8 min read
Nine Practical Techniques to Reduce Code Bugs
Su San Talks Tech
Su San Talks Tech
Apr 17, 2024 · Fundamentals

10 Proven Strategies to Slash Code Bugs and Boost Development Efficiency

This article presents ten practical techniques—including choosing the right IDE, integrating static analysis tools like FindBugs and CheckStyle, using SonarQube and Fortify, writing unit and automated tests, performing incremental code reviews, and learning from others' pitfalls—to help developers dramatically reduce bugs and improve code quality.

Code reviewbug reductioncode quality
0 likes · 10 min read
10 Proven Strategies to Slash Code Bugs and Boost Development Efficiency
Open Source Tech Hub
Open Source Tech Hub
Apr 13, 2024 · Databases

How to Use an In‑Memory SQLite Database for Fast, Isolated PHP Unit Tests

This guide explains why an in‑memory SQLite database is ideal for PHP unit testing, outlines its key benefits such as isolation, speed, and resource efficiency, and provides step‑by‑step code examples for setup, data handling, cleanup, exception handling, schema verification, data providers, and transaction testing.

In-Memory DatabasePHPSQLite
0 likes · 9 min read
How to Use an In‑Memory SQLite Database for Fast, Isolated PHP Unit Tests
Test Development Learning Exchange
Test Development Learning Exchange
Apr 8, 2024 · Fundamentals

Using assertpy for Enhanced Python Assertions

The article introduces the assertpy library for Python, explains its purpose of enhancing assertions, and provides a comprehensive set of example code snippets demonstrating how to validate strings, collections, numbers, booleans, files, and more using readable assertpy methods.

assertionsassertpytesting
0 likes · 4 min read
Using assertpy for Enhanced Python Assertions
Ops Development & AI Practice
Ops Development & AI Practice
Mar 22, 2024 · Fundamentals

Boost Your Code Review: Standards, OOP, Design Patterns & Unit Testing

This article outlines how establishing clear review standards, leveraging object‑oriented principles and SOLID design rules, applying common design patterns, and requiring unit tests can transform code reviews from a perfunctory task into an effective quality‑boosting, knowledge‑sharing practice for development teams.

Code reviewOOPSoftware quality
0 likes · 6 min read
Boost Your Code Review: Standards, OOP, Design Patterns & Unit Testing
Tencent Cloud Developer
Tencent Cloud Developer
Mar 5, 2024 · Fundamentals

Programmer's Growth: Eight Key Lessons from 15 Years of Experience

After fifteen years of software development, the author learns that writing good code demands rapid trial‑and‑error, modular design, SOLID principles, early unit testing, and controlled complexity, while avoiding perfectionism, embracing stakeholder communication, and focusing on high‑ROI learning to create reusable, maintainable tools.

Career DevelopmentSoftware Engineeringcode quality
0 likes · 21 min read
Programmer's Growth: Eight Key Lessons from 15 Years of Experience
The Dominant Programmer
The Dominant Programmer
Feb 20, 2024 · Backend Development

Integrating Elasticsearch with Spring Boot for Full CRUD Operations

This guide walks through integrating Spring Data Elasticsearch into a Spring Boot application, covering entity mapping annotations, repository creation, service layer implementation, and unit tests to perform create, read, update, delete, and fuzzy search operations on Elasticsearch indices.

CRUDElasticsearchJava
0 likes · 8 min read
Integrating Elasticsearch with Spring Boot for Full CRUD Operations
Tencent Cloud Developer
Tencent Cloud Developer
Jan 25, 2024 · Backend Development

How to Write Testable Business Code in Go: A Practical Guide

The guide shows that by consciously designing Go data structures and function interfaces—using pure functions, parameter injection, interface abstractions, struct‑based objects, or function‑variable patterns—and avoiding init(), developers can expose and control all dependencies, making business code inherently testable and achieving high unit‑test coverage.

Backend DevelopmentGoMocking
0 likes · 17 min read
How to Write Testable Business Code in Go: A Practical Guide
HelloTech
HelloTech
Jan 4, 2024 · Frontend Development

Introduction to Front-End Unit Testing with Jest

This guide introduces front‑end unit testing with Jest, explaining TDD and BDD concepts, installation, writing simple and ES6/TypeScript tests, configuring coverage, using common matchers, and employing mock functions, timers, and module mocking to ensure reliable, maintainable code.

JestMockingTDD
0 likes · 14 min read
Introduction to Front-End Unit Testing with Jest
37 Interactive Technology Team
37 Interactive Technology Team
Dec 29, 2023 · Frontend Development

Why Unit Testing is Needed and How to Write Front‑End Unit Tests with Jest

Unit testing prevents recurring bugs in large front‑end projects by forcing modular, testable code, and with Jest—especially for Vue—developers can quickly write, run, and enforce comprehensive tests covering props, methods, slots, Vuex, and coverage thresholds, while AI tools can scaffold boilerplate test files.

Jestfrontendtest coverage
0 likes · 14 min read
Why Unit Testing is Needed and How to Write Front‑End Unit Tests with Jest
Liangxu Linux
Liangxu Linux
Dec 28, 2023 · Fundamentals

Essential Open‑Source C Unit Testing Frameworks and Unity on STM32

This note introduces several open‑source C unit‑testing frameworks, compares their features, and provides a step‑by‑step guide for porting and using the Unity framework on an STM32 platform, including configuration, test case writing, and result interpretation.

CUnityembedded
0 likes · 9 min read
Essential Open‑Source C Unit Testing Frameworks and Unity on STM32
phodal
phodal
Dec 25, 2023 · Artificial Intelligence

Can AI Write Perfect Unit Tests? Inside AutoDev’s Prompt‑Fine‑Tune Pipeline

This article explains how the open‑source AutoDev plugin builds an end‑to‑end AI‑assisted coding solution that fine‑tunes open LLMs, constructs a Unit Eval dataset, engineers prompts for unit‑test generation, and enforces quality through a unified write‑evaluate pipeline.

AIJavaSoftware Testing
0 likes · 9 min read
Can AI Write Perfect Unit Tests? Inside AutoDev’s Prompt‑Fine‑Tune Pipeline
Huolala Tech
Huolala Tech
Nov 16, 2023 · Fundamentals

Why Unit Testing Matters and How to Master It in Java Projects

This article explains what unit testing is, why it is essential for software quality, outlines its benefits such as early bug detection and design improvement, and provides practical guidance on writing effective Java unit tests using JUnit5, Mockito, and JaCoCo, along with CI integration and best‑practice principles.

JUnit5JaCoCoJava
0 likes · 28 min read
Why Unit Testing Matters and How to Master It in Java Projects
Open Source Tech Hub
Open Source Tech Hub
Nov 15, 2023 · Backend Development

Mastering CLI Path Mapping and PHPUnit Setup for PHP Backend Projects

This guide walks through configuring CLI interpreter path mappings, setting up Docker container paths, installing PHPUnit, creating a comprehensive phpunit.xml configuration, organizing test directories, writing a bootstrap script, and generating test reports, providing a complete backend testing workflow for PHP projects.

Backend testingCLIConfiguration
0 likes · 4 min read
Mastering CLI Path Mapping and PHPUnit Setup for PHP Backend Projects
MaGe Linux Operations
MaGe Linux Operations
Nov 14, 2023 · Fundamentals

Master Pytest: From Basics to Advanced Fixtures and Allure Reporting

This comprehensive guide walks you through Pytest fundamentals, basic usage, fixture mechanisms, conftest configuration, and advanced features such as Allure report beautification, parameterized data‑driven testing, and YAML integration, providing practical code examples for Python test automation.

AllurePythonfixtures
0 likes · 25 min read
Master Pytest: From Basics to Advanced Fixtures and Allure Reporting
Huolala Tech
Huolala Tech
Oct 24, 2023 · Operations

How Huolala Built a Scalable Unit Testing Platform with Tekton, SonarQube, and GitLab

This article describes Huolala's journey from a legacy PHP codebase to a Java‑centric microservice architecture, the common misconceptions and difficulties of unit testing, and the design of an automated CI/CD pipeline that integrates Tekton, SonarQube, GitLab Runner, JUnit5, and Mockito to enforce coverage gates and improve code quality.

AutomationGitLabJava
0 likes · 15 min read
How Huolala Built a Scalable Unit Testing Platform with Tekton, SonarQube, and GitLab
ITPUB
ITPUB
Oct 20, 2023 · Artificial Intelligence

Boost Your Coding Workflow with Better ChatGPT Prompts: Summarize, Refactor, Test

This article shows programmers how to harness ChatGPT beyond simple Q&A by using advanced prompting techniques for knowledge summarization, task decomposition, code reading, refactoring, generation, unit‑test creation, and plugin integration, turning AI into a practical development assistant.

AI for DevelopersChatGPTCode Generation
0 likes · 18 min read
Boost Your Coding Workflow with Better ChatGPT Prompts: Summarize, Refactor, Test
ByteDance Data Platform
ByteDance Data Platform
Oct 11, 2023 · Backend Development

How Volcano Engine Rebuilt Its Ad‑Testing Platform for Scalability and Reliability

This article explains how Volcano Engine identified the tangled authorization, data‑fetching, and performance problems of its advertising AB‑testing platform and refactored it by splitting services, redesigning the data model with MySQL and ClickHouse, applying DAG scheduling, time‑wheel algorithms, Domain‑Driven Design, and rigorous unit testing to achieve a more stable, extensible backend solution.

AB testingAdvertisingBackend
0 likes · 16 min read
How Volcano Engine Rebuilt Its Ad‑Testing Platform for Scalability and Reliability
Architect
Architect
Oct 5, 2023 · Fundamentals

Mastering Clean Code: Naming, Classes, Functions, and Tests Explained

This article explains why clean code matters, demonstrates how meaningful naming, single‑responsibility classes, well‑structured functions, and disciplined testing (TDD and the FIRST principles) improve readability, maintainability, and productivity, using concrete Java examples, refactorings, and step‑by‑step guidelines.

TDDclean codenaming conventions
0 likes · 17 min read
Mastering Clean Code: Naming, Classes, Functions, and Tests Explained
Continuous Delivery 2.0
Continuous Delivery 2.0
Sep 22, 2023 · Frontend Development

Applying the Front Door First Principle to UI Component Testing

The article explains the “front door first” principle for UI component testing, showing how a disabled Buy button can be missed by unit tests, demonstrates proper interaction‑based tests with code examples, discusses interface design and mock usage, and concludes with a promotion for a Python continuous‑deployment course.

UI testingfront door principlefrontend
0 likes · 6 min read
Applying the Front Door First Principle to UI Component Testing
Alibaba Cloud Developer
Alibaba Cloud Developer
Sep 20, 2023 · Fundamentals

Why Unit Testing Accelerates Development: From History to Best Practices

This article traces the evolution of software testing from manual QA to developer‑driven automation, explains what unit testing is, presents the testing pyramid, outlines its many benefits, and warns against common anti‑patterns and misconceptions to help teams adopt effective unit testing.

DevOpsSoftware TestingTesting Pyramid
0 likes · 13 min read
Why Unit Testing Accelerates Development: From History to Best Practices