Oh No! DTO! Should DTOs
Oh No! DTO! Should DTOs have public variables? Or should they have private variables with getters and setters?
[via Artima Weblogs]
Finally someone with a little sense on the subject. Notice that this fits in with the idea of “accessors considered harmful”. (Which, just for the record, I noted before Holub)
A final observation by Dave Astels: “Sometimes a data structure is just a data structure.”