Click here to Skip to main content
16,005,236 members
Home / Discussions / C#
   

C#

 
AnswerRe: switch between ip's of a server at a priod of time automatically? Pin
Mycroft Holmes16-Nov-08 15:35
professionalMycroft Holmes16-Nov-08 15:35 
QuestionSwitch Behavior in C# Pin
Veldrain15-Nov-08 20:46
Veldrain15-Nov-08 20:46 
AnswerRe: Switch Behavior in C# Pin
Wendelius15-Nov-08 23:51
mentorWendelius15-Nov-08 23:51 
GeneralRe: Switch Behavior in C# Pin
Veldrain16-Nov-08 8:41
Veldrain16-Nov-08 8:41 
AnswerRe: Switch Behavior in C# Pin
Dave Kreskowiak16-Nov-08 5:00
mveDave Kreskowiak16-Nov-08 5:00 
GeneralRe: Switch Behavior in C# Pin
Mark Churchill16-Nov-08 12:59
Mark Churchill16-Nov-08 12:59 
GeneralRe: Switch Behavior in C# Pin
Mycroft Holmes16-Nov-08 15:39
professionalMycroft Holmes16-Nov-08 15:39 
GeneralRe: Switch Behavior in C# Pin
Mark Churchill16-Nov-08 16:01
Mark Churchill16-Nov-08 16:01 
"Please don't fall into the trap of believing that I am terribly dogmatical about [the go to statement]. I have the uncomfortable feeling that others are making a religion out of it, as if the conceptual problems of programming could be solved by a single trick, by a simple form of coding discipline!"
- Dijkstra.

With modern language complexity the triviality of examining programming state which uses the goto statement is overwhelmed by the more advanced concepts that we commonly use (eg: variable binding issues in closures). Just adding iterators and anonymous delegates means I see serious bugs based on this on a weekly basis.

Can you immediately pick the output of this trivial example?
for(int i = 0; i<10; i++)
    ThreadPool.QueueUserWorkItem(delegate { Console.WriteLine(i); });

I'd say that 95% of devs will get that wrong. Its a lot more insiduous than a goto (which I don't think I've ever seen anyone bugger up since BASIC days. Its not like we have setjmp/longjmps to really drive people nuts in C# Wink | ;)


GeneralRe: Switch Behavior in C# Pin
Mycroft Holmes16-Nov-08 17:19
professionalMycroft Holmes16-Nov-08 17:19 
GeneralRe: Switch Behavior in C# Pin
Mark Churchill16-Nov-08 17:32
Mark Churchill16-Nov-08 17:32 
Questioncomparing two datasets Pin
Melanie Booysen15-Nov-08 19:48
Melanie Booysen15-Nov-08 19:48 
AnswerRe: comparing two datasets Pin
Dave Kreskowiak16-Nov-08 4:58
mveDave Kreskowiak16-Nov-08 4:58 
QuestionTrusted & Digitially signed Files Pin
123pips15-Nov-08 10:00
123pips15-Nov-08 10:00 
QuestionTheadPool hanhs in release Pin
baranils15-Nov-08 6:33
baranils15-Nov-08 6:33 
Questiona password riddle Pin
nelsonpaixao15-Nov-08 5:54
nelsonpaixao15-Nov-08 5:54 
RantRe: a password riddle Pin
Vimalsoft(Pty) Ltd15-Nov-08 5:59
professionalVimalsoft(Pty) Ltd15-Nov-08 5:59 
GeneralRe: a password riddle Pin
Paul Conrad15-Nov-08 6:00
professionalPaul Conrad15-Nov-08 6:00 
GeneralRe: a password riddle Pin
Pete O'Hanlon15-Nov-08 11:07
mvePete O'Hanlon15-Nov-08 11:07 
AnswerRe: a password riddle Pin
Paul Conrad15-Nov-08 5:59
professionalPaul Conrad15-Nov-08 5:59 
GeneralRe: a password riddle Pin
Guffa15-Nov-08 14:13
Guffa15-Nov-08 14:13 
GeneralRe: a password riddle Pin
nelsonpaixao16-Nov-08 13:09
nelsonpaixao16-Nov-08 13:09 
GeneralRe: a password riddle Pin
Russell Jones17-Nov-08 0:32
Russell Jones17-Nov-08 0:32 
Questionc# Reflection Pin
koleraba15-Nov-08 5:19
koleraba15-Nov-08 5:19 
AnswerRe: c# Reflection Pin
S. Senthil Kumar15-Nov-08 19:19
S. Senthil Kumar15-Nov-08 19:19 
QuestionChat or IRC Pin
duta15-Nov-08 2:01
duta15-Nov-08 2:01 

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.