A
A
Andrew2020-05-16 19:55:14
File systems
Andrew, 2020-05-16 19:55:14

Are there any pitfalls in this way of naming files?

Hi, I saw a way to name files with the addition of a modifier (if I don't confuse the terms) through a dot.
user.store-module.js, User.controller.module.jsand in this spirit, I think the point is clear. It seemed that this method is much more readable than UserControllerModule.js, because the eye focuses on the main part of the file name, its namespace recedes into the background.

I haven’t seen anything like this before (apart from webpack.config.js, vue.config.js, they were just taken for granted), is there any agreement on using this way of naming files, are there any pitfalls, for example, when using on different systems?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
hint000, 2020-05-17
@hint000

In the olden days, when email trojans were in trend, these trojans in attachments were given names like

Главному_бухгалтеру.doc                               .exe

Since then, many have remained allergic to files that have more than one dot in the name.
Those. the pitfall is of a socio-psychological nature. Subconsciously , I want to throw a slipper into such a file and climb headlong under the covers.

V
vladislaav, 2020-05-16
@vladislaav

There shouldn't be any problems at all, but as for me, it's better not to use dots in the name.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question