Simon Willison’s Weblog

Subscribe
Atom feed for patterns

5 items tagged “patterns”

2020

The “await me maybe” pattern for Python asyncio

I’ve identified a pattern for handling potentially-asynchronous callback functions in Python which I’m calling the “await me maybe” pattern. It works by letting you return a value, a callable function that returns a value OR an awaitable function that returns that value.

[... 787 words]

2019

Serverless Microservice Patterns for AWS (via) A handy collection of 19 architectural patterns for AWS Lambda collected by Jeremy Daly.

# 12th June 2019, 12:13 am / architecture, aws, lambda, patterns

2009

Large Problems in Django, Mostly Solved: Search. Eric Holscher shows how Haystack uses a number of common Django patterns (object registration, pluggable backends, QuerySet-style chaining and class-based views) to great effect in creating a powerful search application for Django. Makes me wonder if more of those patterns should be promoted to first class concepts within Django.

# 3rd November 2009, 10:42 am / classbasedviews, django, eric-holscher, haystack, patterns, python, search

Collection: Search Patterns. Peter Morville’s enormous collection of screenshots of search engine interfaces.

# 30th July 2009, 12:35 pm / design, patterns, peter-morville, search, ui, usability

2007

Wikipatterns. Great idea this: a wiki documenting patterns for successfully growing your own wiki.

# 17th February 2007, 12:51 am / atlassian, patterns, wiki