Tag

Iterators

0 views collected around this technical thread.

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.

GeneratorIteratorsMemory Efficiency
0 likes · 4 min read
Understanding Python Generator Functions: Syntax, Usage, and Practical Examples
Python Programming Learning Circle
Python Programming Learning Circle
Mar 12, 2025 · Fundamentals

Python Essentials: Strings, Collections, Iterators, and Decorators

This article presents a comprehensive collection of Python fundamentals, covering useful string methods like partition and translate, mutable versus immutable types and argument passing, tuple unpacking, dictionary utilities, set operations, iterator implementations, best practices for exception handling, and various decorator techniques with practical code examples.

CollectionsIteratorsPython
0 likes · 16 min read
Python Essentials: Strings, Collections, Iterators, and Decorators
DeWu Technology
DeWu Technology
Mar 3, 2025 · Databases

Implementing an LSM‑Tree in Zig: Core Components, Write/Read Logic, and Compaction

The article walks through a complete Zig implementation of an LSM‑Tree, detailing its in‑memory skip‑list MemTable, immutable SSTable blocks with compression and Bloom filters, write‑ahead logging, iterator hierarchy for reads, and multi‑level compaction logic that merges and rewrites SSTables.

CompactionDatabaseIterators
0 likes · 42 min read
Implementing an LSM‑Tree in Zig: Core Components, Write/Read Logic, and Compaction
Code Mala Tang
Code Mala Tang
Feb 5, 2025 · Fundamentals

Avoid These 4 Common Python Generator Mistakes and Use Them Effectively

Learn what Python generators are, see a simple countdown example, and discover four typical pitfalls—unnecessary use, exhaustion, misuse in list comprehensions, and improper yield placement—along with practical fixes to help you apply generators correctly in real-world code.

GeneratorsIteratorsPython
0 likes · 6 min read
Avoid These 4 Common Python Generator Mistakes and Use Them Effectively
Code Mala Tang
Code Mala Tang
Jan 19, 2025 · Fundamentals

Master the 6 Most Common Python Pitfalls and How to Avoid Them

This article explores six frequently misunderstood Python features—mutable default arguments, the difference between is and ==, *args/**kwargs, iterator exhaustion, complex list comprehensions, and the global keyword—explaining why they trip developers up and offering clear, practical solutions to master each one.

IteratorsPitfallsPython
0 likes · 8 min read
Master the 6 Most Common Python Pitfalls and How to Avoid Them
Test Development Learning Exchange
Test Development Learning Exchange
Dec 10, 2024 · Fundamentals

Python itertools Module: Functions, Usage Examples, and Practical Limitations

This article introduces the Python itertools module, demonstrates common functions such as count, cycle, repeat, combinations, permutations, chain, filterfalse, dropwhile, accumulate, and groupby with code examples, and discusses important limitations like infinite loops, memory consumption, and iterator irreversibility.

GeneratorsIteratorsitertools
0 likes · 8 min read
Python itertools Module: Functions, Usage Examples, and Practical Limitations
Architecture Development Notes
Architecture Development Notes
Oct 20, 2024 · Fundamentals

Master Rust Closures and Iterators: Boost Code Flexibility and Performance

This article explores Rust's powerful closure and iterator concepts, detailing their syntax, environment capture types, usage with the move keyword, and how to create and chain iterators for lazy, efficient data processing, complemented by practical code examples and exercises to solidify understanding.

ClosuresIteratorssystems
0 likes · 8 min read
Master Rust Closures and Iterators: Boost Code Flexibility and Performance
Test Development Learning Exchange
Test Development Learning Exchange
Oct 6, 2024 · Fundamentals

Understanding Python Iterables and Iterators and Their Use in Automated Testing

This article explains the difference between iterables and iterators in Python, demonstrates how to implement them with custom classes, shows basic usage with built‑in collections, and provides multiple automation‑testing examples using generators and iterator patterns to handle dynamic test data and pagination.

Automation TestingGeneratorsIterables
0 likes · 11 min read
Understanding Python Iterables and Iterators and Their Use in Automated Testing
Architecture Digest
Architecture Digest
Aug 30, 2024 · Fundamentals

MoonBit: A Next‑Generation Cloud‑Native Programming Language with Modern Generics, Precise Error Handling, and Efficient Iterators

MoonBit is a Chinese‑developed, Rust‑like programming language that offers zero‑cost generics, compile‑time precise error handling, and high‑performance iterators, delivering dramatically faster compilation and smaller WebAssembly binaries for cloud and edge computing workloads.

IteratorsMoonBitWebAssembly
0 likes · 7 min read
MoonBit: A Next‑Generation Cloud‑Native Programming Language with Modern Generics, Precise Error Handling, and Efficient Iterators
Code Mala Tang
Code Mala Tang
Jul 30, 2024 · Frontend Development

What’s New in TypeScript 5.6 Beta? Explore the Latest Compiler Features

Microsoft released TypeScript 5.6 Beta on July 26 2024, introducing stricter null‑and‑truthiness checks, iterator helper methods, built‑in iterator types, arbitrary module identifiers, new compiler flags like --noUncheckedSideEffectImports and --noCheck, region‑priority diagnostics, improved project ownership detection, and several notable behavior changes across the language and tooling.

BetaCompilerDiagnostics
0 likes · 23 min read
What’s New in TypeScript 5.6 Beta? Explore the Latest Compiler Features
Java Tech Enthusiast
Java Tech Enthusiast
Jun 25, 2024 · Fundamentals

Critique of Go 1.23 Iterators and Their Impact on Language Complexity

Aliaksandr Valialkin criticizes Go 1.23’s new iterator feature, arguing it adds hidden control‑flow, memory overhead and readability challenges to an already minimalist language, and warns that such complexity undermines Go’s goals of simplicity, productivity, and performance.

GoIteratorsLanguage Design
0 likes · 9 min read
Critique of Go 1.23 Iterators and Their Impact on Language Complexity
Test Development Learning Exchange
Test Development Learning Exchange
Jun 18, 2024 · Fundamentals

Comprehensive Overview of Python Built‑in Functions, Modules, and Advanced Concepts

This article presents a concise yet thorough guide to essential Python built‑in functions such as map, filter, reduce, sorted, enumerate, zip, any/all, as well as advanced features including lambda expressions, comprehensions, itertools, context managers, partial functions, garbage collection, asyncio, decorators, generators, metaclasses, pathlib, type annotations, and enumerations, each illustrated with clear code examples.

IteratorsModulesPython
0 likes · 14 min read
Comprehensive Overview of Python Built‑in Functions, Modules, and Advanced Concepts
php中文网 Courses
php中文网 Courses
Jun 14, 2024 · Backend Development

Understanding PHP Generators: Efficient Data Iteration and Memory Optimization

This article explains the concept, operation, and advantages of PHP generators, demonstrating how they provide memory‑efficient, lazy‑evaluated iteration for large data sets and streams, and includes practical code examples and best‑practice tips for backend developers.

GeneratorsIteratorsMemory Management
0 likes · 9 min read
Understanding PHP Generators: Efficient Data Iteration and Memory Optimization
Deepin Linux
Deepin Linux
Oct 18, 2023 · Fundamentals

Understanding STL: Vectors, Lists, Iterators, and Container Implementations

This article provides a comprehensive overview of the C++ Standard Template Library, detailing the differences between vectors and lists, memory management, iterator validity, container operations, and implementations of various containers such as deque, set, map, and slist, along with code examples.

C++ContainersData Structures
0 likes · 48 min read
Understanding STL: Vectors, Lists, Iterators, and Container Implementations
php中文网 Courses
php中文网 Courses
Sep 25, 2023 · Backend Development

Advanced PHP Features: Magic Methods, Type Hints, Closures, Namespaces, Generators, Iterators, Date/Time, Regex, and Variable Scope

This article provides a comprehensive guide to advanced PHP features, covering magic methods, type hints, closures, namespaces, generators, iterators, date/time handling, regular expressions, and variable scope, each explained with clear descriptions and practical code examples for backend developers.

ClosuresGeneratorsIterators
0 likes · 18 min read
Advanced PHP Features: Magic Methods, Type Hints, Closures, Namespaces, Generators, Iterators, Date/Time, Regex, and Variable Scope
Python Programming Learning Circle
Python Programming Learning Circle
May 19, 2023 · Fundamentals

Python Container Types and Handy Tricks for Lists, Dictionaries, and More

This article presents a collection of practical Python techniques for working with built‑in container types such as lists, tuples, sets, and dictionaries, covering operations like extracting maximum values, counting elements, slicing, copying, mapping, filtering, column extraction, and transposition, all illustrated with clear code examples.

Data StructuresDictionariesIterators
0 likes · 7 min read
Python Container Types and Handy Tricks for Lists, Dictionaries, and More
Python Programming Learning Circle
Python Programming Learning Circle
Apr 29, 2023 · Fundamentals

Useful Python Tricks and Techniques for String Handling, Iterators, Context Managers, Memory Optimization, and More

This article introduces a collection of lesser‑known Python tricks—including string cleaning with translate, iterator slicing via itertools.islice, skipping iterable headers, keyword‑only arguments, custom context managers, memory saving with __slots__, resource‑based CPU/memory limits, controlling module exports, and simplifying comparisons with total_ordering.

Context ManagerIteratorsMemory Optimization
0 likes · 10 min read
Useful Python Tricks and Techniques for String Handling, Iterators, Context Managers, Memory Optimization, and More
Python Programming Learning Circle
Python Programming Learning Circle
Apr 26, 2023 · Fundamentals

Advanced Python Features You May Not Know

This article introduces a collection of lesser‑known but useful Python standard‑library features—including string cleaning, iterator slicing, skipping iterable headers, keyword‑only functions, context‑manager creation, __slots__ memory savings, resource limits, import control, and simplified comparison operators—explaining their usage and benefits for everyday programming.

Advanced FeaturesContext ManagersIterators
0 likes · 8 min read
Advanced Python Features You May Not Know
ByteFE
ByteFE
Nov 11, 2022 · Frontend Development

Curated Frontend Development Reading and Insights

This collection presents a curated set of front‑end development articles and reflections covering modern framework trends, architectural thinking, career planning, performance analysis with Lighthouse, functional programming perspectives, iterator fundamentals, Chrome DevTools tricks, and concurrent request control techniques.

DevtoolsFrameworksIterators
0 likes · 5 min read
Curated Frontend Development Reading and Insights
Python Programming Learning Circle
Python Programming Learning Circle
Aug 15, 2022 · Fundamentals

Why Modern Programming Languages Have Dropped ++/-- Operators: A Design‑Philosophy Perspective

This article examines the historical origin of the ++ and -- operators, explains why they were introduced, demonstrates that modern compilers no longer gain performance from them, and argues that functional‑style design, iterator‑based loops, and operator‑overloading concerns have led many contemporary languages to remove or deprecate these operators.

C++Compiler OptimizationFunctional Programming
0 likes · 25 min read
Why Modern Programming Languages Have Dropped ++/-- Operators: A Design‑Philosophy Perspective