Blog about Rust and Test Driven Development


#1

I wrote two articles on my blog and I would like to hear feedbback from community.

PS: I use default github pages theme, and I don’t like it much. Can anyone suggest a better theme?


#2

When I teach programming I usually give advices that are quite far from TDD:

  • Think well before you write actual code;
  • If your algorithm and logic aren’t easy then write it down as pseudocode first (if the safety requirements and/or complexity are critical use something like https://en.wikipedia.org/wiki/TLA%2B );
  • Don’t write too much code;
  • Write unit test but don’t don’t write useless ones.

#3

I don’t think that precludes TDD. You’re basically saying “think before you write code” which is universally true regardless of the development model.


#4

I don’t think that precludes TDD. You’re basically saying “think before you write code” which is universally true regardless of the development model.

I think letting tests guide your development is a bad idea.


#5

Again, letting tests guide development does not preclude letting your brain guide development.


#6

Thank you very much. Now I know what will be my next post about. :slight_smile:


#7

Thank you for your nice articles :slight_smile: