Tagged articles
219 articles
Page 2 of 3
php Courses
php Courses
Feb 22, 2024 · Artificial Intelligence

Building Reinforcement Learning Algorithms with PHP

This article introduces reinforcement learning, explains its core concepts, and demonstrates how to implement a simple reinforcement learning algorithm in PHP using neural‑network libraries such as Keras, providing a complete code example that includes environment and agent classes.

Artificial IntelligenceCode ExamplePHP
0 likes · 4 min read
Building Reinforcement Learning Algorithms with PHP
php Courses
php Courses
Feb 6, 2024 · Backend Development

How to Use PHP’s array_multisort() Function to Sort Multiple Arrays

This article explains the PHP array_multisort() function, detailing its syntax, parameter options, and a step‑by‑step example that sorts name, age, and score arrays, followed by the resulting output and a concise summary of its practical usage.

Code ExamplePHPSorting
0 likes · 4 min read
How to Use PHP’s array_multisort() Function to Sort Multiple Arrays
php Courses
php Courses
Jan 23, 2024 · Backend Development

Using PHP file_put_contents() to Write and Append Data to Files

This article explains the PHP file_put_contents() function, covering its syntax, parameters, return values, and provides clear code examples for both overwriting and appending data to files, helping developers efficiently handle file writing tasks in backend applications.

Code ExamplePHPbackend-development
0 likes · 4 min read
Using PHP file_put_contents() to Write and Append Data to Files
php Courses
php Courses
Jan 10, 2024 · Backend Development

Using PHP’s is_numeric() Function to Determine If a Variable Is Numeric

This article explains how the PHP is_numeric() function checks whether a variable is numeric, returns a boolean result, and demonstrates its usage with code examples for direct variable checks and form input validation, while also highlighting special edge cases to watch out for.

BackendCode ExamplePHP
0 likes · 4 min read
Using PHP’s is_numeric() Function to Determine If a Variable Is Numeric
Java Architect Essentials
Java Architect Essentials
Dec 30, 2023 · Backend Development

Design and Implementation of a Java Rule Engine

This article presents a Java-based rule engine design, illustrating rule abstraction, concrete rule implementations, and a flexible executor supporting AND/OR logic, accompanied by code examples and a discussion of its advantages and drawbacks for maintainability.

Code ExampleDesign Patternsbackend-development
0 likes · 8 min read
Design and Implementation of a Java Rule Engine
php Courses
php Courses
Nov 30, 2023 · Backend Development

Using PHP file_put_contents() to Write Data to Files

This article explains the PHP file_put_contents() function, its syntax, parameters, return values, and provides practical examples for writing strings, appending data, writing arrays, and using callbacks to dynamically generate file content.

BackendCode ExampleTutorial
0 likes · 5 min read
Using PHP file_put_contents() to Write Data to Files
php Courses
php Courses
Nov 14, 2023 · Backend Development

Understanding PHP dirname() Function with Examples

This article explains PHP's dirname() function, detailing its syntax, parameters, and return value, and demonstrates its usage through four practical code examples that show how to extract directory paths from absolute, relative, and Windows-style file paths, including handling edge cases.

Code ExampleFile PathPHP
0 likes · 5 min read
Understanding PHP dirname() Function with Examples
php Courses
php Courses
Nov 13, 2023 · Backend Development

Using PHP array_push() to Add Elements to an Array

This tutorial explains the PHP array_push() function, its syntax, parameters, return behavior, error handling, and provides clear code examples showing how to append single or multiple elements to an array, including an alternative bracket syntax.

ArraysCode ExamplePHP
0 likes · 5 min read
Using PHP array_push() to Add Elements to an Array
php Courses
php Courses
Nov 10, 2023 · Backend Development

Using PHP's array_map() Function: Syntax, Examples, and Summary

This article explains PHP's array_map() function, detailing its syntax, parameters, and usage through practical examples with both named and anonymous callbacks, demonstrating how to transform arrays efficiently and shows the resulting output for verification.

Code ExamplePHParray_map
0 likes · 5 min read
Using PHP's array_map() Function: Syntax, Examples, and Summary
DaTaobao Tech
DaTaobao Tech
Nov 1, 2023 · Fundamentals

Understanding the Chain of Responsibility Design Pattern

The Chain of Responsibility pattern links a series of handler objects so that a request can be passed along until one processes it, decoupling sender and receiver, supporting dynamic composition, runtime flexibility, and the Open/Closed principle, as illustrated by a Java leave‑approval workflow.

Chain of ResponsibilityCode ExampleSoftware Architecture
0 likes · 12 min read
Understanding the Chain of Responsibility Design Pattern
php Courses
php Courses
Oct 11, 2023 · Backend Development

PHP file() Function: Syntax, Parameters, Return Value, and Usage Examples

This article explains PHP's file() function, detailing its syntax, parameters, return values, and provides multiple code examples for reading local and remote files, using flags and stream contexts, while noting memory considerations and alternative functions for large files.

Code ExampleFilePHP
0 likes · 5 min read
PHP file() Function: Syntax, Parameters, Return Value, and Usage Examples
php Courses
php Courses
Oct 8, 2023 · Backend Development

PHP fwrite() Function: Syntax, Parameters, Usage, and Examples

This article explains the PHP fwrite() function, covering its syntax, parameter details, return values, and practical usage examples such as opening files, writing data with optional length limits, checking success, and closing files, including notes on append mode.

Code ExamplePHPfile-handling
0 likes · 4 min read
PHP fwrite() Function: Syntax, Parameters, Usage, and Examples
Test Development Learning Exchange
Test Development Learning Exchange
Sep 27, 2023 · Fundamentals

Designing a Scalable Python Automated Testing Architecture: Strategies, Best Practices, and Sample Implementation

This article outlines key principles and best practices for designing a scalable Python automated testing architecture, covering test strategy definition, framework selection, modular and keyword‑driven design, test data management, error handling, reporting, CI integration, and provides a complete example implementation.

Automated TestingCode ExamplePython
0 likes · 9 min read
Designing a Scalable Python Automated Testing Architecture: Strategies, Best Practices, and Sample Implementation
Programmer DD
Programmer DD
Sep 25, 2023 · Backend Development

Discover Java 21’s New repeat() Method for StringBuilder and StringBuffer

Java 21 introduces repeat() overloads for StringBuilder and StringBuffer, allowing you to duplicate characters or CharSequence efficiently; the article demonstrates usage with sample code, explains the Unicode codePoint variant, and invites readers to explore creative applications of this new API.

Code ExampleJava 21java
0 likes · 2 min read
Discover Java 21’s New repeat() Method for StringBuilder and StringBuffer
php Courses
php Courses
Sep 16, 2023 · Backend Development

Understanding the Null Safe Operator in PHP 8

This article explains PHP 8's Null safe operator, its syntax, benefits, and provides practical code examples demonstrating how to simplify null checks, handle chained property access, and combine with other operators, while noting version requirements and best practices.

Code ExampleNull Safe OperatorPHP
0 likes · 5 min read
Understanding the Null Safe Operator in PHP 8
php Courses
php Courses
Aug 18, 2023 · Backend Development

Using PHP's pi() Function to Retrieve the Approximate Value of π

The article explains PHP's built‑in pi() function, shows how to retrieve the approximate value of π, demonstrates its use in simple output and in calculating a circle’s circumference and area with code examples, and notes the function’s limited precision.

Code ExamplePHPmathematics
0 likes · 4 min read
Using PHP's pi() Function to Retrieve the Approximate Value of π
php Courses
php Courses
Apr 17, 2023 · Backend Development

Generating SKU Combinations with Cartesian Product in PHP

This article demonstrates how to generate all possible SKU combinations in PHP by using Cartesian product on color, size, and version arrays, includes a full code example and the resulting array output.

ArrayBackendCode Example
0 likes · 3 min read
Generating SKU Combinations with Cartesian Product in PHP
MaGe Linux Operations
MaGe Linux Operations
Apr 9, 2023 · Backend Development

Build a Go HTTP Proxy from Scratch: Full Guide with Code

Learn how to implement a functional HTTP/HTTPS proxy in Go, covering proxy concepts, forward and reverse types, protocol specifics, header transformations, and a complete, runnable code example that listens on TCP, parses requests, connects to target servers, and forwards traffic.

BackendCode ExampleGolang
0 likes · 11 min read
Build a Go HTTP Proxy from Scratch: Full Guide with Code
DaTaobao Tech
DaTaobao Tech
Nov 14, 2022 · Mobile Development

Evolution and Architecture of Taobao Search Scroll Containers (XSearch)

The article traces Taobao’s XSearch evolution from a rigid 1.0 scrolling container to a flexible 2.0 architecture built on NestedScroll, detailing unified data models, MetaLayout rendering, customizable headers, and reusable components that improve code reuse, extensibility, and consistent UI across multiple search scenarios.

AndroidCode ExampleContainer Architecture
0 likes · 16 min read
Evolution and Architecture of Taobao Search Scroll Containers (XSearch)
DaTaobao Tech
DaTaobao Tech
Nov 7, 2022 · Fundamentals

Understanding the Decorator Pattern in Java: Concepts, Implementation, and Comparison

The article explains Java’s Decorator pattern, detailing its four roles, how to build abstract components and concrete decorators, demonstrates dynamic runtime extension of object behavior through sample code, compares it with inheritance, Proxy and Adapter patterns, and outlines its advantages, drawbacks, and suitable use cases.

Code ExampleDecorator PatternSoftware Architecture
0 likes · 15 min read
Understanding the Decorator Pattern in Java: Concepts, Implementation, and Comparison
DaTaobao Tech
DaTaobao Tech
Sep 30, 2022 · Fundamentals

Understanding the Strategy Design Pattern in Java

The Strategy design pattern in Java encapsulates interchangeable algorithms behind a common interface, using concrete strategy classes and a context holder to delegate behavior at runtime, which enhances flexibility, adheres to the Open/Closed principle, reduces conditional complexity, though it may increase class count and require client awareness of available strategies.

Code ExampleSoftware Architecturejava
0 likes · 14 min read
Understanding the Strategy Design Pattern in Java
Laravel Tech Community
Laravel Tech Community
Jun 14, 2022 · Fundamentals

Bubble Sort Algorithm Explained with PHP Implementation

This article explains the Bubble Sort algorithm, its O(n²) time and O(1) space complexities, describes the step‑by‑step sorting process, provides a complete PHP implementation, and shows sample input and output to illustrate how the algorithm orders data.

Code ExamplePHPSorting Algorithm
0 likes · 3 min read
Bubble Sort Algorithm Explained with PHP Implementation
MaGe Linux Operations
MaGe Linux Operations
May 13, 2022 · Backend Development

Build a Go HTTP Proxy from Scratch: Step-by-Step Guide

This tutorial explains proxy fundamentals, compares forward and reverse proxies, details HTTP and HTTPS proxy header differences, and provides a complete, runnable Go implementation that listens on port 8080 and transparently forwards client requests to target servers.

BackendCode ExampleGo
0 likes · 9 min read
Build a Go HTTP Proxy from Scratch: Step-by-Step Guide
MaGe Linux Operations
MaGe Linux Operations
May 5, 2022 · Fundamentals

Master Python’s with Statement: Simplify Resource Management

This article explains the purpose and mechanics of Python's with statement, showing how it leverages context managers to replace verbose try‑finally blocks, and demonstrates both class‑based and decorator‑based implementations with clear code examples.

Code ExampleDecoratorPython
0 likes · 6 min read
Master Python’s with Statement: Simplify Resource Management
Python Programming Learning Circle
Python Programming Learning Circle
Apr 25, 2022 · Fundamentals

Understanding Python Lambda Expressions: Syntax, Examples, and Use Cases

Python's lambda expressions provide a concise way to create anonymous functions, and this guide explains their syntax, demonstrates simple to complex examples—including arithmetic, conditional logic, and sorting—and compares them with traditional functions and built‑in utilities like filter and list comprehensions.

Code ExampleLambdaPython
0 likes · 5 min read
Understanding Python Lambda Expressions: Syntax, Examples, and Use Cases
Laravel Tech Community
Laravel Tech Community
Apr 5, 2022 · Information Security

Preventing XSS Attacks in PHP: Best Practices and Code Examples

This article explains various methods to prevent XSS injection in PHP, covering the limitations of built‑in filters, proper use of htmlspecialchars and htmlentities, replacement techniques, and provides comprehensive PHP functions with code examples for sanitizing user input and removing malicious scripts.

Code ExamplePHPWeb Security
0 likes · 7 min read
Preventing XSS Attacks in PHP: Best Practices and Code Examples
Cognitive Technology Team
Cognitive Technology Team
Mar 19, 2022 · Fundamentals

Advantages and Disadvantages of Using Static Factory Methods in Java

Static factory methods in Java offer several benefits over constructors—named creation, instance reuse, flexible return types, and the ability to vary returned subclasses based on parameters—while also presenting drawbacks such as reduced subclassability and discoverability, making them a selective alternative for object creation.

Code ExampleObject CreationStatic Factory
0 likes · 6 min read
Advantages and Disadvantages of Using Static Factory Methods in Java
Laravel Tech Community
Laravel Tech Community
Mar 7, 2022 · Backend Development

Understanding PHP Traits: Usage, Conflict Resolution, and Advanced Features

This article explains PHP's Trait feature, showing how to use it for multiple inheritance, resolve method and property conflicts with insteadof and as, combine multiple Traits, and leverage advanced capabilities such as abstract methods and static members, all illustrated with complete code examples.

Code ExampleMultiple InheritancePHP
0 likes · 7 min read
Understanding PHP Traits: Usage, Conflict Resolution, and Advanced Features
Python Crawling & Data Mining
Python Crawling & Data Mining
Mar 3, 2022 · Fundamentals

5 Clever Python Ways to Compute 1‑2+3‑4+…+99

This article presents a Python fan's arithmetic challenge—calculating the alternating sum 1‑2+3‑4+…+99—and walks through five distinct code solutions, from basic loops to concise itertools one‑liners, highlighting their logic and trade‑offs.

Code ExampleLoopsPython
0 likes · 5 min read
5 Clever Python Ways to Compute 1‑2+3‑4+…+99
Python Crawling & Data Mining
Python Crawling & Data Mining
Mar 2, 2022 · Fundamentals

How to Compute Algebraic Functions in Python: Two Practical Methods

This article walks through a Python fan's question about implementing algebraic functions, presenting two solutions—one using basic arithmetic operators and another leveraging the sympy library—complete with code snippets, explanations, and visual illustrations to help beginners understand the approach.

Code ExamplePythonalgebraic-functions
0 likes · 4 min read
How to Compute Algebraic Functions in Python: Two Practical Methods
Top Architect
Top Architect
Jan 13, 2022 · Backend Development

Understanding MyBatis Dynamic SQL: Parsing, Nodes, and Execution

This article explains MyBatis dynamic SQL, covering its purpose, the distinction between static and dynamic SQL, the core SqlNode and SqlSource classes, how MyBatis parses and assembles SQL scripts recursively, and provides concrete code examples to illustrate each step.

Code ExampleDynamic SQLMyBatis
0 likes · 13 min read
Understanding MyBatis Dynamic SQL: Parsing, Nodes, and Execution
Python Programming Learning Circle
Python Programming Learning Circle
Jan 7, 2022 · Fundamentals

Using python-docx: Document Structure and Basic Operations

This article introduces the python‑docx library, explains its document model—including Document, Paragraph, Run, and Table objects—and provides practical Python code examples for creating, modifying, and styling Word documents, inserting headings, page breaks, tables, and images.

Code ExampleDocument ProcessingWord Automation
0 likes · 6 min read
Using python-docx: Document Structure and Basic Operations
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Dec 28, 2021 · Fundamentals

