-------------------------------------------------------------------------------------------------
Mark Bates
ma...@mackframework.com
http://www.mackframework.com
http://api.mackframework.com/
http://github.com/markbates/mack
> Please vote +/- if you think we ought to have a nested params parser
> be the default parser for Rack::Request#params.
+1
Ezra Zygmuntowicz
e...@engineyard.com
On Mon, Jan 26, 2009 at 12:43 AM, Nathan <XGam...@gmail.com> wrote:
>
> +1
>
> On Jan 25, 6:05 pm, Josh Peek <j...@joshpeek.com> wrote:
> Please vote +/- if you think we ought to have a nested params parser
> be the default parser for Rack::Request#params.
-1
--
James Britt
www.happycamperstudios.com - Wicked Cool Coding
www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff
> "Everyone is doing it!" Nested parameters are a well known convention
> and pretty much every framework built on top of Rack is adding support
> for nested parameters.
+1
--
Cheers!
- Pratik
http://m.onkey.org
+1
//Magnus
> -1
>
> --
> James Britt
I gotta ask what you think the downside of this is?
Thanks-
-Ezra
I think we've tried a lot of different solutions which all have downsides.
The downside of this approach is added complexity of the request body
parsing which is quite complex already.
But having consistent params over all rack applications and the speed
increase with lower complexity on the rack application side are well
worth it.
We just need to make sure that we have an implementation that is fully
specified and has tests (preferably ported from merb/rails).
+1
^ manveru
--
stadik.net
> I've posted some *real* code on lighthouse: http://rack.lighthouseapp.com/projects/22435/tickets/3
+1
We may want to keep the current method as #simple_parse or something.
--
Christian Neukirchen <chneuk...@gmail.com> http://chneukirchen.org
Hurray!
I'll make another post regarding the specs and API later today.
> We may want to keep the current method as #simple_parse or something.
Sounds like a fair compromise. But why? :)
Do you think its a performance issue, or that people are expecting
params["x[y]"] to still work?
--
Joshua Peek
> Do you think its a performance issue, or that people are expecting
> params["x[y]"] to still work?
I could imagine this to be useful in certain cases (e.g. when the
field names are user-input or something.) It won't hurt to have.
I'd prefer the core of Rack itself to not bundle in presumptions about
the data begin sent, what it means, and how it should be re-presented,
however popular those presumptions are right now.
What I've liked about Rack was that it did very little, but did just
enough to build on top of, in whatever way I prefer.
I get that.
My concern is that there may be a set of param values or request headers
that are perfectly legit according to RFC 2616, but cause grief
because they don't adhere to some currently preferred interpretation
that's been baked in.
I'm assuming this layering of extra meaning into the query part would
be an optional rack middleware?
Sam
My concern is that there may be a set of param values or request headers that are perfectly legit according to RFC 2616, but cause grief because they don't adhere to some currently preferred interpretation that's been baked in.
+1
It seems a general consensus has been reached that a good implementation
is worth included in core. Let's see the proposed specs/implementations
so we have something fruitful to throw stones at :)
Thanks
--
Ryan http://tomayko.com/about
> What I've liked about Rack was that it did very little, but did just
> enough to build on top of, in whatever way I prefer.
Absolutely nothing stops you from parsing env["QUERY_STRING"] as you prefer.
Quite true, but it's an empty argument since the same can be said for
people who want to add a layer of semantics that is not part of any Web RFC.
I understand that 99% of people using Rack will prefer to think of form
POST data and query strings as nested hashes and arrays, not as
strings. But it changes what Rack is. It's no longer a minimal common
Web API.
Whether that is good or bad is another matter. So far, most people
think it a good thing.
> I understand that 99% of people using Rack will prefer to think of
> form POST data and query strings as nested hashes and arrays, not as
> strings. But it changes what Rack is. It's no longer a minimal
> common Web API.
Rack is the SPEC.
Rack includes utilities, e.g. Rack::Request, which make the spec
actually usuable. If you don't like them, you can just write your own
utilities, in conformance with the spec, and everything will work
together.
Got it.