I’m not sure which fact is more hilarious (or sad): that I have a three-line function with twenty-eight lines of comments, or that the function exists at all.
At some point I was instructed not to use public variables and to create getters and setters for everything. Encapsulation is a good thing, but for values that just need to be accessed it makes just as much sense to make the variable public and not waste a function call to return the … Read the rest