Tagged articles

Functions

209 articles · Page 3 of 3
ITPUB
ITPUB
May 20, 2017 · Fundamentals

Boost Your Bash Scripts: Safety, Functions, and Advanced Tips

This article presents practical Bash scripting techniques—including safety flags, function definitions, variable annotations, modern command substitution, double‑bracket tests, powerful string manipulation, process substitution, here‑documents, built‑in variables, and debugging methods—to write more reliable and maintainable shell scripts.

FunctionsShell ScriptingString Manipulation
0 likes · 9 min read
Boost Your Bash Scripts: Safety, Functions, and Advanced Tips
MaGe Linux Operations
MaGe Linux Operations
Apr 2, 2017 · Fundamentals

Master Python Functions: Definitions, Scope, Closures, and Lambdas Explained

This article explains Python functions in depth, covering their definition with def, parameter handling including default, variable-length, and keyword arguments, the role of return statements, scope rules, inner functions and closures, anonymous lambda expressions, and the built‑in filter function, illustrated with clear diagrams.

FunctionsLambdaPython
0 likes · 7 min read
Master Python Functions: Definitions, Scope, Closures, and Lambdas Explained
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 FunctionsDefault ParametersFunctions
0 likes · 13 min read
Master JavaScript Functions: From Basics to Advanced Patterns
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.

FunctionsJavaScriptNaming Conventions
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.

FunctionsMemory ManagementScope Chain
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.

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