Tagged articles
4 articles
Page 1 of 1
Top Architect
Top Architect
Jun 21, 2025 · Fundamentals

Why Pushing If‑Conditions Up and For‑Loops Down Boosts Code Quality

The article explains two simple yet powerful rules—"Push Ifs Up" and "Push Fors Down"—showing how moving condition checks out of functions and placing bulk processing loops later can reduce duplicated checks, improve readability, and unlock performance gains.

Code RefactoringIf StatementsPerformance Optimization
0 likes · 9 min read
Why Pushing If‑Conditions Up and For‑Loops Down Boosts Code Quality
ITPUB
ITPUB
Aug 23, 2017 · Operations

Master Bash: Essential Variables, Operators, and Conditional Statements

This guide introduces Bash scripting fundamentals, covering predefined variables, declaration operators, and practical examples of single‑, double‑, and multi‑branch if statements for tasks such as checking user privileges, disk usage, and service status on Linux systems.

BashIf StatementsLinux
0 likes · 5 min read
Master Bash: Essential Variables, Operators, and Conditional Statements
MaGe Linux Operations
MaGe Linux Operations
Apr 15, 2017 · Fundamentals

Master Bash Scripting: Essential Basics, Quirks, and Safety Tips

This article walks through Bash scripting fundamentals—including variable assignment, quoting, loops, conditionals, functions, return codes, and background jobs—while highlighting common pitfalls and safety practices such as always quoting variables and using the shellcheck linter.

BashIf StatementsSafety
0 likes · 10 min read
Master Bash Scripting: Essential Basics, Quirks, and Safety Tips