News for hackers. Stuff that matters.
Re:Coding Skill and the Decline of Stagnation by jiggy2011 on Friday January 13, 2012 @03:11PM (#3462180)
I think this idea is that you can use "properties" rather than public class variables.

Then you can convert your public vars into properties at a later date.

This means that you will not have to (necessarily) rewrite your code as the language knows that

a = myobj.myvar

now should call getmyvar() in the containing class and:

myob.myvar = a

should call setmyvar(a) , I know that C# certainly allows this.

Re:Coding Skill and the Decline of Stagnation by esrauch on Friday January 13, 2012 @06:00PM (#3462785)
C# allows it but but Java doesn't have this. Hence why it's standard operating procedure to just use setters from the beginning, because it might be nontrivial to update all references.
Re:Coding Skill and the Decline of Stagnation by jiggy2011 on Friday January 13, 2012 @06:26PM (#3462864)
Play! framework allows you to use getters and setters with public members as you would in C#.

Not sure how this is implemented.

Re:Coding Skill and the Decline of Stagnation by aaimnr on Friday January 13, 2012 @07:09PM (#3463000)
Spring Roo does the same through the use of aspect programming (code generation, essentially - it generates the boilerplate behind the scenes).