Click here to Skip to main content
15,884,388 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: Insert a quote into a @-quoted string literal Pin
Mike Dimmick18-Jun-07 13:16
Mike Dimmick18-Jun-07 13:16 
GeneralRe: Insert a quote into a @-quoted string literal Pin
PIEBALDconsult18-Jun-07 16:15
mvePIEBALDconsult18-Jun-07 16:15 
GeneralRe: Insert a quote into a @-quoted string literal Pin
Dario Solera20-Jun-07 9:55
Dario Solera20-Jun-07 9:55 
GeneralRe: Insert a quote into a @-quoted string literal Pin
Daniel Grunwald21-Jun-07 8:51
Daniel Grunwald21-Jun-07 8:51 
GeneralRe: Insert a quote into a @-quoted string literal Pin
Sylvester george19-Jun-07 23:14
Sylvester george19-Jun-07 23:14 
GeneralRe: Insert a quote into a @-quoted string literal Pin
DynV21-Jun-07 18:26
DynV21-Jun-07 18:26 
GeneralRe: Insert a quote into a @-quoted string literal Pin
Fuad Bin Omar22-Jun-07 17:15
Fuad Bin Omar22-Jun-07 17:15 
Generalat least he tried Pin
Eric Georgiades13-Jun-07 9:17
Eric Georgiades13-Jun-07 9:17 
as an assignment, i asked for a program that we've all been through, a function that returns weather or not a given number is prime.

in one case, i was given the following :

if(num== 1 || num== 2 || num== 3 || num== 5 || num== 7 || num== 11 || num== 13 || num== 17 || num== 19 || num== 23 || num== 29 || num== 31 || num== 37 || num== 41 || num== 43 || num== 47 || num== 53 || num== 59 || num== 61 || num== 67 || num== 71 || num== 73 || num== 79 || num== 83 || num== 89 || num== 97 || num== 101 || num== 103 || num== 107 || num== 109 || num== 113)
{
	return true;
}
else
{
	return false;
}


when i asked him why he stopped at 113
(since it was the only thing i thought of asking) he said, in a tired voice,
"I couldn't think of any more numbers"

do you, or do you not feel sorry for him?


me, myself and my blog
- loadx.org

ericos g.

GeneralRe: at least he tried Pin
- Pascal -13-Jun-07 9:32
- Pascal -13-Jun-07 9:32 
GeneralRe: at least he tried Pin
Eric Georgiades13-Jun-07 9:42
Eric Georgiades13-Jun-07 9:42 
GeneralRe: at least he tried Pin
Vasudevan Deepak Kumar19-Jun-07 21:03
Vasudevan Deepak Kumar19-Jun-07 21:03 
GeneralRe: at least he tried Pin
Kevin McFarlane20-Jun-07 5:04
Kevin McFarlane20-Jun-07 5:04 
GeneralRe: at least he tried Pin
Rob Grainger6-Aug-07 3:00
Rob Grainger6-Aug-07 3:00 
GeneralRe: at least he tried Pin
mav.northwind13-Jun-07 9:42
mav.northwind13-Jun-07 9:42 
GeneralRe: at least he tried Pin
Eric Georgiades13-Jun-07 9:51
Eric Georgiades13-Jun-07 9:51 
GeneralRe: at least he tried Pin
Vasudevan Deepak Kumar19-Jun-07 21:04
Vasudevan Deepak Kumar19-Jun-07 21:04 
GeneralRe: at least he tried Pin
dbrenth13-Jun-07 10:57
dbrenth13-Jun-07 10:57 
GeneralRe: at least he tried Pin
Vasudevan Deepak Kumar19-Jun-07 21:05
Vasudevan Deepak Kumar19-Jun-07 21:05 
GeneralRe: at least he tried Pin
Giorgi Dalakishvili13-Jun-07 11:01
mentorGiorgi Dalakishvili13-Jun-07 11:01 
GeneralRe: at least he tried Pin
Eric Georgiades13-Jun-07 13:17
Eric Georgiades13-Jun-07 13:17 
GeneralRe: at least he tried Pin
Vasudevan Deepak Kumar19-Jun-07 21:06
Vasudevan Deepak Kumar19-Jun-07 21:06 
GeneralRe: at least he tried Pin
Chris Meech13-Jun-07 12:12
Chris Meech13-Jun-07 12:12 
GeneralRe: at least he tried Pin
Eric Georgiades13-Jun-07 13:20
Eric Georgiades13-Jun-07 13:20 
GeneralRe: at least he tried Pin
_anil_13-Jun-07 15:16
_anil_13-Jun-07 15:16 
GeneralRe: at least he tried Pin
Eric Georgiades13-Jun-07 21:52
Eric Georgiades13-Jun-07 21:52 

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.