Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Support post[title]=Hello params parsing
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 34 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Josh Peek  
View profile  
 More options Dec 27 2008, 7:24 pm
From: Josh Peek <j...@joshpeek.com>
Date: Sat, 27 Dec 2008 16:24:43 -0800 (PST)
Local: Sat, Dec 27 2008 7:24 pm
Subject: [Proposal] Support post[title]=Hello params parsing
I'd like to propose that Rack::Requset#params support the nested hash
convention.

In Rails, a query string "post[title]=Hello" will be parsed as
{ "post" => { "title" => "Hello" } }. Rack::Request will parse it as
{ "post[title]" => "Hello" }.

AFAIK, Merb follows the same convention as well, and I'm really
curious what other frameworks are doing the same. If this the defacto
params parsing style I think Rack should support it too.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yehuda Katz  
View profile  
 More options Dec 27 2008, 7:32 pm
From: "Yehuda Katz" <wyc...@gmail.com>
Date: Sat, 27 Dec 2008 16:32:38 -0800
Local: Sat, Dec 27 2008 7:32 pm
Subject: Re: [Proposal] Support post[title]=Hello params parsing

+1
-- Yehuda

On Sat, Dec 27, 2008 at 4:24 PM, Josh Peek <j...@joshpeek.com> wrote:

> I'd like to propose that Rack::Requset#params support the nested hash
> convention.

> In Rails, a query string "post[title]=Hello" will be parsed as
> { "post" => { "title" => "Hello" } }. Rack::Request will parse it as
> { "post[title]" => "Hello" }.

> AFAIK, Merb follows the same convention as well, and I'm really
> curious what other frameworks are doing the same. If this the defacto
> params parsing style I think Rack should support it too.

--
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Klishin  
View profile  
 More options Dec 27 2008, 7:58 pm
From: Michael Klishin <michael.s.klis...@gmail.com>
Date: Sun, 28 Dec 2008 03:58:42 +0300
Local: Sat, Dec 27 2008 7:58 pm
Subject: Re: [Proposal] Support post[title]=Hello params parsing

On 28.12.2008, at 3:24, Josh Peek wrote:

> AFAIK, Merb follows the same convention as well

It does, and +1 for this idea from me.

MK


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Bates  
View profile  
 More options Dec 27 2008, 8:03 pm
From: Mark Bates <m...@mackframework.com>
Date: Sat, 27 Dec 2008 20:03:10 -0500
Local: Sat, Dec 27 2008 8:03 pm
Subject: Re: [Proposal] Support post[title]=Hello params parsing

+1 here as well. Mack does the same thing too. I was thinking today  
that this should be put into Rack as well I say let's pick the best  
implementation of it and put it into Rack.

Should we also merge in date/time select parameter parsing too?

Also what do people think about string/symbol retrieval of params from  
the request parameters?

--------
Mark Bates

On Dec 27, 2008, at 7:32 PM, "Yehuda Katz" <wyc...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Britt  
View profile  
 More options Dec 27 2008, 9:53 pm
From: James Britt <james.br...@gmail.com>
Date: Sat, 27 Dec 2008 19:53:43 -0700
Local: Sat, Dec 27 2008 9:53 pm
Subject: Re: [Proposal] Support post[title]=Hello params parsing

Josh Peek wrote:
> I'd like to propose that Rack::Requset#params support the nested hash
> convention.

> In Rails, a query string "post[title]=Hello" will be parsed as
> { "post" => { "title" => "Hello" } }. Rack::Request will parse it as
> { "post[title]" => "Hello" }.

Why shouldn't this be application-level behavior, or at least a Rack
plugin, rather than default, built-in behavior?

While this happens to be common behavior in most Ruby Web frameworks (I
believe Ramaze follows this as well) I'm leery of libs that make certain
assumptions about data.

--
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scytrin dai Kinthra  
View profile  
 More options Dec 27 2008, 9:54 pm
From: "Scytrin dai Kinthra" <scyt...@gmail.com>
Date: Sat, 27 Dec 2008 18:54:03 -0800
Local: Sat, Dec 27 2008 9:54 pm
Subject: Re: [Proposal] Support post[title]=Hello params parsing
I'm not a huge fan of adding more and more features to Rack::Request.
The setting up of hashes in the params makes sense but adds the
complication of a param value being a String, an Array, or a Hash. I'd
vote yea due to the convenience it provides. With an 'eh' on parsing
issues.

Parameters retrievable via symbols and strings is a right out no to
me. The issue of identity vs content. Also, how would you deal with
environments running with $SAFE > 0? Or are you talking about
stringifying all symbol key lookups, which creates additional overhead
as well as defeating the general point of symbol keyed hashes.

date/time parsing?

--
stadik.net

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Fellinger  
View profile  
 More options Dec 27 2008, 10:36 pm
From: "Michael Fellinger" <m.fellin...@gmail.com>
Date: Sun, 28 Dec 2008 12:36:40 +0900
Local: Sat, Dec 27 2008 10:36 pm
Subject: Re: [Proposal] Support post[title]=Hello params parsing

Indeed, there are issues with parsing that might not reach a consent.
(Ramaze/Innate) are actually reparsing Request#params with less than
stellar results in performance and a few divergences from the normal
(say PHP) behaviour.
I think it would be good to take a look at the existing
implementations, line them up and see which one is the fittest to make
a suitable middleware anybody can use.

The candidate I send into battle:
http://paste.linuxhelp.tv/pastes/view/15309

Due to its dependence on Rack::Request#params it might be less
performant than other solutions.

^ manveru


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yehuda Katz  
View profile  
 More options Dec 27 2008, 10:47 pm
From: "Yehuda Katz" <wyc...@gmail.com>
Date: Sat, 27 Dec 2008 19:47:19 -0800
Local: Sat, Dec 27 2008 10:47 pm
Subject: Re: [Proposal] Support post[title]=Hello params parsing

The problem with a middleware is that it cannot be lazy-loaded without
hacks. I think this belongs in Rack::Request. We can call it robust_params
or something  to distinguish it from the simpler version.
-- Yehuda

On Sat, Dec 27, 2008 at 7:36 PM, Michael Fellinger <m.fellin...@gmail.com>wrote:

--
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Fellinger  
View profile  
 More options Dec 27 2008, 11:41 pm
From: "Michael Fellinger" <m.fellin...@gmail.com>
Date: Sun, 28 Dec 2008 13:41:51 +0900
Local: Sat, Dec 27 2008 11:41 pm
Subject: Re: [Proposal] Support post[title]=Hello params parsing

On Sun, Dec 28, 2008 at 12:47 PM, Yehuda Katz <wyc...@gmail.com> wrote:
> The problem with a middleware is that it cannot be lazy-loaded without
> hacks. I think this belongs in Rack::Request. We can call it robust_params
> or something  to distinguish it from the simpler version.

In rack core or contrib?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jon Crosby  
View profile  
 More options Dec 28 2008, 1:12 am
From: "Jon Crosby" <jon.r.cro...@gmail.com>
Date: Sat, 27 Dec 2008 22:12:59 -0800
Local: Sun, Dec 28 2008 1:12 am
Subject: Re: [Proposal] Support post[title]=Hello params parsing

One of the traits that makes Rack so powerful is its minimalist simplicity.
While having parameter parsing based on a hash convention might be valuable
to some frameworks, it is extraneous for others. My vote would be to keep
this in middleware for those who need it. If the parameter parsing technique
is implemented in a module and then hooked into to a minimal call method in
a piece of rack-contrib middleware, then authors of other middleware can
choose to either note its upstream requirement in their documentation or,
more ideally, apply the mixin in their own middleware.
Further, there seems to be some concern about when things are loaded and
processed upstream and how to vary behavior based on this downstream. In the
parameter parsing scenario, MiddlewareB may question if
ParamParsingMiddlewareA has been executed upstream, for example. HTTP solved
this problem with the Via header and it may be helpful in thinking about
similar solutions for Rack:

http://tools.ietf.org/html/rfc2616#section-14.45

The above linked Via header shouldn't be used to declare middleware inside
of Rack because it is intended to document things happening over the wire
whereas Rack is of course self-contained. However, the specific question of
"what is upstream" came up in CloudKit when the OpenID Filter needed to know
whether to also send OAuth Discovery challenge headers along with its login
page. A stack-scoped "cloudkit.via" entry was added to the environment and
behaves in a similar manner to Via headers in HTTP.

In the case of Rack, each piece of middleware could drop a "pseudo via"
entry into the environment, perhaps based on a canonical version of its gem
name or main class name.

-Jon
http://joncrosby.me

On Sat, Dec 27, 2008 at 8:41 PM, Michael Fellinger <m.fellin...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Todd  
View profile  
 More options Dec 28 2008, 3:13 am
From: "Matt Todd" <chiol...@gmail.com>
Date: Sun, 28 Dec 2008 03:13:26 -0500
Local: Sun, Dec 28 2008 3:13 am
Subject: Re: [Proposal] Support post[title]=Hello params parsing

I've created several tickets regarding the discussions in this thread since
I think separating the requests will help further discussion.

