Tagged articles
205 articles
Page 3 of 3
Taobao Frontend Technology
Taobao Frontend Technology
Jan 6, 2017 · Frontend Development

How to Write Readable JavaScript Code: Naming, Branches, and Functions

This article explains why readable code matters for developers, then offers practical guidelines on naming variables and functions, structuring conditional branches, keeping functions single‑purpose, handling errors, avoiding side‑effects, and organizing class methods to improve maintainability in modern JavaScript projects.

JavaScriptbest practicescode readability
0 likes · 24 min read
How to Write Readable JavaScript Code: Naming, Branches, and Functions
21CTO
21CTO
Oct 11, 2015 · Frontend Development

Unveiling JavaScript Closures: How Scope Chains and Memory Work Under the Hood

This article demystifies JavaScript closures by explaining when they are created, how the scope chain and lexical environments operate, why closures persist in memory, and how nested functions and the garbage collector interact, illustrated with clear code examples and diagrams.

Memory ManagementScope Chainclosure
0 likes · 16 min read
Unveiling JavaScript Closures: How Scope Chains and Memory Work Under the Hood
MaGe Linux Operations
MaGe Linux Operations
Aug 22, 2014 · Databases

Essential MySQL Q&A: Master Version, Queries, Functions, and More

This article provides concise MySQL Q&A covering how to retrieve server version and database name, filter records with NOT operators, combine AND/OR conditions, use IFNULL, limit query results, choose between Oracle and MySQL, obtain the current date, export tables to XML, understand persistent connections, list table indexes, and explain CSV tables.

LinuxSQLdatabase
0 likes · 9 min read
Essential MySQL Q&A: Master Version, Queries, Functions, and More