Tagged articles
37 articles
Page 1 of 1
Machine Learning Algorithms & Natural Language Processing
Machine Learning Algorithms & Natural Language Processing
Apr 4, 2026 · Artificial Intelligence

15 Hidden Claude Code Features Every Developer Should Bookmark

Claude Code’s product lead Boris Cherny revealed fifteen little‑known commands and tricks—ranging from mobile coding and voice input to automated loops, worktree parallelism, and advanced CLI flags—that let developers treat Claude as a 24/7 coding assistant and dramatically boost productivity.

/loopAI CodingAutomation
0 likes · 7 min read
15 Hidden Claude Code Features Every Developer Should Bookmark
JavaScript
JavaScript
Oct 31, 2025 · Frontend Development

Why forEach Is Losing Favor: Switch to for...of for Safer Async Loops

The article explains why Array.prototype.forEach is increasingly discouraged in modern JavaScript, especially when combined with async/await, and shows how replacing it with a for...of loop resolves asynchronous pitfalls, enables proper flow‑control statements, and improves code clarity.

/loopJavaScriptarray methods
0 likes · 5 min read
Why forEach Is Losing Favor: Switch to for...of for Safer Async Loops
JavaScript
JavaScript
Jun 30, 2025 · Frontend Development

Why forEach + async/await Breaks and How to Properly Await in JavaScript

This article explains why combining forEach with async/await leads to unexpected immediate execution, analyzes the underlying behavior of forEach, and presents three reliable patterns—sequential for...of loops, parallel Promise.all with map, and traditional for loops—to correctly handle asynchronous operations in JavaScript.

/loopJavaScriptPromise
0 likes · 7 min read
Why forEach + async/await Breaks and How to Properly Await in JavaScript
IT Xianyu
IT Xianyu
Jun 22, 2025 · Databases

Master Looping and Variables in MySQL & PostgreSQL Stored Procedures

This tutorial demonstrates how to use variables and loop constructs in MySQL and PostgreSQL stored procedures to iterate over a users table, filter records by age, and simulate sending a system welcome message, while comparing syntax differences between the two databases.

/loopPostgreSQLSQL
0 likes · 6 min read
Master Looping and Variables in MySQL & PostgreSQL Stored Procedures
JavaScript
JavaScript
Feb 8, 2025 · Frontend Development

Avoid JavaScript Closure Pitfalls: Memory Leaks, Shared Variables, and Side Effects

This article explains how JavaScript closures, while powerful for encapsulation and modularity, can cause memory leaks, unexpected variable sharing in loops, and side‑effects when external variables are modified, and provides practical solutions such as releasing references, using let, IIFEs, bind, and immutable patterns.

/loopJavaScriptclosures
0 likes · 6 min read
Avoid JavaScript Closure Pitfalls: Memory Leaks, Shared Variables, and Side Effects
php Courses
php Courses
Jan 8, 2025 · Backend Development

Managing Integer Ranges in PHP: Techniques and Best Practices

This article explains how to manage integer ranges in PHP using loops, conditional checks, and custom functions, highlighting basic techniques, advanced optimizations like bitwise operations, and best‑practice recommendations for efficient, readable code.

/loopInteger RangePHP
0 likes · 6 min read
Managing Integer Ranges in PHP: Techniques and Best Practices
Architect's Guide
Architect's Guide
May 1, 2024 · Fundamentals

Effect of Placing try‑catch Inside vs Outside a for Loop in Java

This article explains the behavioral and performance differences of positioning a try‑catch block either outside or inside a Java for‑loop, illustrating each case with code examples, execution results, memory analysis, and practical recommendations for handling exceptions during batch processing.

/loopException HandlingJava
0 likes · 5 min read
Effect of Placing try‑catch Inside vs Outside a for Loop in Java
php Courses
php Courses
Oct 8, 2023 · Backend Development

Understanding the Power of & in PHP foreach Loops

This article explains how PHP's foreach loop works and demonstrates the powerful use of the & reference operator to modify array elements, create dynamic variables, handle large datasets efficiently, and outlines best practices and alternatives for safe and effective coding.

/loopPHPforeach
0 likes · 5 min read
Understanding the Power of & in PHP foreach Loops
macrozheng
macrozheng
Aug 11, 2023 · Backend Development

When to Put try-catch Inside or Outside a Loop? Pros, Cons, and Best Practices

This article examines the advantages and disadvantages of placing try-catch blocks inside versus outside loops in Java, provides concrete code examples, references performance guidelines from the Alibaba Java Development Manual, and outlines scenarios to help developers choose the most appropriate approach.

/loopException HandlingJava
0 likes · 5 min read
When to Put try-catch Inside or Outside a Loop? Pros, Cons, and Best Practices
php Courses
php Courses
Jun 27, 2023 · Backend Development

Comprehensive Guide to PHP foreach Loop with Examples

This article thoroughly explains PHP's foreach loop syntax, demonstrates its use with indexed, associative, and multidimensional arrays, and provides complete code examples showing how to access values and keys in each scenario.

/loopArraysBackend
0 likes · 6 min read
Comprehensive Guide to PHP foreach Loop with Examples
macrozheng
macrozheng
Feb 20, 2023 · Fundamentals

8 Reliable Ways to Remove Elements from a Java List (And Why Some Fail)

This article examines eight common techniques for deleting elements from a Java List, explains why certain loop‑based approaches cause errors or unexpected results, and highlights the three reliable methods—including reverse for‑loops, iterator.remove, and Stream filtering—that work correctly.

/loopCollectionConcurrentModificationException
0 likes · 9 min read
8 Reliable Ways to Remove Elements from a Java List (And Why Some Fail)
Architect's Tech Stack
Architect's Tech Stack
Jun 5, 2022 · Backend Development

Why return in Java 8 forEach Behaves Like continue and How to Properly Terminate the Loop

This article explains that using return inside Java 8’s forEach does not stop the surrounding method but merely skips the current iteration, similar to continue, and presents several solutions—including using a traditional foreach loop, break, return (not recommended), and throwing an exception—to correctly terminate the loop.

/loopExceptionJava
0 likes · 5 min read
Why return in Java 8 forEach Behaves Like continue and How to Properly Terminate the Loop
Programmer DD
Programmer DD
May 9, 2022 · Fundamentals

Can You Remove Items Inside a Java foreach Loop? Why It Fails and How to Fix It

This article explores how Java's foreach loop handles collection traversal, demonstrates why removing or modifying elements directly within a foreach causes ConcurrentModificationException, compares it with traditional for loops, and shows the correct way to delete or update elements using an iterator or element properties.

/loopCollectionConcurrentModificationException
0 likes · 9 min read
Can You Remove Items Inside a Java foreach Loop? Why It Fails and How to Fix It
Practical DevOps Architecture
Practical DevOps Architecture
Mar 15, 2021 · Fundamentals

Understanding Python range() and Loop Control Statements

This article explains how Python's range() function generates numeric sequences with various start, stop, and step parameters, demonstrates converting ranges to lists, and describes loop control statements like break, continue, pass, and the else clause within for/while loops.

/loopcontrol statementsfundamentals
0 likes · 3 min read
Understanding Python range() and Loop Control Statements
Top Architect
Top Architect
Feb 12, 2021 · Backend Development

Performance Comparison of String and StringBuilder in Java Loops

The article presents a series of Java benchmarks that compare per‑iteration and cumulative string concatenation using String versus StringBuilder, explains why the compiler optimises String concatenation to StringBuilder, and draws conclusions about the most efficient usage patterns in loop‑heavy code.

/loopBenchmarkJava
0 likes · 8 min read
Performance Comparison of String and StringBuilder in Java Loops
Open Source Tech Hub
Open Source Tech Hub
Jul 9, 2020 · Frontend Development

Master JavaScript & jQuery Looping: From for() to $.each() Explained

