Welcome Guest, Not a member yet? Register   Sign In
CI 2.x->3.x file name changes cause url not work

(11-23-2016, 11:36 AM)petrinze Wrote: It's not about the framework. It's about the habit.

So ... this particular habit is bad, because it's not the "other" habit?
You've given no objective arguments about why it's bad, so that's the only logical conclusion I can get from your posts. Everything you've said still boils down to it being different.

Putting that aside, you're missing the one thing about habits that really matters - relying on them is bad.
Habits are what makes learning new things hard, what builds the framework-tribal mentalities, what makes obvious solutions non-obvious, what results in huge architectural problems because you wrote a quick and dirty fix years ago, etc.

You're advocating for investment into one habit over another (that doesn't necessarily exist in the first place), and this doesn't actually help anybody - it replaces one supposed bias with another. That's not the altruistic, universally good advice that you think you're giving.

(11-23-2016, 11:36 AM)petrinze Wrote: To let the fw do the routing has no other advantage, than faster development, and one less thing to worry about.

Even if it is just that one advantage, it is not a small one.

But it's not. By virtue of how the automatic routing works - via following a single convention - it enforces consistent structure, naming scheme that is easy to follow for any newcomer.

(11-23-2016, 11:36 AM)petrinze Wrote: To get used to write the routes is not a big deal, but it will be handy in the future, especially when you meet the restful conventions, or other frameworks.

There's no such thing as "restful conventions".

(11-23-2016, 11:36 AM)petrinze Wrote: I don't intend to annoy you with the "other frameworks" argument, but developers have a quite big chance to meet with other frameworks, and the most popular frameworks has no built in "magic-route" feature.  Therefore, to write your own routes, even if it seems to be unnecessary in the beginning, sooner or later will return the time you spend with it.

The really annoying thing is rather that you're just repeating the same thing with different words.
Nobody should be encouraged to do unnecessary shit in one project, especially if the goal is just to make yourself used to that same shit because it will not be a shit in a different, unknown project in the future. Real projects shouldn't be your testing playground.

If the goal is to learn something, we're talking a different story, but then you go learn it with the tools that are made work that way.

(11-23-2016, 11:36 AM)petrinze Wrote: ps.: Imagine u have around 40 controller classes, and you have to rename most of them because of the costumer wanna see different things in the url bar. Aaaah, magic routes, get away from me.

You'll have to rename either file/function names or manual route entries. That's ultimately the same thing and therefore this argument doesn't make sense.

Messages In This Thread
RE: CI 2.x->3.x file name changes cause url not work - by Narf - 11-24-2016, 04:08 AM

Theme © iAndrew 2016 - Forum software by © MyBB