Click here to Skip to main content
15,909,530 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: Thats why i hate c++ Pin
CDP180225-Apr-12 20:49
CDP180225-Apr-12 20:49 
GeneralRe: Thats why i hate c++ Pin
harold aptroot26-Apr-12 9:02
harold aptroot26-Apr-12 9:02 
GeneralRe: Thats why i hate c++ Pin
Stefan_Lang27-Apr-12 4:34
Stefan_Lang27-Apr-12 4:34 
GeneralRe: Thats why i hate c++ Pin
Stephen Dycus27-Apr-12 5:55
professionalStephen Dycus27-Apr-12 5:55 
GeneralRe: Thats why i hate c++ Pin
CDP180227-Apr-12 8:42
CDP180227-Apr-12 8:42 
GeneralRe: Thats why i hate c++ Pin
Alan Balkany27-Apr-12 4:44
Alan Balkany27-Apr-12 4:44 
GeneralRe: Thats why i hate c++ Pin
CDP180227-Apr-12 8:56
CDP180227-Apr-12 8:56 
GeneralRe: Thats why i hate c++ Pin
Alan Balkany27-Apr-12 9:08
Alan Balkany27-Apr-12 9:08 
1. C# gives better error messages. C++'s error messages are more often cryptic.
2. C# catches more errors at compile time than C++. At this point the error is clearer.
3. C#'s managed code has more context information (which may account for the better error messages.)
4. C#'s run-time checks give you an explicit error, as opposed to C++ where the reported error location (if a location is even given) is far from where the error occurred.
5. C#s code is more stable for reason 4; a C++ error (e.g. exceeding array bounds) may exist for years before it produces a crash or wrong results.

A better framework COULD be designed for C++; my comments were on the existing implementations.
"Microsoft -- Adding unnecessary complexity to your work since 1987!"

GeneralRe: Thats why i hate c++ Pin
CDP180227-Apr-12 10:23
CDP180227-Apr-12 10:23 
GeneralRe: Thats why i hate c++ Pin
Stephen Dycus27-Apr-12 10:56
professionalStephen Dycus27-Apr-12 10:56 
GeneralRe: Thats why i hate c++ Pin
Rob Grainger26-Apr-12 23:20
Rob Grainger26-Apr-12 23:20 
GeneralRe: Thats why i hate c++ Pin
krsmichael27-Apr-12 4:00
krsmichael27-Apr-12 4:00 
GeneralRe: Thats why i hate c++ Pin
Vasily Tserekh27-Apr-12 5:14
Vasily Tserekh27-Apr-12 5:14 
GeneralRe: Thats why i hate c++ Pin
krsmichael27-Apr-12 3:53
krsmichael27-Apr-12 3:53 
GeneralRe: Thats why i hate c++ Pin
Vasily Tserekh27-Apr-12 5:30
Vasily Tserekh27-Apr-12 5:30 
GeneralRe: Thats why i hate c++ Pin
krsmichael27-Apr-12 6:46
krsmichael27-Apr-12 6:46 
GeneralRe: Thats why i hate c++ Pin
krsmichael27-Apr-12 6:50
krsmichael27-Apr-12 6:50 
GeneralRe: Thats why i hate c++ Pin
Vasily Tserekh27-Apr-12 7:33
Vasily Tserekh27-Apr-12 7:33 
GeneralRe: Thats why i hate c++ Pin
CDP180227-Apr-12 8:19
CDP180227-Apr-12 8:19 
GeneralRe: Thats why i hate c++ Pin
krsmichael27-Apr-12 10:07
krsmichael27-Apr-12 10:07 
GeneralRe: Thats why i hate c++ Pin
Gerry Schmitz27-Apr-12 12:02
mveGerry Schmitz27-Apr-12 12:02 
GeneralRe: Thats why i hate c++ Pin
krsmichael27-Apr-12 14:34
krsmichael27-Apr-12 14:34 
GeneralRe: Thats why i hate c++ Pin
CDP180227-Apr-12 7:32
CDP180227-Apr-12 7:32 
GeneralRe: Thats why i hate c++ Pin
Vasily Tserekh27-Apr-12 7:51
Vasily Tserekh27-Apr-12 7:51 
GeneralRe: Thats why i hate c++ Pin
CDP180227-Apr-12 8:36
CDP180227-Apr-12 8:36 

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.