So he discourages Getters/Setters and instead says that declaring the variable as Public is better?
I mean, isn't that like not giving a sh-- about encapsulation principles ?
I mean, isn't that like not giving a sh-- about encapsulation principles ?
Perhaps a lot of people don't like using or writing getters and setters because it's cumbersome if the only code in them is an assignment/return statement. Maybe something like providing Ruby's attr_reader/attr_writer/attr_accessor to create these boilerplate getters and setters is what is required. Also in Ruby all member variables are private, so methods are always needed to access them.
I then just say, change it when you need it, and use that fancy "find usages" thing most IDEs and vim have.