News for hackers. Stuff that matters.
Re:Don’t use IDs in CSS selectors? (2011) by mistercow on Wednesday November 19, 2014 @12:11PM (#8631190)
> The term "best practices" really just means "this worked for us in our situation"

I strongly disagree. Obviously there are always exceptional circumstances, but if something is really a best practice, that means "if you decide not to do it this way, you should have a good reason for that decision".

Now I would agree that people are too quick to call something a "best practice", when really it's just their personal preference (e.g. "always use semicolons in JS", or "never use semicolons in JS").

Re:Don’t use IDs in CSS selectors? (2011) by moron4hire on Wednesday November 19, 2014 @12:16PM (#8631234)
Well, that's really what I mean. Too many people call their personal habits "best practices", to the point that I just can't be bothered to listen to what the general population of programmers has to say about how I do my own job.
Re:Don’t use IDs in CSS selectors? (2011) by kazinator on Wednesday November 19, 2014 @12:27PM (#8631296)
Exactly. If you are going to call something "best practice" then first you need to put it in a formal document, and second, that document should be signed off by a wide panel of experts from a broad cross-section of the relevant industry.

The coding style guide put out by your 12 member startup isn't "best practice" for everyone. It's just best practice for continuing to work there.