Best Practices? Well, maybe.

Categories: Development, blog



I’ve had postponed this thing for too long. Everytime I opened there it is, sites with best practices still hanging around because I’m too lazy to do anything about it (I use sessionsaver, firefox add-on).

Five Ways to Improve Your Perl Programming

  • Cleaning up your code
  • Configuration
  • Logging
  • Persistence
  • Subclasses for Application

Some of the topic might be advance, but useful nonetheless. Stick to one coding style, documentation, make guidelines, one configuration (if there’s multiple config files put it in a folder and give obvious names). Something along those lines.

 

Type Safe Coding - When making a comparsion for if..else, use an identical operator (===/!==). It compares the VALUE and its TYPE.

Exceptions - Cool but dangerous 

Bad Short Open Tags - Just stick with <?php. Mark my words. Heh. 

Variable Injection, SQL Injection, and lots of other stuffs. PHP Best Practices

There’s lots more, too much for today. I’ll update it later. I hope.

Update (14 / 05 / 2007, 16:15): Damn typo. Fixed Bst to Best.

No Comments yet »

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds. Valid XHTML and CSS.