Click here to Skip to main content
15,881,715 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Anyone see the problem here? Pin
Argonia19-Sep-13 23:50
professionalArgonia19-Sep-13 23:50 
GeneralRe: Anyone see the problem here? Pin
Mardy Git19-Sep-13 23:56
Mardy Git19-Sep-13 23:56 
GeneralRe: Anyone see the problem here? Pin
Richard Deeming20-Sep-13 2:01
mveRichard Deeming20-Sep-13 2:01 
GeneralRe: Anyone see the problem here? Pin
PIEBALDconsult21-Sep-13 0:44
mvePIEBALDconsult21-Sep-13 0:44 
GeneralRe: Anyone see the problem here? Pin
Bernhard Hiller22-Sep-13 22:17
Bernhard Hiller22-Sep-13 22:17 
GeneralStoopid me Pin
Marco Bertschi16-Sep-13 4:56
protectorMarco Bertschi16-Sep-13 4:56 
GeneralRe: Stoopid me Pin
Nicholas Marty16-Sep-13 5:29
professionalNicholas Marty16-Sep-13 5:29 
GeneralRe: Stoopid me Pin
Marco Bertschi16-Sep-13 5:32
protectorMarco Bertschi16-Sep-13 5:32 
Nicholas Marty wrote:
you didn't overwrite the Equals Operator

I overwrote it.
Well, better: I had to implement it since QObject (the base class for objects in the Qt framework) has not implemented it (means not implementing the equals operator would've led to a compiler error, anyways).

Edit: QObject has also a private copy constructor, means that you have to implement a copy constructor yourself before doing something like

C++
foo myFoo = GetFoo(); //Assuming GetFoo returns a foo type

You know the world is going crazy when the best rapper is a white guy, the best golfer is a black guy, the tallest guy in the NBA is Chinese, the Swiss hold the America's Cup, France is accusing the U.S. of arrogance, Germany doesn't want to go to war, and the three most powerful men in America are named "Bush", "Dick", and "Colon."

GeneralRe: Stoopid me Pin
Freak3016-Sep-13 21:27
Freak3016-Sep-13 21:27 
GeneralRe: Stoopid me Pin
Marco Bertschi16-Sep-13 22:11
protectorMarco Bertschi16-Sep-13 22:11 
GeneralRe: Stoopid me Pin
Sentenryu17-Sep-13 0:36
Sentenryu17-Sep-13 0:36 
GeneralRe: Stoopid me Pin
Marco Bertschi17-Sep-13 1:27
protectorMarco Bertschi17-Sep-13 1:27 
GeneralRe: Stoopid me Pin
Rob Grainger19-Sep-13 0:34
Rob Grainger19-Sep-13 0:34 
Generalsomething weird Pin
C.CoderCreator12-Sep-13 18:00
C.CoderCreator12-Sep-13 18:00 
GeneralRe: something weird Pin
Ron Beyer12-Sep-13 18:18
professionalRon Beyer12-Sep-13 18:18 
GeneralRe: something weird Pin
PIEBALDconsult13-Sep-13 3:50
mvePIEBALDconsult13-Sep-13 3:50 
GeneralI, Moron Pin
Clodetta del Mar12-Sep-13 6:41
Clodetta del Mar12-Sep-13 6:41 
GeneralRe: I, Moron Pin
Nagy Vilmos12-Sep-13 6:52
professionalNagy Vilmos12-Sep-13 6:52 
GeneralRe: I, Moron Pin
Clodetta del Mar12-Sep-13 6:56
Clodetta del Mar12-Sep-13 6:56 
GeneralRe: I, Moron Pin
Ron Anders12-Sep-13 6:59
Ron Anders12-Sep-13 6:59 
GeneralRe: I, Moron [modified] Pin
Clodetta del Mar12-Sep-13 7:02
Clodetta del Mar12-Sep-13 7:02 
GeneralRe: I, Moron [modified] Pin
BillW3312-Sep-13 7:37
professionalBillW3312-Sep-13 7:37 
GeneralRe: I, Moron [modified] Pin
Clodetta del Mar12-Sep-13 7:43
Clodetta del Mar12-Sep-13 7:43 
GeneralRe: I, Moron [modified] Pin
BillW3312-Sep-13 7:50
professionalBillW3312-Sep-13 7:50 
GeneralRe: I, Moron [two times modified] Pin
Clodetta del Mar12-Sep-13 8:17
Clodetta del Mar12-Sep-13 8:17 

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.