I don't like the lazy initialization method because it means my object really isn't really valid at all times, it only kind of looks valid. Internal code could try to access list directly, assume...
Type: Posts; User: helloworld922
I don't like the lazy initialization method because it means my object really isn't really valid at all times, it only kind of looks valid. Internal code could try to access list directly, assume...
+1 for jps's recommendations. There is next to no advantage of obj.x over obj.getX() from both performance and abstraction/code style perspectives (side note, I'm sure I'm ruining my reputation...