Mastering Java Reflection: What It Is, How It Works, and Real-World Uses

Java reflection lets programs inspect and manipulate classes, methods, and fields at runtime, enabling dynamic object creation, method invocation, and flexible framework design; this guide explains its definition, benefits, underlying mechanics, practical usage with code examples, and common scenarios such as JDBC driver loading and Spring IoC.

Code ExampleFrameworkReflection
0 likes · 8 min read
Mastering Java Reflection: What It Is, How It Works, and Real-World Uses
FunTester
FunTester
Dec 16, 2021 · Databases

Wrapping and Extending the LevelDB Java API with Custom Features

This article demonstrates how to encapsulate the native LevelDB Java API into a reusable class, adds support for integer values and Redis‑like operations such as increment, decrement, append, and cut, and provides complete code examples for the extended functionality.

Code ExampleDatabase WrapperLevelDB
0 likes · 6 min read
Wrapping and Extending the LevelDB Java API with Custom Features
Alibaba Terminal Technology
Alibaba Terminal Technology
Sep 29, 2021 · Mobile Development

How HarmonyOS Distributed Soft Bus Enables Multi‑Device Live Streaming for 1688 Sellers

This article explains how 1688's live‑streaming platform leverages HarmonyOS's distributed soft bus to coordinate multiple devices—phones, cameras, and large screens—allowing seamless data migration, interactive large‑screen displays, and low‑cost, high‑efficiency multi‑device broadcasting for merchants.

Code ExampleDistributed Soft BusHarmonyOS
0 likes · 15 min read
How HarmonyOS Distributed Soft Bus Enables Multi‑Device Live Streaming for 1688 Sellers
Java Tech Enthusiast
Java Tech Enthusiast
Sep 18, 2021 · Backend Development

Understanding Java URL and URLConnection

Java’s URL class lets you represent and fetch resources identified by a URL, while URLConnection (and its HttpURLConnection subclass) provides detailed control over HTTP requests such as setting methods, headers, and handling input/output streams, with custom handlers enabling protocol‑specific behavior.

Code ExampleHTTPURL
0 likes · 5 min read
Understanding Java URL and URLConnection
Top Architect
Top Architect
Sep 11, 2021 · Backend Development

Implementing SMS Verification in Java Using a Third‑Party API

This article provides a step‑by‑step guide for implementing a Java‑based SMS verification system, covering random code generation, API request construction, session handling, and includes full Java code for utility classes, configuration, and sending the verification message via a third‑party service.

APICode ExampleHTTP
0 likes · 7 min read
Implementing SMS Verification in Java Using a Third‑Party API
Programmer DD
Programmer DD
Sep 3, 2021 · Backend Development

How to Build a Java SMS Verification System with Spring Boot

This guide walks through the complete backend workflow for generating, sending, and validating SMS verification codes in a Spring Boot application, covering code generation, API integration, session handling, and utility classes with full Java examples.

Code ExampleHTTP requestSMS Verification
0 likes · 7 min read
How to Build a Java SMS Verification System with Spring Boot
Architect's Guide
Architect's Guide
Aug 31, 2021 · Backend Development

Design and Implementation of a Java Rule Engine

This article explains how to extend a trial‑user application rule by designing a flexible Java rule engine, detailing the logical conditions, abstract and concrete rule classes, a builder service supporting AND/OR composition, and discussing its advantages and drawbacks.

Code Examplejavarule engine
0 likes · 9 min read
Design and Implementation of a Java Rule Engine
Laravel Tech Community
Laravel Tech Community
Aug 14, 2021 · Backend Development

Using imagecreatefromjpeg to Load JPEG Images in PHP

This article explains the PHP imagecreatefromjpeg function, its parameters and return values, and provides a complete example that demonstrates loading a JPEG file, handling errors, creating a placeholder image, and outputting the result as a JPEG response.

BackendCode Exampleimage-processing
0 likes · 2 min read
Using imagecreatefromjpeg to Load JPEG Images in PHP
vivo Internet Technology
vivo Internet Technology
Jul 14, 2021 · Databases

