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, no registration required.

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
    

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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