Saturday, August 7, 2010

Stupid Warning Sign for Programmer

Important! The term "protected" does not imply any security checking or caller validation. Protected members can be accessed simply by defining a derived class of the declaring type.
I do think that is the Object Oriented Programming version of a stupid warning sign . That quote above about protected members comes from Microsoft's design guideline for developing .NET class libraries. Which obviously means common language object oriented principals apply.... you would hope.

That has also got to be the stupidest cautionary message that I have ever seen in a document intended for programmers. What next, writing "May irritate eyes" on a can of pepper spray!?

1 comment:

  1. I like the "Do not try to stop chain with the hand" lable on chainsaws :D

    ReplyDelete