• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Liutauras Vilda
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Piet Souris

Poll: What would you like to learn from the TDD Live Session?

 
Sheriff
Posts: 17616
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
UPDATE: The event on Friday has been cancelled until further notice. You may still respond to the poll below as future sessions on TDD have not been entirely ruled out.

Hello folks!

If you're planning to attend this Friday's (May 27, 2022) TDD Live Session with Steven Solomon, please take a few moments to respond to the poll below.

This will help Steven and myself plan the demonstration so that you can take away as much learning as possible from the two hours you spend with us.

Also, if you have any other questions for us or things about TDD you'd like us to demonstrate, please let us know by replying in this thread.

Thanks and see you all on Friday!

 
Bartender
Posts: 390
47
Firefox Browser MySQL Database Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Question: Do you decouple your test classes from your code classes, and if so, what does the structure of your tests look like?

Context: I watched this Uncle Bob video on TDD and I found this particular Q&A interesting: https://youtu.be/58jGpV2Cg50?t=4984.

To paraphrase (badly): Q: Should every class have a matching unit test class? Uncle Bob's response: It is a bad idea to couple the tests to the structure of the classes, because this will make the tests fragile. He also gives a recommendation on how to avoid this.
 
Junilu Lacar
Sheriff
Posts: 17616
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jj Roberts wrote:
To paraphrase (badly): Q: Should every class have a matching unit test class? Uncle Bob's response: It is a bad idea to couple the tests to the structure of the classes, because this will make the tests fragile. He also gives a recommendation on how to avoid this.


It's relatively easy to say how to ride a bike but if you've never actually been on a bike, then the how of it is much harder.

Similarly, it's easy to say how to do those kind of things in TDD but I think it's much harder if you don't actually know how. That's the point of practicing and having live sessions, is to get down to the level of how.

If you're still up for a couple of hours of TDD practice on Friday, I'm still game to do it.
 
Software Bot
Posts: 94866
11
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Last vote in cow poll was on May 25, 2022
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic