Click here to Skip to main content
15,902,901 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: Someone please help me .... Pin
cpkilekofp25-Sep-08 4:00
cpkilekofp25-Sep-08 4:00 
GeneralRe: Someone please help me .... Pin
BillW3326-Sep-08 1:10
professionalBillW3326-Sep-08 1:10 
GeneralRe: Someone please help me .... Pin
dojohansen16-Sep-08 2:27
dojohansen16-Sep-08 2:27 
GeneralRe: Someone please help me .... Pin
Joe Woodbury14-Sep-08 9:41
professionalJoe Woodbury14-Sep-08 9:41 
GeneralRe: Someone please help me .... Pin
Lonny clark14-Sep-08 20:04
Lonny clark14-Sep-08 20:04 
GeneralRe: Someone please help me .... Pin
Paul Conrad15-Sep-08 11:54
professionalPaul Conrad15-Sep-08 11:54 
GeneralRe: Someone please help me .... Pin
leonej_dt18-Sep-08 21:51
leonej_dt18-Sep-08 21:51 
GeneralRe: Someone please help me .... Pin
cpkilekofp25-Sep-08 4:05
cpkilekofp25-Sep-08 4:05 
Monty2 wrote:
if(i==0)
*outcallRecvCount = 0;
else
*outcallRecvCount = i ;




Actually, I use constructs similar to this while debugging. Conditional breakpoints can be very expensive in time when one is running a source-level debugger. To avoid dying of old age while the program executes in the debugger, I'll create an if-block like this, then set an unconditional breakpoint on, say, the *outcallRevCount = 0 line; that way, the debugger runs much faster, and I get the debugger to stop when i == 0. Leaving it in production code, however, is sloppy to say the least.
GeneralYou *must* focus! Pin
to_be_defined11-Sep-08 2:13
to_be_defined11-Sep-08 2:13 
JokeRe: You *must* focus! Pin
Paul Conrad11-Sep-08 4:34
professionalPaul Conrad11-Sep-08 4:34 
JokeRe: You *must* focus! Pin
CPallini11-Sep-08 5:21
mveCPallini11-Sep-08 5:21 
GeneralRe: You *must* focus! Pin
Pete O'Hanlon11-Sep-08 11:05
mvePete O'Hanlon11-Sep-08 11:05 
JokeRe: You *must* focus! Pin
Yusuf15-Sep-08 5:27
Yusuf15-Sep-08 5:27 
GeneralRe: You *must* focus! Pin
cpkilekofp25-Sep-08 4:07
cpkilekofp25-Sep-08 4:07 
GeneralOne guidelines for C/C++ programmer Pin
asadullah ansari8-Sep-08 4:03
asadullah ansari8-Sep-08 4:03 
AnswerRe: One guidelines for C/C++ programmer Pin
leppie8-Sep-08 4:40
leppie8-Sep-08 4:40 
JokeRe: One guidelines for C/C++ programmer Pin
BadKarma8-Sep-08 4:46
BadKarma8-Sep-08 4:46 
JokeRe: One guidelines for C/C++ programmer Pin
leppie8-Sep-08 4:49
leppie8-Sep-08 4:49 
GeneralRe: One guidelines for C/C++ programmer Pin
BadKarma8-Sep-08 5:11
BadKarma8-Sep-08 5:11 
GeneralRe: One guidelines for C/C++ programmer Pin
cpkilekofp25-Sep-08 4:10
cpkilekofp25-Sep-08 4:10 
JokeRe: One guidelines for C/C++ programmer PinPopular
CPallini8-Sep-08 9:05
mveCPallini8-Sep-08 9:05 
GeneralRe: One guidelines for C/C++ programmer Pin
asadullah ansari9-Sep-08 2:58
asadullah ansari9-Sep-08 2:58 
GeneralRe: One guidelines for C/C++ programmer Pin
CPallini9-Sep-08 3:14
mveCPallini9-Sep-08 3:14 
JokeRe: One guidelines for C/C++ programmer Pin
leonej_dt18-Sep-08 21:43
leonej_dt18-Sep-08 21:43 
JokeRe: One guidelines for C/C++ programmer Pin
CPallini18-Sep-08 21:57
mveCPallini18-Sep-08 21:57 

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.