Tagged articles

code example

221 articles · Page 1 of 3
Lisa Notes
Lisa Notes
Jul 3, 2026 · Fundamentals

Java Interface Implementation: A Step‑by‑Step Tutorial from Scratch

This tutorial walks through Java interface basics, showing how to declare an interface, implement it in classes, handle method and constant conflicts when implementing multiple interfaces, and demonstrates the concepts with concrete Rectangle and Circle examples.

InterfaceJavaOOP
0 likes · 10 min read
Java Interface Implementation: A Step‑by‑Step Tutorial from Scratch
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.

Javabackendcode example
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 testingAutomationDecorator
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 ++/--.

Programming BasicsPythonassignment-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.

JavaReflectionReflector
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.

Type Checkingcode exampleis_string
0 likes · 4 min read
How to Use PHP’s is_string() to Validate Variables – Code Examples
Fun with Large Models
Fun with Large Models
Jan 5, 2026 · Artificial Intelligence

LangGraph Agent Design Patterns Part 3: Supervisor and Hierarchical Architectures

This article explains LangGraph's multi‑agent design patterns, focusing on the Supervisor Architecture for centralized coordination and the Hierarchical Architecture for scalable team‑based management, and provides step‑by‑step code examples that demonstrate how to implement both patterns.

AI agentsAgent CoordinationHierarchical Architecture
0 likes · 21 min read
LangGraph Agent Design Patterns Part 3: Supervisor and Hierarchical Architectures
Open Source Tech Hub
Open Source Tech Hub
Dec 5, 2025 · Backend Development

How PHP 8.5 Pipe Operator Simplifies String Manipulation Compared to Legacy Code

PHP 8.5 introduces a pipe operator that enables fluent, left‑to‑right chaining of string and array functions, replacing deeply nested calls with readable pipelines, and the article compares this feature with traditional PHP 8.4 code and Swoole 6.1’s method‑chaining syntax, providing concrete examples and output.

PHPPipe OperatorString Manipulation
0 likes · 4 min read
How PHP 8.5 Pipe Operator Simplifies String Manipulation Compared to Legacy Code
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.

PHPcode examplefile-handling
0 likes · 4 min read
Master PHP fwrite: Write Files Efficiently with Simple Code Examples
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.

PHPcode examplefile-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.

DecoratorHigher-order functionPython
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.

FunctionPHPcode example
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.

array_replace_recursivecode examplerecursive 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.

String Manipulationcode examplesubstr_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.

Backend DevelopmentPHPcode example
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.

Gocode exampledynamic-maps
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 ConnectDevEco StudioHarmonyOS
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.

Type Checkingbackendcode example
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.

PHPcode examplefile-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.

Backend DevelopmentFunctionPHP
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.

array manipulationarray_reversecode example
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.

Kotlincode exampledata 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.

Design PatternsJavacode example
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.

Functional InterfaceJavaLambda
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.

Backend DevelopmentFunctional ProgrammingJava
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.

PHParray_replace_recursivecode example
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.

JavaRecursionalgorithm
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.

Functional ProgrammingMoonBitWebAssembly
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.

Backend DevelopmentPHPceil
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.

PHParray filteringarray_filter
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.

Backend DevelopmentPHPcode example
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.

Backend DevelopmentPHPboolean check
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.

Backend DevelopmentFile PathPHP
0 likes · 4 min read
Understanding PHP dirname() Function with Practical Examples
Python Crawling & Data Mining
Python Crawling & Data Mining
Mar 21, 2025 · Fundamentals

How to Automatically Capitalize Sentences in Python Strings

This article explains how to transform a plain English string so that each sentence starts with a capital letter, covering the problem description, two Python implementations that handle periods, exclamation marks, and question marks, and shows the resulting outputs.

CapitalizationPythonString Manipulation
0 likes · 4 min read
How to Automatically Capitalize Sentences in Python Strings
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.

ArrayPHPcode example
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.

PHPcode examplestrcmp
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.

PHPcode examplefile-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.

PHPbackendcode example
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.

PHParray_flipbackend
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 IntelligencePHPcode example
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.

PHParray_valuesbackend
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.

DatabaseRedisSet Operations
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.

PHPcode examplestring 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.

PHParray mergebackend
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.

JavaRedisSMS 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.

PHPcode examplereplace
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.

PHPbackendcode example
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.

PHPcode examplefile-permissions
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.

FilesystemPHPbackend
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.

PHParray_multisortcode example
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.

ArraysPHParray merge
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.

File PathPHPcode example
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 integrationHarmonyOSIntent Framework
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.

FundamentalsPythoncode example
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.

AOPJavaScriptVue.js
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.

Backend Developmentcode examplestr_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.

Short-Circuitcode exampledesign-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.

HashMapJavaLambda
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.

ArraysBackend Developmentarray_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.

CallbackPHParray_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.

PHPbackendcode example
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.

PHPbackendcode example
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.

Backend DevelopmentJavaNullPointerException
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.

PHPVariablesboolean check
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.

PHParray sumcode example
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.

AIPrompt engineeringPython
0 likes · 13 min read
Designing Effective Prompts for Large Language Models: Structure, Code Examples, and Regex Extraction