RE: Errors In C# demo program I can't see or I don't understand

  • From: "Rasmussen, Lloyd" <lras@xxxxxxx>
  • To: "programmingblind@xxxxxxxxxxxxx" <programmingblind@xxxxxxxxxxxxx>
  • Date: Tue, 28 Jun 2011 09:14:16 -0400

Compilers are not omniscient, nor were they created by omniscient programmers.  
A syntax error in one place will often send the error-reporting routines down a 
weird path, and most of the resulting output will be nonsensical.  Ken's advice 
is good:  you have to compile, debug, rewrite, compile, etc. through many 
iterations.  Usually, on each pass through this loop, the errors and warnings 
will be more germane and make more sense.  I have certainly seen this with XML 
parsers.  The language may be well-defined, but some mistakes just don't parse 
well enough for the validator to understand what you were trying to write.

When I was attempting to write Fortran in college in the 1960s, submitting it 
on punch cards and getting a printout back from the IBM/360 in the computer 
center the next day, often the best feedback I got was something like "syntax 
error on line 60, runtime 0.2 seconds."  I'm glad that those days of learning 
programming are over.
 

Lloyd Rasmussen, Senior Project Engineer
National Library Service for the Blind and Physically Handicapped
Library of Congress   202-707-0535
http://www.loc.gov/nls
The preceding opinions are my own and do not necessarily reflect those of the 
Library of Congress, NLS.


-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Katherine Moss
Sent: Monday, June 27, 2011 9:13 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: RE: Errors In C# demo program I can't see or I don't understand

Do I really?  Oops. Okay.  Thanks.  I'll go take a look at that.  Strangely 
enough, JAWS never read that one off, therefore, I must have missed it that 
way.  And when debugging, I'm surprised that the compiler didn't just tell me 
that rather than be obscure about it.  Do you think that once I get more into 
this, then I'll get used to those obscurities?  And ... never mind.  I see it 
now LOL.  

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Christopher Coale
Sent: Monday, June 27, 2011 9:06 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: Re: Errors In C# demo program I can't see or I don't understand

Notice that you have an extra quotation after "userName". ;)

On 6/27/2011 5:56 PM, Katherine Moss wrote:
> Console.WriteLine("Welcome {0}!", userName");

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

Other related posts: