Tagged articles
71 articles
Page 1 of 1
DeepHub IMBA
DeepHub IMBA
Mar 10, 2026 · Fundamentals

7 Hidden Python Stdlib Tools That Simplify Your Code

The article presents seven powerful Python standard‑library features—generators for lazy evaluation, defaultdict for concise counting, pathlib for robust path handling, functools.partial for quick function specialization, itertools for flattening nested loops, type for dynamic class creation, and decorators for reusable logic—showing how each reduces memory usage, simplifies code, and improves automation.

GeneratorsPythonStandard Library
0 likes · 7 min read
7 Hidden Python Stdlib Tools That Simplify Your Code
IT Services Circle
IT Services Circle
Feb 13, 2026 · Fundamentals

5 Proven Python Memory‑Optimization Patterns to Slash RAM Usage

Learn five practical Python techniques—streaming large files, using generator pipelines, leveraging __slots__, avoiding temporary objects in loops, and reusing buffers—that together can reduce memory consumption by up to 70% and dramatically improve performance when processing gigabyte‑scale datasets.

GeneratorsMemory OptimizationPython
0 likes · 9 min read
5 Proven Python Memory‑Optimization Patterns to Slash RAM Usage
Data STUDIO
Data STUDIO
Feb 9, 2026 · Fundamentals

5 Python Memory‑Optimization Patterns That Cut Usage by 70%

The article walks through five concrete Python techniques—streaming file reads, generator expressions, __slots__, avoiding temporary objects in loops, and reusing buffers—showing code examples and measured memory reductions that together lowered overall RAM consumption by about 70%.

GeneratorsMemory OptimizationProfiling
0 likes · 9 min read
5 Python Memory‑Optimization Patterns That Cut Usage by 70%
Data STUDIO
Data STUDIO
Jan 9, 2026 · Fundamentals

6 Hidden Python Features That Can Double Your Coding Efficiency

This article showcases six powerful yet often overlooked Python standard‑library features—pathlib, contextlib, __slots__, functools.lru_cache, generator pipelines, and dataclasses—demonstrating how they simplify code, boost performance, reduce memory usage, and make scripts more maintainable.

GeneratorsPython__slots__
0 likes · 11 min read
6 Hidden Python Features That Can Double Your Coding Efficiency
Python Programming Learning Circle
Python Programming Learning Circle
Sep 28, 2025 · Fundamentals

Master Python Async: From Generators and Yield to Async/Await and Real‑World Applications

This comprehensive guide walks you through Python's evolution from simple generators using yield, through two‑way communication with yield expressions and generator delegation with yield from, to modern asynchronous programming with asyncio and async/await, including practical examples, performance comparisons, best practices, and common pitfalls.

GeneratorsPythonasync/await
0 likes · 17 min read
Master Python Async: From Generators and Yield to Async/Await and Real‑World Applications
Python Crawling & Data Mining
Python Crawling & Data Mining
Sep 25, 2025 · Fundamentals

Mastering Python Async: From Generators to Async/Await and Real-World Use Cases

Explore the evolution of Python asynchronous programming—from basic generators and yield expressions to advanced async/await syntax, including practical examples like network requests, file I/O, producer-consumer patterns, performance comparisons, error handling, and best-practice recommendations for efficient, scalable code.

GeneratorsPythonasync/await
0 likes · 16 min read
Mastering Python Async: From Generators to Async/Await and Real-World Use Cases
Python Programming Learning Circle
Python Programming Learning Circle
Sep 5, 2025 · Fundamentals

10 Hidden Python Tricks to Supercharge Performance

This article reveals ten often‑overlooked Python performance techniques—from using enumerate and array structures to leveraging Numba, Polars, and generators—showing how careful coding, profiling, and modern libraries can turn sluggish scripts into lightning‑fast production workloads.

GeneratorsPolarsProfiling
0 likes · 9 min read
10 Hidden Python Tricks to Supercharge Performance
DevOps Coach
DevOps Coach
Sep 1, 2025 · Fundamentals

Unlock Python Speed: 10 Little‑Known Tricks to Supercharge Your Code

This article reveals ten often‑overlooked Python performance techniques—from replacing range(len(...)) with enumerate to leveraging Numba, Polars, and mypyc—providing concrete code examples, profiling commands, and library recommendations that can turn sluggish scripts into lightning‑fast production pipelines.

