Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

I ask because I've seen a couple of OO PHP tutorials which do not adhere to this, but to me it just makes sense. It makes it easy to instantly see if a file is a class or not, if non-class files all use lowercase names.

share|improve this question

closed as primarily opinion-based by durron597, Ixrec, Snowman, MichaelT, gnat Aug 25 at 0:18

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.

1  
Related: Naming classes, methods, functions and variables –  Yannis May 27 '12 at 21:12

2 Answers 2

up vote 3 down vote accepted

This is a naming convention question and whilst it is a good meta question it seems to have been well covered with this stackoverflow question from Dec 2008:

http://stackoverflow.com/questions/332831/best-practices-for-naming-conventions

basically some languages have prescribed naming conventions e.g. Java whereas others (the majority) have evolved and are mixed to the point of Programmer's Holy Wars.

share|improve this answer
1  
To bad that link doesn't work anymore... that is why link answers are bad, even links to SO don't always stay live. –  Arian Faurtosh Nov 14 '14 at 18:30

My 2c:

If the language doesn't force any conventions, and this includes things like indentation (not just naming). Then the important thing is consistency. Consistency is far more important than the choice of a good convention.

The existing answer answers your actual question.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.