Announcement

Collapse
No announcement yet.

Tabs or spaces?

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

  • George L
    replied
    i think that would be my major problem.. documenting my code.. i'm pretty lazy with this kind of stuff

    Leave a comment:


  • Mark Hensler
    replied
    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!

    Leave a comment:


  • reveltaion456
    replied
    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.

    Leave a comment:


  • George L
    started a topic Tabs or spaces?

    Tabs or spaces?

    Which do you use and why?

    http://phpbuilder.com/columns/tim20010101.php3
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X