Tagged articles
219 articles
Page 1 of 3
Architect's Guide
Architect's Guide
Apr 28, 2026 · Backend Development

Tired of Endless if‑else? Try a Rule Engine for Cleaner Logic

The article shows how a growing list of if‑else checks for user eligibility becomes hard to maintain, then walks through designing and implementing a Java rule engine—defining rule abstractions, building an AND/OR executor, and demonstrating usage with concrete examples, while discussing its advantages and drawbacks.

BackendCode Exampledesign pattern
0 likes · 7 min read
Tired of Endless if‑else? Try a Rule Engine for Cleaner Logic
Test Development Learning Exchange
Test Development Learning Exchange
Apr 16, 2026 · Backend Development

Simplify API Testing with a Python @extract_value Decorator

Learn how to create and use a Python @extract_value decorator that automatically pulls specific fields from API responses, stores them in a global context, and lets subsequent test steps access these values without manual extraction, complete with step-by-step code examples and common pitfalls.

API testingCode ExampleDecorator
0 likes · 8 min read
Simplify API Testing with a Python @extract_value Decorator
Lisa Notes
Lisa Notes
Feb 28, 2026 · Fundamentals

Master Python Assignment Operators: From Simple = to Compound Forms

This tutorial explains Python's simple and compound assignment operators, showing how = assigns values and how operators like +=, -=, *=, /=, %=, **=, and //= combine arithmetic with assignment, illustrated with concrete code examples and their output, while noting Python lacks ++/--.

Code ExamplePythonassignment-operator
0 likes · 4 min read
Master Python Assignment Operators: From Simple = to Compound Forms
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 3, 2026 · Backend Development

Master Java Reflection with the Reflector Library: Real‑World Examples

This article introduces the Reflector library—a comprehensive Java reflection utility—covers its core features, shows how to download it from GitHub, and provides step‑by‑step code examples for accessing private fields, invoking methods, creating instances, handling annotations, copying objects, and more, all with expected output.

Code ExampleReflectionReflector
0 likes · 9 min read
Master Java Reflection with the Reflector Library: Real‑World Examples
php Courses
php Courses
Jan 13, 2026 · Backend Development

How to Use PHP’s is_string() to Validate Variables – Code Examples

This guide explains PHP’s is_string() function, its syntax, and how it returns true for string variables and false otherwise, illustrated with sample code that checks name, age, and city variables, and includes best practices for input validation to avoid security risks.

Code Exampleis_stringstring-validation
0 likes · 4 min read
How to Use PHP’s is_string() to Validate Variables – Code Examples
php Courses
php Courses
Nov 25, 2025 · Backend Development

How to Write Files in PHP Using fputs(): Syntax, Parameters, and Example

This article explains the PHP fputs() function for writing data to files, detailing its syntax, parameters, return values, and provides a complete code example that demonstrates opening a file, writing a string, handling success or failure, and properly closing the file.

BackendCode Examplefile-handling
0 likes · 3 min read
How to Write Files in PHP Using fputs(): Syntax, Parameters, and Example
php Courses
php Courses
Nov 19, 2025 · Backend Development

How to Use PHP’s is_callable() to Safely Check Functions and Methods

This guide explains PHP's is_callable() function, shows how it returns true for callable functions or methods and false otherwise, provides a complete code example with expected output, and discusses broader uses such as checking class constructors and static methods for more robust code.

Code Examplefunction checkis_callable
0 likes · 3 min read
How to Use PHP’s is_callable() to Safely Check Functions and Methods
php Courses
php Courses
Nov 13, 2025 · Backend Development

Master PHP fwrite: Write Files Efficiently with Simple Code Examples

This guide explains PHP's fwrite() function, covering its syntax, parameters, and practical examples for writing strings, arrays, and serialized data to files, while highlighting important considerations such as file opening modes and error handling to ensure successful file operations.

Code ExamplePHPfile-handling
0 likes · 4 min read
Master PHP fwrite: Write Files Efficiently with Simple Code Examples
Python Programming Learning Circle
Python Programming Learning Circle
Oct 30, 2025 · Game Development

Build a Simple Alien Shooter Game with Python and Pygame – Step‑by‑Step Tutorial

This tutorial walks you through creating a basic alien‑invader shooter using Python's Pygame library, covering essential game libraries, class design for Game, Alien, Hero, Generator, and Rocket, collision detection, win/lose logic, and provides the complete source code with explanations.

Alien ShooterCode ExampleGame Development
0 likes · 10 min read
Build a Simple Alien Shooter Game with Python and Pygame – Step‑by‑Step Tutorial
php Courses
php Courses
Oct 10, 2025 · Backend Development

Mastering PHP’s file_exists: Check Local and Remote Files with Ease

Learn how to use PHP’s file_exists function to verify the existence of local and remote files, understand its syntax and return values, see practical code examples, and grasp important considerations such as correct paths and permission requirements.

Code ExamplePHPfile-handling
0 likes · 4 min read
Mastering PHP’s file_exists: Check Local and Remote Files with Ease
Python Programming Learning Circle
Python Programming Learning Circle
Sep 23, 2025 · Fundamentals

Unlock Python Power: Master Decorators in Minutes

This article explains Python decorators—from basic analogies and the underlying concepts of higher‑order functions and closures to practical examples like timing and logging decorators—showing how to enhance functions dynamically without altering their source code while preserving metadata with functools.wraps.

Code ExampleDecoratorHigher-order function
0 likes · 8 min read
Unlock Python Power: Master Decorators in Minutes
php Courses
php Courses
Sep 12, 2025 · Backend Development

How to Use PHP’s is_callable() to Safely Check Functions and Methods

This article explains PHP’s is_callable() function, showing how it determines whether a given variable, function, method, constructor, or static method can be called, with clear code examples and output demonstrating true for existing functions and false for non‑existent methods.

Code ExamplePHPfunction
0 likes · 3 min read
How to Use PHP’s is_callable() to Safely Check Functions and Methods
php Courses
php Courses
Sep 10, 2025 · Backend Development

Master PHP’s array_replace_recursive: Recursive Array Merging Made Easy

This article explains PHP’s array_replace_recursive function, detailing its syntax, recursive merging behavior, key‑overriding rules, and provides step‑by‑step code examples that demonstrate how multiple arrays are combined, along with tips on when to use array_merge_recursive instead.

Code Examplearray_replace_recursiverecursive merge
0 likes · 4 min read
Master PHP’s array_replace_recursive: Recursive Array Merging Made Easy
php Courses
php Courses
Sep 8, 2025 · Backend Development

Master PHP’s substr_count(): Count Substring Occurrences Easily

Learn how to use PHP’s substr_count() function to count the occurrences of a substring within a string, including its syntax, parameter details, and a practical example that demonstrates counting “Hello” in a sample text, plus tips for more complex applications.

Code ExampleString Manipulationsubstr_count
0 likes · 3 min read
Master PHP’s substr_count(): Count Substring Occurrences Easily
php Courses
php Courses
Sep 4, 2025 · Backend Development

Master PHP’s fwrite(): Write Files Efficiently with Code Examples

Learn how to use PHP’s fwrite() function to write strings, arrays, and other data to files, with clear syntax explanations, parameter details, and practical code examples demonstrating file opening, writing, and closing, plus tips for handling write modes and data types.

Code ExamplePHPbackend-development
0 likes · 4 min read
Master PHP’s fwrite(): Write Files Efficiently with Code Examples
Go Programming World
Go Programming World
Aug 12, 2025 · Backend Development

Master dyno: Simplify Go JSON/YAML Handling with Dynamic Maps

This article explains how the Go dyno package lets you effortlessly read, modify, and serialize deeply‑nested JSON/YAML structures by providing Get, Set, Delete, Append and conversion utilities that work with map[string]interface{}, map[interface{}]interface{} and []interface{} without using reflection.

Code ExampleGoJSON
0 likes · 23 min read
Master dyno: Simplify Go JSON/YAML Handling with Dynamic Maps
Sohu Smart Platform Tech Team
Sohu Smart Platform Tech Team
Aug 10, 2025 · Mobile Development

How to Integrate Push Notifications in HarmonyOS: A Step‑by‑Step Guide