An Overview of Lucene: Architecture, Indexing Workflow, and Code Implementation

The article introduces Apache Lucene 7.3.1, explains its core architecture and index hierarchy, details the two‑phase indexing and search workflow with code examples for document addition, deletion, merging, and query execution, and highlights its suitability for small‑to‑medium projects versus distributed alternatives.

Code ExampleFull‑Text Searchindexing
0 likes · 20 min read
An Overview of Lucene: Architecture, Indexing Workflow, and Code Implementation
JavaEdge
JavaEdge
Jul 6, 2021 · Fundamentals

Mastering the Decorator Pattern in Java: Dynamic Object Extension Explained

Learn how the Decorator pattern lets you dynamically add responsibilities to objects in Java without subclass explosion, covering its definition, core components, concrete examples with scroll‑bar decorators, advantages over inheritance, drawbacks, suitable scenarios, and best‑practice guidelines for flexible, maintainable code.

Code ExampleDecorator PatternDesign Patterns
0 likes · 7 min read
Mastering the Decorator Pattern in Java: Dynamic Object Extension Explained
Byte Quality Assurance Team
Byte Quality Assurance Team
Jun 23, 2021 · Fundamentals

Understanding Python Properties and Descriptors

This article explains Python's property decorator and descriptor protocol, showing how to turn methods into managed attributes, perform validation, compute derived values, and illustrates their implementation with clear code examples including a Student class, a custom descriptor, and a classmethod reimplementation.

Code ExampleDescriptorOOP
0 likes · 8 min read
Understanding Python Properties and Descriptors
Java Captain
Java Captain
May 16, 2021 · Game Development

Creating a Hero in a Java Game: Step-by-Step Tutorial (Part 1)

This article walks through building a simple Java-based game prototype by creating hero, equipment, and monster classes, demonstrating object-oriented concepts, and showing a main program that simulates hero creation, resource gathering, and equipment purchase.

Code ExampleEquipmentGame Development
0 likes · 9 min read
Creating a Hero in a Java Game: Step-by-Step Tutorial (Part 1)
Programmer DD
Programmer DD
May 15, 2021 · Backend Development

How to Build a Flexible Rule Engine with Java: Design, Implementation, and Tips

This article walks through a real‑world scenario of extending trial‑user eligibility rules, explains the logical flow using AND/OR short‑circuiting, and presents a modular Java rule engine design with abstract templates, concrete rules, a service builder, and a test case, highlighting its advantages and drawbacks.

Code ExampleDesign PatternsSoftware Architecture
0 likes · 8 min read
How to Build a Flexible Rule Engine with Java: Design, Implementation, and Tips
DevOps Cloud Academy
DevOps Cloud Academy
May 7, 2021 · Operations

Understanding DevOps as an Interface, Not a Job Role

The article explains that DevOps should be viewed as an interdisciplinary interface rather than a specific job title, contrasts it with traditional roles like software developer or system administrator, and illustrates the concept with a Java‑style code example, while also including a brief promotional note about a DevOps training course.

Code ExampleDevOpsEngineering Roles
0 likes · 3 min read
Understanding DevOps as an Interface, Not a Job Role
FunTester
FunTester
Mar 4, 2021 · Backend Development

Effortless File Download in Java and Groovy with Smart Filename Handling

This article presents practical Java and Groovy code snippets for downloading images from URLs, explains a concise Groovy one‑liner, and introduces a helper method that cleans and extracts filenames, illustrating Groovy tuple usage for storing URL‑name pairs.

Code ExampleFile DownloadFilename Handling
0 likes · 3 min read
Effortless File Download in Java and Groovy with Smart Filename Handling
FunTester
FunTester
Feb 10, 2021 · Fundamentals

How to Find the Longest Consecutive 1s in a Binary String Using Java

This article explains several Java techniques—including a simple loop, String.split, and regular‑expression approaches—to compute the maximum number of consecutive '1' characters in a binary string, and even extends the method to handle mixed‑character inputs.

