Re: Indentation of code

  • From: "qubit" <lauraeaves@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Wed, 19 May 2010 11:13:15 -0500

I used to program for a living when I had a little more sight -- I used 
screen enlargement and indeed indentation was very important for me at that 
time.  However, now with no print vision left and using speech and a little 
braille, it is harder to know when or how much a line of code is indented.

In my years of reading mail from this list I haven't heard how the various 
programming-adapted editors handle indentation -- do they keep track of the 
level of curly braces and indent automatically?
I am now learning C# and using Jamal's edsharp.  It seems to have every 
keystroke tied to some function. Perhaps I will learn how he handles 
indentation -- or can someone who is already an edsharp user perhaps answer 
what edsharp does in the way of indentation?

And of course there are other non-blindness related yet usable programs such 
as ultraedit, notetab, textpad, boxer, and whatever else.
These also have a following.

Hope this answers your query.
When I was working, I programmed C++ in large projects with teams of other 
programmers, and I can say that indentation style is nothing to dismiss as 
only "beautifying" the code -- it reflects logic and can even help in 
finding and fixing bugs.
So I am sure the editors of choice have some provision for inserting 
indentation.
So what editor did I use? well that was back when vi was the editor of 
choice for most people, and it assumed people would insert their own 
indentation.

Happy hacking.
--le



----- Original Message ----- 
From: "Øyvind Lode" <oyvind.lode@xxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>; <program-l@xxxxxxxxxxxxx>
Sent: Wednesday, May 19, 2010 10:55 AM
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

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

Other related posts: