Click here to Skip to main content
14,366,827 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: when algorithms attack Pin
honey the codewitch16-Aug-19 12:02
memberhoney the codewitch16-Aug-19 12:02 
GeneralRe: when algorithms attack Pin
Sander Rossel16-Aug-19 12:09
professionalSander Rossel16-Aug-19 12:09 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 12:16
memberhoney the codewitch16-Aug-19 12:16 
GeneralRe: when algorithms attack Pin
Sander Rossel17-Aug-19 2:35
professionalSander Rossel17-Aug-19 2:35 
GeneralRe: when algorithms attack Pin
honey the codewitch17-Aug-19 4:16
memberhoney the codewitch17-Aug-19 4:16 
GeneralRe: when algorithms attack Pin
Sander Rossel17-Aug-19 5:08
professionalSander Rossel17-Aug-19 5:08 
GeneralRe: when algorithms attack Pin
honey the codewitch17-Aug-19 5:14
memberhoney the codewitch17-Aug-19 5:14 
GeneralRe: when algorithms attack Pin
Sander Rossel17-Aug-19 5:27
professionalSander Rossel17-Aug-19 5:27 
I'm really not sure what you mean.
You don't have a break condition, and in any case even with HandleRule and HandleRules you're looping as often as when you combine them...
The done variable is always true and doesn't get set until the most inner loop, so it's safe to declare that in those methods and set it to true by default, then set it and return it to the caller.
It is possible that done is overwritten if the loop isn't at an end yet, but that's possible in the original code too.

Usually, my logic applies to all items in a list so I rarely need a while.
My logic is usually business logic though, and very few business have while logic.
while (form.Color == Colors.Yellow)...
No, foreach (Form form in yellowForms) Big Grin | :-D
Maybe because my apps don't need those few extra milliseconds so I get to filter my yellow forms beforehand Wink | ;)

GeneralRe: when algorithms attack Pin
honey the codewitch17-Aug-19 5:30
memberhoney the codewitch17-Aug-19 5:30 
GeneralRe: when algorithms attack Pin
Sander Rossel17-Aug-19 5:32
professionalSander Rossel17-Aug-19 5:32 
GeneralRe: when algorithms attack Pin
honey the codewitch17-Aug-19 5:41
memberhoney the codewitch17-Aug-19 5:41 
GeneralRe: when algorithms attack Pin
dandy7216-Aug-19 6:06
memberdandy7216-Aug-19 6:06 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 6:08
memberhoney the codewitch16-Aug-19 6:08 
GeneralRe: when algorithms attack Pin
dandy7216-Aug-19 6:11
memberdandy7216-Aug-19 6:11 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 6:12
memberhoney the codewitch16-Aug-19 6:12 
GeneralRe: when algorithms attack Pin
dandy7216-Aug-19 6:16
memberdandy7216-Aug-19 6:16 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 6:20
memberhoney the codewitch16-Aug-19 6:20 
GeneralRe: when algorithms attack Pin
Jon McKee16-Aug-19 10:31
professionalJon McKee16-Aug-19 10:31 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 10:35
memberhoney the codewitch16-Aug-19 10:35 
GeneralRe: when algorithms attack Pin
Jon McKee16-Aug-19 11:33
professionalJon McKee16-Aug-19 11:33 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 11:35
memberhoney the codewitch16-Aug-19 11:35 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 10:39
memberhoney the codewitch16-Aug-19 10:39 
GeneralRe: when algorithms attack Pin
Jörgen Andersson16-Aug-19 6:44
protectorJörgen Andersson16-Aug-19 6:44 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 9:52
memberhoney the codewitch16-Aug-19 9:52 
GeneralRe: when algorithms attack Pin
Gary Wheeler16-Aug-19 8:09
memberGary Wheeler16-Aug-19 8:09 

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.