Generatorslru_cachemsgspec
0 likes · 9 min read
Unlock Python Speed: 10 Little‑Known Tricks to Supercharge Your Code
21CTO
21CTO
Aug 19, 2025 · Backend Development

How Generators Slash PHP Memory Usage When Processing Massive CSV Files

This article explains how PHP lazy evaluation using generators and the Iterator API can dramatically reduce memory consumption when loading huge CSV files, provides side‑by‑side code examples and benchmarks, and offers guidance on when to choose each approach for real‑world data processing tasks.

GeneratorsLazy EvaluationMemory Optimization
0 likes · 7 min read
How Generators Slash PHP Memory Usage When Processing Massive CSV Files
Code Mala Tang
Code Mala Tang
Jul 22, 2025 · Fundamentals

Boost Python Loops: Parallelism, Generators, and Profiling Made Easy

This guide shows how to accelerate slow Python for‑loops by leveraging multi‑core parallelism, memory‑efficient generators, and a suite of profiling tools, providing step‑by‑step code examples and practical tips to identify and fix performance bottlenecks.

GeneratorsParallelismProfiling
0 likes · 16 min read
Boost Python Loops: Parallelism, Generators, and Profiling Made Easy
Open Source Tech Hub
Open Source Tech Hub
Jul 5, 2025 · Backend Development

Understanding PHP Coroutines: Generators, Fibers, and Real‑World Use Cases

This article explains what coroutines are, how PHP implements them with Generators and Fibers, compares asymmetric and symmetric designs, shows practical code examples, and outlines scenarios where coroutines improve state handling, lazy iteration, and cooperative multitasking in backend applications.

CoroutinesFibersGenerators
0 likes · 17 min read
Understanding PHP Coroutines: Generators, Fibers, and Real‑World Use Cases
Test Development Learning Exchange
Test Development Learning Exchange
May 22, 2025 · Fundamentals

Understanding Python Iterables: Concepts, Creation, Built‑in Functions, Comprehensions, Advanced Operations, and Generators

This article explains Python iterables, covering their basic concepts, how to create and use them with loops, iter() and next(), built‑in functions that accept iterables, comprehension techniques, advanced operations like zip, enumerate, filter, map, and their relationship with generators for efficient data processing.

ComprehensionsGeneratorsIterable
0 likes · 7 min read
Understanding Python Iterables: Concepts, Creation, Built‑in Functions, Comprehensions, Advanced Operations, and Generators
Python Programming Learning Circle
Python Programming Learning Circle
Apr 9, 2025 · Fundamentals

10 Practical Python Code Simplification Techniques

This article presents ten concise Python techniques—including list comprehensions, zip, lambda functions, generators, f‑strings, collections, decorators, enumerate, the walrus operator, and itertools—to dramatically reduce code length, improve readability, and boost development efficiency.

GeneratorsPythondecorators
0 likes · 6 min read
10 Practical Python Code Simplification Techniques
Sohu Tech Products
Sohu Tech Products
Mar 5, 2025 · Frontend Development

Why Modern JavaScript Developers Move Away from Traditional Loops and What to Use Instead

Modern JavaScript developers increasingly replace traditional for‑loops with expressive array methods, generators, and functional patterns because loops risk scope leakage, mutable state, and off‑by‑one errors, while still using classic loops only for performance‑critical or low‑level tasks, choosing the style that fits data size, team preferences, and project requirements.

GeneratorsJavaScriptLoops
0 likes · 8 min read
Why Modern JavaScript Developers Move Away from Traditional Loops and What to Use Instead
MaGe Linux Operations
MaGe Linux Operations
Feb 19, 2025 · Fundamentals

Master Python Iterators & Generators: List Comprehensions, Memory‑Efficient Loops, and Fibonacci

This article explains Python's list comprehensions, demonstrates how to create and use generators for memory‑efficient iteration, compares iterators and iterable objects, and provides practical code examples including a generator‑based Fibonacci sequence, helping readers understand and apply these core concepts in their programs.

GeneratorsIteratorsPython
0 likes · 6 min read
Master Python Iterators & Generators: List Comprehensions, Memory‑Efficient Loops, and Fibonacci
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
Test Development Learning Exchange
Test Development Learning Exchange
Jan 23, 2025 · Fundamentals

Advanced Python Features: Generators, Context Managers, Metaclasses, and More

This article introduces twelve advanced Python features—including generators, context managers, metaclasses, descriptors, coroutines, data classes, type annotations, multiple inheritance with mixins, exception chaining, modules and packages, itertools, and regular expressions—explaining their purpose and providing clear code examples to illustrate each concept.

Advanced FeaturesCoroutinesData Classes
0 likes · 8 min read
Advanced Python Features: Generators, Context Managers, Metaclasses, and More
Test Development Learning Exchange
Test Development Learning Exchange
Jan 10, 2025 · Fundamentals

Advanced Python Features and Their Use Cases

This article introduces twenty advanced Python concepts—including decorators, context managers, generators, metaclasses, multiple inheritance, coroutines, closures, magic methods, dynamic attributes, GIL, async IO, regular expressions, garbage collection, modules, virtual environments, SOLID principles, type annotations, IPC, memory management, and reflection—explaining their typical use cases and providing clear code examples for each.

Advanced FeaturesGeneratorsPython
0 likes · 11 min read
Advanced Python Features and Their Use Cases
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Dec 2, 2024 · Fundamentals

Master Python Generators (And the Odd Feud Behind It)

This article walks through Python generators in depth—covering basic yield behavior, the __next__, send, throw, and close methods, pre‑activation states, delegation with yield from, generator expressions pitfalls, and their role in coroutine implementation—while briefly recounting a personal conflict that sparked the write‑up.

CoroutinesGeneratorsPython
0 likes · 28 min read
Master Python Generators (And the Odd Feud Behind It)
Python Programming Learning Circle
Python Programming Learning Circle
Nov 23, 2024 · Fundamentals

Advanced Python Concepts: Exception Handling, Collections, itertools, Lambdas, Decorators, Generators, Threads, Dunder Methods, Logging, and Context Managers

This article introduces ten advanced Python topics—including exception handling, the collections and itertools modules, lambda functions, decorators, generators, threading, dunder methods, logging, and context managers—providing explanations, code examples, and practical tips to help developers deepen their programming skills and prepare for interviews.

AdvancedCollectionsGenerators
0 likes · 13 min read
Advanced Python Concepts: Exception Handling, Collections, itertools, Lambdas, Decorators, Generators, Threads, Dunder Methods, Logging, and Context Managers
php Courses
php Courses
Nov 19, 2024 · Backend Development

18 Powerful PHP Features to Boost Development Efficiency and Code Quality

This article introduces eighteen advanced PHP features—including magic methods, generators, anonymous classes, attributes, fibers, null‑safe method chaining, dynamic property access, closures, traits, named arguments, first‑class callables, enums, type casting, reference returns, late static binding, opcode caching, preloading, and reflection—demonstrating how each can improve code quality, performance, and maintainability.

Advanced FeaturesGeneratorsOOP
0 likes · 8 min read
18 Powerful PHP Features to Boost Development Efficiency and Code Quality
Test Development Learning Exchange
Test Development Learning Exchange
Oct 15, 2024 · Fundamentals

Python Fundamentals: Decorators, List Comprehensions, Generators, Exception Handling, Modules, Threading, Copying, Garbage Collection, *args/**kwargs, Closures, Methods, Process vs Thread, Database Differences, Data Structures, and API Testing

This article provides a comprehensive overview of essential Python concepts—including decorators, list comprehensions, generators, exception handling, modules, threading, shallow and deep copying, garbage collection, variable arguments, closures, method types, process‑thread differences, relational vs NoSQL databases, array vs linked‑list structures, and the distinction between HTTP and Web Service API testing—illustrated with clear explanations and runnable code examples.

Data StructuresGeneratorsPython
0 likes · 10 min read
Python Fundamentals: Decorators, List Comprehensions, Generators, Exception Handling, Modules, Threading, Copying, Garbage Collection, *args/**kwargs, Closures, Methods, Process vs Thread, Database Differences, Data Structures, and API Testing
php Courses
php Courses
Aug 29, 2024 · Backend Development

10 Advanced PHP Techniques to Boost Performance and Efficiency

This article introduces ten lesser‑known PHP tricks—including memory management, Composer dependency handling, the built‑in web server, anonymous classes, try‑catch error handling, generators, traits, built‑in functions, PDO, and namespaces—to help developers write more efficient, maintainable, and secure code.

BackendComposerGenerators
0 likes · 9 min read
10 Advanced PHP Techniques to Boost Performance and Efficiency
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.

GeneratorsIteratorsLazy Evaluation
0 likes · 9 min read
Understanding PHP Generators: Efficient Data Iteration and Memory Optimization
Python Programming Learning Circle
Python Programming Learning Circle
May 8, 2024 · Fundamentals

Lesser‑Known Python Tricks and Techniques

This article introduces several lesser‑known Python tricks—including the ternary operator, enumerate, zip, list comprehensions, lambda functions, any/all, itertools, generators, decorators, and the use of * and ** for multiple arguments—each explained with concise examples to help developers write cleaner, more efficient code.

GeneratorsTipscode
0 likes · 7 min read
Lesser‑Known Python Tricks and Techniques
Test Development Learning Exchange
Test Development Learning Exchange
May 1, 2024 · Fundamentals

Using Python Generators for Dynamic Test Data Generation

This article explains how Python generators can be leveraged in interface automation testing to dynamically create test data, parameterize URLs, generate test cases, build report entries, tokens, HTTP status codes, query dates, API paths, report headings, and email templates, with complete code examples for each scenario.

GeneratorsPythonprogramming
0 likes · 10 min read
Using Python Generators for Dynamic Test Data Generation
Python Programming Learning Circle
Python Programming Learning Circle
Apr 22, 2024 · Fundamentals

Advanced Python Concepts: Exception Handling, Collections, itertools, Decorators, Generators, and More

This tutorial covers a range of advanced Python topics—including exception handling, the collections module, itertools utilities, lambda functions, decorators, generators, threading, dunder methods, logging, and context managers—to help developers deepen their programming expertise and apply these techniques in real projects.

AdvancedCollectionsGenerators
0 likes · 13 min read
Advanced Python Concepts: Exception Handling, Collections, itertools, Decorators, Generators, and More
Python Programming Learning Circle
Python Programming Learning Circle
Apr 9, 2024 · Fundamentals

How to Avoid Writing For Loops in Python: List Comprehensions, Functions, Generators, and itertools

This article explains why you should avoid writing explicit for loops in Python and demonstrates how to replace them with list comprehensions, map/reduce functions, extracted helper functions, generator expressions, and itertools utilities to produce shorter, more readable, and less indented code.

Generatorscode-optimizationfunctional-programming
0 likes · 6 min read
How to Avoid Writing For Loops in Python: List Comprehensions, Functions, Generators, and itertools
Top Architecture Tech Stack
Top Architecture Tech Stack
Feb 5, 2024 · Fundamentals

Simple Techniques to Speed Up Python For Loops by 1.3× to 970×

This article presents a collection of straightforward Python techniques—such as list comprehensions, external length calculation, set usage, early‑exit loops, inlining functions, pre‑computations, generators, map(), memoization, NumPy vectorization, filterfalse, and join()—that can accelerate for‑loops anywhere from 1.3‑fold up to nearly a thousand‑fold, with explanations and benchmark results.

GeneratorsLoop OptimizationNumPy
0 likes · 18 min read
Simple Techniques to Speed Up Python For Loops by 1.3× to 970×
Test Development Learning Exchange
Test Development Learning Exchange
Dec 11, 2023 · Fundamentals

10 Practical Scenarios Demonstrating Lazy Evaluation and Infinite Sequence Handling in Python

This article presents ten practical Python examples illustrating lazy evaluation using generators and iterators, covering infinite sequences, large data processing, file streaming, and on-demand computation, highlighting memory efficiency and performance benefits for handling big data and infinite streams.

GeneratorsInfinite SequencesLazy Evaluation
0 likes · 7 min read
10 Practical Scenarios Demonstrating Lazy Evaluation and Infinite Sequence Handling in Python
php Courses
php Courses
Dec 1, 2023 · Backend Development

Using PHP Generators to Process Large Data Sets and Prevent Memory Exhaustion

This article explains how PHP developers can use generators to iterate over large data sets without exhausting memory, covering the concept, syntax with the yield keyword, step‑by‑step examples, converting regular functions, handling key‑value pairs, sending data back, returning values, and a real‑world file‑reading use case.

BackendGeneratorsLarge Data
0 likes · 5 min read
Using PHP Generators to Process Large Data Sets and Prevent Memory Exhaustion
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.

GeneratorsIteratorsNamespaces
0 likes · 18 min read
Advanced PHP Features: Magic Methods, Type Hints, Closures, Namespaces, Generators, Iterators, Date/Time, Regex, and Variable Scope
php Courses
php Courses
Sep 15, 2023 · Backend Development

Advanced PHP Techniques: Closures, Generators, and Reflection

This article introduces three advanced PHP features—Closures, Generators, and Reflection—explaining their concepts, advantages, and providing detailed code examples that demonstrate how closures enable access to outer scope variables, generators reduce memory usage by yielding data lazily, and reflection allows runtime inspection and modification of classes and methods.

Advanced TechniquesBackendGenerators
0 likes · 5 min read
Advanced PHP Techniques: Closures, Generators, and Reflection
Python Programming Learning Circle
Python Programming Learning Circle
Apr 19, 2023 · Fundamentals

Hidden Python Tricks: Ternary Operator, enumerate, zip, List Comprehensions, Lambdas, Generators, Decorators and More

This article introduces a collection of lesser‑known Python techniques—including the ternary operator, enumerate, zip, list comprehensions, lambda functions, any/all, itertools, generators, decorators, dynamic imports, dictionary comprehensions, and mutable data structures—each explained with clear examples to help developers write more concise and efficient code.

Code ExamplesGeneratorsPython
0 likes · 10 min read
Hidden Python Tricks: Ternary Operator, enumerate, zip, List Comprehensions, Lambdas, Generators, Decorators and More
Python Crawling & Data Mining
Python Crawling & Data Mining
Oct 16, 2021 · Fundamentals

Master Python Functions: From Basics to Advanced Techniques

This article explores Python functions in depth, covering definitions, parameters, namespaces, multiple return values, lambda expressions, currying, generators, itertools utilities, and comprehensive error handling, providing practical code examples for data analysis and scripting.

Error HandlingGeneratorsLambda
0 likes · 17 min read
Master Python Functions: From Basics to Advanced Techniques
MaGe Linux Operations
MaGe Linux Operations
Jul 6, 2021 · Fundamentals

Discover 5 Powerful Python Features You Might Be Missing

This article introduces five advanced Python features—lambda, map, filter, itertools, and generator functions—explaining their purpose, showing concise code examples, and demonstrating how they enable cleaner, more memory‑efficient programming.

Advanced FeaturesGeneratorsLambda
0 likes · 8 min read
Discover 5 Powerful Python Features You Might Be Missing
Python Programming Learning Circle
Python Programming Learning Circle
Jun 5, 2021 · Backend Development

Understanding Python Coroutines: From IO Multiplexing to Generators and Async/Await

This article explains how Python implements coroutines for high‑performance network and web programming by combining OS‑level IO multiplexing, generator‑based control flow, callback elimination, stack‑driven call‑chain traversal, Future objects, and the evolution toward async/await syntax.

GeneratorsIO Multiplexingasync/await
0 likes · 18 min read
Understanding Python Coroutines: From IO Multiplexing to Generators and Async/Await
Sohu Tech Products
Sohu Tech Products
Sep 23, 2020 · Frontend Development

Understanding Errors and Exceptions in JavaScript

This article explains JavaScript error objects, their properties, common built‑in error types, how to create and throw custom errors, and demonstrates synchronous and asynchronous error handling techniques—including try/catch, generators, promises, timers, event listeners, and the onerror handler—complete with code examples.

Error HandlingExceptionsGenerators
0 likes · 15 min read
Understanding Errors and Exceptions in JavaScript
Laravel Tech Community
Laravel Tech Community
Apr 27, 2020 · Backend Development

Using Laravel FastExcel for Efficient Import and Export of Large Datasets

Laravel FastExcel provides a memory‑friendly alternative to Laravel Excel for importing and exporting data, demonstrating installation via Composer, basic export of collections or models, handling large datasets with generators, and various import configurations, while emphasizing performance considerations such as max_execution_time.

Data ExportFastExcelGenerators
0 likes · 5 min read
Using Laravel FastExcel for Efficient Import and Export of Large Datasets
Python Programming Learning Circle
Python Programming Learning Circle
Apr 21, 2020 · Fundamentals

9 Common Python Interview Questions and Answers

This article presents nine frequently asked Python interview questions covering lists, tuples, dictionaries, string reversal, memory management, session/cookie/token concepts, HTTP methods, decorators, concurrency, comprehensions, and generators, each explained with clear descriptions and code examples for developers preparing for technical interviews.

Data StructuresGeneratorsMemory Management
0 likes · 11 min read
9 Common Python Interview Questions and Answers
Python Programming Learning Circle
Python Programming Learning Circle
Feb 12, 2020 · Fundamentals

9 Common Python Interview Questions and Answers

This article reviews nine frequently asked Python interview questions, covering lists, tuples, dictionaries, string reversal, memory management, sessions, cookies, tokens, GET vs POST, decorators, concurrency concepts, comprehensions, and generators, providing concise explanations and code examples.

Data StructuresGeneratorsMemory Management
0 likes · 11 min read
9 Common Python Interview Questions and Answers
Qunar Tech Salon
Qunar Tech Salon
Dec 5, 2019 · Frontend Development

Evolution of JavaScript: From Prototype Methods to Async/Await and Modern Features

This article traces JavaScript’s evolution, covering the enrichment of prototype methods, standardization of classes and modules, the rise of asynchronous patterns like callbacks, promises, generators, async/await, and modern syntax features such as block scope, symbols, BigInt, reflection, and useful syntactic sugar.

AsyncBIGINTGenerators
0 likes · 28 min read
Evolution of JavaScript: From Prototype Methods to Async/Await and Modern Features
MaGe Linux Operations
MaGe Linux Operations
May 26, 2018 · Fundamentals

Unlock Python’s Power: Master itertools for Efficient Iteration

This article introduces Python’s itertools library, explains why iterators improve performance, and provides clear examples of its most useful functions—such as accumulate, chain, combinations, and more—so readers can write cleaner, faster, and more Pythonic code.

GeneratorsPythonStandard Library
0 likes · 10 min read
Unlock Python’s Power: Master itertools for Efficient Iteration
21CTO
21CTO
May 17, 2018 · Backend Development

Efficiently Process Massive PHP Files with SplFileObject and Generators

Learn how to overcome PHP memory limits and improve user experience when handling huge files by using the SplFileObject class, generators, and NoRewindIterator, with complete code examples for reading both text and binary data efficiently.

GeneratorsPHPlarge files
0 likes · 5 min read
Efficiently Process Massive PHP Files with SplFileObject and Generators
MaGe Linux Operations
MaGe Linux Operations
Feb 10, 2018 · Fundamentals

How Python Generators Work: From Yield to Bytecode Execution

This article explains the concept of Python generators, how the `yield` keyword creates iterator objects, the basic operations for iterating, practical examples such as infinite sequences, and dives into CPython's internal implementation including the call stack, generator creation, the `send`/`next` mechanisms, and bytecode execution details.

CPythonGeneratorsIterators
0 likes · 12 min read
How Python Generators Work: From Yield to Bytecode Execution
21CTO
21CTO
Nov 20, 2017 · Backend Development

How to Measure and Optimize PHP Memory Usage When Reading Large Files

This article explains how to monitor PHP memory and CPU usage, demonstrates functions for measuring peak memory, shows line‑by‑line and generator‑based file reading techniques, and compares traditional copying with stream‑based piping to reduce memory consumption on large files.

File ReadingGeneratorsMemory Usage
0 likes · 8 min read
How to Measure and Optimize PHP Memory Usage When Reading Large Files
MaGe Linux Operations
MaGe Linux Operations
Oct 26, 2017 · Fundamentals

Unlocking Python Generators: How They Work Under the Hood

This article explains the inner mechanics of Python generators, covering how the interpreter executes functions, the role of stack frames and bytecode, the generator flag, and how send, yield, and StopIteration interact, illustrated with detailed code examples and disassembly.

GeneratorsPythonStopIteration
0 likes · 8 min read
Unlocking Python Generators: How They Work Under the Hood
21CTO
21CTO
Oct 14, 2017 · Backend Development

How etlpy Simplifies Python Web Scraping and Data Cleaning in Under 500 Lines

etlpy is a lightweight Python framework that lets you define web‑crawling and data‑cleaning pipelines via XML, using generators for streaming, built‑in thread pools for parallelism, and a plug‑in architecture that handles everything from regex parsing to JSON conversion, all within a single 500‑line core file.

ETLGeneratorsWeb Scraping
0 likes · 14 min read
How etlpy Simplifies Python Web Scraping and Data Cleaning in Under 500 Lines
MaGe Linux Operations
MaGe Linux Operations
Jun 6, 2017 · Fundamentals

Why Python Generators Outshine Iterators: A Beginner’s Guide

This article explains Python iterators and generators, compares their memory usage and performance, shows how to implement them with Fibonacci examples, and introduces generator expressions as a concise alternative to list comprehensions for handling large data streams.

GeneratorsIteratorsLazy Evaluation
0 likes · 5 min read
Why Python Generators Outshine Iterators: A Beginner’s Guide
MaGe Linux Operations
MaGe Linux Operations
May 24, 2017 · Fundamentals

35 Essential Python Tricks Every Developer Should Know

Discover a curated list of 35 practical Python tricks—from unpacking and slicing to generators, dictionary comprehensions, and advanced data structures—each illustrated with clear code examples to help developers write more concise and efficient code.

ComprehensionsData StructuresGenerators
0 likes · 6 min read
35 Essential Python Tricks Every Developer Should Know
21CTO
21CTO
Feb 27, 2017 · Backend Development

Discover PHP7’s Powerful New Features: Namespaces, Traits, Generators, and More

PHP7 brings a host of performance improvements and new language features—including refined namespace usage, interfaces, traits, generators, closures, Zend OPcache, and a built‑in HTTP server—each illustrated with practical code examples and best‑practice recommendations for modern backend development.

GeneratorsNamespacesOPcache
0 likes · 8 min read
Discover PHP7’s Powerful New Features: Namespaces, Traits, Generators, and More
Node Underground
Node Underground
Nov 7, 2016 · Backend Development

Generators vs Node-Fibers: Which Async Pattern Wins in Node.js?

Both ES6 generators and node-fibers enable coroutine-style asynchronous flow in Node.js without blocking the entire process, but they differ in syntax, safety, flexibility, and invasiveness, prompting developers to weigh the trade‑offs between readability and minimal code intrusion.

CoroutinesFibersGenerators
0 likes · 3 min read
Generators vs Node-Fibers: Which Async Pattern Wins in Node.js?
Taobao Frontend Technology
Taobao Frontend Technology
Nov 3, 2016 · Frontend Development

Unlock ES6: Master Advanced Modules, Symbols, and Async Patterns

This article delves into ES6’s advanced features—including dynamic module loading, Symbol usage, iterators, Maps, Sets, Weak collections, Promises, async‑await, generators, and meta‑programming tools like Proxy and Reflect—providing concise explanations, code snippets, and practical guidance for modern JavaScript development.

GeneratorsJavaScriptProxy
0 likes · 20 min read
Unlock ES6: Master Advanced Modules, Symbols, and Async Patterns
Node Underground
Node Underground
Nov 19, 2015 · Backend Development

Mastering yield* in Koa: How Generators and co Simplify Async Flow

This article demystifies the use of yield* in Koa middleware by comparing plain yield with delegating yield, explaining how the co library handles generators and promises, and outlining the practical advantages of native yield* syntax for clarity, performance, and correct this binding.

AsyncGeneratorsJavaScript
0 likes · 9 min read
Mastering yield* in Koa: How Generators and co Simplify Async Flow
MaGe Linux Operations
MaGe Linux Operations
Nov 9, 2015 · Fundamentals

Essential Python Deep‑Dive: Super, Decorators, Metaclasses, and More

This article curates a comprehensive list of advanced Python concepts—including super(), decorators, metaclasses, concurrency, generators, performance tips, and design patterns—providing concise explanations and references to help developers master the language’s most powerful features.

AdvancedDesign PatternsGenerators
0 likes · 6 min read
Essential Python Deep‑Dive: Super, Decorators, Metaclasses, and More
MaGe Linux Operations
MaGe Linux Operations
Apr 27, 2015 · Fundamentals

Master Advanced Python Structures: Comprehensions, Generators, Decorators & More

This guide explores advanced Python design structures—including list comprehensions, generator expressions, zip processing, decorators, context managers, descriptors, metaclasses, and common patterns—explaining their syntax, best‑practice usage, memory implications, and providing clear code examples for each concept.

ComprehensionsGeneratorsPython
0 likes · 18 min read
Master Advanced Python Structures: Comprehensions, Generators, Decorators & More