Click here to Skip to main content
14,361,196 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
OriginalGriff20-Oct-19 4:58
protectorOriginalGriff20-Oct-19 4:58 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
agolddog21-Oct-19 3:44
memberagolddog21-Oct-19 3:44 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
charlieg21-Oct-19 14:02
membercharlieg21-Oct-19 14:02 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Dean Roddey20-Oct-19 5:05
memberDean Roddey20-Oct-19 5:05 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
RickZeeland20-Oct-19 5:47
mveRickZeeland20-Oct-19 5:47 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 10:41
professionalSander Rossel20-Oct-19 10:41 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
BillWoodruff20-Oct-19 6:06
mveBillWoodruff20-Oct-19 6:06 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
0x01AA20-Oct-19 6:58
professional0x01AA20-Oct-19 6:58 
It could be worse in case of c++...
I faced the situation when inherited from a class which implement a method "Sleep".
For a lazy implementation while inheriting from that class I called Sleep in the assumption I'm calling the W32 Sleep. But instead of, it ended in something like this:
for (i = 0; i < 5; i++)
{
	ProcessMessages();
	::Sleep(0.2 * cnMilliseconds);
	ProcessMessages();
}

I could kill that beast Dead | X|
It does not solve my Problem, but it answers my question

GeneralRe: Why you shouldn't inherit someone else's code... Pin
Kelly Herald21-Oct-19 7:02
memberKelly Herald21-Oct-19 7:02 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
lopatir20-Oct-19 7:04
memberlopatir20-Oct-19 7:04 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 10:24
professionalSander Rossel20-Oct-19 10:24 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
the goat in your machine20-Oct-19 20:02
memberthe goat in your machine20-Oct-19 20:02 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 7:14
mveEddy Vluggen20-Oct-19 7:14 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Greg Utas20-Oct-19 9:02
professionalGreg Utas20-Oct-19 9:02 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 9:06
mveEddy Vluggen20-Oct-19 9:06 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Greg Utas20-Oct-19 10:33
professionalGreg Utas20-Oct-19 10:33 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 10:42
mveEddy Vluggen20-Oct-19 10:42 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 12:16
professionalSander Rossel20-Oct-19 12:16 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 12:52
mveEddy Vluggen20-Oct-19 12:52 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 10:36
professionalSander Rossel20-Oct-19 10:36 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 10:52
mveEddy Vluggen20-Oct-19 10:52 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 11:08
professionalSander Rossel20-Oct-19 11:08 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 11:21
mveEddy Vluggen20-Oct-19 11:21 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Sander Rossel20-Oct-19 11:39
professionalSander Rossel20-Oct-19 11:39 
GeneralRe: Why you shouldn't inherit someone else's code... Pin
Eddy Vluggen20-Oct-19 12:03
mveEddy Vluggen20-Oct-19 12:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.