¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

More Typing, Less Testing: TDD with Static Types

 

Hello All,

I found this blog posts about TDD and typing. The first is a introduction and the second is an example using the same example in the book of Kent Beck (Test Driven Development by Example).?

The author claim that thinking int the types first leads to a better code than the pure use of TDD as did by Kent in the book.

More Typing, Less Testing: TDD with Static Types, Part 1

More Typing, Less Testing: TDD with Static Types, Part 2

Any thoughts?

--?
Abra?os,
´³´Ç²õ³Ü¨¦


Re: [TDD] Experience with Advanced TDD courses delivered on-site?

 

¿ªÔÆÌåÓý

Hi Mark

On Dec 9, 2014, at 7:06 AM, Mark Waite mark.earl.waite@... [testdrivendevelopment] <testdrivendevelopment@...> wrote:

Ron, our intent is to teach 4 sessions of 15 people each.? At least that's how we envision it working so that the sessions can be code intensive instead of lecture intensive.

Excellent, that allays my concerns on that score.

Is there an outline of the CSD courses which you and Chet teach so that I could look at them to see if they might address (or be customized) to the test driven development challenges we're seeing?

Some of the challenges we've seen have been
  • Database interactions - how to handle database schema version history, database volumes, and database operations
  • Multi-component interaction tests (techniques to rapidly restore stateful components, etc.)
  • User interface driven tests (when to use them, when to avoid them, techniques for managing their brittleness)
  • Performance or throughput related tests
CSD provides a learning experience with practice doing TDD, pair programming, ATDD, continuous integration, and refactoring. It is intended for people with little or no experience in what amounts to the ¡°XP Practices¡±.?

We could surely build a course ¡ª or more accurately a workshop ¡ª such as you have in mind, but the CSD course is not that. We do not offer such a workshop as a matter of ¡°course¡±.

Regards,

Ron Jeffries
If it is more than you need, it is waste. -- Andy Seidl


Re: [TDD] Experience with Advanced TDD courses delivered on-site?

 

My employer, Falafel Software, also does quite a bit with testing and training.? We have experts in unit testing and writing testable code, as well as?instructors familiar with UI tests?using a variety of free and commercial tools for this purpose.? I'd love to come onsite to help, but my wife is expecting twins in late February so I expect she won't be quite ready for me to travel in April (though I would be available via webinar).

Feel free to reach out if you're interested, though it sounds like there's certainly a wealth of qualified instructors on this thread already:

Cheers and good luck,
Steve


On Tue, Dec 9, 2014 at 7:06 AM, Mark Waite mark.earl.waite@... [testdrivendevelopment] <testdrivendevelopment@...> wrote:

?

Ron, our intent is to teach 4 sessions of 15 people each.? At least that's how we envision it working so that the sessions can be code intensive instead of lecture intensive.

Is there an outline of the CSD courses which you and Chet teach so that I could look at them to see if they might address (or be customized) to the test driven development challenges we're seeing?

Some of the challenges we've seen have been
  • Database interactions - how to handle database schema version history, database volumes, and database operations
  • Multi-component interaction tests (techniques to rapidly restore stateful components, etc.)
  • User interface driven tests (when to use them, when to avoid them, techniques for managing their brittleness)
  • Performance or throughput related tests
Mark Waite

On Tue, Dec 9, 2014 at 3:56 AM, Ron Jeffries ronjeffries@... [testdrivendevelopment] <testdrivendevelopment@...> wrote:
?

Hi Mark, just a thought ...

I would think that a TDD course would be about programming. Certainly mine would, with developers working in pairs.

I¡¯d be reviewing the team¡¯s code after frequent iterations, answering questions, and so on. I don¡¯t see how I could possibly provide value to 60 people at once.

Generally Chet and I limit our CSD courses to 24.


On Dec 8, 2014, at 2:16 PM, Mark Waite mark.earl.waite@... [testdrivendevelopment] <testdrivendevelopment@...> wrote:

As part of that improvement effort, we'd like to have a 2-3 day on-site Advanced Test Driven Development course in April 2015 for about 60 people.


Ron Jeffries
You never know what is enough unless you know what is more than enough. -- William Blake




--
Thanks!
Mark Waite




--
Steve Smith


Re: [TDD] Experience with Advanced TDD courses delivered on-site?

Mark Waite
 

Ron, our intent is to teach 4 sessions of 15 people each.? At least that's how we envision it working so that the sessions can be code intensive instead of lecture intensive.

Is there an outline of the CSD courses which you and Chet teach so that I could look at them to see if they might address (or be customized) to the test driven development challenges we're seeing?

Some of the challenges we've seen have been
  • Database interactions - how to handle database schema version history, database volumes, and database operations
  • Multi-component interaction tests (techniques to rapidly restore stateful components, etc.)
  • User interface driven tests (when to use them, when to avoid them, techniques for managing their brittleness)
  • Performance or throughput related tests
Mark Waite

On Tue, Dec 9, 2014 at 3:56 AM, Ron Jeffries ronjeffries@... [testdrivendevelopment] <testdrivendevelopment@...> wrote:

?

Hi Mark, just a thought ...

I would think that a TDD course would be about programming. Certainly mine would, with developers working in pairs.

I¡¯d be reviewing the team¡¯s code after frequent iterations, answering questions, and so on. I don¡¯t see how I could possibly provide value to 60 people at once.

Generally Chet and I limit our CSD courses to 24.


On Dec 8, 2014, at 2:16 PM, Mark Waite mark.earl.waite@... [testdrivendevelopment] <testdrivendevelopment@...> wrote:

As part of that improvement effort, we'd like to have a 2-3 day on-site Advanced Test Driven Development course in April 2015 for about 60 people.


Ron Jeffries
You never know what is enough unless you know what is more than enough. -- William Blake




--
Thanks!
Mark Waite


Re: [TDD] Experience with Advanced TDD courses delivered on-site?

 

¿ªÔÆÌåÓý

Hi Mark, just a thought ...

I would think that a TDD course would be about programming. Certainly mine would, with developers working in pairs.

I¡¯d be reviewing the team¡¯s code after frequent iterations, answering questions, and so on. I don¡¯t see how I could possibly provide value to 60 people at once.

Generally Chet and I limit our CSD courses to 24.


On Dec 8, 2014, at 2:16 PM, Mark Waite mark.earl.waite@... [testdrivendevelopment] <testdrivendevelopment@...> wrote:

As part of that improvement effort, we'd like to have a 2-3 day on-site Advanced Test Driven Development course in April 2015 for about 60 people.


Ron Jeffries
You never know what is enough unless you know what is more than enough. -- William Blake


Re: [TDD] Experience with Advanced TDD courses delivered on-site?

 

Mark others have noted the issue with 60 people.

I don't think ObjectMentor really exists any more. As mention Industrial Logic has good people. From personal experience I can also recommend M Kelley Harris who calls his business sourcecell.

Cheers
Mark

On Dec 8, 2014 2:40 PM, "Mark Waite mark.earl.waite@... [testdrivendevelopment]" <testdrivendevelopment@...> wrote:

?

We've spent the last year broadening and deepening the use of test driven development in our organization, with varying levels of success.

We continue to identify areas where we can further improve. ?

As part of that improvement effort, we'd like to have a 2-3 day on-site Advanced Test Driven Development course in April 2015 for about 60 people.

Any recommendations of good instructors, or well perceived courses?

ObjectMentor offers an Advanced TDD course.? The course outline looks like a good match.? Unfortunately, they aren't responding to my phone calls or e-mail messages.

--
Thanks!
Mark Waite


Re: [TDD] Experience with Advanced TDD courses delivered on-site?

 

Mark,

On 12/8/14 2:16 PM, Mark Waite mark.earl.waite@... [testdrivendevelopment] wrote:


We've spent the last year broadening and deepening the use of test
driven development in our organization, with varying levels of success.

We continue to identify areas where we can further improve.

As part of that improvement effort, we'd like to have a 2-3 day on-site
Advanced Test Driven Development course in April 2015 for about 60 people.

Any recommendations of good instructors, or well perceived courses?

ObjectMentor offers an Advanced TDD course. The course outline looks
like a good match. Unfortunately, they aren't responding to my phone
calls or e-mail messages.
Maybe that's because Uncle Bob is teaching Clean Code in London at the moment.

To be honest, I find good bang for the buck giving hands-on coaching with the code base of the programmers rather than "advanced" courses. Gets right to the heart of the issues they're having.

A 60-person class seems pretty dilute.

- George

--
----------------------------------------------------------------------
* George Dinwiddie *
Software Development
Consultant and Coach
----------------------------------------------------------------------


[ANN] TDD Training by Roy Osherove in the US

 

Hi Folks.
I recently moved to the US (NJ.. yes yes I know).
If anyone is interested in me coming over and do some TDD and Beautiful Builds training (or team leader training), I'd love it if you dropped me an email to roy@...

Here is the list and TOC of said courses:??

I'm pretty much working full time, but I have about 3 days a month where I can do outside training if needed.

Cheers. May the force be with you.


--
Thanks,

Roy Osherove

?? - @RoyOsherove
?? - Author of "The Art Of Unit Testing" )
?? - My blog for team leaders:




Re: [TDD] Experience with Advanced TDD courses delivered on-site?

 

Hehe. I was in the middle of drafting an email that recommended Industrial Logic too. I used to be an employee and worked with Tim, but now I am elsewhere.?

One quick thought to add: you aren't going to want 60 people in the same room for 2-3 days if you want to cover advanced topics hands-on. I would split that out into three classes of 20 with either different instructors or different dates.?

On Mon, Dec 8, 2014 at 11:42 AM, Tim Ottinger tottinge@... [testdrivendevelopment] <testdrivendevelopment@...> wrote:

?

Industrial Logic does a lot of TDD training.?
Have you taken a look at IndustrialLogic.com.
Full Disclosure: I'm an employee who does training at IL.

On Mon, Dec 8, 2014 at 11:16 AM, Mark Waite mark.earl.waite@... [testdrivendevelopment] <testdrivendevelopment@...> wrote:


We've spent the last year broadening and deepening the use of test driven development in our organization, with varying levels of success.

We continue to identify areas where we can further improve. ?

As part of that improvement effort, we'd like to have a 2-3 day on-site Advanced Test Driven Development course in April 2015 for about 60 people.

Any recommendations of good instructors, or well perceived courses?

ObjectMentor offers an Advanced TDD course.? The course outline looks like a good match.? Unfortunately, they aren't responding to my phone calls or e-mail messages.

--
Thanks!
Mark Waite





--
Tim Ottinger, Anzeneer, Industrial Logic
-------------------------------------





Re: [TDD] Experience with Advanced TDD courses delivered on-site?

 

Industrial Logic does a lot of TDD training.?
Have you taken a look at IndustrialLogic.com.
Full Disclosure: I'm an employee who does training at IL.

On Mon, Dec 8, 2014 at 11:16 AM, Mark Waite mark.earl.waite@... [testdrivendevelopment] <testdrivendevelopment@...> wrote:



We've spent the last year broadening and deepening the use of test driven development in our organization, with varying levels of success.

We continue to identify areas where we can further improve. ?

As part of that improvement effort, we'd like to have a 2-3 day on-site Advanced Test Driven Development course in April 2015 for about 60 people.

Any recommendations of good instructors, or well perceived courses?

ObjectMentor offers an Advanced TDD course.? The course outline looks like a good match.? Unfortunately, they aren't responding to my phone calls or e-mail messages.

--
Thanks!
Mark Waite





--
Tim Ottinger, Anzeneer, Industrial Logic
-------------------------------------




Experience with Advanced TDD courses delivered on-site?

Mark Waite
 

We've spent the last year broadening and deepening the use of test driven development in our organization, with varying levels of success.

We continue to identify areas where we can further improve. ?

As part of that improvement effort, we'd like to have a 2-3 day on-site Advanced Test Driven Development course in April 2015 for about 60 people.

Any recommendations of good instructors, or well perceived courses?

ObjectMentor offers an Advanced TDD course.? The course outline looks like a good match.? Unfortunately, they aren't responding to my phone calls or e-mail messages.

--
Thanks!
Mark Waite


How to run your Robot Framework test suite on Heroku

 

After finishing our test automation project, we wanted deploy the tests to Heroku. Like our apps. This turned out to be a bit challenging because of the way Heroku works. I hope this post helps others who want to do the same!




Re: [TDD] Test Driven Development By Example Query

 

¿ªÔÆÌåÓý

Ah yes! Wonderful thanks!


On 11 Nov 2014, at 17:18, Keith Ray keith.ray@... [testdrivendevelopment] <testdrivendevelopment@...> wrote:

?

Think classes, not objects. The Equals method defined by class Franc can access member variables of class Franc.


Same as C++.

--
C. Keith Ray
* (650) 533-6535
*?
*



On 2014 Nov 11, at 8:25 AM, Aaron Carey aaronccarey@... [testdrivendevelopment] <testdrivendevelopment@...> wrote:


Hi,

I'm sorry this may be a rather stupid question, but it's been bugging me as I'm reading through Kent Beck's book 'Test-Driven Development By Example'

I think it might be my understanding of Java (I have a C++/Python background) but I was really hoping someone could clear something up!

This happens a few times in the book so far, but here's an example:

on Page 24, there's a Franc class which defines equals and sets the amount variable as a private int. Within the equals method a Franc object passed into the method has the amount variable queried. How does this work? I thought private variables couldn't be accessed outside of the object, but here you query it from another object? Is there some sort of friend class behaviour?

Thanks so much for your help!

class Franc {
? ? private int amount;

? ? Franc(int amount) {
? ? ? ? this.amount= amount;
? ? }

? ? public boolean equals(Object object) {
? ? ? ? Franc franc= (Franc) object;
? ? ? ? return amount == franc.amount;
? ? }
}



Re: [TDD] Test Driven Development By Example Query

Keith Ray
 

¿ªÔÆÌåÓý

Think classes, not objects. The Equals method defined by class Franc can access member variables of class Franc.

Same as C++.

--
C. Keith Ray
* (650) 533-6535
*?
*



On 2014 Nov 11, at 8:25 AM, Aaron Carey aaronccarey@... [testdrivendevelopment] <testdrivendevelopment@...> wrote:


Hi,

I'm sorry this may be a rather stupid question, but it's been bugging me as I'm reading through Kent Beck's book 'Test-Driven Development By Example'

I think it might be my understanding of Java (I have a C++/Python background) but I was really hoping someone could clear something up!

This happens a few times in the book so far, but here's an example:

on Page 24, there's a Franc class which defines equals and sets the amount variable as a private int. Within the equals method a Franc object passed into the method has the amount variable queried. How does this work? I thought private variables couldn't be accessed outside of the object, but here you query it from another object? Is there some sort of friend class behaviour?

Thanks so much for your help!

class Franc {
? ? private int amount;

? ? Franc(int amount) {
? ? ? ? this.amount= amount;
? ? }

? ? public boolean equals(Object object) {
? ? ? ? Franc franc= (Franc) object;
? ? ? ? return amount == franc.amount;
? ? }
}



Test Driven Development By Example Query

 

Hi,

I'm sorry this may be a rather stupid question, but it's been bugging me as I'm reading through Kent Beck's book 'Test-Driven Development By Example'

I think it might be my understanding of Java (I have a C++/Python background) but I was really hoping someone could clear something up!

This happens a few times in the book so far, but here's an example:

on Page 24, there's a Franc class which defines equals and sets the amount variable as a private int. Within the equals method a Franc object passed into the method has the amount variable queried. How does this work? I thought private variables couldn't be accessed outside of the object, but here you query it from another object? Is there some sort of friend class behaviour?

Thanks so much for your help!

class Franc {
? ? private int amount;

? ? Franc(int amount) {
? ? ? ? this.amount= amount;
? ? }

? ? public boolean equals(Object object) {
? ? ? ? Franc franc= (Franc) object;
? ? ? ? return amount == franc.amount;
? ? }
}


ANN: A course with Roy Osherove one Leading Technical Teams

 

It might sound like it's out of place here, but really, a lot of people learn TDD, and then they arrive in their team and *nothing* happens. Everyone agrees TDD is a good thing, and nobody seems to change their behavior.

I am teaching a one day "Lead Better" course in NYC to talk about the "glue" that connect what you believe are the right things, to actually getting other people to start doing them.

You can find more info at

--
Thanks,

Roy Osherove

?? - @RoyOsherove
?? - Author of "The Art Of Unit Testing" )
?? - My blog for team leaders:
?? - My favorite keyboard shortcuts:
?? - +972-524-655388 (GMT+2)



Re: [TDD] Getting back into C# testing

 

I can thoroughly recommend NCrunch for TDD-ing. You never have to run the tests explicitly, it does it for you continually in the background.Worth the money.

Cheers,
Jon Payne?


From: "Alan Baljeu alanbaljeu@... [testdrivendevelopment]"
To: "testdrivendevelopment@..."
Sent: Friday, 5 September 2014, 16:41
Subject: [TDD] Getting back into C# testing



I've been away from serious OOP programming for a while, working in Prolog, etc. ?So now I'm back, using VS2013, and starting development with a large CAD API. ?

My TDD experience has followed the old data-oriented style, testing whether a function causes the right kinds of objects to be produced, rather than testing that it invokes the right methods. ?(It makes more sense to me, that my concern is to construct the correct and very visible model, and not how that model was constructed.)

