Oh No! DTO!. Should DTOs have public variables? Or should they have private variables with getters and setters? [Artima Weblogs]
There's an interesting discussion going on in the comments of the blog. Worth reading - I'm sure we've all pondered this question before. Especially when you think of languages like Python where it's downright hard (well, at least contrived) to make member variables private.
9:32:12 AM
|