textlog
Getters and setters for everything. Certainly, if you want an object to be doing more than just getting and setting a value right now, get them in there! Planning to add functionality later without breaking code? Stop it! That should break code! If I'm consuming a library and have been using this setter method for 2 years, I don't want it to suddenly introduce brand new validation, caching, or logging behavior!
Which #programmingnotesfollow #BestPracticenotesfollow do you think is #ActuallyWrongnotesfollow?
join the communityorbrowse more notes