I was working on creating a new admin section in Discourse.
It is used to manage groups… so off I go.
I edit the
routes/admin_routes.js and add a file.
I then create
routes/admin_groups_route.js and add another file.
then I create
admin/models/group.js model, and
finally I create
So, creating this bit of functionality required 5 new files and 1 file change. As I am developing I am constantly jumping between files, losing my place and having to reopen and explore.
As it stands Discourse now serves over 370 files in debug, something that takes upwards of 4 seconds (sure you can circumvent and shorten it, but then you take a hit on debugability)
Are people following the one file per class rule with Ember, or are some amalgamating files? Personally I would be a lot less confused having a single
admin/groups.js file that encomposes everything (at least for smallish bits) and then a single template file. So much less jumping around and hitting find in file or ninja navigation required.