hauleth

hauleth

However I keep the “regular” folder names as it makes vim-projectionist templates much simpler and working cross projects.

1
Post #11
chrismccord

chrismccord

Creator of Phoenix

@dimitarvp and @al2o3cr explained it beautifully. The alias/tab problem is untenable when you’d have a user.ex and User for the controller, the view, the struct, etc, and all the tests and what not. As a bit of history, I took the Controllers.User approach way back when I first started Phoenix and José is the one that recommended this change. So “standards” wise, this isn’t even a concern :slight_smile:

10
Post #12
cevado

cevado OP

Sorry, but I’d say untenable is a strong word for this.
Most modern editors are configurable enough for the “tab” problem to be dealt with. Just looking for <editor> full path tab gives me:

for the “alias” problem a simple change from UserController to Controllers.User, UserView to Views.User would do the trick, and it’s just 2 characters added. I think it even makes it easier to alias in most use cases.

0
Post #13
— All posts loaded —