Click here to Skip to main content
15,885,696 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.

 
JokeRe: Ever heard of casting? Pin
johannesnestler3-Mar-10 4:53
johannesnestler3-Mar-10 4:53 
GeneralRe: Ever heard of casting? Pin
johannesnestler3-Mar-10 3:48
johannesnestler3-Mar-10 3:48 
GeneralRe: Ever heard of casting? Pin
OriginalGriff3-Mar-10 4:29
mveOriginalGriff3-Mar-10 4:29 
GeneralRe: Ever heard of casting? Pin
johannesnestler3-Mar-10 4:42
johannesnestler3-Mar-10 4:42 
GeneralRe: Ever heard of casting? Pin
OriginalGriff3-Mar-10 4:51
mveOriginalGriff3-Mar-10 4:51 
GeneralRe: Ever heard of casting? Pin
johannesnestler3-Mar-10 4:55
johannesnestler3-Mar-10 4:55 
AnswerMessage Removed Pin
3-Mar-10 16:50
chevu3-Mar-10 16:50 
GeneralRe: Ever heard of casting? Pin
Luc Pattyn3-Mar-10 17:23
sitebuilderLuc Pattyn3-Mar-10 17:23 
chevu wrote:
This one is correct code


wrong again:
1. the result for pow=18 is wrong.
2. pow=5 and pow=6 give the same result???

I think you have abundantly proven now that your code has high debugging complexity.

Frown | :(
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.

GeneralRe: Ever heard of casting? Pin
chevu3-Mar-10 18:17
chevu3-Mar-10 18:17 
GeneralRe: Ever heard of casting? Pin
Stanciu Vlad3-Mar-10 23:54
Stanciu Vlad3-Mar-10 23:54 
JokeRe: Ever heard of casting? [modified] Pin
J4amieC4-Mar-10 1:19
J4amieC4-Mar-10 1:19 
GeneralMessage Removed Pin
4-Mar-10 1:35
chevu4-Mar-10 1:35 
GeneralRe: Ever heard of casting? Pin
J4amieC4-Mar-10 2:00
J4amieC4-Mar-10 2:00 
AnswerSo you want binary exponentiation? [modified] Pin
harold aptroot5-Mar-10 5:07
harold aptroot5-Mar-10 5:07 
GeneralRe: So you want binary exponentiation? Pin
Luc Pattyn5-Mar-10 5:23
sitebuilderLuc Pattyn5-Mar-10 5:23 
GeneralRe: So you want binary exponentiation? Pin
harold aptroot5-Mar-10 5:35
harold aptroot5-Mar-10 5:35 
GeneralRe: So you want binary exponentiation? Pin
Luc Pattyn5-Mar-10 5:38
sitebuilderLuc Pattyn5-Mar-10 5:38 
GeneralRe: So you want binary exponentiation? Pin
harold aptroot5-Mar-10 5:39
harold aptroot5-Mar-10 5:39 
GeneralRe: So you want binary exponentiation? [modified] Pin
Luc Pattyn5-Mar-10 5:55
sitebuilderLuc Pattyn5-Mar-10 5:55 
GeneralRe: So you want binary exponentiation? Pin
harold aptroot5-Mar-10 6:31
harold aptroot5-Mar-10 6:31 
GeneralRe: Ever heard of casting? Pin
Luc Pattyn3-Mar-10 6:04
sitebuilderLuc Pattyn3-Mar-10 6:04 
GeneralRe: Ever heard of casting? Pin
Rob Grainger16-Mar-10 3:05
Rob Grainger16-Mar-10 3:05 
GeneralRe: Ever heard of casting? Pin
Avi Berger16-Mar-10 4:38
Avi Berger16-Mar-10 4:38 
GeneralGet the length of the path (not the filename) Pin
Eric Haddan24-Feb-10 8:46
Eric Haddan24-Feb-10 8:46 
JokeRe: Get the length of the path (not the filename) Pin
PIEBALDconsult25-Feb-10 3:48
mvePIEBALDconsult25-Feb-10 3:48 

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.