Answer the question
In order to leave comments, you need to log in
How to correctly name files with modifiers and the same names?
In my case, the question is about storing files in storage like S3.
There is a conditional image.jpg file .
When loading through an interlayer, I have reduced copies of the file, conditional small , medium .
How to name these files?
I have a bem naming methodology in my head: image_small.jpg , image_medium.jpg .
But I also saw that they put the modifier in front: small_image.jpg , medium_image.jpg .
Is there any purpose to this other than "I'm so comfortable"?
The files can also have the same name. In this case, some hash is added:image_small_0d2e2011dc.jpg , image_medium_0d2e2011dc.jpg .
By what rule to generate this hash?
The only question is whether there are specific recommendations in such cases or not. Since I am just starting to understand this direction, I want to initially use some kind of standard (even if it is imposed by some top company). Or at least try to learn more about it.
Answer the question
In order to leave comments, you need to log in
I want to use some standard from the beginningThere is no such standard. Smart books write about data structures. What you're asking about is a file naming plan - it's also a data structure in some way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question