RSS

Tag Archives: object oriented

Brainless Getters & Setters are a Waste

Someone long ago set a pattern that all members should have a getter and setter method.  Some are persuaded that this is OO and this is encapsulation, so a lot of inexperienced programmers do this by default.  But this is a problem. Read the rest of this entry »

 
Leave a comment

Posted by on March 7, 2016 in Coding, Example Code, practice

 

Tags: , , , ,

Public or Private Member Variables?

When is it OK to make member variables public? Read the rest of this entry »

 
Leave a comment

Posted by on February 7, 2014 in Coding

 

Tags: , , ,

Keep It Simple: Factory

Some of our development is done by outside contractors, and they have a long list of “code policies” for producing good code.  I have nothing against such policies in theory, but in practice it leads a lot of unnecessary work, simply because simplistic rules about good code do not always lead to good code.  This post is about an example. Read the rest of this entry »

 
Leave a comment

Posted by on December 2, 2012 in Coding

 

Tags: , ,