News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NetTuts.com:
20 All Too Common Coding Pitfalls For Beginners
November 12, 2012 @ 14:52:59

On NetTuts.com there's a great list of tips and things to keep in mind if you're a budding programmer - a set of common pitfalls to watch out for as you hone your skills.

Regardless of our current skill level, we all were beginners at one point in time. Making classic beginner mistakes comes with the territory. Today, we've asked a variety of Nettuts+ staff authors to chime in with their list of pitfalls and solutions - in a variety of languages. Learn from our mistakes; don't do these things!

The article starts off with some Javascript tips, but quickly gets into some more PHP specific things like:

  • Use Ternary When Appropriate
  • Use Guard Clauses
  • Keep Methods Maintainable
  • Avoid Deep Nesting
  • Don't Overuse Variables

There's also two "extras" thrown in more concerning general programming practices - using methods to represent actions and some basic code readability suggestions.

0 comments voice your opinion now!
common issue beginner developer javascript general


blog comments powered by Disqus

Similar Posts

Hasin Hayder's Blog: Getting comfy with PhpStorm - one of the best IDEs so far!

Job Posting: Capital Markets Placement (Recuriter) Seeks Senior LAMP Developer (San Francisco, CA)

Ed Finkler's Blog: The PHP App Insecurity Top 20

Kristian Kohntopp's Blog: Annotations to "Five Common PHP database problems"

International PHP Magazine: Poll Question: The Biggest Advantage of PHP 5 is?


Community Events





Don't see your event here?
Let us know!


opinion podcast api symfony voicesoftheelephpant framework language unittest interview deployment laravel community library zendserver release introduction series install bugfix package

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework