¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Re: "bottom-up" TDD and common behaviors
If I understand correctly, the code here is specifically for doing an Ecto transformation, correct? If you decide not to use Ecto the need for this abstraction is removed? brought to you by the
By Avi Kessner · #35800 ·
Re: "bottom-up" TDD and common behaviors
TL;DR: For various reasons, I was trying to avoid the use of mocks in this app. I¡¯m asking how a particular problem would be nicely solved without them. I should note that I have a guideline that a
By Brian Marick · #35799 ·
Re: "bottom-up" TDD and common behaviors
We still don't know the context, but it seems like we have some kind of a thing that either has fields that are sometimes mod and sometimes not, or sometimes has mod fields added to it. That could be
By Ron Jeffries · #35798 ·
Re: "bottom-up" TDD and common behaviors
What motivates implementing a setter method under TDD unless there is a test that requires it to exist and work? Extra tests would only be required if we also need to implement is<X>Modifiable() for
By Steve Gordon · #35797 ·
Re: "bottom-up" TDD and common behaviors
If we're gonna be like that, wouldn't you need a test for every modifiable field? :) Ron Jeffries ronjeffries.com <http://ronjeffries.com/> Master your instrument, master the music, then forget all
By Ron Jeffries · #35796 ·
Re: "bottom-up" TDD and common behaviors
Just because an object has a method implemented to "know" whether or not a field is modifiable does not mean that that method is correctly implemented. If there is such a method, you would still have
By Steve Gordon · #35795 ·
Re: "bottom-up" TDD and common behaviors
Yes. And if I didn't mind modifying a field, testing it that way is OK. If I knew the context I'd have a better idea but as it stands I'm thinking my object must know whether it can modify fields or
By Ron Jeffries · #35794 ·
Re: "bottom-up" TDD and common behaviors
Best to test to behaviour, not implementation/capability, I think. brought to you by the letters A, V, and I and the number 47 wrote:
By Avi Kessner · #35793 ·
Re: "bottom-up" TDD and common behaviors
I was thinking I'd ask the object if it had updatable fields, but it'd depend on an understanding of the problem and solution that I don't presently have. Ron Jeffries ronjeffries.com
By Ron Jeffries · #35792 ·
Re: "bottom-up" TDD and common behaviors
The way I test if animals have updatable fields, I try to update a field and check that it updated. Alan Baljeualanbaljeu@...
By Alan Baljeu · #35791 ·
Re: "bottom-up" TDD and common behaviors
What I¡¯m guessing is that you invent an assertion that, when true of the return value, implies that it has been made ¡°with updatable fields¡±. So it¡¯s a property of the data rather than a
By Brian Marick · #35790 ·
"bottom-up" TDD and common behaviors
Here¡¯s some code I have: Here¡¯s a correctness claim about that code: ¡°any function that returns one or more Animals must ensure that those animals have ¡®updatable fields¡¯¡±. I come from a
By Brian Marick · #35789 ·
Re: REQ: Moderators
Thank you, everyone, who volunteered. I think we have enough for now. You who have become moderators will notice new emails notifying you of messages waiting for approval. View them online, where you
By J. B. Rainsberger · #35788 ·
Re: "Find or Create" functions: a discussion
I have a system that is doing this part of the time.? It is fraught with problems when doing the search.? In your case, searching for "John Smith" may return a set of records, while the creation is
By Voris, John · #35787 ·
Re: REQ: Moderators
Hi J.B. If you still need moderators, then I'll volunteer to help. Let me know what you need me to do. Thanks, Rick [email protected]> wrote:
By Richard Copenhaver · #35786 ·
Re: REQ: Moderators
I volunteer! -Guilherme Froes Em seg., 25 de nov. de 2019 ¨¤s 10:07, J. B. Rainsberger < [email protected]> escreveu:
By Guilherme Froes <guilherme.froes@...> · #35785 ·
Re: "I think the community needs more explicit direction...."
On Mon, Nov 25, 2019 at 10:22 AM Steve Gordon <sgordonphd@...> wrote: > > On Mon, Nov 25, 2019 at 11:07 AM Edwin Castro <egcastr@...> wrote: > >> >> >> Or perhaps we just don't do enough
By Edwin Castro · #35784 ·
Re: REQ: Moderators
Also happy to help. [email protected]> wrote:
By Walter Prins · #35783 ·
Re: "I think the community needs more explicit direction...."
When I was a professor, all I taught was problem solving. Students hated it because they could not just memorize terms for my tests, and the student evaluations reflected it. Grading also took a lot
By Steve Gordon · #35782 ·
Re: "I think the community needs more explicit direction...."
Since the busy days of this list all those years ago I¡¯ve retired, but I still code in partnership with my son. He¡¯s fairly receptive to the idea of TDD, less interested in the refactoring part.
By John Donaldson · #35781 ·