Welcome Guest, Not a member yet? Register   Sign In
Codeigniter development (v3.0)
#4

[eluser]Aken[/eluser]
[quote author="wiredesignz" date="1352352468"]@Aken, I know what the code does.

So what prevents a creative developer from using simple routing like so:
Code:
$route['(.*)-(.*)'] = '$1_$2';

It seems pointless hacking something into the codebase that can be solved with a little thought on the user's part.[/quote]

This would affect every instance of a dash, which is not what the mentioned functionality does. A creative developer would need to come up with a more complicated route scheme in order to achieve what literally ONE line of code does in the back-end. I don't see how anyone can argue with that one, frankly.

Quote:Your idea of flexibility is only valid if the changes are easily understandable and will be implemented by a decent percentage of users. I do not see this happening here. Bloat occurs if code, which is never going to be used, is added to any software.

My idea of flexibility is the literal meaning of the word, which is not conditional on how a user interacts with the framework. I agree that thorough documentation is a priority, so that people will be able to understand and implement it (which I still think you should help contribute to). Who knows how often a feature like this may be used, though. Don't let your own views of a feature completely negate its potential.

I'm personally intrigued to see if anyone comes up with an unintended-but-useful feature when it comes to the route closures. Why impede progress? The worst that I can see happening is the feature is removed, and CI developers will have a better understanding of what's expected from the framework.

Quote:In fact adding reverse routing to CI would be much more beneficial to the majority of developers than both of these hacks.

I can't comment on that; I've never had the need for reverse routes.

Quote:I am concerned also, from looking at the examples posted for the processed routes, that they are attempting to set the base business logic for an application inside the routes closures. Thus if the controller or model doesn't also enforce business logic then altering routing will cause the application to fail. Routes should not do this, they should direct traffic not establish rules.

Reference: https://github.com/EllisLab/CodeIgniter/pull/1636

Default page numbers and other values should be set in the page controller, not in the routing.

Why can't they be done in the routing? I guarantee you a lot of people have added a default page number to their routes. I've seen it done in people's examples when dealing with the Pagination library, and other situations.

Quote:Copying Laravel routing methodology might be cute, but they're missing the point entirely.

Copying Laravel was never the intention, as the author has stated in the pull request.

I can understand why you have the point of view that you do, but the impression I have is that you're looking down at anyone with a differing opinion as flat wrong. The Reactor team has already stated their intentions to retain the feature, so rather than arguing with it, why not help make it as useful as possible? Refine the functionality, make the user guide easy to understand, etc. Help prevent the things you're concerned about. That's what this community is for.


Messages In This Thread
Codeigniter development (v3.0) - by El Forum - 11-07-2012, 05:38 AM
Codeigniter development (v3.0) - by El Forum - 11-07-2012, 09:55 PM
Codeigniter development (v3.0) - by El Forum - 11-07-2012, 10:27 PM
Codeigniter development (v3.0) - by El Forum - 11-08-2012, 11:11 PM
Codeigniter development (v3.0) - by El Forum - 11-09-2012, 12:25 AM
Codeigniter development (v3.0) - by El Forum - 11-09-2012, 03:06 AM
Codeigniter development (v3.0) - by El Forum - 11-09-2012, 03:37 AM
Codeigniter development (v3.0) - by El Forum - 11-09-2012, 03:40 AM
Codeigniter development (v3.0) - by El Forum - 11-09-2012, 04:13 AM
Codeigniter development (v3.0) - by El Forum - 11-09-2012, 01:36 PM
Codeigniter development (v3.0) - by El Forum - 11-09-2012, 01:45 PM
Codeigniter development (v3.0) - by El Forum - 11-09-2012, 02:00 PM
Codeigniter development (v3.0) - by El Forum - 11-09-2012, 02:06 PM
Codeigniter development (v3.0) - by El Forum - 11-09-2012, 02:10 PM
Codeigniter development (v3.0) - by El Forum - 11-09-2012, 02:16 PM
Codeigniter development (v3.0) - by El Forum - 11-09-2012, 02:22 PM
Codeigniter development (v3.0) - by El Forum - 11-09-2012, 02:39 PM
Codeigniter development (v3.0) - by El Forum - 11-09-2012, 02:41 PM
Codeigniter development (v3.0) - by El Forum - 11-09-2012, 02:56 PM
Codeigniter development (v3.0) - by El Forum - 11-09-2012, 03:04 PM
Codeigniter development (v3.0) - by El Forum - 11-09-2012, 09:29 PM
Codeigniter development (v3.0) - by El Forum - 11-09-2012, 10:37 PM
Codeigniter development (v3.0) - by El Forum - 11-10-2012, 01:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB