Tagged articles
10 articles
Page 1 of 1
php Courses
php Courses
Dec 13, 2025 · Backend Development

When to Use Pass‑by‑Value vs Pass‑by‑Reference in PHP Functions

This article explains the differences between pass‑by‑value and pass‑by‑reference in PHP, outlines their characteristics, provides code examples for each, and offers guidance on choosing the appropriate method based on safety, memory usage, and performance considerations.

Function ParametersPHPPass by Reference
0 likes · 3 min read
When to Use Pass‑by‑Value vs Pass‑by‑Reference in PHP Functions
php Courses
php Courses
Sep 19, 2025 · Fundamentals

Why Named Arguments Make Your Code Safer and More Readable

This article explains how named (keyword) arguments improve code readability, eliminate order‑dependency bugs, and work seamlessly with optional parameters, providing clear examples in Python, JavaScript, and C# while comparing them to traditional positional arguments.

Function Parameterscode readabilitynamed arguments
0 likes · 7 min read
Why Named Arguments Make Your Code Safer and More Readable
php Courses
php Courses
Jul 22, 2025 · Fundamentals

When Should You Use Pass‑by‑Value, Reference, or Pointer in C++?

Understanding C++ parameter passing—by value, by reference, and by pointer—is essential for optimizing performance, memory usage, and data safety, and this guide explains each method’s characteristics, provides code examples, and offers practical advice on selecting the appropriate technique for different scenarios.

Function ParametersPass by Referencec++
0 likes · 6 min read
When Should You Use Pass‑by‑Value, Reference, or Pointer in C++?
JavaScript
JavaScript
May 8, 2025 · Frontend Development

Modern JavaScript: Replace the arguments Object with Rest, Default, and Destructuring

The legacy arguments object in JavaScript is deprecated due to several drawbacks, and this article explains three modern, more efficient alternatives—rest parameters, default parameters, and destructuring assignment—detailing their advantages, usage examples, and how they improve readability, performance, and flexibility in function parameter handling.

Default ParametersDestructuringFunction Parameters
0 likes · 4 min read
Modern JavaScript: Replace the arguments Object with Rest, Default, and Destructuring
php Courses
php Courses
Dec 29, 2023 · Backend Development

Understanding PHP Function Parameter Passing: Pass-by-Value, Pass-by-Reference, Default and Variable‑Length Arguments

This article explains PHP function parameter passing, covering pass‑by‑value versus pass‑by‑reference, how to define functions with multiple, default, and variable‑length arguments, and provides clear code examples illustrating each technique for backend developers.

Function ParametersPHPPass by Reference
0 likes · 4 min read
Understanding PHP Function Parameter Passing: Pass-by-Value, Pass-by-Reference, Default and Variable‑Length Arguments
IT Services Circle
IT Services Circle
Feb 5, 2022 · Fundamentals

Understanding && in C++: Rvalue References, Forwarding References, and Their Use as Function Parameters

The article explains the different meanings of the && operator in C++—as a true rvalue reference in non‑template functions, as a forwarding (universal) reference in templates, and its behavior when binding to function return values—illustrated with code examples and practical guidelines.

C++Function Parametersforwarding reference
0 likes · 5 min read
Understanding && in C++: Rvalue References, Forwarding References, and Their Use as Function Parameters
Python Programming Learning Circle
Python Programming Learning Circle
Apr 20, 2021 · Fundamentals

Understanding Python Function Parameter Passing: Value vs. Reference

This article explains how Python implements function argument passing, distinguishing value passing—where a copy of the argument is used—from reference passing for mutable objects, illustrating both mechanisms with swap examples, memory diagrams, and concluding with best practices for modifying data inside functions.

Function ParametersPythonmutable objects
0 likes · 10 min read
Understanding Python Function Parameter Passing: Value vs. Reference
MaoDou Frontend Team
MaoDou Frontend Team
Jun 17, 2019 · Frontend Development

Mastering JavaScript Function Parameters: Defaults, Rest, and TDZ Explained

This article explores JavaScript functions as first‑class citizens, detailing how to set default parameter values in ES5 and ES6, the impact on the arguments object, the temporary dead zone for defaults, and the usage and constraints of rest parameters with practical code examples.

Default ValuesFunction ParametersJavaScript
0 likes · 6 min read
Mastering JavaScript Function Parameters: Defaults, Rest, and TDZ Explained