Tagged articles
10 articles
Page 1 of 1
Ray's Galactic Tech
Ray's Galactic Tech
Mar 22, 2026 · Backend Development

Why Go Refuses Default Parameters: The ‘Deliberate Poverty’ Behind Its Design

Go has refused default parameters for 15 years, a choice rooted in its philosophy of explicitness over implicit behavior; the article examines this deliberate ‘poverty’, explores the pitfalls of default arguments, and presents alternative patterns like wrapper functions, config structs, functional options, and pointer checks with real code examples.

Default ParametersGoapi-design
0 likes · 27 min read
Why Go Refuses Default Parameters: The ‘Deliberate Poverty’ Behind Its Design
Open Source Tech Hub
Open Source Tech Hub
Oct 21, 2025 · Backend Development

How PHP 8.5 Lets You Use Closures in Constant Expressions for Default Values

PHP 8.5 introduces support for closures inside constant expressions, allowing developers to define default parameter and property values directly with anonymous functions, and the article illustrates this new capability with clear code examples and explanations of its underlying rationale.

Default Parametersclosuresconstant-expressions
0 likes · 4 min read
How PHP 8.5 Lets You Use Closures in Constant Expressions for Default Values
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
JavaScript
JavaScript
May 3, 2025 · Frontend Development

Why Google Engineers Avoid JavaScript Default Parameters (And What to Use Instead)

This article explains the subtle bugs, predictability issues, scope interactions, and readability concerns that can arise from JavaScript default parameters, and presents explicit argument handling and object destructuring as safer alternatives for large‑scale development.

Default ParametersFunction ArgumentsJavaScript
0 likes · 3 min read
Why Google Engineers Avoid JavaScript Default Parameters (And What to Use Instead)
FunTester
FunTester
Sep 23, 2021 · Backend Development

Unlock Groovy’s Default Parameters: From Simple Overloads to Performance Insights

This article explains Groovy’s default‑parameter feature, shows how to embed scripts and random values in defaults, demonstrates practical API‑testing examples, and compares the execution cost of using default values versus explicit arguments in a high‑iteration performance test.

API testingDefault ParametersGroovy
0 likes · 6 min read
Unlock Groovy’s Default Parameters: From Simple Overloads to Performance Insights
AutoHome Frontend
AutoHome Frontend
Nov 19, 2018 · Frontend Development

5 Practical JavaScript Tricks to Write Cleaner Conditional Logic

This article presents five useful JavaScript techniques—using Array.includes, early returns, default parameters with destructuring, object literals or Map instead of switch, and Array.every/Array.some—to simplify and make conditional statements more readable and maintainable.

Code RefactoringDefault ParametersJavaScript
0 likes · 10 min read
5 Practical JavaScript Tricks to Write Cleaner Conditional Logic
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 5, 2017 · Frontend Development

Master JavaScript Functions: From Basics to Advanced Patterns

This article provides a comprehensive guide to JavaScript functions, covering basic definitions, anonymous functions, default parameters, the arguments object, IIFE, nested functions, constructor functions, and best practices for using the new keyword, all illustrated with clear code examples.

Anonymous FunctionsConstructorDefault Parameters
0 likes · 13 min read
Master JavaScript Functions: From Basics to Advanced Patterns