Code ExampleString processingalgorithm
0 likes · 6 min read
How to Find the Longest Consecutive 1s in a Binary String Using Java
MaGe Linux Operations
MaGe Linux Operations
Feb 4, 2021 · Fundamentals

Visualize Python Script Progress with Tqdm: A Practical Guide

This article explains how the popular Python tqdm library can turn opaque, long‑running scripts into transparent processes by adding customizable progress bars in console, Jupyter notebooks, and even nested scenarios such as file downloads, complete with code examples.

Code ExamplePythonprogress bar
0 likes · 6 min read
Visualize Python Script Progress with Tqdm: A Practical Guide
Architect
Architect
Jan 29, 2021 · Fundamentals

Understanding Java Reflection: Concepts, Usage, and Performance Considerations

This article explains Java's reflection mechanism, its core classes, practical uses such as accessing private members and dynamic loading, demonstrates code examples, discusses performance, security and compatibility issues, and provides guidance for Android developers.

AndroidCode ExampleReflection
0 likes · 11 min read
Understanding Java Reflection: Concepts, Usage, and Performance Considerations
Java Architect Essentials
Java Architect Essentials
Jan 17, 2021 · Backend Development

Java Parking System Implementation Example

This article presents a complete Java-based parking system example, detailing functional requirements for users and administrators, and providing full source code for client interaction, entity definitions, service interfaces, and their implementations, illustrating backend development concepts such as singleton patterns, service layers, and basic CRUD operations.

Code ExampleService LayerSingleton
0 likes · 17 min read
Java Parking System Implementation Example
Selected Java Interview Questions
Selected Java Interview Questions
Oct 14, 2020 · Fundamentals

Understanding Java synchronized: Code Block Lock, Method Lock, and Thread Safety

This article explains Java's synchronized keyword, demonstrating both synchronized code block locks and method locks with complete code examples, analyzing execution results, and discussing memory-level locking, thread safety, performance drawbacks, and best practices for using synchronized in concurrent programming.

Code ExampleSynchronizationjava
0 likes · 8 min read
Understanding Java synchronized: Code Block Lock, Method Lock, and Thread Safety
Python Crawling & Data Mining
Python Crawling & Data Mining
Sep 27, 2020 · Backend Development

Mastering Elegant Retry Logic in Python with Tenacity

This article explains why retry mechanisms are essential for unstable network requests, introduces the Tenacity library, and provides clear, step‑by‑step Python examples covering basic retries, stop conditions, conditional retries, exception re‑raising, and callback handling.

BackendCode ExampleRetry
0 likes · 7 min read
Mastering Elegant Retry Logic in Python with Tenacity
The Dominant Programmer
The Dominant Programmer
Sep 20, 2020 · Backend Development

Integrating Protobuf with Netty for Java Object Transmission

This guide walks through building a Netty server and client that exchange Java objects using Protobuf serialization, covering .proto definition, code generation with protoc, pipeline configuration with Netty's Protobuf handlers, and full example implementations for both sides.

Code ExampleNettyProtobuf
0 likes · 8 min read
Integrating Protobuf with Netty for Java Object Transmission
Laravel Tech Community
Laravel Tech Community
Aug 17, 2020 · Backend Development

PHP strpbrk() Function: Find Characters in a String

This article explains the PHP strpbrk() function, which searches a haystack string for any character from a given list, details its parameters and return value, and provides two illustrative code examples demonstrating case‑sensitive matching and character selection.

BackendCode ExamplePHP
0 likes · 2 min read
PHP strpbrk() Function: Find Characters in a String
Laravel Tech Community
Laravel Tech Community
Jun 28, 2020 · Backend Development

PHP strcmp() Function: Usage, Parameters, Return Values, and Examples

This article explains the PHP strcmp() function, describing its binary‑safe, case‑sensitive string comparison behavior, detailing its parameters and return values, and providing multiple code examples that illustrate how different string inputs affect the function’s output.

