Click here to Skip to main content
15,914,642 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
Sander Rossel16-Aug-19 5:24
professionalSander Rossel16-Aug-19 5:24 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 8:55
mvahoney the codewitch16-Aug-19 8:55 
GeneralRe: when algorithms attack Pin
Sander Rossel16-Aug-19 5:25
professionalSander Rossel16-Aug-19 5:25 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 5:28
mvahoney the codewitch16-Aug-19 5:28 
GeneralRe: when algorithms attack Pin
Sander Rossel16-Aug-19 5:30
professionalSander Rossel16-Aug-19 5:30 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 5:31
mvahoney the codewitch16-Aug-19 5:31 
GeneralRe: when algorithms attack Pin
Sander Rossel16-Aug-19 5:37
professionalSander Rossel16-Aug-19 5:37 
GeneralRe: when algorithms attack Pin
Jon McKee16-Aug-19 9:27
professionalJon McKee16-Aug-19 9:27 
Sander Rossel wrote:
lack of braces and leading underscores

At least they still use braces on loops.
C#
for(int ic=Count,i=0;i<ic;++i)
{
    foreach(var kvp in this[i])
    {
        if (!nts.Contains(kvp.Value.Left))
            nts.Add(kvp.Value.Left);
    }
}
Personally I do this:
C#
for(int ic=Count,i=0;i<ic;++i)
    foreach(var kvp in this[i])
        if (!nts.Contains(kvp.Value.Left))
            nts.Add(kvp.Value.Left);
Now tremble before me Mad | :mad:

Really though, I only do it to force a mindfulness of what you're doing if you modify it. Adding braces effectively changes what the statement is saying. Braces: for(x) do zero or more statements; no braces: for(x) do exactly one statement.
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 9:32
mvahoney the codewitch16-Aug-19 9:32 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 9:34
mvahoney the codewitch16-Aug-19 9:34 
GeneralRe: when algorithms attack Pin
Sander Rossel16-Aug-19 9:52
professionalSander Rossel16-Aug-19 9:52 
GeneralRe: when algorithms attack Pin
Jon McKee16-Aug-19 10:29
professionalJon McKee16-Aug-19 10:29 
GeneralRe: when algorithms attack Pin
Sander Rossel16-Aug-19 10:52
professionalSander Rossel16-Aug-19 10:52 
GeneralRe: when algorithms attack Pin
Jon McKee17-Aug-19 10:19
professionalJon McKee17-Aug-19 10:19 
GeneralRe: when algorithms attack Pin
Sander Rossel17-Aug-19 10:34
professionalSander Rossel17-Aug-19 10:34 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 10:30
mvahoney the codewitch16-Aug-19 10:30 
GeneralRe: when algorithms attack Pin
Sander Rossel16-Aug-19 10:59
professionalSander Rossel16-Aug-19 10:59 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 11:02
mvahoney the codewitch16-Aug-19 11:02 
GeneralRe: when algorithms attack Pin
Sander Rossel16-Aug-19 11:09
professionalSander Rossel16-Aug-19 11:09 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 11:16
mvahoney the codewitch16-Aug-19 11:16 
GeneralRe: when algorithms attack Pin
Sander Rossel17-Aug-19 1:35
professionalSander Rossel17-Aug-19 1:35 
GeneralRe: when algorithms attack Pin
honey the codewitch17-Aug-19 3:16
mvahoney the codewitch17-Aug-19 3:16 
GeneralRe: when algorithms attack Pin
Sander Rossel17-Aug-19 4:08
professionalSander Rossel17-Aug-19 4:08 
GeneralRe: when algorithms attack Pin
honey the codewitch17-Aug-19 4:14
mvahoney the codewitch17-Aug-19 4:14 
GeneralRe: when algorithms attack Pin
Sander Rossel17-Aug-19 4:27
professionalSander Rossel17-Aug-19 4:27 

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.