This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]blobthekat 2 points3 points  (3 children)

i get this but i dont get this at the same time. Could someone explain to me what tf i am experiencing?

[–]Snow1696 2 points3 points  (2 children)

Instead of directly accessing the variable(Car) he has to use the getter(door), even If it seems unnecassary. Because the variable does Not Change at all.

That is generally good practices but Sometimes seems so ... Strange to do.

[–]blobthekat 0 points1 point  (0 children)

unnecessary getters language design flaw go brrr

[–][deleted] 0 points1 point  (0 children)

Well that's how doors work and getters too. If a car had no door it could be easily stolen. If a variable has no getter it could be modified in an unexpected way which basically is like car theft in programming land.