Add redirect helper - #39
Conversation
|
There are 3 issues I see with this:
|
|
I understand your argument, and FWIW I have already considered removing the implicit casts from |
|
Aright, never mind, I always keep in mind this comment:
It is not super hard to put this redirect function in a helper class in my code base. So let's just don't waste time on such minor things. ;) |
|
I'm not saying I'm against this either. I just want the library to have a really clear scope and we are in the process of shaping that. My concern is to present HTTP as directly as possible. While working on this library, I realized how little I know about HTTP and discovered that much of my ignorance was rooted in working with APIs that try too hard to be convenient, sacrificing interesting or even important aspects. For example, if you redirect to a 3rd party page that takes a long time to load or the user is on a really slow connection, they might sit in front of that page for 10-15 seconds or even longer. So it starts making sense to actually display a nice localized and styled page. What I do wish to do is to encourage programmers (and framework authors in particular) to consider such aspects. Making the body mandatory may work toward that goal. Or not. I'm open to suggestions here. I agree that redirection is just one detail. But in the end getting most of such details right is an important part in creating a well crafted web application, that always feels responsive to the user. |
|
Ok, that sounds reasonable. But seems that at this moment the topic has gone beyond my knowledge, I am open to learn more but I am afraid that I don't have any deeper input right now. |
No description provided.