Changing the world one incredibly occasional tweet at a time

Joined February 2012
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.
11
27
2
421
56,393
The recording of Europython talk on Python generics is now available to watch: seddonym.me/talks/2023-07-20…
208
This is wrong on so many levels.
63
326
51
3,152
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:
10
25
3
77
Great work everyone! Can't wait to use it.
1
#django developers! Do you use transaction.atomic? If so, you should read this seddonym.me/2020/11/19/troub…
3
9
4
39
Model, System, Code: a three step process for designing software seddonym.me/2020/05/08/model…
1
1
3
Three Techniques for Inverting Control, in Python: seddonym.me/2019/08/03/ioc-t…
"In programming, the hard part isn't solving problems, but deciding what problems to solve." - Paul Graham
6
290
23
1,173
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-…
2
Latest blog post on Dependency Inversion: seddonym.me/2019/04/15/why-d…
1
This is the 'Rocky River': a pattern for structuring larger Python code bases: seddonym.me/2018/09/16/rocky…
3
5
Here's how I think #django projects should be architected skillsmatter.com/skillscasts…
1
The video for my PyCon UK talk is now up: youtube.com/watch?v=5g9fwYcF…
1
I'm speaking at PyCon UK this Saturday. Come and listen: 2017.pyconuk.org/sessions/ta…
Be happy next time you have to fill in that form—it could be worse! (you might like this @seddonym) qz.com/679782
1
2