http://rack.lighthouseapp.com/projects/22435-rack/tickets/3-add-suppo...
http://rack.lighthouseapp.com/projects/22435-rack/tickets/4-stringsym...

http://rack.lighthouseapp.com/projects/22435-rack/tickets/5-datetime-...

I think the specific issue of interest in this thread, though, is adding
support for nested params parsing.

I'm in favor of it, though I don't have the evidence from any specific RFC
mentioning this support for nesting (please provide if there exists).

I like to think of Rack as a culmination of experience and expertise for web
development practices and implementations in the Ruby community... a bit
lofty for the reality of it, but it's still a goal I have in my approach to
Rack's implementation. Because of this, I think that Rack should be able to
handle anything web standards provide for... including nested params which
occurs frequently.

Making this behavior a part of the middleware may prove difficult to
implement in Rack::Request since it must first discern if there is the
middleware available and secondly it must then parse it. There are lots of
problems, like whether to be specific or support all kinds of hooks for
other middleware to change how request params are parsed (which I'm
against).

Let's keep it simple by parsing nested params. If anything, we can see what
the performance difference is... keeping in mind that it only occurs once
now that we memoize the Rack::Request object.

Matt

--
Matt Todd
Highgroove Studios
www.highgroove.com
cell: 404-314-2612
blog: maraby.org

Scout - Web Monitoring and Reporting Software
www.scoutapp.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scytrin dai Kinthra  
View profile  
 More options Dec 28 2008, 3:41 am
From: "Scytrin dai Kinthra" <scyt...@gmail.com>
Date: Sun, 28 Dec 2008 00:41:44 -0800
Local: Sun, Dec 28 2008 3:41 am
Subject: Re: [Proposal] Support post[title]=Hello params parsing
# What was accidentally posted in the wrong thread.
Honestly, the idea of a rack-contrib mixin with a #robust_params makes the most
sense to me. Memoizing the superduper params hash in a different
location in the env for later retrieval similar to the way params
does.

--
stadik.net

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Neukirchen  
View profile  
 More options Dec 28 2008, 7:51 am
From: Christian Neukirchen <chneukirc...@gmail.com>
Date: Sun, 28 Dec 2008 13:51:23 +0100
Local: Sun, Dec 28 2008 7:51 am
Subject: Re: [Proposal] Support post[title]=Hello params parsing

Josh Peek <j...@joshpeek.com> writes:
> I'd like to propose that Rack::Requset#params support the nested hash
> convention.

> In Rails, a query string "post[title]=Hello" will be parsed as
> { "post" => { "title" => "Hello" } }. Rack::Request will parse it as
> { "post[title]" => "Hello" }.

> AFAIK, Merb follows the same convention as well, and I'm really
> curious what other frameworks are doing the same. If this the defacto
> params parsing style I think Rack should support it too.

The feature seems sensible, but I would not want it to be the default
behavior for #params.  I'm fine with having a seperate method for it,
or a method in Utils.  And please specify exactly how it works! There
are so many details there to take care of.

--
Christian Neukirchen  <chneukirc...@gmail.com>  http://chneukirchen.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Neukirchen  
View profile  
 More options Dec 28 2008, 7:56 am
From: Christian Neukirchen <chneukirc...@gmail.com>
Date: Sun, 28 Dec 2008 13:56:49 +0100
Local: Sun, Dec 28 2008 7:56 am
Subject: Re: [Proposal] Support post[title]=Hello params parsing
"Scytrin dai Kinthra" <scyt...@gmail.com> writes:

> I'm not a huge fan of adding more and more features to Rack::Request.
> The setting up of hashes in the params makes sense but adds the
> complication of a param value being a String, an Array, or a Hash. I'd
> vote yea due to the convenience it provides. With an 'eh' on parsing
> issues.

> Parameters retrievable via symbols and strings is a right out no to
> me. The issue of identity vs content.

+1

Also, I wonder how often people need *nested* hashes...

--
Christian Neukirchen  <chneukirc...@gmail.com>  http://chneukirchen.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joshua Peek  
View profile  
 More options Dec 28 2008, 10:41 am
From: "Joshua Peek" <j...@joshpeek.com>
Date: Sun, 28 Dec 2008 09:41:59 -0600
Local: Sun, Dec 28 2008 10:41 am
Subject: Re: [Proposal] Support post[title]=Hello params parsing
I knew the issue would be controversial, and I agree it may not be
best to include into Rack since it is a convention not part of any
RFC.

I think we had issues trying to override the default behavior without
having to do alot of work. Maybe this issue can be solved by a simple
refactoring?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ezra Zygmuntowicz  
View profile  
 More options Dec 28 2008, 2:44 pm
From: Ezra Zygmuntowicz <e...@engineyard.com>
Date: Sun, 28 Dec 2008 11:44:12 -0800
Local: Sun, Dec 28 2008 2:44 pm
Subject: Re: [Proposal] Support post[title]=Hello params parsing

On Dec 28, 2008, at 7:41 AM, Joshua Peek wrote:

> I knew the issue would be controversial, and I agree it may not be
> best to include into Rack since it is a convention not part of any
> RFC.

> I think we had issues trying to override the default behavior without
> having to do alot of work. Maybe this issue can be solved by a simple
> refactoring?

        What about sidestepping the issue by making Rack::Request call a  
callback to do params parsing with the default callback being the  
current implementation? Then any framework that wants its own parsing  
can provide its own callback for params parsing?

        This keeps it simple, does not break backwardas compat and solves all  
of our issues with regards to how we want to do params parsing.

Cheers-

Ezra Zygmuntowicz
e...@engineyard.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yehuda Katz  
View profile  
 More options Dec 28 2008, 2:46 pm
From: "Yehuda Katz" <wyc...@gmail.com>
Date: Sun, 28 Dec 2008 11:46:17 -0800
Local: Sun, Dec 28 2008 2:46 pm
Subject: Re: [Proposal] Support post[title]=Hello params parsing

Depending on how the callback is specified, it could be slower (for
instance, if a proc was specified).
-- Yehuda

On Sun, Dec 28, 2008 at 11:44 AM, Ezra Zygmuntowicz <e...@engineyard.com>wrote:

--
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Tucker  
View profile  
 More options Dec 28 2008, 2:51 pm
From: James Tucker <jftuc...@gmail.com>
Date: Sun, 28 Dec 2008 15:51:32 -0400
Local: Sun, Dec 28 2008 2:51 pm
Subject: Re: [Proposal] Support post[title]=Hello params parsing
On 28 Dec 2008, at 15:46, Yehuda Katz wrote:

> Depending on how the callback is specified, it could be slower (for  
> instance, if a proc was specified).

The fastest callback form is using #send. Unfortunately that requires  
two objects to specify a callback. I've been considering wrapping up a  
gem for this, as I'm starting to use callbacks more and more.

Some examples of what kind of API you end up with using either can be  
found in:

http://github.com/raggi/thin/tree/async_for_rack/example # all proc  
based stuff

and

http://github.com/raggi/object_protocol/ # All send based.

All of the above is somewhat experimental (particularly wrt api).  
Another place that may have structures of interest, might be omnibus:

http://github.com/mental/concurrent/tree

Enjoy.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Bates  
View profile  
 More options Dec 28 2008, 5:43 pm
From: Mark Bates <m...@mackframework.com>
Date: Sun, 28 Dec 2008 17:43:32 -0500
Local: Sun, Dec 28 2008 5:43 pm
Subject: Re: [Proposal] Support post[title]=Hello params parsing
Ezra, I think the original idea was that if nearly every framework is  
doing the same thing, shouldn't that be default. Callbacks would have  
the same problem, every framework writing the same implementation of  
the same thing. With that said, I completely understand the other side  
of the argument.

Here are my suggestions:

1.) A config parameter that let's the Rack app decide which type of  
parameter 'processing' it would like to use.
2.) An 'extended_params' method that returns the extra processed  
parameters.
3.) A piece of Rack middleware in Rack-contrib that does the pre-
processing of the parameters, so it's only used if people put it in  
line.

#3 is my favorite. It allows people to pick and chose which  
implementation of parameter processing they want. If you use this  
middleware then the params method returns a nested Hash that Rails,  
Merb, and Mack users are already familiar with. If you don't use the  
middleware, then you get back a straight, non-nested Hash.

#2 I'm not that big a fan of because, as a framework guy, I would know  
to use that method, but people extending the framework wouldn't know  
that, so it's possible for them to use the wrong method and cause  
bugs. This method would most likely end up being aliased to params by  
the frameworks to avoid this confusion.

#1 is alright, but a bit hacky. It would work, but if you want to add  
a different type of processing then you would have to alter the  
original Rack source, and that's uncool.

What do people think about #3? I think it solves all the problems.

--------------------------------------------------------------------------- ----------------------
Mark Bates
m...@mackframework.com
http://www.mackframework.com
http://api.mackframework.com/
http://github.com/markbates/mack

On Dec 28, 2008, at 2:44 PM, Ezra Zygmuntowicz wrote:\


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jon Crosby  
View profile  
 More options Dec 28 2008, 6:11 pm
