1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

What's your programming style???

Discussion in 'Programming & Webmastering' started by MrSeanKon, Jun 14, 2007.

  1. MrSeanKon

    MrSeanKon New Member

    Joined:
    Nov 14, 2006
    Messages:
    267 (0.09/day)
    Thanks Received:
    69
    Location:
    Athens in love with Anna :)
    Post statements to clarify:

    Code:
    j=5;
    k=4;
    for (i=1; i<=10; i++)
    {
          j++;
          k=i+j;
    }
    
     
  2. d44ve New Member

    Joined:
    Apr 16, 2007
    Messages:
    2,521 (0.93/day)
    Thanks Received:
    309
    I usually am in shorts and a t-shirt, but it all depends..... sometimes just my boxers.


    Sorry, lame joke :)
     
  3. bruins004 New Member

    Joined:
    Sep 27, 2005
    Messages:
    2,480 (0.76/day)
    Thanks Received:
    75
    Umm that really doesnt look like a style to me.
    Just a simple For Loop.

    Unless you mean your organization style.
    Then mine is very similar to yours.

    For (int i = 0; i <= 100; i++)
    {
    if (i = 0) Then
    int k = i;
    else
    int k = 100;
    }

    I like to have my code organized and comments are a must; otherwise it is hard to debug and know exactly what is going on (esp. when you only do 1 or a few modules).


    Damn you are lucky. I am in dress clothes doing this stuff (well now its Crystal Reports - which has a crappy Basic backend that is half assed).
     
  4. d44ve New Member

    Joined:
    Apr 16, 2007
    Messages:
    2,521 (0.93/day)
    Thanks Received:
    309
    I hate Crystal Reports =\
     
  5. bruins004 New Member

    Joined:
    Sep 27, 2005
    Messages:
    2,480 (0.76/day)
    Thanks Received:
    75
    Agreed.
    I dislike it for many reasons, but my biggest problem with it is how it links multiple stored procedures (known as Commands). The left and right joins dont work the way they should (lol).

    Also, when you write back end logic, your very limited to what you could do.
    I am suprised that you could use a switch statement, but I miss my for each loop :(
     
  6. TheMasterOfSinanju

    TheMasterOfSinanju New Member

    Joined:
    Jun 18, 2007
    Messages:
    28 (0.01/day)
    Thanks Received:
    11
    Location:
    A discrete point in the space-time continuum!
  7. Dippyskoodlez New Member

    Joined:
    Jul 1, 2005
    Messages:
    5,061 (1.50/day)
    Thanks Received:
    230
    Location:
    Ohio
    Code:
    <html>
    <head>
    <title>meh.</title>
    </head>
    <body>
    <p>BLAH</p>
    </body>
    </html>
    Thats usually as far as I get in notebad before I get bored from lack of content to actually build a web page around. :banghead:


    You'd love my VB code though.

    I made like a 65 line if then statement. It was cool.
     
  8. MrSeanKon

    MrSeanKon New Member

    Joined:
    Nov 14, 2006
    Messages:
    267 (0.09/day)
    Thanks Received:
    69
    Location:
    Athens in love with Anna :)
    Let me be more specific.
    Instead of
    Code:
    for (i=1; i<=50; i++)
    {
        statements
    }
    
    some programmers prefer this:

    Code:
    for (i=1; i<=50; i++){
    
        statements
    }
    
    or this one:

    Code:
    for (i=1; i<=50; i++)
        {
              statements
         }
    
     

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page