Announcement

Collapse
No announcement yet.

Tabs or spaces?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tabs or spaces?

    Which do you use and why?

    http://phpbuilder.com/columns/tim20010101.php3
    :: Always Back Up Forum Database + Attachments BEFORE upgrading !
    :: Nginx SPDY SSL - World Flags Demo [video results]
    :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

  • #2
    I really have no idea if I am thinking about the right thing here but here goes.

    When I modify vBulletin templates, I use spaces because whenever I press tab, it moves over to the next forum (or submit button) and I am too lazy to go through the process of converting to an editable file, etc.

    Comment


    • #3
      I agree with the author on the tab thing. I have forever used tabs, and plan to forever more use tabs.
      Code:
      I document all functions I make in this fashion:
      function Subtraction($arg1, $arg2) {
      /**
       * Function takes two integers ($arg1, $arg2) and subtracts the first from the second.
       * 
       * Function does no error trapping.
       * 
       * Function return integer
       */
          return ($arg2 - $arg1);
      }
      I recommend to anyone who calls themself a PHP programmer to read the PEAR documentation. And most importantly, document your code!

      Comment


      • #4
        i think that would be my major problem.. documenting my code.. i'm pretty lazy with this kind of stuff
        :: Always Back Up Forum Database + Attachments BEFORE upgrading !
        :: Nginx SPDY SSL - World Flags Demo [video results]
        :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X