What is the difference between .yaml and .yml extension? [duplicate]

This question already has answers here: Is it .yaml or .yml? (4 answers) Closed 3 years ago. I read them on YAML-wikipedia but not really understood the main difference between them. I saw there are someone using .yaml extension, however, Symfony2 use .yml extension. YAML is a human-readable data serialization format that takes concepts from … Read more

Why are dashes preferred for CSS selectors / HTML attributes?

In the past I’ve always used underscores for defining class and id attributes in HTML. Over the last few years I changed over to dashes, mostly to align myself with the trend in the community, not necessarily because it made sense to me. I’ve always thought dashes have more drawbacks, and I don’t see the … Read more

What’s the best name for a non-mutating “add” method on an immutable collection? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Closed last month. Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. Sorry for the waffly title – if I could come up with a concise title, … Read more

Should you use .htm or .html file extension? What is the difference, and which file is correct? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 7 years ago. Improve this question What is the difference between the .htm and .html file extension? Why there are two of … Read more

What are naming conventions for MongoDB?

Is there a set of preferred naming conventions for MongoDB entitites such as databases, collections, field names? I was thinking along these lines: Databases: consist of the purpose (word in singular) and end with “db” – all lower case: imagedb, resumedb, memberdb, etc. Collections: plural in lower case: images, resumes, Document fields: lowerCamelCase, e.g. memberFirstName, … Read more

What is the etymology of ‘slug’ in a URL? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 11 years ago. This post was edited and submitted for review 16 days ago and failed to reopen the post: Original close reason(s) were not resolved Improve this question … Read more

Correct Bash and shell script variable capitalization

I run across many shell scripts with variables in all caps, and I’ve always thought that there is a severe misunderstanding with that. My understanding is that, by convention (and perhaps by necessity long ago), environment variables are in all-caps. But in modern scripting environments like Bash, I have always preferred the convention of lower-case … Read more