Tagged articles

loop

41 articles · Page 1 of 1
Architect
Architect
Jul 1, 2026 · Artificial Intelligence

Scheduling AI Agents for Night‑Shift Work: Turning Prompts into Reliable Loops

The article explains how to transform AI agents from single‑prompt responders into reliable night‑shift workers by defining clear goals, state files, evidence, and permission boundaries, using /goal, /loop and scheduled tasks, and provides concrete steps, examples, and a scheduling template for stable unattended execution.

AI agentsOperationsPrompt engineering
0 likes · 27 min read
Scheduling AI Agents for Night‑Shift Work: Turning Prompts into Reliable Loops
Architect
Architect
Jun 30, 2026 · Artificial Intelligence

Mastering Claude Code /loop: Turning Fragmented Tasks into Automated Workflows

This article explores Claude Code's /loop feature, showing how it can act as an in‑session observer to automate repetitive checks like CI status, deployments, and PR comments, while providing evidence, handling failures, and integrating with broader scheduling tools for reliable engineering workflows.

AI AutomationAgentCI monitoring
0 likes · 17 min read
Mastering Claude Code /loop: Turning Fragmented Tasks into Automated Workflows
ShiZhen AI
ShiZhen AI
Jun 9, 2026 · Artificial Intelligence

What Is the Hotly Debated ‘Loop’ in AI Programming? A Full Breakdown

The article dissects the rapidly debated concept of “Loop” in AI programming, tracing its origin from a viral tweet, defining it through Boris Cherny’s explanation, outlining its five evolutionary layers, practical usage, cost implications, and how it differs from traditional cron jobs.

AI agentsAutomationClaude Code
0 likes · 11 min read
What Is the Hotly Debated ‘Loop’ in AI Programming? A Full Breakdown
Wukong Talks Architecture
Wukong Talks Architecture
May 26, 2026 · Artificial Intelligence

How TiDB Built Loop: A Team‑Focused Agent Collaboration Workspace

TiDB’s engineering team created Loop, a team‑oriented workspace that lets multiple AI agents cooperate like colleagues, addressing coordination problems such as broken context, manual state sync, overlapping work, and long‑task stability, and now offers a beta for early adopters.

AI collaborationTeam WorkspaceTiDB
0 likes · 4 min read
How TiDB Built Loop: A Team‑Focused Agent Collaboration Workspace
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.

AI codingAutomationCLI commands
0 likes · 7 min read
15 Hidden Claude Code Features Every Developer Should Bookmark
AI Insight Log
AI Insight Log
Mar 8, 2026 · Artificial Intelligence

How the New /loop Command Lets Claude Code Automate Tasks for Up to 72 Hours

Claude Code v2.1.71 introduces the /loop command, a session‑level scheduler that lets the AI run recurring or one‑time tasks for up to three days, turning idle waiting periods into automated work while offering flexible time formats, nesting, and clear limitations.

AI schedulingAutomationClaude Code
0 likes · 10 min read
How the New /loop Command Lets Claude Code Automate Tasks for Up to 72 Hours
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.

Async/AwaitJavaScriptarray 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.

Async/AwaitJavaScriptPromise
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.

PostgreSQLSQLStored Procedure
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.

JavaScriptclosuresloop
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.

Integer RangePHPloop
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.

Javaexception handlingloop
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.

PHPforeachloop
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.

Javaexception handlingloop
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.

ArraysPHPbackend
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.

CollectionConcurrentModificationExceptionIterator
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.

ExceptionJavabreak
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.

CollectionConcurrentModificationExceptionIterator
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.

Fundamentalscontrol statementsloop
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.

JavaOptimizationStringBuilder
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.

DOMJavaScriptarray methods
0 likes · 7 min read
Master JavaScript & jQuery Looping: From for() to $.each() Explained
Java Captain
Java Captain
Jun 10, 2020 · Fundamentals

Understanding java.util.ConcurrentModificationException and Safe Ways to Remove Elements from a List

This article explains why using a foreach loop to remove elements from a Java List triggers java.util.ConcurrentModificationException, analyzes the underlying iterator mechanism, and presents three safe alternatives: iterator.remove(), forward-index loop with index adjustment, and reverse-index loop.

ArrayListCollectionConcurrentModificationException
0 likes · 6 min read
Understanding java.util.ConcurrentModificationException and Safe Ways to Remove Elements from a List
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.

ArrayListConcurrentModificationExceptionIterator
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.

AssemblyBackend Developmentcompiler
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.

BenchmarkingStreamforeach
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.

Pythondictelse
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.

ArrayCONTAINSJava
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.

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