It's easy. Whatever is the Default in Resharper after a clean install is
considered the Default in our team :)


On Thu, Jun 28, 2012 at 9:47 PM, Michael Ridland <rid...@gmail.com> wrote:

>
> Having Javascript braces on the same line are needed for technical
> reasons.
>
>
>
>
> On Thu, Jun 28, 2012 at 6:11 PM, Michael Minutillo <
> michael.minuti...@gmail.com> wrote:
>
>> Yeah as long as the team agrees to a consistent style and sticks to it it
>> doesn't matter. It can be hard to switch from one brace style to another
>> but as long as the codebase is consistent it's something you can deal with.
>> Over time (and projects) within an organization the problem slowly goes
>> away (unless there's one a-hole that refuses to conform).
>>
>> I know that when writing samples for a book it's common to put open
>> braces next to the expression that owns them to save on printed lines (one
>> line saved on 40 method calls through the book can mean one less printed
>> page). This is common in JavaScript too so there's language idioms to
>> conform to as well.
>>
>>
>> Michael M. Minutillo
>> Indiscriminate Information Sponge
>> http://codermike.com
>>
>>
>>
>> On Thu, Jun 28, 2012 at 3:56 PM, <djones...@gmail.com> wrote:
>>
>>> Stylecop ;). If you can convince the team that code that looks the same
>>> is eaiser to debug it elliminates all the posturing.
>>>
>>> Davy
>>> Hexed into a portable ouija board.
>>> ------------------------------
>>> *From: * "Greg Keogh" <g...@mira.net>
>>> *Sender: * ozdotnet-boun...@ozdotnet.com
>>> *Date: *Thu, 28 Jun 2012 17:50:40 +1000
>>> *To: *'ozDotNet'<ozdotnet@ozdotnet.com>
>>> *ReplyTo: * ozDotNet <ozdotnet@ozdotnet.com>
>>> *Subject: *What's up with braces?
>>>
>>> When I started PC coding 20 years ago on C and C++ there the convention
>>> about where to put your {braces} was unclear. I remember back then that
>>> there seemed to be more Microsoft sample code with vertically aligned
>>> braces, so I ran with that and I have been ever since, even in my Java
>>> days. I can’t recall ever having a debate with previous colleagues about
>>> which style to use, so in the absence of any memorable disputes I’m
>>> guessing we all used vertical braces.****
>>>
>>> ** **
>>>
>>> However, I notice a strong trend towards indented braces over the last
>>> couple of years. The Framework Design 
>>> Guidelines<http://www.amazon.com/Framework-Design-Guidelines-Conventions-Libraries/dp/0321545613>book
>>>  also authoritatively states that indented braces are now recommended.
>>> So am I caught on the losing side of a braces battle?****
>>>
>>> ** **
>>>
>>> It may seem trivial, but your eyes and brain get used to a certain
>>> appearance of code (like the VB vs C# battle) and a subtle change takes a
>>> bit of getting use to. Are my millions of existing lines of C# code with
>>> vertical braces now a testament to my defeat? Is anyone else suffering from
>>> a project with mixed brace styles?****
>>>
>>> ** **
>>>
>>> Greg****
>>>
>>
>>
>
>
> --
>
> *Michael Ridland | ThinkSmart Digital*
> Managing Director
> P. 0404 865 350
> E. mich...@thinksmartdigital.com.au
> W. www.thinksmartdigital.com.au
> T. www.twitter.com/rid00z
> L. au.linkedin.com/in/michaelridland
>
>
>  <http://au.linkedin.com/in/michaelridland>
>
>

Reply via email to