Click here to Skip to main content
15,915,172 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: Just wondering Pin
Sander Rossel26-Aug-15 1:17
professionalSander Rossel26-Aug-15 1:17 
GeneralRe: Just wondering Pin
Duncan Edwards Jones26-Aug-15 1:21
professionalDuncan Edwards Jones26-Aug-15 1:21 
GeneralRe: Just wondering Pin
Mike Hankey26-Aug-15 1:38
mveMike Hankey26-Aug-15 1:38 
GeneralRe: Just wondering Pin
Marc Clifton26-Aug-15 1:32
mvaMarc Clifton26-Aug-15 1:32 
GeneralRe: Just wondering Pin
Mike Hankey26-Aug-15 1:35
mveMike Hankey26-Aug-15 1:35 
GeneralRe: Just wondering Pin
Tim Carmichael26-Aug-15 2:26
Tim Carmichael26-Aug-15 2:26 
GeneralRe: Just wondering Pin
Gary Wheeler26-Aug-15 2:47
Gary Wheeler26-Aug-15 2:47 
GeneralNever knew I was so OCD about code Pin
F-ES Sitecore26-Aug-15 0:56
professionalF-ES Sitecore26-Aug-15 0:56 
Write some code

C#
public void SomeMethod()
{
    // do some things
    Method1();
    bool valid = Method2();

    if (valid)
    {
        Method3();
        Method4();

        // valid responses require us to do this
        Method5();
        Method6();
    }
    else
    {
        // response was not valid so do these things
        Method7();
        List<string> values = Method8();

        foreach(string value in values)
        {
            Method8(value);
        }
    }
}


It's been a good day Smile | :)

Derp: Hey, I need to add logic to your code, can I do some refactoring?
Me: Sure Derp, just check it in when you're done
Derp: *taps away* *checks in*

C#
public void SomeMethod()
{


                  // do some things

    Method1();
    bool valid = Method2();
    if (valid)
    {
        Method3();
        Method4();
        // valid responses require us to do this
                  Method5();
        Method6();
    }

    else
    {


        // response was not valid so do these things


    Method7();
        List<string> values = Method8();
    foreach (string value in values)
    {
        Method8(value);
        if(something) Method9();
    }
    }
}


Me: Hmmm | :| OMG | :OMG: Mad | :mad: Mad | :mad: Mad | :mad: Mad | :mad:
GeneralRe: Never knew I was so OCD about code Pin
HobbyProggy26-Aug-15 1:00
professionalHobbyProggy26-Aug-15 1:00 
GeneralRe: Never knew I was so OCD about code PinPopular
OriginalGriff26-Aug-15 1:05
mveOriginalGriff26-Aug-15 1:05 
GeneralRe: Never knew I was so OCD about code Pin
Ian Shlasko26-Aug-15 3:20
Ian Shlasko26-Aug-15 3:20 
GeneralRe: Never knew I was so OCD about code Pin
Mycroft Holmes26-Aug-15 13:07
professionalMycroft Holmes26-Aug-15 13:07 
GeneralRe: Never knew I was so OCD about code PinPopular
Sander Rossel26-Aug-15 1:16
professionalSander Rossel26-Aug-15 1:16 
GeneralRe: Never knew I was so OCD about code Pin
Johnny J.26-Aug-15 1:17
professionalJohnny J.26-Aug-15 1:17 
GeneralCCC OTD (Clue 2 added) Pin
Duncan Edwards Jones25-Aug-15 23:04
professionalDuncan Edwards Jones25-Aug-15 23:04 
GeneralRe: CCC OTD Pin
chriselst25-Aug-15 23:05
professionalchriselst25-Aug-15 23:05 
GeneralRe: CCC OTD Pin
Duncan Edwards Jones25-Aug-15 23:07
professionalDuncan Edwards Jones25-Aug-15 23:07 
GeneralRe: CCC OTD Pin
chriselst25-Aug-15 23:28
professionalchriselst25-Aug-15 23:28 
GeneralRe: CCC OTD Pin
Duncan Edwards Jones25-Aug-15 23:54
professionalDuncan Edwards Jones25-Aug-15 23:54 
GeneralRe: CCC OTD Pin
chriselst25-Aug-15 23:55
professionalchriselst25-Aug-15 23:55 
GeneralRe: CCC OTD Pin
Agent__00725-Aug-15 23:34
professionalAgent__00725-Aug-15 23:34 
GeneralRe: CCC OTD Pin
Duncan Edwards Jones25-Aug-15 23:44
professionalDuncan Edwards Jones25-Aug-15 23:44 
GeneralRe: CCC OTD Pin
Agent__00726-Aug-15 1:20
professionalAgent__00726-Aug-15 1:20 
GeneralRe: CCC OTD Pin
Duncan Edwards Jones26-Aug-15 1:22
professionalDuncan Edwards Jones26-Aug-15 1:22 
GeneralRe: CCC OTD Pin
chriselst26-Aug-15 1:23
professionalchriselst26-Aug-15 1:23 

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.