Is defining get/set methods for every field overkill?


Sat Nov 19 09:43:20 UTC 2022


On Saturday, 19 November 2022 at 09:14:33 UTC, thebluepandabear 
wrote:
> I respectfully disagree... It is not just a couple of 
> keystrokes but rather thousands of lines that can be saved.
>
> Let's just agree to disagree.

Well, as I've already stated.. do it your way for the next 10 
years, and I bet you will eventually come to a different point of 
view ;-)

if you're just a hobyist programmer, then you're really free to 
do as you please.

but if you are a software engineer employed by a company, within 
a team of other software engineers, then you have to a have 
framework that you *all* work against.

anyone who says otherwise, doesn't know what they're talking 
about.

In my team, 'classes' do not have public member variables. not 
ever.

another team is free to do as it pleases of course ;-)

but members of that team will have a hard time getting into my 
team.


More information about the Digitalmars-d-learn mailing list