Linux, programming, computers and life

January 10, 2007

NEVER again in C++ (reminder for myself)

Filed under: programming, c++

It’s something i have to remember from now on.

  1. Never, and i repeat never make data member public, doesn’t matter how small and insignificant the class is.
  2. Even if you *know* that the class will never change and you are too lazy to write and use mutators and accessors - look item 1

Why? Just wait till you have to change that code.

Technorati Tags: , ,

Comments »

The URI to TrackBack this entry is: http://linux4all.blogsome.com/2007/01/10/never-again-in-c-reminder-for-myself/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.

Get free blog up and running in minutes with Blogsome
Theme designed by Gary Rogers