kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #09939
Re: m_colorsSettings in BOARD
On 04/12/2013 12:28 AM, Lorenzo Marcantonio wrote:
> On Thu, Apr 11, 2013 at 04:11:51PM -0500, Dick Hollenbeck wrote:
>
>> No, I don't agree, since it is behind an interface and only accessors use it.
>
> My question could be rephrased as: there is a need to put colours in the board
> interface?
>
>> Its the guy in the stair well walking on his hands, allowed to do weird stuff as long as
>> it is not public.
>
> Sorry but I don't get this...
Clarification, a paraphrase of something I wrote a week or so ago, which is a metaphor of
only moderate quality, is this:
Writing good C++ software is really about placing and using carefully
crafted interfaces. After that you can ad lib in between the
interfaces, so long as you honour them.
A C++ thread can be like the quirky guy who walks down the stairs of a
skyscraper, travelling across each floor and then back into the
stairwell to continue descending.
When he travels across each floor, he is wearing the proper attire and
acting properly. *This is the interface.*
But in the stairwell he very well may be acting quite differently,
nobody knows, nobody cares. Could be walking on his hands, screaming, yelling.
*This is the implementation.*
Follow ups
References