Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 32
  1. #16
    Nathan's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    In a magical place
    Posts
    6,113
    Reputation
    394
    Thanks
    363
    Quote Originally Posted by Jason View Post


    You need to be put down.

    I think it looks nicer. And you're supposed to do it either this way, or
    Code:
    }
    else {

  2. #17
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    No, you do it

    Code:
    }
    else 
    {
    }
    Or when you're being lazy and have a 1-line else:
    Code:
    if (...)
    {
        //doop doop doop;
    }
    else { /* I'm ugly */ }

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I dont think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  3. #18
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Meh, and every single java nab will spam here saying that it must be
    Code:
    if() {
    ...
    }
    else {
    ...
    }
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  4. #19
    Paul's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    6,296
    Reputation
    473
    Thanks
    1,061
    My Mood
    Sleepy
    It's a question of what you like personally the most, it hasn't todo anything with what the code does.

    i do it like this:

    Code:
    if($istink == true) {
         echo $takeashower;
    } else {
         $go out;
    }
    Code:
    
    


  5. #20
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Quote Originally Posted by Bela B View Post
    It's a question of what you like personally the most, it hasn't todo anything with what the code does.

    i do it like this:

    Code:
    if($istink == true) {
         echo $takeashower;
    } else {
         $go out;
    }
    Code:
    
    
    When you are working in group, there is rules to usually follow, such as coding {...} and your way.. meh, pisses off lots of people, and lets be honest.
    It is easier to understand the fuck is happening like:

    Code:
    if()
    {
         if()
         {
               if()
               {
               }
               else
               {
               }
         }
         else
         {
         }
    }
    else
    {
    }
    And the reason is obvious because, well, everything is on the same column
    Last edited by 'Bruno; 05-11-2012 at 03:54 AM.
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  6. #21
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    I'm getting more used to seeing:

    Code:
    if (...) {
       //doop
    }
    else {
      //more doop
    }
    Although I find it really irritating to read when you start getting multi-line lambda expressions / array initialization which confuse which braces go where. And having really variable length conditions in the if is a pain in the gooch.

    Anyone who codes like
    Code:
    if (...) {
        //doop
    } else {
        //doop
    }
    In a group environment needs to be shot dead. Keep your shitty code to yourself.
    Last edited by Jason; 05-11-2012 at 05:42 AM.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I dont think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  7. The Following 3 Users Say Thank You to Jason For This Useful Post:

    'Bruno (05-11-2012),[MPGH]master131 (05-11-2012),rileyjstrickland (04-14-2013)

  8. #22
    Ravallo's Lover's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    27
    Reputation
    -27
    Thanks
    3
    Quote Originally Posted by Jason View Post
    I'm getting more used to seeing:

    Code:
    if (...) {
       //doop
    }
    else {
      //more doop
    }
    Although I find it really irritating to read when you start getting multi-line lambda expressions / array initialization which confuse which braces go where. And having really variable length conditions in the if is a pain in the gooch.

    Anyone who codes like
    Code:
    if (...) {
        //doop
    } else {
        //doop
    }
    In a group environment needs to be shot dead. Keep your shitty code to yourself.
    Code:
    if (...) {
        //doop
    } else {
        //doop
    }
    Is right according to Oracle's Coding Conventions.

  9. #23
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    WHO THE FUCK FOLLOWS ORACLE'S CODING CONVENTIONS. Jesus Christ that's like asking a retard how to code
    Last edited by Jason; 05-12-2012 at 03:02 PM.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I dont think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  10. #24
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Quote Originally Posted by Ravallo's Lover View Post
    Code:
    if (...) {
        //doop
    } else {
        //doop
    }
    Is right according to Oracle's Coding Conventions.
    And wrong for everyone who doesnt use oracle products (java, dbs)

    Now what? Microsoft is wrong? or Oracle is wrong? or the rest is wrong? shooo java fag ;x
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  11. The Following User Says Thank You to 'Bruno For This Useful Post:

    Jason (05-12-2012)

  12. #25
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Fuck Java, I'd rather shove steel rods into my cockhole than follow any coding standard laid out by Oracle. Stupid cunts bought a stupid fucking language.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I dont think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  13. #26
    Ravallo's Lover's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    27
    Reputation
    -27
    Thanks
    3
    Quote Originally Posted by Jason View Post
    Fuck Java, I'd rather shove steel rods into my cockhole than follow any coding standard laid out by Oracle. Stupid cunts bought a stupid fucking language.
    Why do you hate it so much? What's wrong with it?
    I rather like it myself.

  14. #27
    -l-crack-l-'s Avatar
    Join Date
    Apr 2012
    Gender
    male
    Location
    Maligaya Quezon City
    Posts
    76
    Reputation
    10
    Thanks
    137
    THANKS FOR GOOD TUTORIAL BUT YOU CANNOT POST HERE OUR ANY OTHER LANGUAGE JUST VISUAL BASIC ONLY......

    BUT ANYWAY GOOD JOB

  15. #28
    Trle94's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    5
    My Mood
    Amazed
    I have a question.. How to get after logging in and opening other form, to grab example email and Username from user we logged in? Example i want to make new form and say Hello $user, your email is $mail. ???

  16. #29
    .Saaw's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    0
    Reputation
    10
    Thanks
    0
    rather, only the source posting ;D

  17. #30
    DawgiiStylz's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Dawg House
    Posts
    7,811
    Reputation
    219
    Thanks
    2,896
    My Mood
    Tired
    This would be so useful for me right now..

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Taking Cross mod, texture mods and login mods O.O
    By ozkr in forum Combat Arms Mod Discussion
    Replies: 2
    Last Post: 06-04-2010, 07:06 PM
  2. My First Cards And Login By Piru
    By Piruethas in forum CrossFire Mods & Rez Modding
    Replies: 19
    Last Post: 02-28-2010, 02:21 AM
  3. How Would I Use MySql To Make A Login System In VB 2008?
    By Ragehax in forum Visual Basic Programming
    Replies: 5
    Last Post: 11-21-2009, 03:09 PM
  4. [Help] My accounts pass and login name not working (hacked)
    By ussauji in forum CrossFire Hacks & Cheats
    Replies: 4
    Last Post: 09-23-2009, 09:00 AM
  5. mpgh.net MMORPG is done and beta is 3 days away
    By braccini8 in forum General
    Replies: 62
    Last Post: 01-26-2008, 01:54 PM

Tags for this Thread