Since Erlang doesn't have namespaces, that's one way to "create one".
--Kai On Wednesday, January 15, 2014 10:31:17 PM UTC-5, Romu wrote: > > I think 'myapp_foobar_controller' is ugly. Why do we have to include > 'myapp' and 'controller' in the naming? > > Thanks > Simon > > On Tuesday, January 7, 2014 4:28:21 AM UTC+8, Dmitry Polyanovsky wrote: >> >> Hello Bosses, >> >> there is important question to all CB community, regarding one of the CB >> features. I proposed to get rid of %appname% in name of controllers, as it >> was prior v0.6. Actually, %appname% was added as requirement to allow >> running few apps on same server without conflicts. Proposed change is to >> automatically prepand %appname% to controller name, as currently happens >> with views.To minimize breakage we should probably use the existing >> convention for the compiled controller -- actually, to be 100% backward >> compatible we could simply prefix the application name if it isn't there >> already, i.e. >> >> myapp_foobar_controller.erl -> myapp_foobar_controller.beam >> foobar_controller.erl -> myapp_foobar_controller.beam >> >> Pros: >> * code portability/re-usage >> you can easily move controllers across apps (i.e. have some kind of >> packages by having related controllers, models and views moved together). >> >> Cons >> * The main issue for me is that automatically prefixing the app name >> creates another layer of mystery. Right now if I create >> myapp_foobar_controller, I can debug it in the console because I know the >> module name is myapp_foobar_controller. With the auto-prefix I create >> foobar_controller, but then I don't see any such module loaded in the >> console. (Evan) >> * additional development and breaking things >> * Using Wrangler is preferred option >> * common practice is to use separate apps, so code portability/re-usage >> of controllers is not even an issue. (no packages needed) >> >> Vote! add your thoughts! >> >> -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/26d3cf7e-f80b-49be-bb4a-c3108837d5ef%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
