PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

NETTUTS.com: 9 Confusing Naming Conventions for Beginners

Note: This article was originally published at PHPDeveloper on 26 October 2010.
PHPDeveloper

On NETTUTS.com there's a new article that list nine different conventions that developers (PHP, Javascript, general web) could get confused about when they are just starting out.

Especially when first getting started with various web development languages, it can prove to be a difficult task to learn all of the various naming conventions from language to language. This can be even more confusing when developers disagree on what's considered best practice. To help ease the transition for beginners, this list will describe some of the more common conventions.

Some of the conventions that they mention that are more specific to PHP developers are underscores before property names, uppercase constants, capitalized first letters in variables and alternative syntax (like ternary).