116 reputation
3
bio website
location
age
visits member for 2 years
seen Nov 4 at 9:53

May
7
comment Why would Square inheriting from Rectangle be problematic if we override the SetWidth and SetHeight methods?
@Stephen: I sort of agree with RoyT: A class should hide something. In the case of Rectangles and Squares, this should probably be their dimensions. It is then their behavior that changes for the different implementations/subtypes. This could be methods like Draw, IncreaseSize, ... This is also reflected in TellDontAsk: Don't ask for the length, do a computation and then mutate. Just tell it what you want to achieve!
Oct
3
awarded  Scholar
Oct
3
accepted A good name for ValueObject that contains database update/create column values
Oct
3
awarded  Student
Oct
3
comment A good name for ValueObject that contains database update/create column values
I was looking for something semantically meaningful but I'll go with CreateAndUpdateInfo, thanks :)
Oct
2
asked A good name for ValueObject that contains database update/create column values
Jan
9
comment Is premature optimization really the root of all evil?
Joe Duffy blogged about this in 2010: The Premature Optimization Is Evil Myth
Jan
2
awarded  Supporter