|
|
|
|
|
by sbov
3585 days ago
|
|
Using find & sed is not painful. I use getters and setters, but still think you will waste more time arguing about this issue, than leaving it be and finding out you have to change them down the line. Edit: also, especially for getters, I like my accessors to be simple accessors. Hiding too much code behind them can be unpleasantly surprising, so as they deviate further from accessors I like to rename them - e.g. CalculateXxxx rather than GetXxx. Fewer surprises. Given that, I potentially have an issue with continuing to call it GetXXX or SetXXX in the face of certain changes. |
|
Using an IDE with an understanding of the language you have is even less painful. Having the IDE automatically refactor a public field to use getters and setters is a breeze with managed languages like Java and C#.