This guide clarifies the differences between native JavaScript and jQuery iteration functions, shows how to convert between DOM and jQuery objects, and provides concrete code examples for each looping method—including for, forEach, every, some, map, filter, for‑in, each, $.map, $.grep, $.inArray and $.filter—so developers can choose the right tool without errors.

/loopDOMJavaScript
0 likes · 7 min read
Master JavaScript & jQuery Looping: From for() to $.each() Explained
Architect's Tech Stack
Architect's Tech Stack
Jun 7, 2020 · Backend Development

How to Avoid java.util.ConcurrentModificationException When Removing Elements from a List

This article explains why a foreach loop over an ArrayList can throw java.util.ConcurrentModificationException when removing elements, analyzes the underlying iterator mechanism, and presents three safe alternatives—using Iterator.remove(), a forward-index for loop with index correction, and a reverse for loop—to modify collections without errors.

/loopArrayListConcurrentModificationException
0 likes · 7 min read
How to Avoid java.util.ConcurrentModificationException When Removing Elements from a List
Liangxu Linux
Liangxu Linux
Apr 9, 2020 · Backend Development

Mastering Shell Loops: From Basic for to Advanced Nested and Infinite Loops

This guide explains the essential loop constructs in Bash—basic for loops, range expansions, while loops, nested loops, dynamic iteration over system data, variable validation techniques, file line processing, and infinite loops—providing clear examples and practical code snippets for each scenario.

/loop
0 likes · 7 min read
Mastering Shell Loops: From Basic for to Advanced Nested and Infinite Loops
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Feb 13, 2020 · Backend Development

How Go Compiles Range Loops into Assembly: A Deep Dive

This article examines how the Go compiler translates range loops into low‑level assembly instructions, walks through a concrete example with code and assembly output, explains each instruction’s role, and highlights recent compiler improvements that enhance safety and scheduler interaction.

/loopAssemblyBackend Development
0 likes · 8 min read
How Go Compiles Range Loops into Assembly: A Deep Dive
Java Captain
Java Captain
Aug 19, 2018 · Fundamentals

Performance Comparison of Java forEach, C‑Style Loop, and Stream API

This article examines Java's forEach syntax, C‑style for loops, and Stream API by benchmarking their execution times on large collections, explaining the underlying mechanisms that cause performance differences and identifying the most efficient traversal method for Sets.

/loopBenchmarkingStream
0 likes · 7 min read
Performance Comparison of Java forEach, C‑Style Loop, and Stream API
MaGe Linux Operations
MaGe Linux Operations
Jul 2, 2018 · Fundamentals

Why Python Behaves Unexpectedly: 10 Surprising Code Quirks Explained

This article explores ten puzzling Python behaviors—from implicit dictionary key conversion and generator timing quirks to list‑iteration deletions, else clause nuances, the difference between is and ==, loop variable leakage, + versus +=, try‑finally returns, mutable True/False assignments, and subtle for‑loop mechanics—providing clear explanations and code examples for each.

/loopPythondict
0 likes · 11 min read
Why Python Behaves Unexpectedly: 10 Surprising Code Quirks Explained
Java Backend Technology
Java Backend Technology
Nov 1, 2016 · Fundamentals

Which Java Method Is Fastest to Check If an Array Contains a Value?

This article compares several Java techniques—using List, Set, a simple loop, Arrays.binarySearch, and Apache Commons ArrayUtils—to determine whether an unordered array contains a specific value, analyzes their time complexities, and presents benchmark results for arrays of different sizes.

/loopArrayCONTAINS
0 likes · 6 min read
Which Java Method Is Fastest to Check If an Array Contains a Value?
MaGe Linux Operations
MaGe Linux Operations
Apr 15, 2015 · Operations

Why Your SSH Loop Stops After One Host—and How to Fix It

Learn why a Bash script that reads IPs from a file and uses SSH in a while loop only processes the first host, and discover two reliable solutions—switching to a for loop or adding the -n option to SSH—to ensure all servers are queried correctly.

/loopAutomationBash
0 likes · 4 min read
Why Your SSH Loop Stops After One Host—and How to Fix It