Skip to content
  • Contact us
  • Cookie Policy (EU)
  • Privacy Policy
Hacking With Python
Hacking With Python
  • Contact us
  • Cookie Policy (EU)
  • Privacy Policy
Convenience methodsDesign PatternsGenericsMementoPythonType annotations

Easy Python Patterns: The Memento pattern, or how to build an undo stack

Introduction You can use the memento pattern to (partially) expose the internal state of an object. One use...
Iede SnoekOct 22, 2023Oct 22, 2023
Convenience methodsDesign PatternsIteratorPythonType annotations

Easy Python Patterns: The Iterator

Introduction In Design Patterns, the Iterator is a way of traversing over a container, that is access each...
Iede SnoekOct 22, 2023Oct 22, 2023
Design PatternsFlyweightPythonType annotations

Easy Patterns in Python: The Flyweight Pattern

Introduction The flyweight pattern is a pattern that helps minimize memory usage by sharing and reusing data. A...
Iede SnoekOct 22, 2023Oct 22, 2023
Design PatternsInterpreterPythonType annotations

Easy Patterns in Python: The Interpreter

Introduction The Interpreter pattern can be used to interpret and evaluate sentences in a language. The idea is...
Iede SnoekOct 22, 2023Oct 22, 2023
Design PatternsFacadePythonType annotations

Easy Patterns in Python: the Facade

Introduction The facade pattern is used as a way to hide more complex logic. A facade can do...
Iede SnoekOct 22, 2023Oct 22, 2023
Design PatternsGenericsPrototypePythonType annotations

Easy Types and Generics in Python: the Prototype Pattern

Introduction The prototype-pattern is a creational design pattern that allows us to create new objects by cloning existing...
Iede SnoekOct 21, 2023Oct 21, 2023
DecoratorDesign PatternsPythonType annotations

Easy Python Patterns: The decorator pattern

Introduction The Decorator pattern can be used to dynamically alter or add functionality to existing classes. This pattern...
Iede SnoekOct 20, 2023Oct 20, 2023
AdapterDesign PatternsPythonType annotations

Python patterns for fun and profit: The Adapter Pattern

Introduction The Adapter pattern is used to make one interface compatible with another. It allows objects with different,...
Iede SnoekOct 20, 2023Oct 20, 2023
Design PatternsVisitor

Using Python types for fun and profit: the Visitor Pattern

Introduction The visitor pattern is a design pattern that allows for adding new operations to a collection of...
Iede SnoekOct 20, 2023Oct 20, 2023
Design PatternsMediatorPythonType annotations

Using Python types for fun and profit: the Mediator pattern

Introduction The mediator pattern is a pattern used when you want to simplify communication i.e. message dispatching in...
Iede SnoekOct 20, 2023Oct 20, 2023
12345

Recent Posts

  • Effortless Efficiency: Exploring the Easy Double-Checked Locking Pattern in Python
  • Python Empowerment: Unveiling the Magic of Binding Properties Pattern Implementation for Seamless Code Interactivity
  • Empower Your Python Projects: Harnessing Efficiency with the Balking Pattern
  • My first steps with Mojo: a simple implementation of the delegation pattern
  • Simplified Implementation of the Guarded Suspension Pattern in Python for Easy Concurrency

Recent Comments

No comments to show.

Archives

  • March 2024
  • February 2024
  • January 2024
  • November 2023
  • October 2023
  • August 2023
  • July 2023

Categories

  • Abstract Factory
  • Active Object
  • Active Synchronous
  • Adapter
  • Alembic
  • Asynchrous programming
  • Azure
  • Azure Kubernetes Service
  • Balking
  • Binding Properties
  • Bridge
  • Builder
  • Chain of Responsility
  • Command
  • Composite
  • Convenience methods
  • Decorator
  • Delegation
  • Dependency Injection
  • Design Patterns
  • Django
  • Django Rest Framework
  • Docker
  • Double Checked Locking
  • Facade
  • factory method
  • FastAPI
  • Fluent interface
  • Flyweight
  • Generics
  • Guarded Suspension
  • Gunicorn
  • Interpreter
  • Iterator
  • Kubernetes
  • Lazy initialization
  • Mediator
  • Memento
  • Mojo
  • Multiton
  • Nginx
  • Object Pool
  • Observer
  • Postgres
  • Prototype
  • Proxy
  • Python
  • RAII
  • Servant
  • Singleton
  • Specification
  • SQLAlchemy
  • State
  • Strategy
  • Template
  • Template method
  • Type annotations
  • Uncategorized
  • Uvicorn
  • Visitor
  • Contact us
  • Cookie Policy (EU)
  • Privacy Policy
Copyright © 2026    Yuki Theme Designed By WP Moose