[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: single quotes instead of double

Subject: Re: single quotes instead of double
From: Michel Hendriksen <michel.hendriksen@xxxxx>
Date: Mon, 21 Nov 2011 15:54:27 +0100
Re:  single quotes instead of double
Lol large topic about quotes. Spaces can be a problem when your editor
adds/changes them and you are using a version control system...

On Mon, Nov 21, 2011 at 3:45 PM,  <dvint@xxxxxxxxx> wrote:
> Isn't this really the rule you want?
>
>>> That way the poor sod (me) maintaining the code will find them where
> they expect to find them.
>
> That is, "do what I expect you to do", not that there is any particular
> universal rule. Different companies have different stanards, sometimes
> they agree with my approach, sometimes they don't. Spaces or tabs is only
> a problem if you have 2 people doing 2 different things or you like to set
> your tabs at a different spacing, doesn't make one right or wrong.
>
> ..dan
>
>
>>> For someone reading XML, the attribute delimiter chosen should be
>>> irrelevant
>>> because it is, syntactically, irrelevant.  So use whatever you want and
>>> don't bother imposing a style.
>>
>> 'Use whatever you want' doesn't help maintainability, style guides
>> exist for a reason...  you want code to look the same regardless of
>> who wrote it in the team.
>>
>> There might be the odd occasion where taking advantage of the choice
>> of delimiter is helpful, but in general (my view is) people should
>> consistently use double quotes.
>>
>> I also use/want 4 spaces for the indentation, 2 lines between
>> templates etc, Another example is declaring all the namespaces on the
>> root element - you could declare them where you like, but the general
>> rule is on the root element.  That way the poor sod (me) maintaining
>> the code will find them where they expect to find them.
>>
>> By the way, if anyone has their own rules for laying out their code
>> I'd like to hear them. (on or off-list is fine)
>>
>> --
>> Andrew Welch
>> http://andrewjwelch.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.