Tag Archives: object oriented

Abstraction and Encapsulation

Abstraction and encapsulation are opposite sides of the same coin, and essential to good object oriented software design.  Why the, is there a tendency of some programmers to go in exactly the opposite direction?  This trend and its implication is … Continue reading

Posted in Coding, Design | Tagged , , | Leave a comment

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 … Continue reading

Posted in Coding, Example Code, practice | Tagged , , , , | Leave a comment

Public or Private Member Variables?

When is it OK to make member variables public?

Posted in Coding | Tagged , , , | Leave a comment

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, … Continue reading

Posted in Coding | Tagged , , | Leave a comment