Click here to Skip to main content
15,888,329 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: Sith Interviewing Tactics Pin
ProtoBytes6-Jul-09 3:39
ProtoBytes6-Jul-09 3:39 
GeneralRe: Sith Interviewing Tactics Pin
Fatbuddha 16-Jul-09 5:56
Fatbuddha 16-Jul-09 5:56 
GeneralRe: Sith Interviewing Tactics Pin
ProtoBytes6-Jul-09 3:16
ProtoBytes6-Jul-09 3:16 
GeneralRe: Sith Interviewing Tactics Pin
Lutosław8-Jul-09 10:18
Lutosław8-Jul-09 10:18 
GeneralRe: Sith Interviewing Tactics [modified] Pin
Super Lloyd6-Jul-09 1:03
Super Lloyd6-Jul-09 1:03 
GeneralRe: Sith Interviewing Tactics Pin
Super Lloyd6-Jul-09 1:42
Super Lloyd6-Jul-09 1:42 
GeneralRe: Sith Interviewing Tactics Pin
ProtoBytes6-Jul-09 3:19
ProtoBytes6-Jul-09 3:19 
GeneralRe: Sith Interviewing Tactics Pin
Super Lloyd6-Jul-09 3:30
Super Lloyd6-Jul-09 3:30 
well, that's the thing!
if you can't write a simple recursive it's suspicious!
I hope you can, can you?
I hope your mind block was just psychological (this will perform so badly, I should not!)
I hope it's not something again recursion in general, is it?!?

The fact that recursion *might be* problematic and *might be* improved with a non recursive fashion is a completely different issue.
As a rule recursion IS NOT bad. In fact it is use very much often!

he asked you that to checked if you know and understand recursion, to check if you are really a programmer and not a bluffer.

Now if you can't write it because *insert reason here* you are a bluffer.

Next time do it.
It doesn't matter if it's a bad idea, this is not the purpose of the exercise!
However, adding some explanation on why it is bad in this case and how to improve it! Here you just gain free bonus point!

A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.

GeneralRe: Sith Interviewing Tactics Pin
ProtoBytes6-Jul-09 3:48
ProtoBytes6-Jul-09 3:48 
GeneralRe: Sith Interviewing Tactics Pin
Super Lloyd6-Jul-09 4:04
Super Lloyd6-Jul-09 4:04 
GeneralRe: Sith Interviewing Tactics Pin
ProtoBytes6-Jul-09 5:13
ProtoBytes6-Jul-09 5:13 
GeneralRe: Sith Interviewing Tactics Pin
Super Lloyd6-Jul-09 4:07
Super Lloyd6-Jul-09 4:07 
GeneralRe: Sith Interviewing Tactics Pin
ProtoBytes6-Jul-09 5:17
ProtoBytes6-Jul-09 5:17 
GeneralRe: Sith Interviewing Tactics Pin
molesworth6-Jul-09 4:14
molesworth6-Jul-09 4:14 
GeneralRe: Sith Interviewing Tactics Pin
ProtoBytes18-Jul-09 5:10
ProtoBytes18-Jul-09 5:10 
GeneralRe: Sith Interviewing Tactics Pin
Super Lloyd18-Jul-09 14:11
Super Lloyd18-Jul-09 14:11 
GeneralRe: Sith Interviewing Tactics Pin
ProtoBytes18-Jul-09 14:28
ProtoBytes18-Jul-09 14:28 
AnswerRe: Sith Interviewing Tactics Pin
ProtoBytes18-Jul-09 20:19
ProtoBytes18-Jul-09 20:19 
GeneralRe: Sith Interviewing Tactics [modified] Pin
Super Lloyd18-Jul-09 21:38
Super Lloyd18-Jul-09 21:38 
GeneralRe: Sith Interviewing Tactics Pin
Daniel Grunwald20-Jul-09 4:05
Daniel Grunwald20-Jul-09 4:05 
GeneralRe: Sith Interviewing Tactics Pin
Super Lloyd20-Jul-09 13:05
Super Lloyd20-Jul-09 13:05 
GeneralRe: Sith Interviewing Tactics Pin
Daniel Grunwald20-Jul-09 23:25
Daniel Grunwald20-Jul-09 23:25 
GeneralRe: Sith Interviewing Tactics Pin
Super Lloyd20-Jul-09 23:44
Super Lloyd20-Jul-09 23:44 
GeneralRe: Sith Interviewing Tactics Pin
Super Lloyd21-Jul-09 0:01
Super Lloyd21-Jul-09 0:01 
GeneralRe: Sith Interviewing Tactics Pin
ProtoBytes21-Jul-09 8:26
ProtoBytes21-Jul-09 8:26 

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.