Welcome Guest, Not a member yet? Register   Sign In
Poll: Improved routing?
You do not have permission to vote in this poll.
yes
82.98%
39 82.98%
no
8.51%
4 8.51%
maybe
8.51%
4 8.51%
Total 47 vote(s) 100%
* You voted for this item. [Show Results]

Magic Routing toggle
#5

(04-07-2015, 04:50 PM)includebeer Wrote:
(04-07-2015, 03:39 AM)orionstar Wrote: Automatic segment based routing is very bad practise make debugging harder.

What? It can't be easier to debug!

I'm not against the ability to configure your own route manually. But how can it be hard to debug something as simple as that? I think manual routing will lead to a lot of headache when trying to understand why it's not working the way you want to.

Let's say you're creating your own routes for all your endpoints with custom urls. That means that every endpoint you create will end up having 2 urls, the one in your routes file and the one that automatically links to your controller. As systems grow, urls change, it can quickly become an issue where you don't know which endpoints are open and which ones are closed.

Regardless, it is better practice to have your own routes written out. Not only does it give you more control over the endpoints of your application, if you work in a team of developers, it also gives a 'map' of how every endpoint is directed.
Reply


Messages In This Thread
Magic Routing toggle - by albertleao - 04-06-2015, 08:04 PM
RE: Magic Routing toggle - by orionstar - 04-07-2015, 03:39 AM
RE: Magic Routing toggle - by includebeer - 04-07-2015, 04:50 PM
RE: Magic Routing toggle - by albertleao - 04-08-2015, 09:04 AM
RE: Magic Routing toggle - by gadelat - 04-08-2015, 12:11 AM
RE: Magic Routing toggle - by Hobbes - 04-09-2015, 01:04 PM
RE: Magic Routing toggle - by includebeer - 04-11-2015, 04:05 PM
RE: Magic Routing toggle - by dmyers - 04-13-2015, 07:34 AM
RE: Magic Routing toggle - by sv3tli0 - 04-12-2015, 04:26 AM
RE: Magic Routing toggle - by includebeer - 04-12-2015, 08:44 AM
RE: Magic Routing toggle - by ivantcholakov - 04-12-2015, 10:08 AM
RE: Magic Routing toggle - by sv3tli0 - 04-13-2015, 12:48 AM
RE: Magic Routing toggle - by dmyers - 04-13-2015, 02:02 PM
RE: Magic Routing toggle - by albert.freeman - 04-13-2015, 03:14 PM
RE: Magic Routing toggle - by albertleao - 04-13-2015, 09:11 PM
RE: Magic Routing toggle - by sv3tli0 - 04-13-2015, 11:55 PM
RE: Magic Routing toggle - by includebeer - 04-15-2015, 04:30 PM
RE: Magic Routing toggle - by albertleao - 04-15-2015, 04:33 PM
RE: Magic Routing toggle - by sv3tli0 - 04-15-2015, 10:23 PM
RE: Magic Routing toggle - by mwhitney - 05-11-2015, 09:52 AM
RE: Magic Routing toggle - by skunkbad - 04-15-2015, 08:52 PM
RE: Magic Routing toggle - by noah - 05-06-2015, 02:06 PM
RE: Magic Routing toggle - by PaulD - 07-11-2015, 06:39 PM
RE: Magic Routing toggle - by mwhitney - 07-13-2015, 11:58 AM
RE: Magic Routing toggle - by kenjis - 07-12-2015, 02:38 PM
RE: Magic Routing toggle - by PaulD - 01-25-2017, 05:29 PM
RE: Magic Routing toggle - by albertleao - 01-26-2017, 01:14 AM
RE: Magic Routing toggle - by PaulD - 01-26-2017, 11:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB