-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redundant file naming #12
Comments
The idea is that a "person" could have multiple views including a list view, details view, etc. So instead of having a bunch of top level folders you could put them under the /person folder. We could probably improve the scheme by discussion and people putting up their ideas. |
I'm coming from a symfony background and there i'm used to that the views are only
I don't think that would be as bad.... but it could be a lack of meteor experience there. it's just the first thing i noticed while trying em out. ;) |
Oh I missed your point entirely. You're saying to remove the person_ prefix. That seems like a reasonable improvement :). Interested in others' feedback too. |
I like @Nemo64's suggestion, that's the structure I'm used to :) |
This might be another option that would be great to have in the
|
When developing, I frequently have 20-30 tabs open in WebStorm. Given that Meteor projects favour lots of small files (a Good Thing™) with this naming convention I'd end up with potentially a dozen or so file tabs all called "index.html". So far, we've settled on "explicit" filenames, for example personList.html or .js, personCreate.html or .js, personCollection.js, personPublication.js etc. which makes it easier quickly to identify a file tab. Filename completion usually takes care of the typing when opening a file, so doesn't cause extra work. I'd welcome your thoughts on this, maybe we're doing it the "stupid way" and there's an easier way to keep all these files sorted out visually? :) |
I use sublime which also shows extra context in the tabs when needed. So, for me too the change is welcome. I personally don't mind having the configuration option though. I'd rather do the extra config option and have a less "bloated" structure. It helps me keeping the projects and the code "clean" 😄. |
@DigitalAndre there's a configuration option in WebStorm 'Show directory in editor tabs for non-unique filenames' that solves the ambiguous display. +1 for simplifying the filenames. I've actually stopped using the tool since the redundant folder names were making the tree structures hard to read and understand the app |
We do it the same as @DigitalAndre and I prefer it that way, even though I have a full paths in my sublime title bar. In sublime the CMD+t search works across directory names so it's not a huge issue however. |
This is more a question! If I create the scaffold for
person
i'll have this folder structure:Isn't that
person_index
kind of redundant if it is in a folder calledperson
? I know that the template must be calledPersonIndex
because of missing namespaces, but the folder and file names seem wrong to me. Am I missing something?The text was updated successfully, but these errors were encountered: