Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
Like Tree2Likes

Thread: How to write better PHP code

  1. #16
    New to the CF scene
    Join Date
    May 2013
    Location
    Ahmedabad
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you for sharing your experiences . I Hope Peoples make us inform about their Experiences in web developing , like you did.

  2. #17
    New Coder
    Join Date
    Apr 2013
    Posts
    38
    Thanks
    1
    Thanked 3 Times in 3 Posts

    Thumbs up Reply: How to write better PHP code



    Hello there,

    For writing better PHP Codes implement this some simple rules as follows...
    Following points you should keep in your mind while developing php website.


    1 - Commenting & Documentation
    2 - Consistent Indentation
    3 - Avoid Obvious Comments
    4 - Code Grouping
    5 - Consistent Naming Scheme
    6 - DRY Principle(DRY stands for Don’t Repeat Yourself. Also known as DIE: Duplication is Evil.)
    7 - Avoid Deep Nesting
    8 - Limit Line Length
    9 - File and Folder Organization
    10 - Consistent Temporary Names
    11 - Capitalize SQL Special Words
    12 - Separation of Code and Data
    13 - Alternate Syntax Inside Templates
    14 - Object Oriented vs. Procedural
    15 - Read Open Source Code
    16 - Code Refactoring



  3. #18
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nice post!
    Thanks for sharing this information with us i was searching for it from a long time. It helped me a lot.


 
Page 2 of 2 FirstFirst 12

LinkBacks (?)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •