RE: Indentation of code

  • From: <Nick.Adamson@xxxxxxxxxxxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Thu, 20 May 2010 09:01:09 +0100

Hi.

I use a similar style to Jim and for mostly the same reasons.
The vast majority of my code I do in Visual Studio and some times I use the 
auto indent functions which are in VS.

When I used to code with out a Braille display I didn't often bother with it 
but as I use a Braille display all the time and our companies coding guidelines 
dictate the indent style it makes my life so much easier.
The other thing that goes in hand with indentation is the vs short cut keys 
right ctrl and the square brackets, '[' and ']'. This key stroke when performed 
on a '{' or '}' jump up and down function blocks.

HTH.
Nick.
 

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Homme, James
Sent: 19 May 2010 20:34
To: programmingblind@xxxxxxxxxxxxx
Subject: RE: Indentation of code

Hi,
I indent my code because I work with sighted people, and I like to see it in 
Braille because it helps my mind chunk the logic of my programs. I indent two 
or four spaces. I put the opening left brace on the same line with the control 
statement or function. I double space between statement chunks and the right 
braces that end functions. I use a special JAWS indentation scheme that plays 
piano notes for indentation levels at 2 spaces for up to 8 indentation levels 
just in case I need them. I don't so far use a program to clean up my indents. 
Maybe I'd be more efficient if I did, but, as I said, I like to feel the 
indentation on my Braille display and hear those notes.

It's probably my learning style, but I have a lot of trouble understanding code 
when more than one variable is initialized on one line and when people put 
their if, then, else statements on one line. I like to press a navigation key 
and here one chunk of data.

Thanks.

Jim

Jim Homme,
Usability Services,
Phone: 412-544-1810. Skype: jim.homme
Internal recipients,  Read my accessibility blog. Discuss accessibility here. 
Accessibility Wiki: Breaking news and accessibility advice


-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Øyvind Lode
Sent: Wednesday, May 19, 2010 11:55 AM
To: programmingblind@xxxxxxxxxxxxx; program-l@xxxxxxxxxxxxx
Subject: Indentation of code

Hi all:

I'm just wondering how you folks indent your code?
Do you use indentation at all?

I know that indentation is not required for C#, but sighted folks prefer it.

Currently I don't have any code to share between sighted and blind
programmers.
I've just started learning to program and I use C#.

I'm just curious and would like some pointers.
I'm just trying to develop a good habit of how my code should look like.

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind


This e-mail and any attachments to it are confidential and are intended solely 
for use of the individual or entity to whom they are addressed.  If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it.  If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this e-mail without the author's prior permission. 
 The views expressed in this e-mail message do not necessarily represent the 
views of Highmark Inc., its subsidiaries, or affiliates.
__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

Other related posts: