Programming Basics

  Home arrow Programming Basics arrow Page 8 - Coding
PROGRAMMING BASICS

Coding
By: lig
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 9
    2006-01-17

    Table of Contents:
  • Coding
  • Thinking before Coding
  • Commenting
  • Coding Style
  • Error Reporting
  • Error Handling
  • Security
  • Reinventing the Wheel
  • Advanced
  • Conclusion

  •  
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    advertisement

    Coding - Reinventing the Wheel


    (Page 8 of 10 )

    PHP has a number of places you can look to see if what you need is already made. That can save you time and effort--even with you hacking on it to customize it to your needs. Database abstraction classes, PHP extensions, templates, content management systems and frameworks are just some of the wheels already created. Why reinvent the wheel when you don't have to?

    PEAR and PECL

    PEAR (PHP Extension and Application Repository) and PECL (PHP Extension Community Library) are PHP sanctioned repositories. PEAR is for PHP classes you include in your scripts to get added functionality. A few commonly used PEAR classes are PEAR::DB and PEAR::MailMime. PECL is for PHP extensions written in C that you build into your PHP interpreter to give you "more functions" to use in your code. PECL extensions sometimes make it into the PHP core libraries. A few commonly used PECL extensions are APC (Alternative PHP Cache) and pdflib.

    sourceforge or freshmeat

    Sourceforge.net and freshmeat.net are two repositories for open source projects. Each has thousands of projects available covering numerous categories in various states of maturity. What you want/need may already be available. The two large and commonly used projects phpMyAdmin and Gallery are available through sourceforge and freshmeat.

    Google is your friend

    And when in doubt, Google is your friend. Many projects and scripts have their own sites or are available through the many PHP developer sites and can only found if you search for them through a search engine. Tutorials, code snippets, people's personal classes, frameworks-- to name a few things-- are best found through your preferred search engine.

    More Programming Basics Articles
    More By lig

    blog comments powered by Disqus

    PROGRAMMING BASICS ARTICLES

    - Control Flow Constructs
    - More Time Manipulation with PHP
    - Validating and Manipulating Dates with PHP
    - Using the Date Constructor in PHP
    - Calendar Construction with PHP
    - PHP`s Calendar Package
    - Getting Modified Versions and Correct Dates ...
    - Combining Date Functions in PHP
    - Using PHP for Date and Time in Programming
    - More Exception Handling with PHP
    - Exception Handling in PHP
    - Error Logging and Handling Exceptions
    - Configuration Directives for Error and Excep...
    - Error and Exception Handling
    - Python Modules for Games


    © 2003-2012 by Developer Shed. All rights reserved. DS Cluster 7 - Follow our Sitemap