Open Powersource opened 3 years ago
Maybe @erikfrisk ?
This is purely a question of preference. I tend to prefer this in my editor...
... over this...
It allows me to see more tabs at once and is a bit more readable IMO. Although I agree that it's annoying to create two files, I don't find it too much of a hassle. Personally I have a template in TextExpander that helps me create the index file quickly.
@Powersource Since you're the main developer on this project now I think you can choose whichever structure makes life easier for you. As long as it's updated everywhere, and the info in the README is updated to reflect the change, I think either way is fine.
Referring to the code style mentioned at the end of this section in the ui readme https://github.com/Edgeryders-Participio/realities/blob/master/ui/README.md#code-structure
The parts that the Code structure section talks about that are taken from the linked blog post are reasonable I think. But this part about having an extra index file for every component I find mostly annoying and I don't really see the advantage that the above quoted part talks about. For me it just causes the paths to components being even longer, and slows down development since every time you want to create a component you have to create 2 files instead of 1. I can sort of see that people can be confused if they have two files with the same name open in their editor, but for me at least that's not a problem since vscode handles that very well, see image.
Anyone with opinions on this?