Jerry,

as I already wrote: I'm not sure if it might break something - but
looking at my own code in Perl, python, bash, JS, C its always about
removing the leading whitespaces.
It won't fail if they aren't there..
Stripping the whitespaces in owhttp is - for me - rather a "dirty
workaround", but I could live with it.
I just don't want to duplicate this workaround another 100 times..

Sometimes one also has to change long-lived behaviour and no one is
forced to upgrade to the latest version, so nothing will break.
There might have been really good reasons, to make it that way some 10J
ago but these musn't stay true forever ;)

Michael

On 17.03.2014 18:49, Jerry Scharf wrote:
> Michael,
> 
> I agree with Paul on this. I think it is wrong to make a change to the 
> existing behavior for this kind of reason. The law of least surprise 
> says that what people have seen as OWFS output for the last decade 
> should be the default way it continues to output things.
> 
> It's not a question of whether people could make the changes to the new 
> form, it's a question of forcing every app that expects the current form 
> to rev so new apps don't have to strip the white space. There are 
> probably apps that work and people use that have gone out of support, so 
> breaking things is a big deal.
> 
> If the issue is only for programming interfaces, it seems easy to either 
> add an argument to wget to indicate whether it is stripped or not with 
> the default being not stripped. You could also have a separate routine 
> that returns a stripped version of a message so that every user does not 
> need to invent their own. You could even add a text/JSON routine so that 
> it is all done once.
> 
> If this is to change the way OWFS looks, then Paul's idea of a 
> pseudodirectory that indicates a stripped version is desired seems like 
> a good way to approach it. For owhttpd, you could do a command argument 
> that tells it to display everything in a stripped form.
> 
> just my $.02.
> 
> jerry
> 

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to