David Seddon

44 posts

David Seddon

David Seddon

@seddonym

Changing the world one incredibly occasional tweet at a time

가입일 Şubat 2012
100 팔로잉222 팔로워
David Seddon 리트윗함
Simon Willison
Simon Willison@simonw·
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
David Winterbottom@codeinthehole

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-tdd-l… This effectively automates the green part from the standard red-green-refactor loop.

English
11
27
425
56.4K
David Seddon
David Seddon@seddonym·
@hjwp I've been eating this since I was a child. The finest of flavours.
English
1
0
1
135
David Seddon 리트윗함
Meg Davis
Meg Davis@MegLivInsideOut·
This is wrong on so many levels.
Meg Davis tweet media
English
65
335
3.2K
0
David Seddon 리트윗함
Brandon Rhodes
Brandon Rhodes@brandon_rhodes·
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.
Brandon Rhodes tweet media
Jake VanderPlas@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:

English
10
26
78
0
Aymeric Augustin
Aymeric Augustin@aymericaugustin·
@seddonym @codeinthehole Finally, instead of recommending a private API, I would suggest using the public API that does the same thing, namely get_autommit(). If you’re in autocommit mode you’re outside of a transaction. (Watch for SQLite which requires workarounds for bugs in the stdlib sqlite3 module.)
English
2
0
2
0
Aymeric Augustin
Aymeric Augustin@aymericaugustin·
@seddonym @codeinthehole (original author here) FWIW your article made me slightly sad because it’s very well researched but valid criticism is framed unfairly.
English
2
0
1
0
David Seddon
David Seddon@seddonym·
@jugmac00 @brianokken @testandcode Glad you enjoyed it! I work in a team of around 40 developers, but it is not structured particularly hierarchically. Definitely there are some differences of opinion, particularly when it comes to the DRY principle. So yes, definitely these are subjective principles...
English
1
0
1
0
Jürgen Gmach
Jürgen Gmach@jugmac00·
@brianokken @testandcode @seddonym Thanks for this one! I even watched the talk afterwards. @seddonym, I read that you are a Lead Developer. How many developers do you have on your team? And do they all agree on these principles? Or let me rephrase. Do you think these principles are subjective or objective?
English
1
0
0
0
David Seddon 리트윗함
Programming Wisdom
Programming Wisdom@CodeWisdom·
"In programming, the hard part isn't solving problems, but deciding what problems to solve." - Paul Graham
English
6
293
1.2K
0