Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 '15 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  
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
2  
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
    
Another example of overactive moderating diminishing the usefulness of stackoverflow. Opinion-based answers are exactly what the poster was looking for, and if you can't find them here, then where? People looking for the same answer now get shut down due to this question being closed and the other "answer" being removed. The purpose of stackoverflow is for people to answer each others questions. Moderating is starting to work against that purpose. – Tim Hardy Mar 18 at 12:29

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