So now, given this brand-new API (which I know is well made and stable), is it a good idea to create my own classes to wrap access to the API, or is it better just to access the API directly?

Following the TDD mantra of test-first, I'm thinking about:
{
? setup the test scenario.
? do something interesting.
? check what happened.
}

I write the above in natural fashion, and then build classes and methods to match that fashion, and link those to the underlying API.

Does this all make sense? ?Shall I use the built-in test framework? ?Are there any valued innovations in the last years about software development?
?
Alan Baljeu






Re: [TDD] Getting back into C# testing

 

I'm in favour of tests like that.

?
Alan Baljeu


From: "Ben Biddington ben.biddington@... [testdrivendevelopment]"
To: testdrivendevelopment@...
Sent: Friday, September 5, 2014 5:54 PM
Subject: Re: [TDD] Getting back into C# testing

?
Sort of related - wrt documenting microservices, how do you feel about having a small number of (likely system) tests like this?:



On 6/09/2014 3:42 AM, "Alan Baljeu alanbaljeu@... [testdrivendevelopment]" <testdrivendevelopment@...> wrote:
?
I've been away from serious OOP programming for a while, working in Prolog, etc. ?So now I'm back, using VS2013, and starting development with a large CAD API. ?

My TDD experience has followed the old data-oriented style, testing whether a function causes the right kinds of objects to be produced, rather than testing that it invokes the right methods. ?(It makes more sense to me, that my concern is to construct the correct and very visible model, and not how that model was constructed.)

So now, given this brand-new API (which I know is well made and stable), is it a good idea to create my own classes to wrap access to the API, or is it better just to access the API directly?

Following the TDD mantra of test-first, I'm thinking about:
{
? setup the test scenario.
? do something interesting.
? check what happened.
}

I write the above in natural fashion, and then build classes and methods to match that fashion, and link those to the underlying API.

Does this all make sense? ?Shall I use the built-in test framework? ?Are there any valued innovations in the last years about software development?
?
Alan Baljeu




Re: [TDD] Getting back into C# testing

 

Sort of related - wrt documenting microservices, how do you feel about having a small number of (likely system) tests like this?:


On 6/09/2014 3:42 AM, "Alan Baljeu alanbaljeu@... [testdrivendevelopment]" <testdrivendevelopment@...> wrote:

?

I've been away from serious OOP programming for a while, working in Prolog, etc. ?So now I'm back, using VS2013, and starting development with a large CAD API. ?

My TDD experience has followed the old data-oriented style, testing whether a function causes the right kinds of objects to be produced, rather than testing that it invokes the right methods. ?(It makes more sense to me, that my concern is to construct the correct and very visible model, and not how that model was constructed.)

So now, given this brand-new API (which I know is well made and stable), is it a good idea to create my own classes to wrap access to the API, or is it better just to access the API directly?

Following the TDD mantra of test-first, I'm thinking about:
{
? setup the test scenario.
? do something interesting.
? check what happened.
}

I write the above in natural fashion, and then build classes and methods to match that fashion, and link those to the underlying API.

Does this all make sense? ?Shall I use the built-in test framework? ?Are there any valued innovations in the last years about software development?
?
Alan Baljeu


Re: [TDD] Getting back into C# testing

 

It will definitely hurt less if you wrap the API, because then you can test your own code in isolation from it where it makes sense to do so. As far as tools go, ReSharper, NUnit, and SpecFlow are my favorites for test-driving C#, but it would probably be worth spending time researching what else is out there.?


On Fri, Sep 5, 2014 at 8:41 AM, Alan Baljeu alanbaljeu@... [testdrivendevelopment] <testdrivendevelopment@...> wrote:

?

I've been away from serious OOP programming for a while, working in Prolog, etc. ?So now I'm back, using VS2013, and starting development with a large CAD API. ?

My TDD experience has followed the old data-oriented style, testing whether a function causes the right kinds of objects to be produced, rather than testing that it invokes the right methods. ?(It makes more sense to me, that my concern is to construct the correct and very visible model, and not how that model was constructed.)

So now, given this brand-new API (which I know is well made and stable), is it a good idea to create my own classes to wrap access to the API, or is it better just to access the API directly?

Following the TDD mantra of test-first, I'm thinking about:
{
? setup the test scenario.
? do something interesting.
? check what happened.
}

I write the above in natural fashion, and then build classes and methods to match that fashion, and link those to the underlying API.

Does this all make sense? ?Shall I use the built-in test framework? ?Are there any valued innovations in the last years about software development?
?
Alan Baljeu