Click here to Skip to main content
16,010,473 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: Is this a horror? Pin
supercat912-May-08 16:49
supercat912-May-08 16:49 
GeneralRe: Is this a horror? Pin
Vishnu Rana14-May-08 21:18
Vishnu Rana14-May-08 21:18 
GeneralRe: Is this a horror? Pin
asrelu17-May-08 16:21
asrelu17-May-08 16:21 
GeneralRe: Is this a horror? Pin
Gary R. Wheeler18-May-08 0:41
Gary R. Wheeler18-May-08 0:41 
GeneralRe: Is this a horror? Pin
Tony Wesley3-Jun-08 11:16
Tony Wesley3-Jun-08 11:16 
GeneralRe: Is this a horror? Pin
CPallini14-May-08 21:41
mveCPallini14-May-08 21:41 
GeneralRe: Is this a horror? [modified] Pin
asrelu17-May-08 16:41
asrelu17-May-08 16:41 
GeneralRe: Is this a horror? Pin
CPallini18-May-08 6:08
mveCPallini18-May-08 6:08 
asrelu wrote:
Quote: "You're wrong (after all MFC developers are skilled people). Try the following code..."
You mix MFC with non-MFC, your sample has nothing to do with the MFC framework. I can only hope you'll not compile the release version without fixing an error signalled in the debug phase so I hope you'll not get a runtime error.

MFC is C++ or am I wrong (i.e. MFC designers use C++, do you realize)? My code simply shows that you assumption is definitely wrong.

asrelu wrote:
Thank you for your remark that
"invalid pointers references cause runtime errors not assertions (ASSERT it's only a debug tool to intercept such occurrences)".

Don't be so upset, I fixed your terminology beacause it was wrong: nothing personal.


asrelu wrote:
In return, I want to offer you an advice having the same value:
If you want to fill a glass with water you shouldn't hold it upside down because the glass will not fill.

Maybe it has the same value for you. For me it is simply a crap.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


JokeRe: Is this a horror? Pin
Mladen Janković10-May-08 23:20
Mladen Janković10-May-08 23:20 
GeneralRe: Is this a horror? Pin
John R. Shaw13-May-08 7:47
John R. Shaw13-May-08 7:47 
GeneralRe: Is this a horror? Pin
Gary R. Wheeler13-May-08 10:39
Gary R. Wheeler13-May-08 10:39 
GeneralRe: Is this a horror? Pin
Gary R. Wheeler15-May-08 11:27
Gary R. Wheeler15-May-08 11:27 
GeneralRe: Is this a horror? Pin
Jörgen Sigvardsson16-May-08 1:13
Jörgen Sigvardsson16-May-08 1:13 
GeneralRe: Is this a horror? Pin
Gary R. Wheeler16-May-08 11:12
Gary R. Wheeler16-May-08 11:12 
GeneralC# confessions - Oh man I would be embarassed - if it wasn't so funny. Pin
GuyThiebaut8-May-08 3:59
professionalGuyThiebaut8-May-08 3:59 
GeneralRe: C# confessions - Oh man I would be embarassed - if it wasn't so funny. Pin
CPallini8-May-08 4:44
mveCPallini8-May-08 4:44 
GeneralRe: C# confessions - Oh man I would be embarassed - if it wasn't so funny. Pin
CDP18028-May-08 22:09
CDP18028-May-08 22:09 
GeneralRe: C# confessions - Oh man I would be embarassed - if it wasn't so funny. Pin
GuyThiebaut8-May-08 23:20
professionalGuyThiebaut8-May-08 23:20 
GeneralRe: C# confessions - Oh man I would be embarassed - if it wasn't so funny. Pin
CDP18028-May-08 23:53
CDP18028-May-08 23:53 
GeneralRe: C# confessions - Oh man I would be embarassed - if it wasn't so funny. Pin
CPallini8-May-08 23:58
mveCPallini8-May-08 23:58 
GeneralRe: C# confessions - Oh man I would be embarassed - if it wasn't so funny. Pin
CDP18029-May-08 0:08
CDP18029-May-08 0:08 
GeneralRe: C# confessions - Oh man I would be embarassed - if it wasn't so funny. Pin
CPallini9-May-08 0:12
mveCPallini9-May-08 0:12 
GeneralRe: C# confessions - Oh man I would be embarassed - if it wasn't so funny. Pin
CDP18029-May-08 0:40
CDP18029-May-08 0:40 
GeneralRe: C# confessions - Oh man I would be embarassed - if it wasn't so funny. Pin
Luca Leonardo Scorcia13-May-08 7:11
professionalLuca Leonardo Scorcia13-May-08 7:11 
GeneralRe: C# confessions - Oh man I would be embarassed - if it wasn't so funny. [modified] Pin
CDP180214-May-08 23:18
CDP180214-May-08 23:18 

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.