Okay, that's a different reason than what was previously given ;) If you are having trouble with brace matching, hard to see how that is more readable. But more to the point, you've really answered your own original question: if the projects you are involved in don't let you choose the language, it is unlikely they'd let you dictate the style. So what you should aim for is consistency, and in the projects you are working with, consistency with the style(s) used in the existing code.
|-----Original Message----- |From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet- |boun...@ozdotnet.com] On Behalf Of Katherine Moss |Sent: Thursday, 14 February 2013 2:30 PM |To: ozDotNet |Subject: RE: does anyone know a good technique to keep track of your braces in |C#? | |I selected C# over VB because in my opinion, C# is a lot more readable than VB is, |and every application in .net that I am in any way associated with uses C#, I think. |So it would be impractical for me to learn a language for a project if a project |uses another language, right? | | | |From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet- |boun...@ozdotnet.com] On Behalf Of Ian Thomas |Sent: Wednesday, February 13, 2013 10:11 PM |To: 'ozDotNet' |Subject: RE: does anyone know a good technique to keep track of your braces in |C#? | | | |My suggestion would extend on Bill's: write some example code in VB.NET, to get |familiar with .NET assemblies etc - then use one of the code translators to see |the equivalent in C#. That will give you a start in first laying out the obvious code |structure (VB is much more explanatory / verbose in that regard), and comparing |what C# requires for code structures (beyond the braces) is educational as well. | |Once your code becomes more complex, you won't want to use the "write-in-VB- |and-translate" approach: mainly because you will either recognize the inherent |superiority of VB.NET over C# J and/or the free / demo VB to C# translators can't |handle some more complex code. | |________________________________ | |Ian Thomas | |Victoria Park, Western Australia | |-----Original Message----- |From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet- |boun...@ozdotnet.com] On Behalf Of Bill McCarthy |Sent: Thursday, February 14, 2013 8:45 AM |To: 'ozDotNet' |Subject: RE: does anyone know a good technique to keep track of your braces in |C#? | |If looking for a programing language that is more suited to a text reader, | |then I'd suggest VB, where blocks are more self descriptive, eg: If ... | |Then ... Else .. End If.