Click here to Skip to main content
15,892,222 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: Bonus points to anyone that can figure this one out. Pin
PIEBALDconsult8-Jun-08 9:22
mvePIEBALDconsult8-Jun-08 9:22 
GeneralRe: Bonus points to anyone that can figure this one out. Pin
Andy Brummer8-Jun-08 9:36
sitebuilderAndy Brummer8-Jun-08 9:36 
GeneralRe: Bonus points to anyone that can figure this one out. Pin
Graeme_Grant8-Jun-08 12:36
mvaGraeme_Grant8-Jun-08 12:36 
GeneralRe: Bonus points to anyone that can figure this one out. Pin
Andy Brummer8-Jun-08 18:38
sitebuilderAndy Brummer8-Jun-08 18:38 
GeneralRe: Bonus points to anyone that can figure this one out. Pin
Graeme_Grant9-Jun-08 0:12
mvaGraeme_Grant9-Jun-08 0:12 
GeneralRe: Bonus points to anyone that can figure this one out. Pin
Andy Brummer9-Jun-08 3:58
sitebuilderAndy Brummer9-Jun-08 3:58 
RantRe: Bonus points to anyone that can figure this one out. Pin
bigbrownbeaver15-Jul-08 5:54
bigbrownbeaver15-Jul-08 5:54 
GeneralRe: Bonus points to anyone that can figure this one out. Pin
Andy Brummer15-Jul-08 6:00
sitebuilderAndy Brummer15-Jul-08 6:00 
so,
for(int i=0; i<source.length;>   {
    result[i] = source[i];
    source[i].~object();
    result[i].~object();
}
return result;


Makes sense to you?


I can imagine the sinking feeling one would have after ordering my book,
only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon



GeneralSort by the first 3 characters Pin
leppie8-Jun-08 2:43
leppie8-Jun-08 2:43 
GeneralRe: Sort by the first 3 characters Pin
Zani Jnior8-Jun-08 2:52
Zani Jnior8-Jun-08 2:52 
GeneralRe: Sort by the first 3 characters [modified] Pin
PIEBALDconsult8-Jun-08 5:08
mvePIEBALDconsult8-Jun-08 5:08 
GeneralRe: Sort by the first 3 characters Pin
leppie8-Jun-08 5:32
leppie8-Jun-08 5:32 
GeneralRe: Sort by the first 3 characters Pin
leppie8-Jun-08 5:37
leppie8-Jun-08 5:37 
JokeRe: Sort by the first 3 characters Pin
KarstenK10-Jun-08 1:07
mveKarstenK10-Jun-08 1:07 
GeneralRe: Sort by the first 3 characters Pin
Pete O'Hanlon8-Jun-08 9:36
mvePete O'Hanlon8-Jun-08 9:36 
GeneralRe: Sort by the first 3 characters Pin
PIEBALDconsult8-Jun-08 17:14
mvePIEBALDconsult8-Jun-08 17:14 
GeneralThis really happened Pin
Zani Jnior8-Jun-08 2:08
Zani Jnior8-Jun-08 2:08 
GeneralRe: This really happened Pin
leppie8-Jun-08 2:36
leppie8-Jun-08 2:36 
GeneralRe: This really happened Pin
Zani Jnior8-Jun-08 2:42
Zani Jnior8-Jun-08 2:42 
GeneralRe: This really happened Pin
leppie8-Jun-08 2:45
leppie8-Jun-08 2:45 
GeneralRe: This really happened Pin
Rick York9-Jun-08 21:19
mveRick York9-Jun-08 21:19 
GeneralRe: This really happened Pin
Megidolaon18-Jun-08 3:52
Megidolaon18-Jun-08 3:52 
GeneralRe: This really happened Pin
Paul Conrad2-Jul-08 19:55
professionalPaul Conrad2-Jul-08 19:55 
GeneralDateTime truncation Pin
PIEBALDconsult5-Jun-08 18:28
mvePIEBALDconsult5-Jun-08 18:28 
GeneralRe: DateTime truncation Pin
Mladen Janković6-Jun-08 2:23
Mladen Janković6-Jun-08 2:23 

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.