News Feed
Sections




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

Paul Jones:
Some Rules For Good Naming
April 30, 2014 @ 09:29:42

Paul Jones has a new post to his site today talking about the importance of naming when it comes to the use of different patterns in development. He also makes some recommendations to help clear up some of the confusion around different names for the same things.

[Thoughts in a] Grumpy Programmer mailing-list essay got me thinking. [...] I completely agree with the emphasis on using a common vocabulary. One issue here is that naming things properly is very, very hard. It is one of the only two hard problems in programming. Are there any rules (even rules-of-thumb) that can we use to make it easier to pick good names for the classes and concepts in our projects?

He reminds readers that code is no place for a "novel context", that is that it's not meant to be instructions for humans, but instructions for computers. He points out that patterns are more about behavior than the name you give them and that picking a name that's "close enough" isn't a good idea. He also recommends that you avoid picking a name for a special context the code might be involved in.

0 comments voice your opinion now!
naming rules opinion designpattern behavior context

Link: http://paul-m-jones.com/archives/5952

blog comments powered by Disqus

Similar Posts

Tobias Schlitt's Blog: iRefuseToUse aNamingScheme

Till Klampaeckel's Blog: Contributing to PEAR: Taking over packages

Volker Dusch's Blog: The UNIT in unit testing

Stas Malyshev's Blog: Shortcuts

Michael Babker's Blog: The Death of Joomla! - Negative Attitudes & Closed Minded Leadership


Community Events

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


framework laravel configure symfony2 conference interview opinion release performance introduction podcast series php7 part2 community voicesoftheelephpant api example library application

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