This tutorial walks you through the complete process of adding push notification support to a HarmonyOS app, covering environment setup, certificate generation, profile configuration, client ID setup, permission requests, token retrieval, handling cold and hot starts, and the required server payload format.

AppGallery ConnectCode ExampleDevEco Studio
0 likes · 6 min read
How to Integrate Push Notifications in HarmonyOS: A Step‑by‑Step Guide
php Courses
php Courses
Jul 25, 2025 · Backend Development

Master PHP’s is_string(): Quick Guide with Real Code Examples

Learn how PHP’s is_string() function checks whether a variable is a string, understand its syntax, and see practical code examples that demonstrate handling string and non‑string variables, along with security tips for validating user input.

BackendCode Exampleis_string
0 likes · 4 min read
Master PHP’s is_string(): Quick Guide with Real Code Examples
php Courses
php Courses
Jul 16, 2025 · Backend Development

Master PHP’s filesize() Function: Quick Guide & Code Examples

Learn how to use PHP’s built-in filesize() function to retrieve file sizes in bytes, understand its syntax, see practical code examples with file existence checks, and discover important considerations such as handling local files only and converting sizes to readable formats.

Code ExamplePHPfile-handling
0 likes · 3 min read
Master PHP’s filesize() Function: Quick Guide & Code Examples
php Courses
php Courses
Jul 2, 2025 · Backend Development

How to Safely Use PHP’s is_callable() to Verify Functions and Methods

This article explains how PHP's is_callable() function determines whether a function or method can be invoked, describes its one‑ and two‑argument signatures, and provides clear code examples for checking both standalone functions and class methods, helping developers write more robust code.

Code ExamplePHPbackend-development
0 likes · 4 min read
How to Safely Use PHP’s is_callable() to Verify Functions and Methods
php Courses
php Courses
Jul 1, 2025 · Backend Development

Master PHP’s array_reverse: Reverse Arrays Easily with Code Examples

Learn how to use PHP’s array_reverse function to flip array elements, preserve keys when needed, and combine it with other array functions like sort, through clear explanations and practical code snippets that demonstrate reversing indexed, associative, and numeric arrays.

Code Examplearray manipulationarray_reverse
0 likes · 4 min read
Master PHP’s array_reverse: Reverse Arrays Easily with Code Examples
AndroidPub
AndroidPub
Jun 26, 2025 · Fundamentals

Why Kotlin Data Class Lambdas Break Equality and How to Fix It

This article explains how Kotlin treats lambda expressions as distinct objects, causing two data class instances with identical lambda bodies to be unequal, demonstrates the problem with code examples, and shows how extracting the lambda into a shared reference restores proper equality, highlighting implications for equals, hashCode, and Compose.

Code ExampleKotlindata class
0 likes · 3 min read
Why Kotlin Data Class Lambdas Break Equality and How to Fix It
Architect's Guide
Architect's Guide
Jun 7, 2025 · Backend Development

How to Build a Flexible Java Rule Engine with AND/OR Logic

This article walks through designing and implementing a Java rule engine that supports both AND and OR logical relationships, showing the core rule abstractions, concrete rule examples, the builder pattern for composing rules, and a discussion of its advantages and drawbacks.

Code ExampleDesign Patternsjava
0 likes · 8 min read
How to Build a Flexible Java Rule Engine with AND/OR Logic
Lin is Dream
Lin is Dream
Jun 6, 2025 · Backend Development

Master Java Lambda Expressions: From Anonymous Classes to Streamlined Code

This article explains why Java introduced the seemingly odd lambda syntax, shows how lambdas replace verbose anonymous inner classes for loops, grouping and collection operations, introduces functional interfaces, and provides comprehensive code examples demonstrating creation, method references, sorting, filtering, and threading with lambdas.

BackendCode ExampleFunctional Interface
0 likes · 8 min read
Master Java Lambda Expressions: From Anonymous Classes to Streamlined Code
Top Architect
Top Architect
Apr 26, 2025 · Backend Development

Understanding Java 8 Stream API with Practical PO Examples

This article introduces Java 8 Stream API, explains its core operations such as filter, map, sorted, forEach, collect, statistics, and parallelStream, and demonstrates their usage with a UserPo class through comprehensive code examples, while also noting unrelated promotional offers.

Code ExampleJava 8Stream API
0 likes · 11 min read
Understanding Java 8 Stream API with Practical PO Examples
php Courses
php Courses
Apr 23, 2025 · Backend Development

Using PHP's array_replace_recursive() Function to Recursively Merge Arrays

This article explains PHP's array_replace_recursive() function, detailing its syntax, recursive merging behavior, example code, output interpretation, and important usage notes, while comparing it with array_merge_recursive for handling array key conflicts in PHP development.

Code ExamplePHParray_replace_recursive
0 likes · 4 min read
Using PHP's array_replace_recursive() Function to Recursively Merge Arrays
Java Captain
Java Captain
Apr 23, 2025 · Fundamentals

Understanding Recursion in Java: Concepts, Pros/Cons, and Practical Examples

This article explains the fundamentals of recursion in Java, covering its definition, advantages and disadvantages, differences from iteration, and provides practical examples such as traversing comment and department trees, along with code snippets, performance considerations, and improvement strategies using depth control and Stream API.

Code ExampleRecursionalgorithm
0 likes · 7 min read
Understanding Recursion in Java: Concepts, Pros/Cons, and Practical Examples
IT Services Circle
IT Services Circle
Apr 12, 2025 · Fundamentals

MoonBit Language: Ten Key Features

MoonBit is an AI‑native, general‑purpose programming language that blends Rust and Scala concepts, offering garbage collection, WebAssembly compilation, rich type system, pattern matching, traits, operator overloading, testing support, and functional programming features, illustrated through a chess‑board modeling example.

Code ExampleMoonBitProgramming Language
0 likes · 18 min read
MoonBit Language: Ten Key Features
php Courses
php Courses
Apr 10, 2025 · Backend Development

How to Use PHP's ceil() Function to Round Numbers Up

This article explains PHP's ceil() function, shows its syntax, and provides three code examples demonstrating how to round floating‑point numbers and integers upward, including the resulting outputs and a brief discussion of each case.

Code ExamplePHPbackend-development
0 likes · 4 min read
How to Use PHP's ceil() Function to Round Numbers Up
php Courses
php Courses
Apr 9, 2025 · Backend Development

Using PHP's array_filter() Function to Filter Arrays

This article explains how PHP's array_filter() function works, details its parameters, and provides clear code examples for filtering even numbers and removing empty values from associative arrays, helping developers apply flexible array filtering in real-world backend projects.

Code ExamplePHParray filtering
0 likes · 4 min read
Using PHP's array_filter() Function to Filter Arrays
php Courses
php Courses
Apr 8, 2025 · Backend Development

Using PHP is_numeric() to Determine if a Variable Is Numeric

This article explains the PHP is_numeric() function, shows how it checks whether a variable (including integers, floats, or numeric strings) is numeric, provides code examples for direct usage and form validation, and notes special cases to watch out for.

Code ExamplePHPbackend-development
0 likes · 4 min read
Using PHP is_numeric() to Determine if a Variable Is Numeric
php Courses
php Courses
Mar 27, 2025 · Backend Development

Using PHP's is_bool() Function to Check Boolean Variables

This article explains how the PHP is_bool() function determines whether a variable holds a boolean value, provides a complete code example with four different variables, shows the resulting output, and discusses why only true and false are recognized as booleans.

Code ExamplePHPbackend-development
0 likes · 4 min read
Using PHP's is_bool() Function to Check Boolean Variables
php Courses
php Courses
Mar 24, 2025 · Backend Development

Understanding PHP dirname() Function with Practical Examples

This article explains the purpose, syntax, parameters, and return value of PHP's dirname() function and demonstrates its usage through four detailed code examples covering absolute, relative, and Windows paths as well as edge cases.

Code ExampleFile PathPHP
0 likes · 4 min read
Understanding PHP dirname() Function with Practical Examples
php Courses
php Courses
Mar 11, 2025 · Backend Development

Using PHP's file() Function to Read Files into an Array

This article explains how the PHP file() function reads a file's contents into an array, details its syntax and parameters, demonstrates basic and flag‑based usage with code examples, and highlights important behavior such as line handling and newline removal.

ArrayCode ExamplePHP
0 likes · 5 min read
Using PHP's file() Function to Read Files into an Array
php Courses
php Courses
Feb 20, 2025 · Backend Development

Understanding PHP strcmp() Function: Syntax, Return Values, and Examples

The article explains PHP's strcmp() string comparison function, detailing its ASCII‑based comparison logic, syntax, return values, and provides three practical code examples demonstrating how to determine equality, less‑than, or greater‑than relationships between strings.

Code ExamplePHPstrcmp
0 likes · 4 min read
Understanding PHP strcmp() Function: Syntax, Return Values, and Examples
php Courses
php Courses
Feb 19, 2025 · Backend Development

Using PHP fread() to Read Files: Syntax, Parameters, and Example

This article explains PHP's fread() function, covering its syntax, parameters ($handle, $length, optional $offset), return value, and provides a complete example showing how to open a file, read its contents, output them, and properly close the file.

Code ExamplePHPfile-handling
0 likes · 4 min read
Using PHP fread() to Read Files: Syntax, Parameters, and Example
php Courses
php Courses
Feb 14, 2025 · Backend Development

Using PHP fread() to Read Files: Syntax, Parameters, and Example

This article explains PHP's fread() function, covering its syntax, parameters, return values, optional offset argument, and provides a complete example that opens a file, reads its contents based on size, outputs the data, and closes the handle.

BackendCode ExamplePHP
0 likes · 3 min read
Using PHP fread() to Read Files: Syntax, Parameters, and Example
php Courses
php Courses
Jan 26, 2025 · Backend Development

Using PHP’s array_flip() Function to Swap Keys and Values

This article explains PHP’s array_flip() function, showing its syntax, how it swaps array keys and values, handling duplicate values, and demonstrates practical uses with code examples that flip fruit and student arrays and retrieve values efficiently.

BackendCode ExamplePHP
0 likes · 5 min read
Using PHP’s array_flip() Function to Swap Keys and Values
php Courses
php Courses
Jan 21, 2025 · 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 libraries such as Keras or TensorFlow, providing complete example code for environment and agent classes and outlining training and testing steps.

Artificial IntelligenceCode ExamplePHP
0 likes · 5 min read
Building Reinforcement Learning Algorithms with PHP
php Courses
php Courses
Jan 21, 2025 · Backend Development

Using PHP's array_values() Function to Reindex and Convert Arrays

This article explains PHP's array_values() function, showing how it returns a new array with re‑indexed keys, provides examples with both indexed and associative arrays, demonstrates that the returned array is a copy, and discusses practical scenarios for its use.

BackendCode ExamplePHP
0 likes · 4 min read
Using PHP's array_values() Function to Reindex and Convert Arrays
Java Tech Enthusiast
Java Tech Enthusiast
Jan 4, 2025 · Databases

Understanding Redis Sets and Their Use Cases

Redis Sets are unordered collections of unique strings backed by hash tables that provide O(1) add, delete, and lookup operations, automatically switch to a compact integer array (intset) for small integer-only sets, and are ideal for deduplicated data and fast set operations such as intersection, union, and difference, exemplified by computing common friends in social applications.

Code ExampleSet OperationsSets
0 likes · 4 min read
Understanding Redis Sets and Their Use Cases
php Courses
php Courses
Jan 3, 2025 · Backend Development

Using PHP strlen() to Get String Length: Syntax, Examples, and Tips

This article explains the PHP strlen() function, its syntax, and provides multiple code examples for measuring string length, checking for empty strings, validating length limits, and handling multibyte characters, while noting the need for mb_strlen() for Unicode strings.

Code ExamplePHPstring length
0 likes · 5 min read
Using PHP strlen() to Get String Length: Syntax, Examples, and Tips
Test Development Learning Exchange
Test Development Learning Exchange
Dec 26, 2024 · Fundamentals

Using functools.partial to Simplify Function Calls in Python

This article introduces Python's functools.partial for creating partial functions, explains how to import it, and provides multiple practical examples—including simplifying parameter passing, sorting, HTTP requests, mathematical calculations, and string formatting—demonstrating how fixing certain arguments can make code more concise and readable.

Code Examplefunctoolspartial-function
0 likes · 5 min read
Using functools.partial to Simplify Function Calls in Python
php Courses
php Courses
Dec 18, 2024 · Backend Development

PHP array_merge() Function: Syntax, Examples, and Usage Guide

This article explains the PHP array_merge() function, its simple syntax, and demonstrates how to merge indexed, multiple, and associative arrays with clear code examples, showing the resulting output and highlighting key behaviors such as key overriding.

BackendCode ExamplePHP
0 likes · 5 min read
PHP array_merge() Function: Syntax, Examples, and Usage Guide
Java Architect Essentials
Java Architect Essentials
Dec 12, 2024 · Backend Development

Build a Secure SMS Verification Service with Spring Boot and Redis

This tutorial walks through creating a simulated SMS verification system using Spring Boot, Redis, and scheduled tasks, covering requirements, dependency setup, controller and service implementation, rate limiting, code expiration, validation logic, and daily reset of usage counters.

BackendCode ExampleSMS Verification
0 likes · 7 min read
Build a Secure SMS Verification Service with Spring Boot and Redis
php Courses
php Courses
Dec 10, 2024 · Backend Development

Using PHP str_replace for String Replacement and Deletion

This article explains the PHP str_replace function, its syntax, and demonstrates three practical examples—simple replacement, multiple replacements using an array, and character deletion—showing how to efficiently manipulate strings in backend development.

Code ExamplePHPreplace
0 likes · 3 min read
Using PHP str_replace for String Replacement and Deletion
php Courses
php Courses
Dec 4, 2024 · Backend Development

Using PHP fgetc() to Read Characters from Files and User Input

This article explains the PHP fgetc() function, shows how to open files with fopen(), demonstrates reading characters from files and standard input using loops and switch statements, and provides complete code examples for practical use.

BackendCode ExamplePHP
0 likes · 4 min read
Using PHP fgetc() to Read Characters from Files and User Input
php Courses
php Courses
Dec 2, 2024 · Backend Development

Using PHP is_executable() to Check File Executability

This article explains the PHP is_executable() function, its definition, parameters, return values, and provides a detailed code example and usage scenarios for checking file executability and improving web application security for developers.

Code ExampleFile PermissionsPHP
0 likes · 4 min read
Using PHP is_executable() to Check File Executability
php Courses
php Courses
Nov 26, 2024 · Backend Development

Using PHP glob() Function to Match File Paths

This article explains the PHP glob() function, detailing its syntax, parameters, and various usage examples—including wildcard, brace expansion, and recursive matching—to help developers efficiently retrieve file paths matching specific patterns, while noting important considerations such as flags and empty results.

BackendCode ExampleFilesystem
0 likes · 4 min read
Using PHP glob() Function to Match File Paths
php Courses
php Courses
Nov 21, 2024 · Backend Development

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

This article explains the syntax and parameters of PHP’s array_multisort() function, demonstrates its usage with a practical example of sorting student names, ages, and scores, and shows the resulting output, highlighting how to sort multiple arrays simultaneously.

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

Using PHP array_merge() to Combine Arrays

This article explains the PHP array_merge() function, its syntax, and provides clear examples of merging indexed and associative arrays, demonstrating how multiple arrays can be combined into a new array with key overwriting behavior for duplicates.

ArraysCode ExamplePHP
0 likes · 4 min read
Using PHP array_merge() to Combine Arrays
php Courses
php Courses
Oct 28, 2024 · Backend Development

Understanding PHP dirname() Function with Examples

This article explains PHP's dirname() function, detailing its purpose, parameters, return values, and provides multiple code examples demonstrating how to extract directory paths from absolute, relative, and Windows-style file paths, including handling of edge cases.

Code ExampleFile PathPHP
0 likes · 5 min read
Understanding PHP dirname() Function with Examples
JD Tech Talk
JD Tech Talk
Oct 14, 2024 · Mobile Development

HarmonyOS NEXT Intent Framework: Overview, Use Cases, and Integration Guide

This article introduces HarmonyOS NEXT's Intent Framework, explains its distribution capabilities such as habit and event recommendations, skill invocation, and local search, showcases practical scenarios including movie ticket reminders and JD Finance services, and provides step‑by‑step integration instructions with code examples.

AI integrationCode ExampleHarmonyOS
0 likes · 10 min read
HarmonyOS NEXT Intent Framework: Overview, Use Cases, and Integration Guide
Test Development Learning Exchange
Test Development Learning Exchange
Sep 7, 2024 · Fundamentals

Understanding Python Decorators: Introduction, Common Examples, and Summary

This article introduces Python decorators, explains their purpose, and provides practical examples of common decorators such as @staticmethod, @property, @lru_cache, @wraps, @retry, @contextmanager, @dataclass, @cached_property, @singledispatch, and @timeit, concluding with a summary of their benefits for clean, maintainable code.

Code ExamplePythonfundamentals
0 likes · 8 min read
Understanding Python Decorators: Introduction, Common Examples, and Summary
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 3, 2024 · Frontend Development

Understanding the Decorator Pattern and AOP in JavaScript

This article explains the decorator pattern and how Aspect‑Oriented Programming (AOP) can be used in JavaScript to dynamically extend object behavior, provides classic and Vue‑based code examples, discusses advantages and drawbacks, and outlines practical scenarios for applying decorators in front‑end development.

Code ExampleDecorator PatternJavaScript
0 likes · 11 min read
Understanding the Decorator Pattern and AOP in JavaScript
php Courses
php Courses
Aug 15, 2024 · Backend Development

Using PHP str_split() to Split Strings into Characters

This article explains the PHP str_split() function, its syntax, parameters, return value, and provides multiple code examples showing how to split a string into characters or fixed‑length chunks and even generate numeric codes for use cases like verification codes.

Code Examplebackend-developmentstr_split
0 likes · 4 min read
Using PHP str_split() to Split Strings into Characters
Code Ape Tech Column
Code Ape Tech Column
Aug 9, 2024 · Backend Development

Design and Implementation of a Java Rule Engine with AND/OR Logic

This article explains how to refactor a simple if‑else based user‑application rule check into a modular Java rule engine that supports AND/OR short‑circuit evaluation, detailing the design, abstract and concrete rule classes, a fluent service builder, and a test example.

Code ExampleShort-Circuitdesign-pattern
0 likes · 8 min read
Design and Implementation of a Java Rule Engine with AND/OR Logic
php Courses
php Courses
Jul 29, 2024 · Artificial Intelligence

Building Reinforcement Learning Algorithms with PHP

This article explains the fundamentals of reinforcement learning, demonstrates how PHP can be used with neural‑network libraries such as Keras or TensorFlow to implement a simple reinforcement‑learning agent, provides a complete PHP code example, and discusses its potential applications.

AICode ExampleReinforcement Learning
0 likes · 5 min read
Building Reinforcement Learning Algorithms with PHP
Top Architect
Top Architect
Jul 27, 2024 · Backend Development

Various Ways to Iterate Over a Java HashMap with Code Examples

This article demonstrates seven common techniques for iterating over a Java HashMap—including iterator, entrySet, keySet, for‑each loops, lambda expressions, and both single‑threaded and parallel Streams API—providing concise code examples and performance notes for each method.

Code ExampleHashMapLambda
0 likes · 10 min read
Various Ways to Iterate Over a Java HashMap with Code Examples
php Courses
php Courses
Jul 10, 2024 · Backend Development

Using PHP’s array_flip() Function to Swap Keys and Values

This article explains PHP’s array_flip() function, detailing its syntax, behavior with duplicate values, and demonstrating practical examples such as swapping keys and values in associative arrays and using the flipped array for lookups, while highlighting its benefits for code simplicity and efficiency.

ArraysCode Examplearray_flip
0 likes · 4 min read
Using PHP’s array_flip() Function to Swap Keys and Values
php Courses
php Courses
Jul 8, 2024 · Backend Development

Using PHP's array_walk() Function: Syntax, Examples, and Advanced Usage

This article explains PHP's powerful array_walk() function, detailing its syntax, parameter roles, basic and advanced examples—including squaring numbers, summing values with userdata, and invoking class methods—while highlighting practical use‑cases for backend development.

Code ExamplePHParray_walk
0 likes · 5 min read
Using PHP's array_walk() Function: Syntax, Examples, and Advanced Usage
php Courses
php Courses
Jun 20, 2024 · Backend Development

Using PHP filetype() Function to Determine File Types

This article explains the PHP filetype() function, its prototype, parameters, return values, and provides two practical code examples—one for retrieving a single file's type and another for listing the types of all files in a directory—helping developers handle files efficiently.

BackendCode ExamplePHP
0 likes · 3 min read
Using PHP filetype() Function to Determine File Types
php Courses
php Courses
Jun 12, 2024 · Backend Development

Using PHP ftell() to Retrieve the Current File Pointer Position

This article explains the PHP ftell() function, detailing its purpose, parameters, return values, and providing a complete code example that reads the first ten bytes of a file, displays the content, and shows how to obtain and output the file pointer's byte offset.

BackendCode ExamplePHP
0 likes · 4 min read
Using PHP ftell() to Retrieve the Current File Pointer Position
Su San Talks Tech
Su San Talks Tech
May 20, 2024 · Backend Development

Mastering Java Optional: When to Use It and Common Pitfalls

This article explores the proper usage of Java's Optional class, debunks common misconceptions, examines its internal implementation, compares methods like map, orElse, orElseGet, and provides practical code examples to help developers avoid null‑pointer pitfalls and write cleaner backend code.

Code Examplebackend-developmentjava
0 likes · 11 min read
Mastering Java Optional: When to Use It and Common Pitfalls
php Courses
php Courses
May 7, 2024 · Backend Development

Using PHP’s is_bool() Function to Check Boolean Variables

This article explains how PHP’s built‑in is_bool() function determines whether a variable is a boolean, demonstrates its usage with four sample variables of different types, shows the resulting output, and highlights why only true and false values are recognized as booleans.

Code ExamplePHPVariables
0 likes · 4 min read
Using PHP’s is_bool() Function to Check Boolean Variables
php Courses
php Courses
Apr 25, 2024 · Backend Development

Using PHP’s array_sum() Function to Sum Array Elements

This article explains PHP’s built‑in array_sum() function, detailing its syntax, parameters, return values, and behavior with numeric and non‑numeric elements, and provides clear code examples demonstrating how to sum array values and handle edge cases such as empty arrays.

Code ExamplePHParray sum
0 likes · 5 min read
Using PHP’s array_sum() Function to Sum Array Elements
Baidu Geek Talk
Baidu Geek Talk
Apr 22, 2024 · Artificial Intelligence

Designing Effective Prompts for Large Language Models: Structure, Code Examples, and Regex Extraction

The article presents a systematic prompt template—comprising Instruction, Input Data, Context, and Output Indicator—demonstrates code examples for single‑ and multi‑task formatting, shows how clear markers enable regex extraction, and introduces Baidu’s PaddlePaddle Star River Community to simplify building reliable LLM‑driven applications.

AICode ExamplePrompt engineering
0 likes · 13 min read
Designing Effective Prompts for Large Language Models: Structure, Code Examples, and Regex Extraction
Ops Development & AI Practice
Ops Development & AI Practice
Apr 4, 2024 · Fundamentals

Mastering the Facade Pattern in Go: Simplify Complex Systems

This article explains the Facade design pattern, outlines its core roles, provides step‑by‑step guidance for implementing it in Go, showcases a complete code example, and discusses its advantages and typical use cases such as API gateways in microservice architectures.

Code ExampleDesign PatternsFacade Pattern
0 likes · 5 min read
Mastering the Facade Pattern in Go: Simplify Complex Systems
php Courses
php Courses
Feb 27, 2024 · Backend Development

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

This article explains the PHP file_put_contents() function, its parameters, and how to use it to write strings or other data to local files or remote URLs, providing syntax details and practical code examples for file creation, data writing, and error handling.

Code ExamplePHPURL writing
0 likes · 3 min read
Using PHP file_put_contents() to Write Data to Files and URLs