Skip to main content
added 121 characters in body
Source Link
Martijn Verburg
  • 22k
  • 1
  • 52
  • 81

I'd argue that you want to TDD (And by that I mean Test Driven Design) your objects. You'l quickly realise whether you really need those setters and getters. I personally only write the code that I have to.

Oh, and if your design later on says I need all of those getters and setters, then that's what modern IDEs are for :)

I'd argue that you want to TDD (And by that I mean Test Driven Design) your objects. You'l quickly realise whether you really need those setters and getters. I personally only write the code that I have to.

I'd argue that you want to TDD (And by that I mean Test Driven Design) your objects. You'l quickly realise whether you really need those setters and getters. I personally only write the code that I have to.

Oh, and if your design later on says I need all of those getters and setters, then that's what modern IDEs are for :)

Source Link
Martijn Verburg
  • 22k
  • 1
  • 52
  • 81

I'd argue that you want to TDD (And by that I mean Test Driven Design) your objects. You'l quickly realise whether you really need those setters and getters. I personally only write the code that I have to.