Posts Tagged ‘OOD’
  • Using ‘Get’ And ‘Set’ Might Be Something You’ll Regret
    by Software Talk
    Posted February 24th, 2009 at 8:51 pm
    It’s an all-too-common pitfall. Programmers who attempt to write object-oriented code decide to make all of their data variables private, while creating public get() and set() function pairs for each one. “See?” they declare, as they pat themselves on their backs. “The data is private, but it can be accessed through these functions. I’ve encapsulated my data. That’s what object-oriented design requires.”I think this betrays a fundamental (and exceedingly...
  • Using ‘Get’ And ‘Set’ Might Be Something You’ll Regret
    by Software Talk
    Posted December 28th, 2008 at 12:52 am
    It’s an all-too-common pitfall. Programmers who attempt to write object-oriented code decide to make all of their data variables private, while creating public get() and set() function pairs for each one. “See?” they declare, as they pat themselves on their backs. “The data is private, but it can be accessed through these functions. I’ve encapsulated my data. That’s what object-oriented design requires.”I think this betrays a fundamental (and exceedingly...
  • A Common Misconception About ObjectOriented Programming
    by Software Talk
    Posted December 16th, 2008 at 12:52 pm
    I?ve seen it time and again. A computer programmer proudly proclaims, ?Yeah, my code is object-oriented. See? My data members are all private, and they can only be reached through public member functions. That?s what being object-oriented is all about.? I?ve even heard this kind of drivel come from the mouths of Computer Science graduates?people who have presumably studied object-orientation in the classroom, or who would have had ample opportunity to educate themselves.Scholars may quibble...
  • Using ‘Get’ And ‘Set’ Might Be Something You’ll Regret
    by Software Talk
    Posted December 5th, 2008 at 8:52 pm
    It’s an all-too-common pitfall. Programmers who attempt to write object-oriented code decide to make all of their data variables private, while creating public get() and set() function pairs for each one. “See?” they declare, as they pat themselves on their backs. “The data is private, but it can be accessed through these functions. I’ve encapsulated my data. That’s what object-oriented design requires.”I think this betrays a fundamental (and exceedingly...
  • Using ‘Get’ And ‘Set’ Might Be Something You’ll Regret
    by Software Talk
    Posted November 5th, 2008 at 8:52 am
    It’s an all-too-common pitfall. Programmers who attempt to write object-oriented code decide to make all of their data variables private, while creating public get() and set() function pairs for each one. “See?” they declare, as they pat themselves on their backs. “The data is private, but it can be accessed through these functions. I’ve encapsulated my data. That’s what object-oriented design requires.”I think this betrays a fundamental (and exceedingly...
Page 6 of 6« First...23456
Sponsors
Recent Posts
Categories
Tags
 
May 2012
M T W T F S S
« Jun    
 123456
78910111213
14151617181920
21222324252627
28293031  
  • Partner links