Tagged articles
Arrow Functions
23 articles · Page 1 of 1
A practical cheat sheet grouping the 20+ most-used ES6+ features by daily coding scenarios — scope declarations, template strings, destructuring, arrow functions, spread operator, optional chaining, nullish coalescing, Map/Set, modern array methods, and dynamic imports — with code examples, common pitfalls, and decision guidelines.
Array MethodsArrow FunctionsDestructuring
0 likes · 12 min read

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

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 FunctionsBest PracticesJavaScript
0 likes · 4 min read

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 FunctionsBest PracticesJavaScript
0 likes · 8 min read

This article explains the practical pitfalls of JavaScript arrow functions—such as unexpected this binding, prototype method duplication, inability to serve as constructors, and missing arguments object—illustrated with code examples and guidelines for balanced usage in large codebases.
Arrow FunctionsJavaScriptcode pitfalls
0 likes · 4 min read

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

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 FunctionsBest PracticesJavaScript
0 likes · 9 min read

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

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 FunctionsAsync/AwaitES6
0 likes · 8 min read

This article explains why large codebases like Facebook restrict JavaScript arrow functions, detailing issues with this binding, prototype methods, constructor usage, missing arguments object, and readability, and offers practical guidelines for when to use or avoid them.
Arrow FunctionsBest PracticesCode Readability
0 likes · 3 min read

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 FunctionsCallbackFrontend Development
0 likes · 4 min read

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 FunctionsES6JavaScript
0 likes · 7 min read

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

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

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


ByteFEMay 20, 2021 · Fundamentals
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


21CTONov 30, 2019 · Backend Development
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

This article explains how JavaScript arrow functions can make code more concise and simplify handling of the this keyword, covering syntax differences, implicit returns, logging, object returns, practical examples with map, promises, and refactoring techniques for modern web development.
Arrow FunctionsES6Promises
0 likes · 10 min read

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 FunctionsES6JavaScript
0 likes · 1 min read

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 FunctionsDestructuringES6
0 likes · 12 min read

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.
Array MethodsArrow FunctionsClasses
0 likes · 8 min read

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 FunctionsES6JavaScript
0 likes · 7 min read

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
