Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • 6
    Do not declare interfaces for immutable objects Commented Jul 21, 2015 at 17:36
  • 1
    Thanks, @gnat. That post (both the question and the answer) seems to be talking about interfaces, as in Capital I Interfaces. I'm not sure that's what I'm doing. Commented Jul 21, 2015 at 17:46
  • 6
    @gnat, that is dreadful advice. Interfaces offer a great way of serving up publicly immutable VOs/DTOs that are still easy to test. Commented Jul 21, 2015 at 17:53
  • 4
    @gnat, I did and the question makes no sense as the OP seems to think that interfaces will destroy immutability, which is nonsense. Commented Jul 21, 2015 at 17:56
  • 1
    @gnat, that question was about declaring interfaces for DTOs. The top voted answer was that interfaces would not be harmful, but probably unnecessary. Commented Jul 22, 2015 at 5:05