Re:Wikileaks To Leak 5000 Open Source Java Projects
by MartinCron on Thursday July 29, 2010 @04:49PM
(#1559208)
I totally agree that language-enforced mechanisms aren't the only way to get meaningful encapsulation. People can (and do) write good code or bad code in any language.
I was just trying to point out that there are both benefits and drawbacks to language-enforced encapsulation and the benefits may be less obvious than than the drawbacks, which are generally more painful.
Re:Wikileaks To Leak 5000 Open Source Java Projects
by SoftwareMaven on Thursday July 29, 2010 @07:02PM
(#1559624)
You have a good point there. You generally have to think about what you are exposing if the language demands it. And I think it is great when a language guides you into doing the right thing. Guides being the operative word.
Given the choice, I'll choose consenting adults. :)
But when I need to deviate from that API, for whatever reason is important to me but not to the library designer (from a bug to a weird environmental issue specific to me), if I can't get done what I need to, the language is getting in my way instead of helping me.