David Seddon retweeted
This is so cool!
./tdd.sh tests.py application.py
Define the tests first, then run the bash script and it will iterate on application.py until the tests all pass
Here's a Bash script that stitches together `llm` and `files-to-prompt` (from @simonw) to run an iterative TDD loop to make a set of tests pass.
codeinthehole.com/tips/llm-t…
This effectively automates the green part from the standard red-green-refactor loop.
The recording of Europython talk on Python generics is now available to watch: seddonym.me/talks/2023-07-20…
David Seddon retweeted
If this poorly-designed feature is really added to Python, we lose a principle I’ve always taught students: “if you see an undocumented constant, you can always name it without changing the code’s meaning.”
The Substitution Principle, learned in algebra? It’ll no longer apply.
Replying to @jakevdp
Important to note, however, that the semantics of this can be quite different from switch. The cases don't simply check equality, they rebind variables that match the specified pattern. For example:
Great work everyone! Can't wait to use it.
And 8 days after the blog post, durable=True is committed to master... we can already see on the dev version of the docs here: docs.djangoproject.com/en/de…
Go team!
#django developers! Do you use transaction.atomic? If so, you should read this seddonym.me/2020/11/19/troub…
Model, System, Code: a three step process for designing software seddonym.me/2020/05/08/model…
Three Techniques for Inverting Control, in Python: seddonym.me/2019/08/03/ioc-t…
David Seddon retweeted
"In programming, the hard part isn't solving problems, but deciding what problems to solve." - Paul Graham
I made a tool for linting your architecture - it's called Import Linter. Here's a blog post about it: seddonym.me/2019/05/20/meet-…
Latest blog post on Dependency Inversion: seddonym.me/2019/04/15/why-d…
This is the 'Rocky River': a pattern for structuring larger Python code bases: seddonym.me/2018/09/16/rocky…
Unsure of the point of Django Signals: seddonym.me/2018/05/04/djang…
Here's how I think #django projects should be architected skillsmatter.com/skillscasts…
The video for my PyCon UK talk is now up: youtube.com/watch?v=5g9fwYcF…
I'm speaking at PyCon UK this Saturday. Come and listen: 2017.pyconuk.org/sessions/ta…
David Seddon retweeted
The obligation of a software developer dev.to/steliosvoskos/the-obl…
David Seddon retweeted
Be happy next time you have to fill in that form—it could be worse! (you might like this @seddonym) qz.com/679782