Code ExamplePHPbackend-development
0 likes · 2 min read
PHP strcmp() Function: Usage, Parameters, Return Values, and Examples
Laravel Tech Community
Laravel Tech Community
Jun 17, 2020 · Backend Development

PHP strstr() Function: Usage, Parameters, Return Values, and Examples

This article explains PHP's strstr() function, detailing its purpose of locating the first occurrence of a needle in a haystack string, describing its parameters and return values, noting case‑sensitivity and performance considerations, and providing two practical code examples.

Code ExamplePHPbackend-development
0 likes · 2 min read
PHP strstr() Function: Usage, Parameters, Return Values, and Examples
Laravel Tech Community
Laravel Tech Community
Jun 10, 2020 · Backend Development

PHP str_pad() Function: Syntax, Parameters, Return Value, and Usage Examples

This article explains PHP's str_pad() function, detailing its syntax, parameter meanings, return value, and provides multiple code examples demonstrating right, left, and both-side padding with custom pad strings, including behavior when pad length is negative or when the pad string length does not evenly divide the required padding.

Code Examplephp-functionsstr_pad
0 likes · 3 min read
PHP str_pad() Function: Syntax, Parameters, Return Value, and Usage Examples
FunTester
FunTester
Apr 15, 2020 · Fundamentals

Master Groovy List Operations: From Java to Powerful Scripting

This tutorial shows how to convert a Java class that filters names into concise Groovy scripts, demonstrates Groovy list literals, index access, and built‑in collection methods like each, any, every, find, and findAll, providing complete code examples.

Code ExampleGroovyList
0 likes · 5 min read
Master Groovy List Operations: From Java to Powerful Scripting
FunTester
FunTester
Apr 11, 2020 · Operations

Building a Java Multithreaded Performance Testing Framework: Base and Execution Classes

This article explains how to design a Java performance testing framework by defining an abstract multithreaded base class for common behaviors, implementing two virtual classes for different load‑testing modes, and creating an execution class that orchestrates thread pools, collects metrics, and generates visual reports, with full source code examples and a Gitee repository link.

Code ExampleFrameworkPerformance Testing
0 likes · 12 min read
Building a Java Multithreaded Performance Testing Framework: Base and Execution Classes
FunTester
FunTester
Apr 9, 2020 · Operations

Building Maintainable API Test Modules in Java: UserCenter Case Study

This article presents a practical guide to designing a usercenter module for API testing in Java, detailing a maintenance‑free data strategy, key automation principles, and a full code example that demonstrates user info retrieval, password modification, avatar upload, and feedback handling, with a Gitee repository link.

API testingCode Examplebackend-development
0 likes · 7 min read
Building Maintainable API Test Modules in Java: UserCenter Case Study
FunTester
FunTester
Mar 31, 2020 · Backend Development

Designing a Reusable Automated API Testing Framework in Java

This article explains how to build a modular automated API testing project in Java by creating a base class that encapsulates request handling, header and cookie management, common validation methods, and response processing, allowing individual test modules to focus solely on specific API parameters and responses.

Code ExampleHTTPTesting framework
0 likes · 10 min read
Designing a Reusable Automated API Testing Framework in Java
FunTester
FunTester
Mar 20, 2020 · Backend Development

Creating and Manipulating JSON Objects with FastJSON in Java

This tutorial video demonstrates how to create JSON objects, add and retrieve data, handle escape characters, and format output using FastJSON in Java, accompanied by a full code example and references to related articles on deep/shallow copying and console formatting.

Code Examplejava
0 likes · 4 min read
Creating and Manipulating JSON Objects with FastJSON in Java
FunTester
FunTester
Jan 24, 2020 · Backend Development

How to Tag Every API Request with RequestID for Precise Performance Testing

This article explains how to implement request‑ID tagging for each API call in a Java performance‑testing framework, describes the updated MarkRequest implementations, shows how to configure connection‑pool timeouts and retries, and provides full source code examples for both header‑based and string‑based markers.

Code ExampleConnection PoolHTTP
0 likes · 6 min read
How to Tag Every API Request with RequestID for Precise Performance Testing