Click here to Skip to main content
15,867,141 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: That's one way to do it Pin
BruceCarson18-Aug-21 6:49
BruceCarson18-Aug-21 6:49 
GeneralRe: That's one way to do it Pin
atverweij18-Aug-21 7:25
atverweij18-Aug-21 7:25 
GeneralRe: That's one way to do it Pin
BruceCarson18-Aug-21 13:52
BruceCarson18-Aug-21 13:52 
GeneralRe: That's one way to do it Pin
atverweij19-Aug-21 2:00
atverweij19-Aug-21 2:00 
GeneralRe: That's one way to do it Pin
kapalmuks<329-Aug-21 11:58
kapalmuks<329-Aug-21 11:58 
GeneralRe: That's one way to do it Pin
kalberts18-Aug-21 14:59
kalberts18-Aug-21 14:59 
GeneralRe: That's one way to do it Pin
atverweij19-Aug-21 2:00
atverweij19-Aug-21 2:00 
GeneralRe: That's one way to do it Pin
Bernhard Hiller19-Aug-21 21:12
Bernhard Hiller19-Aug-21 21:12 
With big number (I mean really big numbers), you will run into a StackOverflowException.
What about "tail recursion"?
Big Grin | :-D
Oh sanctissimi Wilhelmus, Theodorus, et Fredericus!

GeneralRe: That's one way to do it Pin
atverweij20-Aug-21 1:32
atverweij20-Aug-21 1:32 
GeneralRe: That's one way to do it Pin
kapalmuks<329-Aug-21 11:41
kapalmuks<329-Aug-21 11:41 
GeneralRe: That's one way to do it PinPopular
MarkTJohnson18-Aug-21 3:23
professionalMarkTJohnson18-Aug-21 3:23 
GeneralRe: That's one way to do it Pin
wapiti6418-Aug-21 4:54
wapiti6418-Aug-21 4:54 
GeneralRe: That's one way to do it Pin
Daniel Pfeffer18-Aug-21 23:22
professionalDaniel Pfeffer18-Aug-21 23:22 
GeneralRe: That's one way to do it Pin
Jörgen Andersson24-Aug-21 7:53
professionalJörgen Andersson24-Aug-21 7:53 
GeneralRe: That's one way to do it Pin
kapalmuks<329-Aug-21 12:09
kapalmuks<329-Aug-21 12:09 
GeneralRe: That's one way to do it Pin
Kirk 1038982118-Aug-21 3:46
Kirk 1038982118-Aug-21 3:46 
GeneralRe: That's one way to do it Pin
John Wellbelove18-Aug-21 5:20
John Wellbelove18-Aug-21 5:20 
GeneralRe: That's one way to do it Pin
Richard Deeming18-Aug-21 6:32
mveRichard Deeming18-Aug-21 6:32 
GeneralRe: That's one way to do it Pin
Nelek19-Aug-21 0:55
protectorNelek19-Aug-21 0:55 
GeneralRe: That's one way to do it Pin
Richard Deeming19-Aug-21 0:58
mveRichard Deeming19-Aug-21 0:58 
GeneralRe: That's one way to do it Pin
kapalmuks<329-Aug-21 12:01
kapalmuks<329-Aug-21 12:01 
GeneralRe: That's one way to do it Pin
MarkTJohnson18-Aug-21 13:29
professionalMarkTJohnson18-Aug-21 13:29 
GeneralRe: That's one way to do it Pin
Richard Deeming18-Aug-21 22:08
mveRichard Deeming18-Aug-21 22:08 
GeneralRe: That's one way to do it Pin
John Wellbelove18-Aug-21 22:41
John Wellbelove18-Aug-21 22:41 
GeneralRe: That's one way to do it Pin
11917640 Member 23-Aug-21 22:46
11917640 Member 23-Aug-21 22:46 

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.