Click here to Skip to main content
14,667,328 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: I love my back-garden... Pin
RickZeeland20-Sep-20 22:16
mveRickZeeland20-Sep-20 22:16 
GeneralRe: I love my back-garden... Pin
Kornfeld Eliyahu Peter20-Sep-20 23:52
mveKornfeld Eliyahu Peter20-Sep-20 23:52 
GeneralRe: I love my back-garden... Pin
Mike Hankey21-Sep-20 3:30
professionalMike Hankey21-Sep-20 3:30 
GeneralRe: I love my back-garden... Pin
Kornfeld Eliyahu Peter21-Sep-20 3:40
mveKornfeld Eliyahu Peter21-Sep-20 3:40 
GeneralRe: I love my back-garden... Pin
Nelek21-Sep-20 8:09
protectorNelek21-Sep-20 8:09 
GeneralRe: I love my back-garden... Pin
Mycroft Holmes21-Sep-20 12:25
professionalMycroft Holmes21-Sep-20 12:25 
Generalwhile(true) is not fun Pin
BillWoodruff20-Sep-20 6:16
mveBillWoodruff20-Sep-20 6:16 
GeneralRe: while(true) is not fun Pin
honey the codewitch20-Sep-20 6:23
mvahoney the codewitch20-Sep-20 6:23 
Microsoft's CodeDOM renderer for C# spits out loops like that. I've also seen Microsoft code that does it this way in the reference source for the .NET BCL.

As far as the while, I prefer:

var done = false;

while(!done) {
   // do work
}


But every C# dev should know how to write while(true) { }
Real programmers use butterflies

GeneralRe: while(true) is not fun Pin
TheGreatAndPowerfulOz20-Sep-20 6:25
MemberTheGreatAndPowerfulOz20-Sep-20 6:25 
GeneralRe: while(true) is not fun Pin
Greg Utas20-Sep-20 6:34
professionalGreg Utas20-Sep-20 6:34 
GeneralRe: while(true) is not fun Pin
honey the codewitch20-Sep-20 6:37
mvahoney the codewitch20-Sep-20 6:37 
GeneralRe: while(true) is not fun Pin
Nelek20-Sep-20 7:40
protectorNelek20-Sep-20 7:40 
GeneralRe: while(true) is not fun Pin
trønderen21-Sep-20 2:53
Membertrønderen21-Sep-20 2:53 
GeneralRe: while(true) is not fun Pin
Eddy Vluggen20-Sep-20 16:34
professionalEddy Vluggen20-Sep-20 16:34 
GeneralRe: while(true) is not fun Pin
honey the codewitch20-Sep-20 17:01
mvahoney the codewitch20-Sep-20 17:01 
GeneralRe: while(true) is not fun Pin
Dan Neely21-Sep-20 2:46
MemberDan Neely21-Sep-20 2:46 
GeneralRe: while(true) is not fun Pin
Rusty Bullet21-Sep-20 3:13
MemberRusty Bullet21-Sep-20 3:13 
GeneralRe: while(true) is not fun Pin
TheGreatAndPowerfulOz20-Sep-20 6:24
MemberTheGreatAndPowerfulOz20-Sep-20 6:24 
GeneralRe: while(true) is not fun Pin
Greg Utas20-Sep-20 6:30
professionalGreg Utas20-Sep-20 6:30 
GeneralRe: while(true) is not fun Pin
honey the codewitch20-Sep-20 6:35
mvahoney the codewitch20-Sep-20 6:35 
GeneralRe: while(true) is not fun Pin
F-ES Sitecore20-Sep-20 7:09
mveF-ES Sitecore20-Sep-20 7:09 
GeneralRe: while(true) is not fun Pin
Nelek20-Sep-20 7:41
protectorNelek20-Sep-20 7:41 
GeneralRe: while(true) is not fun Pin
David O'Neil20-Sep-20 7:28
professionalDavid O'Neil20-Sep-20 7:28 
GeneralRe: while(true) is not fun Pin
Nelek20-Sep-20 7:43
protectorNelek20-Sep-20 7:43 
GeneralRe: while(true) is not fun Pin
BillWoodruff20-Sep-20 10:20
mveBillWoodruff20-Sep-20 10:20 

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.