THe hard part is identifying which 'same' to use

On Thu, Jun 28, 2012 at 5:56 PM, <[email protected]> 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" <[email protected]>
> *Sender: * [email protected]
> *Date: *Thu, 28 Jun 2012 17:50:40 +1000
> *To: *'ozDotNet'<[email protected]>
> *ReplyTo: * ozDotNet <[email protected]>
> *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****
>



-- 
Meski

 http://courteous.ly/aAOZcv

"Going to Starbucks for coffee is like going to prison for sex. Sure,
you'll get it, but it's going to be rough" - Adam Hills

Reply via email to