From: "Jon Crosby" <jon.r.cro...@gmail.com>
Date: Sun, 28 Dec 2008 15:11:21 -0800
Local: Sun, Dec 28 2008 6:11 pm
Subject: Re: [Proposal] Support post[title]=Hello params parsing

On Sun, Dec 28, 2008 at 2:43 PM, Mark Bates <m...@mackframework.com> wrote:

> Ezra, I think the original idea was that if nearly every framework is doing
> the same thing, shouldn't that be default. Callbacks would have the same
> problem, every framework writing the same implementation of the same thing.
> With that said, I completely understand the other side of the argument.

> Here are my suggestions:

> 1.) A config parameter that let's the Rack app decide which type of
> parameter 'processing' it would like to use.
> 2.) An 'extended_params' method that returns the extra processed
> parameters.
> 3.) A piece of Rack middleware in Rack-contrib that does the pre-processing
> of the parameters, so it's only used if people put it in line.

My previous post probably indicated this, but my vote is for #3 here with
the added convenience of having this available as a mixin (and used that way
in the middleware) too.

-Jon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scytrin dai Kinthra  
View profile  
 More options Dec 28 2008, 6:14 pm
From: "Scytrin dai Kinthra" <scyt...@gmail.com>
Date: Sun, 28 Dec 2008 15:14:53 -0800
Local: Sun, Dec 28 2008 6:14 pm
Subject: Re: [Proposal] Support post[title]=Hello params parsing
As stated previously, my ideal resolution to this proposal would be a
mesh of #2 and #3, a rack-contrib mixin for Rack::Request that would
add an extended_params method rather than preprocessing.
If only the preprocessing was done then there would probably be a
follow up request for a method to be added to Rack::Request for faster
access.

--
stadik.net

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Neukirchen  
View profile  
 More options Dec 28 2008, 6:42 pm
From: Christian Neukirchen <chneukirc...@gmail.com>
Date: Mon, 29 Dec 2008 00:42:34 +0100
Local: Sun, Dec 28 2008 6:42 pm
Subject: Re: [Proposal] Support post[title]=Hello params parsing

Mark Bates <m...@mackframework.com> writes:
> Here are my suggestions:

> 1.) A config parameter that let's the Rack app decide which type of
> parameter 'processing' it would like to use.
> 2.) An 'extended_params' method that returns the extra processed
> parameters.
> 3.) A piece of Rack middleware in Rack-contrib that does the pre-
> processing of the parameters, so it's only used if people put it in
> line.

Does 3.) imply the parameters always are parsed?

--
Christian Neukirchen  <chneukirc...@gmail.com>  http://chneukirchen.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Bates  
View profile  
 More options Dec 28 2008, 7:51 pm
From: Mark Bates <m...@mackframework.com>
Date: Sun, 28 Dec 2008 19:51:22 -0500
Local: Sun, Dec 28 2008 7:51 pm
Subject: Re: [Proposal] Support post[title]=Hello params parsing
Hmm... Yeah. Good point. I didn't think about that. Back to the  
drawing board I guess.

--------
Mark Bates

On Dec 28, 2008, at 6:42 PM, Christian Neukirchen <chneukirc...@gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Neukirchen  
View profile  
 More options Dec 28 2008, 8:05 pm
From: Christian Neukirchen <chneukirc...@gmail.com>
Date: Mon, 29 Dec 2008 02:05:48 +0100
Local: Sun, Dec 28 2008 8:05 pm
Subject: Re: [Proposal] Support post[title]=Hello params parsing

Mark Bates <m...@mackframework.com> writes:
> Hmm... Yeah. Good point. I didn't think about that. Back to the
> drawing board I guess.

I wonder if that really hurts... parsing query_string is quick, and
file uploads usually don't happen to arbitrary endpoints.

--
Christian Neukirchen  <chneukirc...@gmail.com>  http://chneukirchen.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yehuda Katz  
View profile  
 More options Dec 28 2008, 9:21 pm
From: Yehuda Katz <wyc...@gmail.com>
Date: Sun, 28 Dec 2008 18:21:20 -0800
Local: Sun, Dec 28 2008 9:21 pm
Subject: Re: [Proposal] Support post[title]=Hello params parsing
Extended parameters may never actually be used by the endpoint. In  
Merb, param parsing doesn't happen unless the user actually tries to  
use params()

Also, it is possible for param parsing to be reasonably slow,  
especially as more complex parameters are used.

I really want us to be in the habit of trying to avoid processing  
things unless they are actually needed.

Sent from my iPhone

On Dec 28, 2008, at 4:51 PM, Mark Bates <m...@mackframework.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 34   Newer >
« Back to Discussions « Newer topic     Older topic »