Tagged articles
62 articles
Page 1 of 1
Qborfy AI
Qborfy AI
Apr 15, 2026 · Artificial Intelligence

Why Three AI Agents Beat One: Planner‑Generator‑Evaluator Architecture Explained

The article analyzes why a single AI struggles to self‑evaluate, presents Anthropic’s three‑agent (Planner, Generator, Evaluator) architecture with concrete DAW‑building examples, sprint contracts, cost‑benefit tables, and step‑by‑step processes that show how each role solves specific problems and improves overall quality.

AI ArchitectureEvaluatorMulti-Agent
0 likes · 24 min read
Why Three AI Agents Beat One: Planner‑Generator‑Evaluator Architecture Explained
Java One
Java One
Mar 28, 2026 · Artificial Intelligence

Five Core Design Patterns for Building Robust AI Agents with Google ADK

This guide translates Google Cloud Tech's Agent Skills design patterns, detailing five reusable architecture patterns—Tool Wrapper, Generator, Reviewer, Inversion, and Pipeline—that help developers create modular, maintainable, and composable AI agents using the Agent Development Kit (ADK).

AI AgentDesign PatternsGoogle ADK
0 likes · 16 min read
Five Core Design Patterns for Building Robust AI Agents with Google ADK
o-ai.tech
o-ai.tech
Mar 25, 2026 · Artificial Intelligence

From Code Writing to Continuous Development: Anthropic’s Long‑Running Agent Harness Design

Anthropic’s article dissects a three‑role harness—planner, generator, evaluator—for building long‑running AI applications, explaining how structured specs, sprint contracts, iterative evaluation, and context management transform a single model into a reliable software‑engineering pipeline, with concrete front‑end and full‑stack case studies.

AI agentsEvaluatorHarness
0 likes · 23 min read
From Code Writing to Continuous Development: Anthropic’s Long‑Running Agent Harness Design
Data STUDIO
Data STUDIO
Mar 20, 2026 · Fundamentals

Save Up to 80% Memory in Python with 5 Built‑In Tricks

The article shows how to diagnose and dramatically cut Python’s memory usage by using built‑in tools such as sys.getsizeof, psutil, __slots__, generator expressions, memory‑mapped files (mmap) and string interning, providing concrete code examples, benchmarks and practical tips to avoid common pitfalls.

Memory OptimizationPythonString Interning
0 likes · 15 min read
Save Up to 80% Memory in Python with 5 Built‑In Tricks
Wuming AI
Wuming AI
Mar 18, 2026 · Artificial Intelligence

5 Proven Design Patterns to Supercharge Your AI Agent Skills

This article dissects five practical design patterns—Tool Wrapper, Generator, Reviewer, Inversion, and Pipeline—explaining when each solves a specific problem, showing concrete SKILL.md examples, step‑by‑step instructions, and a GitHub optimizer tool that automatically refines your agent skills.

AI agentsDesign PatternsPrompt engineering
0 likes · 13 min read
5 Proven Design Patterns to Supercharge Your AI Agent Skills
Test Development Learning Exchange
Test Development Learning Exchange
May 17, 2025 · Fundamentals

Understanding Python Generator Functions: Syntax, Usage, and Practical Examples

Python generator functions, using the yield keyword, enable lazy evaluation and memory-efficient data processing, with examples covering basic syntax, differences from regular functions, Fibonacci sequence generation, large file reading, two-way communication via send(), and control methods like throw() and close(), highlighting their advantages.

Code ExamplesIteratorsLazy Evaluation
0 likes · 4 min read
Understanding Python Generator Functions: Syntax, Usage, and Practical Examples
Python Programming Learning Circle
Python Programming Learning Circle
Apr 22, 2025 · Fundamentals

Why and How to Avoid Writing For Loops in Python

The article explains why you should challenge yourself to avoid explicit for loops in Python and demonstrates how to replace them with list comprehensions, generator expressions, map/reduce, and itertools, resulting in shorter, more readable, and better‑structured code.

Code RefactoringLoop Optimizationfunctional programming
0 likes · 7 min read
Why and How to Avoid Writing For Loops in Python
Code Mala Tang
Code Mala Tang
Apr 15, 2025 · Fundamentals

What Really Happens Inside a Python for-loop? Uncover the Magic of Iterators

This article demystifies Python’s for-loop by explaining how iterable objects and iterators work under the hood, illustrating the iterator protocol with code examples, and providing practical custom iterator implementations, common pitfalls, and tips for efficient data processing.

IterablePythondata-processing
0 likes · 9 min read
What Really Happens Inside a Python for-loop? Uncover the Magic of Iterators
Python Crawling & Data Mining
Python Crawling & Data Mining
Apr 11, 2025 · Fundamentals

How to Remove Adjacent Duplicates from a Python List – 5 Simple Methods

This article walks through a common Python data‑processing challenge—removing consecutive duplicate elements from a list—by presenting five distinct solutions, including itertools.groupby, list comprehensions, explicit loops, generator functions, and enumerate, each illustrated with code snippets and output screenshots.

Pythongeneratoritertools
0 likes · 5 min read
How to Remove Adjacent Duplicates from a Python List – 5 Simple Methods
php Courses
php Courses
Jan 24, 2025 · Backend Development

Using PHP Generator Functions to Create Infinite Iterable Objects

This article explains PHP generator functions introduced in PHP 5.5 and enhanced in PHP 7, demonstrating how to implement infinite iterable objects such as a Fibonacci sequence, and discusses their advantages for processing large data sets, memory efficiency, and typical use cases like log handling and pagination.

Backend DevelopmentLarge Data ProcessingMemory Optimization
0 likes · 5 min read
Using PHP Generator Functions to Create Infinite Iterable Objects
Test Development Learning Exchange
Test Development Learning Exchange
Jan 18, 2025 · Fundamentals

Understanding Python Comprehensions: Lists, Sets, Dictionaries, Nested and Generator Expressions

Python comprehensions provide concise syntax for creating lists, sets, dictionaries, nested structures, and generator expressions, allowing developers to replace explicit loops and conditional logic with readable one‑liner constructs, as illustrated with practical code examples and guidance on their appropriate use.

ComprehensionsPythongenerator
0 likes · 6 min read
Understanding Python Comprehensions: Lists, Sets, Dictionaries, Nested and Generator Expressions
MaGe Linux Operations
MaGe Linux Operations
Jan 11, 2025 · Fundamentals

Master Python Iterators and Generators: From Basics to Advanced Usage

This article explains Python iterators, iterables, and generators, detailing their definitions, core methods, advantages, disadvantages, and practical code examples—including iterator objects, generator creation via comprehensions and the yield keyword, decorator integration, and mutable data handling—providing a comprehensive guide for developers.

DecoratorIterableIterator
0 likes · 14 min read
Master Python Iterators and Generators: From Basics to Advanced Usage
Deepin Linux
Deepin Linux
Jan 8, 2025 · Fundamentals

Deep Dive into C++20 Coroutines: Principles, Components, and Practical Applications

This article explains the fundamentals of C++20 coroutines, describing their lightweight asynchronous execution model, key language constructs such as co_await, co_yield, and co_return, the underlying components like promise objects and coroutine handles, and demonstrates real‑world usage through comprehensive code examples for networking, file I/O, generators, and task scheduling.

C++20Coroutinesco_await
0 likes · 32 min read
Deep Dive into C++20 Coroutines: Principles, Components, and Practical Applications
Test Development Learning Exchange
Test Development Learning Exchange
Oct 1, 2024 · Fundamentals

Understanding Python Generator Functions and Their Applications in API Automation Testing

This article explains Python generator functions, their memory‑efficient iteration mechanism, and demonstrates through multiple examples—including basic generators, Fibonacci sequences, large file processing, HTTP streaming, and API test data generation—how they can streamline and optimize interface automation testing workflows.

AutomationIteratorapi-testing
0 likes · 10 min read
Understanding Python Generator Functions and Their Applications in API Automation Testing
Test Development Learning Exchange
Test Development Learning Exchange
Jun 1, 2024 · Backend Development

Using Python Generator Functions for Efficient API Automation Testing

This article demonstrates how Python generator functions can be applied in API automation testing to process large data streams, batch requests, infinite sequences, file handling, dynamic test data generation, recursive file traversal, lazy calculations, data filtering, response processing, retry logic, and test report creation, thereby improving memory efficiency and test flexibility.

api-testinggeneratormemory-management
0 likes · 6 min read
Using Python Generator Functions for Efficient API Automation Testing
Test Development Learning Exchange
Test Development Learning Exchange
Apr 13, 2024 · Fundamentals

Advanced Python Techniques: 10 In-Depth Code Examples

This article presents ten advanced Python techniques—including list comprehensions, lambda functions, decorators, context managers, generators, metaclasses, asyncio coroutines, enums, slicing, and exception handling—each illustrated with detailed code examples to help readers deepen their mastery of Python programming.

AdvancedDecoratorLambda
0 likes · 6 min read
Advanced Python Techniques: 10 In-Depth Code Examples
Alibaba Cloud Developer
Alibaba Cloud Developer
Dec 29, 2023 · Fundamentals

Mastering C++20 Coroutines: From Concepts to Practical Implementations

This article provides a comprehensive introduction to C++20 coroutines, covering fundamental concepts, stackful versus stackless implementations, detailed code demos—including a simple coroutine, a generator for Fibonacci numbers, and a task framework—while explaining the underlying compiler transformations and practical usage.

AsyncC++20Coroutines
0 likes · 31 min read
Mastering C++20 Coroutines: From Concepts to Practical Implementations
Python Programming Learning Circle
Python Programming Learning Circle
Nov 13, 2023 · Fundamentals

Why You Should Avoid For Loops in Python and Use More Advanced Constructs

The article explains how avoiding explicit for‑loops in Python encourages the use of more expressive constructs such as list comprehensions, generator expressions, map/reduce, and itertools, leading to shorter, more readable, and better‑structured code while showcasing practical examples and best‑practice recommendations.

Code OptimizationPythonfunctional programming
0 likes · 7 min read
Why You Should Avoid For Loops in Python and Use More Advanced Constructs
php Courses
php Courses
Oct 31, 2023 · Backend Development

Using Generators in PHP 7 for Efficient Data Processing

This article explains PHP 7 generators, describing their concept, memory‑saving benefits, and how to implement them with a practical example that reads a large file and yields squared numbers, demonstrating efficient data processing and lazy loading in backend development.

Backend DevelopmentMemory OptimizationPHP
0 likes · 5 min read
Using Generators in PHP 7 for Efficient Data Processing
Python Programming Learning Circle
Python Programming Learning Circle
Sep 21, 2023 · Fundamentals

Python Performance Optimization Tips

This article presents practical Python performance optimization techniques, including using local variables, minimizing function calls, employing mappings over conditionals, iterating directly over sequences, preferring generator expressions, pre‑compiling code, and structuring modules with functions to reduce overhead and improve efficiency.

Pythonbest-practicescoding
0 likes · 6 min read
Python Performance Optimization Tips
Sohu Tech Products
Sohu Tech Products
Apr 26, 2023 · Fundamentals

Understanding JavaScript Generators: Basics, Syntax, and Advanced Usage

JavaScript Generators, introduced in ES6, allow functions to pause and resume execution, yielding multiple values; this article explains their syntax, basic usage, advanced features like yield* and data exchange, and demonstrates practical scenarios such as asynchronous flow control, memory-efficient data processing, and state machine implementation.

AsyncJavaScriptYield
0 likes · 11 min read
Understanding JavaScript Generators: Basics, Syntax, and Advanced Usage
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 28, 2022 · Artificial Intelligence

EGBAD: Efficient GAN‑Based Anomaly Detection – Theory and Practical Implementation

This article introduces the EGBAD model, an efficient GAN‑based anomaly detection method that replaces AnoGAN's costly latent variable search with an encoder, provides detailed PyTorch code for data loading, model construction, training, and inference, and compares its testing speed with AnoGAN.

DiscriminatorEGBADEncoder
0 likes · 18 min read
EGBAD: Efficient GAN‑Based Anomaly Detection – Theory and Practical Implementation
Python Programming Learning Circle
Python Programming Learning Circle
Aug 9, 2022 · Fundamentals

Why Challenge Yourself to Avoid Writing for Loops in Python and Use More Advanced Constructs

The article explains how deliberately avoiding for‑loops in Python encourages the use of advanced language features such as list comprehensions, generator expressions, built‑in functions, and itertools, resulting in shorter, more readable, and flatter code structures while also showcasing practical code examples and a concluding recommendation to minimize explicit loops.

Code Optimizationfunctional-programminggenerator
0 likes · 8 min read
Why Challenge Yourself to Avoid Writing for Loops in Python and Use More Advanced Constructs
Python Programming Learning Circle
Python Programming Learning Circle
Jul 25, 2022 · Fundamentals

10 Practical Python Code Tricks for Efficient Programming

This article presents ten useful Python techniques—including string joining, list comprehensions, enumerate, zip, itertools, Counter, dictionary creation, generators, multiple return values, and the sorted function—each explained with clear examples and performance comparisons to help developers write cleaner and faster code.

code tricksgeneratoritertools
0 likes · 10 min read
10 Practical Python Code Tricks for Efficient Programming
Code DAO
Code DAO
Jun 3, 2022 · Artificial Intelligence

Decomposing PointGAN: Teaching a Machine to Generate a Single Point

This article walks through building and analyzing a minimal GAN—PointGAN—that learns to output the single value 1, covering the linear generator, a two‑layer discriminator, training loops, loss visualizations, instability diagnostics, and practical fixes such as loss easing, weighted examples, weight decay, and noisy generator parameters.

DiscriminatorGANNoise Injection
0 likes · 24 min read
Decomposing PointGAN: Teaching a Machine to Generate a Single Point
Python Programming Learning Circle
Python Programming Learning Circle
May 4, 2022 · Fundamentals

Common Python Interview Questions and Answers

This article provides concise explanations of ten fundamental Python topics, covering differences between lists and tuples, arrays and lists, append versus extend, equality operators, shallow and deep copying, loop control statements, variable scopes, range versus xrange, decorators, and the concepts of iterators and generators.

ArrayDecoratorIterator
0 likes · 7 min read
Common Python Interview Questions and Answers
Python Programming Learning Circle
Python Programming Learning Circle
Apr 22, 2022 · Fundamentals

Understanding Python List Comprehensions: Advantages, Usage, and Performance Comparison

This article explains how Python list comprehensions provide a concise, memory‑efficient way to create lists, compares them with loops and map(), shows advanced features like conditional logic, nested comprehensions, set and dictionary comprehensions, and discusses when to avoid them for better readability and performance.

Conditional LogicPythondictionary comprehension
0 likes · 14 min read
Understanding Python List Comprehensions: Advantages, Usage, and Performance Comparison
Python Programming Learning Circle
Python Programming Learning Circle
Dec 15, 2021 · Fundamentals

Understanding Iteration, Iterables, Iterators, Generators, Coroutines, Greenlet and Gevent in Python

This tutorial explains Python's iteration concepts, how to identify and create iterable objects, implement custom iterables and iterators, use the iter() and next() functions, build generators with yield, control execution with coroutines, and leverage greenlet and gevent for cooperative multitasking.

Iteratorcoroutinegenerator
0 likes · 22 min read
Understanding Iteration, Iterables, Iterators, Generators, Coroutines, Greenlet and Gevent in Python
Python Programming Learning Circle
Python Programming Learning Circle
Jun 19, 2021 · Fundamentals

Five Advanced Python Features and Their Usage

This article introduces five advanced Python features—lambda functions, map, filter, the itertools module, and generator functions—explaining their concepts, typical use cases, and providing clear code examples to demonstrate how they simplify data processing and improve memory efficiency.

Advanced FeaturesPythongenerator
0 likes · 8 min read
Five Advanced Python Features and Their Usage
Python Programming Learning Circle
Python Programming Learning Circle
Apr 17, 2021 · Fundamentals

Python Comprehensions: List, Dictionary, Set, Generator and Interview Questions

This article explains Python's comprehension syntax—including list, dictionary, set, and generator expressions—provides multiple code examples, demonstrates advanced usage such as conditional and nested comprehensions, and presents a common interview question illustrating variable scope with lambda functions.

Lambdacomprehensiondictionary comprehension
0 likes · 7 min read
Python Comprehensions: List, Dictionary, Set, Generator and Interview Questions
php Courses
php Courses
Dec 9, 2020 · Backend Development

Understanding PHP Generators and the yield Keyword

This article explains PHP's Generator feature introduced in version 5.5, demonstrating how the yield keyword enables memory‑efficient iteration, how to implement custom xrange functions, and how to control generators with methods like next, current, valid, send, rewind, and throw.

IteratorYieldgenerator
0 likes · 6 min read
Understanding PHP Generators and the yield Keyword
政采云技术
政采云技术
Nov 17, 2020 · Frontend Development

Writing High-Quality Maintainable Code: Asynchronous Optimization

This article explains the various asynchronous techniques in JavaScript—callback, Promise, async/await, and generator—compares them, and demonstrates practical patterns for handling callback hell, parallel and sequential async operations to write cleaner, more maintainable frontend code.

AsyncPromisecallback
0 likes · 10 min read
Writing High-Quality Maintainable Code: Asynchronous Optimization
MaGe Linux Operations
MaGe Linux Operations
Aug 24, 2020 · Fundamentals

Why Coroutines Outperform Threads: A Deep Dive into Python’s Generator Magic

Coroutines, also known as micro‑threads, allow a single thread to pause and resume functions, offering higher efficiency than traditional multithreading by eliminating context‑switch overhead and lock contention, with Python’s generator‑based implementation enabling lock‑free producer‑consumer patterns and seamless multi‑core utilization via processes.

Producer ConsumerPythonconcurrency
0 likes · 7 min read
Why Coroutines Outperform Threads: A Deep Dive into Python’s Generator Magic
Python Programming Learning Circle
Python Programming Learning Circle
May 19, 2020 · Fundamentals

Understanding Python Closures, Generators, and the nonlocal Keyword with Multiple Implementation Methods

This article explains how to create a counter using Python closures, explores three different implementations—including mutable objects, generators, and the nonlocal keyword—while clarifying the behavior of immutable vs. mutable objects and demonstrating the practical use of nonlocal in nested functions.

Pythonclosurefundamentals
0 likes · 7 min read
Understanding Python Closures, Generators, and the nonlocal Keyword with Multiple Implementation Methods
MaGe Linux Operations
MaGe Linux Operations
Mar 10, 2020 · Fundamentals

Master Python Iterables, Iterators, and Generators: A Complete Guide

This article explains the concepts and differences between Python iterables, iterators, and generators, shows how to create custom iterable and iterator classes, demonstrates the use of __iter__ and __next__ magic methods, and provides practical generator examples for efficient lazy evaluation.

IterableIteratorfundamentals
0 likes · 8 min read
Master Python Iterables, Iterators, and Generators: A Complete Guide
Test Development Learning Exchange
Test Development Learning Exchange
Dec 9, 2019 · Fundamentals

Understanding Python's yield Keyword and Generators

This article explains the purpose and behavior of Python's yield keyword, how generators work, their difference from regular functions, and demonstrates practical examples including iterator concepts, itertools utilities, and memory‑efficient looping techniques.

IteratorMemory OptimizationPython
0 likes · 10 min read
Understanding Python's yield Keyword and Generators
Python Programming Learning Circle
Python Programming Learning Circle
Sep 9, 2019 · Fundamentals

Master Python Coroutines: From Generators to async/await

This article walks through the evolution of Python's coroutine support—from early generator‑based yield/send patterns, through the introduction of @asyncio.coroutine and yield from, to the modern async and await syntax—explaining concepts, execution flow, and providing clear code examples.

PythonYieldasync/await
0 likes · 10 min read
Master Python Coroutines: From Generators to async/await
macrozheng
macrozheng
Jun 21, 2019 · Backend Development

Fix MyBatis Generator XML Append Issue: Overwrite Mapper Files Correctly

This guide explains why MyBatis Generator appends to existing mapper.xml files causing duplicate BaseResultMap errors, and shows how to upgrade to version 1.3.7 and add the UnmergeableXmlMappersPlugin to ensure mapper files are overwritten and the application runs smoothly.

BackendJavaMyBatis
0 likes · 4 min read
Fix MyBatis Generator XML Append Issue: Overwrite Mapper Files Correctly
MaGe Linux Operations
MaGe Linux Operations
Feb 14, 2019 · Fundamentals

Master Python Coroutines: From Basics to Real-World File Search

This article explains the concept of coroutines, compares them with threads, outlines their pros and cons, and demonstrates multiple Python implementations using yield, send, and decorators, culminating in a practical generator‑based file‑search utility that mimics the Linux grep command.

File SearchPythoncoroutine
0 likes · 11 min read
Master Python Coroutines: From Basics to Real-World File Search
Yuewen Frontend Team
Yuewen Frontend Team
Sep 28, 2018 · Frontend Development

Master JavaScript Generators: Control Iteration and Boost Your Code

This article explains ES6 JavaScript generators, covering their syntax, how they differ from regular iterators, the role of the yield keyword, available generator methods, and practical examples such as custom generators, random number streams, throttling, Fibonacci sequences, and integrating generators with HTML to simplify iterative tasks.

AsynchronousIteratorJavaScript
0 likes · 13 min read
Master JavaScript Generators: Control Iteration and Boost Your Code
Youzan Coder
Youzan Coder
Sep 21, 2018 · Fundamentals

First Encounter with Lazy List: Implementing Lazy Evaluation in JavaScript

The article explains Haskell‑style lazy lists, shows why lazy evaluation is useful, and walks through implementing lazy lists in JavaScript using custom classes, the ES6 iterable protocol, and generator functions, providing examples such as repeat, cycle, iterate, range and lazy operators like map, filter, take, and zip.

Infinite ListIteratorJavaScript
0 likes · 10 min read
First Encounter with Lazy List: Implementing Lazy Evaluation in JavaScript
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
Qunar Tech Salon
Qunar Tech Salon
Mar 21, 2017 · Backend Development

Building a Simple Node.js CLI Generator in Five Steps

This tutorial explains how to create a Node.js command‑line generator from scratch by initializing a module, adding a CLI binary, integrating a template engine, parsing arguments and paths, and finally publishing the package to npm, all with clear code examples.

CLINode.jsNunjucks
0 likes · 12 min read
Building a Simple Node.js CLI Generator in Five Steps