Tagged articles
22 articles
Page 1 of 1
JavaScript
JavaScript
Jan 4, 2026 · Frontend Development

Mastering JavaScript’s ‘this’: 4 Binding Rules and Arrow Function Secrets

This article explains why the JavaScript this keyword is notoriously tricky, demonstrates its behavior with concrete examples, outlines the four binding rules (default, implicit, explicit, new), shows how arrow functions simplify this handling, and offers practical best‑practice tips for writing robust code.

Arrow FunctionsBindingJavaScript
0 likes · 6 min read
Mastering JavaScript’s ‘this’: 4 Binding Rules and Arrow Function Secrets
JavaScript
JavaScript
Nov 27, 2025 · Frontend Development

Why Facebook Limits Arrow Functions: Hidden Pitfalls Every JS Developer Should Know

Although arrow functions are concise, Facebook’s codebase deliberately restricts their use because they can cause subtle bugs related to this binding, prototype sharing, constructor usage, missing arguments, and readability, prompting developers to follow specific best‑practice guidelines.

Arrow FunctionsJavaScriptbest practices
0 likes · 4 min read
Why Facebook Limits Arrow Functions: Hidden Pitfalls Every JS Developer Should Know
JavaScript
JavaScript
Oct 11, 2025 · Frontend Development

When to Use Arrow Functions vs Traditional Functions in JavaScript

This article explains the fundamental differences between arrow functions and traditional functions in JavaScript, outlines five common scenarios where using a regular function is required, and provides clear code examples to help developers choose the right syntax for reliable code.

Arrow FunctionsJavaScriptbest practices
0 likes · 8 min read
When to Use Arrow Functions vs Traditional Functions in JavaScript
JavaScript
JavaScript
Sep 11, 2025 · Fundamentals

Mastering JavaScript’s ‘this’: The Hidden Rules Every Developer Must Know

This article demystifies JavaScript’s notoriously tricky ‘this’ keyword by exploring its dynamic binding behavior, illustrating four binding rules with clear examples, and showing how arrow functions, call/apply/bind, and constructor calls affect its value, plus practical best‑practice tips.

Arrow FunctionsJavaScriptbinding rules
0 likes · 6 min read
Mastering JavaScript’s ‘this’: The Hidden Rules Every Developer Must Know
JavaScript
JavaScript
Jun 17, 2025 · Frontend Development

When to Use Arrow Functions vs Traditional Functions in JavaScript

This article explains the fundamental differences between arrow functions and traditional functions in JavaScript, shows five common scenarios where using a regular function is essential, and highlights the best situations to prefer arrow functions for concise, lexical this binding.

Arrow FunctionsJavaScriptbest practices
0 likes · 9 min read
When to Use Arrow Functions vs Traditional Functions in JavaScript
JavaScript
JavaScript
May 14, 2025 · Frontend Development

When Should You Avoid Arrow Functions? Pitfalls and Best Practices

This article examines the limitations of JavaScript arrow functions—such as this binding, inability to serve as constructors, and lack of an arguments object—while outlining scenarios where they remain a concise and effective choice.

Arrow Functionsbest practicesthis binding
0 likes · 4 min read
When Should You Avoid Arrow Functions? Pitfalls and Best Practices
JavaScript
JavaScript
May 6, 2025 · Frontend Development

Why Sticking to ES5 Is Holding Your JavaScript Back – Modern Alternatives Explained

This article examines common ES5 JavaScript patterns—such as var declarations, mixed function definitions, callback hell, the arguments object, constructor‑based inheritance, string concatenation, and manual loops—and shows how modern ES6+ features like let/const, arrow functions, promises, rest parameters, classes, template literals, spread syntax, and array methods provide cleaner, safer, and more maintainable code.

Arrow FunctionsJavaScriptasync/await
0 likes · 8 min read
Why Sticking to ES5 Is Holding Your JavaScript Back – Modern Alternatives Explained
JavaScript
JavaScript
Feb 18, 2025 · Frontend Development

Why Your setTimeout Callback Breaks: Mastering JavaScript this Binding

This article explains why a typical setTimeout callback loses its this context, outlines the four binding rules in JavaScript, and presents both classic fixes and modern approaches such as arrow functions and class field syntax to avoid common pitfalls in frontend development.

Arrow FunctionsJavaScriptcallback
0 likes · 4 min read
Why Your setTimeout Callback Breaks: Mastering JavaScript this Binding
JavaScript
JavaScript
Jan 2, 2025 · Frontend Development

7 Practical Arrow Function Patterns to Master ‘this’ in JavaScript

This article explores seven common scenarios where JavaScript arrow functions elegantly resolve the notorious ‘this’ binding issues—ranging from object methods and event callbacks to constructors, prototype methods, array callbacks, timers, and dynamic contexts—helping developers write cleaner, more maintainable code.

Arrow FunctionsJavaScriptes6
0 likes · 7 min read
7 Practical Arrow Function Patterns to Master ‘this’ in JavaScript
php Courses
php Courses
Nov 27, 2024 · Backend Development

Function Object Programming (FOP) in PHP: Extensions and Practical Examples

Function Object Programming (FOP) in PHP, introduced in PHP 7.4, enhances code reuse and modularity through arrow functions, callable classes, and functional pipelines, with practical examples demonstrating anonymous callbacks, modular code, and data transformation techniques for more flexible and maintainable backend development.

Arrow FunctionsCallable ClassesPHP
0 likes · 3 min read
Function Object Programming (FOP) in PHP: Extensions and Practical Examples
php Courses
php Courses
Oct 29, 2024 · Backend Development

Evaluating the Learning Cost of New PHP Function Features

This article examines how the introduction of new PHP function features, such as arrow functions and pattern matching, impacts a development team's learning cost, outlining required skill updates, integration challenges, and the trade‑offs between efficiency gains and the effort required to adopt these features.

Arrow FunctionsLearning CostPHP
0 likes · 5 min read
Evaluating the Learning Cost of New PHP Function Features
37 Interactive Technology Team
37 Interactive Technology Team
Dec 12, 2022 · Frontend Development

Understanding the JavaScript "this" Keyword: From Basics to Deep Insights

This article demystifies JavaScript’s this keyword by covering its runtime binding rules in global, function, method, constructor, prototype, and arrow contexts, explaining strict‑mode differences, call/apply/bind usage, event‑handler behavior, and the underlying ECMAScript reference mechanics that determine its value.

Arrow FunctionsJavaScriptcall apply bind
0 likes · 16 min read
Understanding the JavaScript "this" Keyword: From Basics to Deep Insights
ByteFE
ByteFE
May 20, 2021 · Fundamentals

Understanding ECMAScript: Cover Grammars and Finite Lookahead

This article explains ECMAScript's cover grammars and finite lookahead mechanisms for resolving ambiguous syntax, focusing on arrow function parameter lists versus parenthesized expressions.

Arrow FunctionsECMAScriptJavaScript
0 likes · 8 min read
Understanding ECMAScript: Cover Grammars and Finite Lookahead
21CTO
21CTO
Nov 30, 2019 · Backend Development

What’s New in PHP 7.4? Typed Properties, Arrow Functions, and More

PHP 7.4 introduces a suite of powerful features—including typed properties, arrow functions, limited covariance/contravariance, array unpacking, numeric literal separators, short lambda syntax, weak references, throwable __toString() and Opcache preloading—each illustrated with concise code examples for modern backend development.

Arrow FunctionsPHPTyped Properties
0 likes · 5 min read
What’s New in PHP 7.4? Typed Properties, Arrow Functions, and More
Java High-Performance Architecture
Java High-Performance Architecture
Jun 10, 2017 · Frontend Development

Master 7 Essential ES6 Features in Just 30 Minutes

This concise guide introduces seven frequently used ES6 features—including let, const, arrow functions, default parameters, destructuring, object shorthand, and template literals—explaining each concept so you can grasp them in roughly half an hour.

Arrow FunctionsJavaScriptconst
0 likes · 1 min read
Master 7 Essential ES6 Features in Just 30 Minutes
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
May 25, 2017 · Frontend Development

Master Essential ES6 Features: Let/Const, Arrow Functions, Templates, and More

This article offers a practical guide to the most commonly used ES6 features—let/const, arrow functions, template literals, destructuring, default parameters, spread operator, object literals, and classes—explaining their syntax, behavior, and real‑world usage to help developers quickly master modern JavaScript.

Arrow FunctionsDestructuringTemplate literals
0 likes · 12 min read
Master Essential ES6 Features: Let/Const, Arrow Functions, Templates, and More
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Apr 9, 2017 · Frontend Development

Boost Mini Program Development with Essential ES6 Features

This article explains how key ES6 features—arrow functions, array methods, destructuring, enhanced object literals, classes, and block‑scoped variables—can streamline WeChat Mini Program development, improve code readability, and increase development efficiency.

Arrow FunctionsJavaScriptWeChat Mini Program
0 likes · 8 min read
Boost Mini Program Development with Essential ES6 Features
Hujiang Technology
Hujiang Technology
Nov 14, 2016 · Frontend Development

When Not to Use Arrow Functions in JavaScript

This article explains the pitfalls of JavaScript arrow functions, showing when they break object methods, event callbacks, and constructors, and offers clear examples and corrected code to help developers choose between arrow functions and traditional function expressions.

Arrow FunctionsJavaScriptes6
0 likes · 7 min read
When Not to Use Arrow Functions in JavaScript
Node Underground
Node Underground
Aug 22, 2016 · Frontend Development

Mastering ES2015 Arrow Functions: Simplify Your JavaScript Code

This article introduces ES2015 arrow functions, showing their concise syntax, how they differ from traditional function expressions, the implicit handling of the this context, and practical examples that eliminate the need for manual this binding, helping developers write cleaner JavaScript.

Arrow FunctionsES2015JavaScript
0 likes · 2 min read
Mastering ES2015 Arrow Functions: Simplify Your JavaScript Code