MarcelLZ / barbecue-company

Have fun!
2 stars 0 forks source link

[Conventions] File names #74

Open lucasconstantino opened 6 years ago

lucasconstantino commented 6 years ago

I see all of your front-end uses the same file naming convention, which is to lowercase with dashes separating words (i.e. "cnpj-validator.js"). Something very common on React applications is to use PascalCase to name component files, for it to have the same text on both the file and the component itself. I know this is quite a silly question, but can you explain why you tend to use the dashed pattern?

MarcelLZ commented 6 years ago

I know the name conventions, but there is no special case, it's just an addiction (I needed to search for this word: addiction) because where I work today, everyone names the files like that. I'll change it, I promise =P

MarcelLZ commented 6 years ago

Sorry if my answer seems rude =P

lucasconstantino commented 6 years ago

You were not rude at all ;) And well, you don't need to change it... having a pattern and sticking to it is not wrong in any way. I was just curious if there could be another reason to use this dashed patterns... perhaps if there was, we could start using this in here too lol.

MarcelLZ commented 6 years ago

hahaha! Nice :D