On 2019-11-18 19:00:41 -0500, Mark Turner wrote:
[trivial test]
> I think this simple test like has value. It’s just not where you
> expect it to be. In order to get this test to pass you have to have
> your development environment set up, your testing environment set up
> and perhaps some basic d
On Mon, Nov 18, 2019 at 3:23 PM Peter J. Holzer wrote:
>
> I don't know what "proper" TDD is (and even less "proper consideration"
> of TDD), but TDD is in my opinion very much rooted in the agile mindset.
> And that means frequent iteration and improvement. So I think the
> micro-iteration techni
> On Nov 18, 2019, at 4:07 PM, Peter J. Holzer wrote:
>
> On 2019-11-13 15:16:55 +1300, DL Neil via Python-list wrote:
>> On 4/11/19 9:44 AM, Peter J. Holzer wrote:
>>> TDD does in my opinion encourage EAFP thinking.
>>>
>>> The TDD is usually:
>>>
>>> 1 Write a test
>>> 2 Write the m
On 2019-11-13 15:16:55 +1300, DL Neil via Python-list wrote:
> On 4/11/19 9:44 AM, Peter J. Holzer wrote:
> > TDD does in my opinion encourage EAFP thinking.
> >
> > The TDD is usually:
> >
> > 1 Write a test
> > 2 Write the minimal amount of code that makes the test pass
> > 3 If
On 6/11/19 8:01 AM, Barry Scott wrote:
On 1 Nov 2019, at 05:40, DL Neil via Python-list wrote:
Is the practice of TDD fundamentally, if not philosophically, somewhat contrary
to Python's EAFP approach?
The practice of TDD* is that one writes test routines to prove a unit of code,
eg method or
Apologies for lateness - stuff happened...
On 4/11/19 9:44 AM, Peter J. Holzer wrote:
On 2019-11-04 07:41:32 +1300, DL Neil via Python-list wrote:
On 3/11/19 6:30 AM, Bev In TX wrote:
On Nov 1, 2019, at 12:40 AM, DL Neil via Python-list
mailto:python-list@python.org>> wrote:
Is the practice
> On 1 Nov 2019, at 05:40, DL Neil via Python-list
> wrote:
>
> Is the practice of TDD fundamentally, if not philosophically, somewhat
> contrary to Python's EAFP approach?
>
>
> TDD = Test-Driven Development
> EAFP = it's easier to ask forgiveness than permission
> * WebRefs as footnote
>
On 2019-11-03 18:51:25 -0500, Terry Reedy wrote:
> On 11/3/2019 3:44 PM, Peter J. Holzer wrote:
>
> > On 2019-11-04 07:41:32 +1300, DL Neil via Python-list wrote:
> > > Agreed: (in theory) TDD is independent of language or style. However, I'm
> > > wondering if (in practice) it creates a mode of t
On 10/31/2019 10:40 PM, DL Neil via Python-list wrote:
Is the practice of TDD fundamentally, if not philosophically, somewhat contrary
to Python's EAFP approach?
Not at all. To use the maths example that's been going around:
def sqrt(number):
...
return some_value
Your tests shou
Some general thoughts on core development and testing. For
bugs.python.org issues, the first Stage choice is 'test needed'. All
code patches *should* include new tests. This was not always so, and we
are still paying off technical debt. One problem I have encountered with
idlelib is that som
On 2019-11-04 08:14:37 +1300, DL Neil via Python-list wrote:
> Perhaps 'Python pros' don't use TDD. Which in-and-of-itself, somewhat
> answers the question!
A certain Youtube channel has T-shirts for sale with this text:
DON'T TRY THIS AT HOME
WE ARE PROFESSIONALS
because we get paid
On 2019-11-01 18:40:06 +1300, DL Neil via Python-list wrote:
> In other words, before you do anything with some data, check that it is what
> you think it is. Whereas in Python we "try" by assuming everything is
> compos-mentis* and handle the "except" when things are not how we'd like.
>
> That a
On 2019-11-04 07:41:32 +1300, DL Neil via Python-list wrote:
> On 3/11/19 6:30 AM, Bev In TX wrote:
> > > On Nov 1, 2019, at 12:40 AM, DL Neil via Python-list
> > > mailto:python-list@python.org>> wrote:
> > >
> > > Is the practice of TDD fundamentally, if not philosophically,
> > > somewhat contr
On 2/11/19 4:32 PM, boB Stepp wrote:
On Fri, Nov 1, 2019 at 12:42 AM DL Neil via Python-list
wrote:
Is the practice of TDD fundamentally, if not philosophically, somewhat
contrary to Python's EAFP approach?
[...]
In encouraging my mind to think about testing the code, I find myself
searching
On 3/11/19 6:30 AM, Bev In TX wrote:
On Nov 1, 2019, at 12:40 AM, DL Neil via Python-list
mailto:python-list@python.org>> wrote:
Is the practice of TDD fundamentally, if not philosophically, somewhat
contrary to Python's EAFP approach?
I’m not an expert on either TDD or Python, but as no one
On Fri, Nov 1, 2019 at 12:42 AM DL Neil via Python-list
wrote:
>
> Is the practice of TDD fundamentally, if not philosophically, somewhat
> contrary to Python's EAFP approach?
>
[...]
>
> In encouraging my mind to think about testing the code, I find myself
> searching for edge-cases, and attemp
Is the practice of TDD fundamentally, if not philosophically, somewhat
contrary to Python's EAFP approach?
TDD = Test-Driven Development
EAFP = it's easier to ask forgiveness than permission
* WebRefs as footnote
The practice of TDD* is that one writes test routines to prove a unit of
code,
17 matches
Mail list logo