Re: RPN maps to basic mathematic expressions nicely
- From: John Passaniti <nntp@xxxxxxxxxxxxxxxxx>
- Date: Tue, 20 Nov 2007 18:32:00 GMT
kenney@xxxxxxxxxxxxxxxxxxx wrote:
Jack tossed the ball to Jill.
Nice and clear and unambiguous, however consider this one.
Time flies like an arrow.
You forgot the next line:
Time flies like an arrow,
fruit flies like a banana.
My claim isn't that one can't construct confusing sentences in English. In fact, if we couldn't write confusing sentences, we wouldn't have puns and poetry.
My claim is that for the vast majority of communication between people experienced with a language, understanding isn't something that requires conscious deconstruction of the sentences. You are reading these words right now without getting out paper and pencil and diagramming my words. It's automatic. You don't think about it.
The *same* applies to people experienced with programming languages. If you aren't that familiar with a language like C, this is pure gibberish:
while (char ch = *s++)
blah(ch);
For someone who isn't experienced with C, this isn't readable. They sit there and pick apart the expression, stepping through each element, puzzling through everything. But if you are experienced, this is readable (and idiomatic). You don't see the syntax. You just see the programmer's intent.
Personally while most of my programming has been in Basic and Pascal I still find Forth easier to read than C.
I'm not sure why that should be surprising. You've stated that most of your programming is in BASIC, Pascal, and Forth. Why would a language you apparently have less experience with (C) be easier to read? My claim is simple-- readability is more a measure of experience in a language than a property of the language itself.
.
- Follow-Ups:
- Re: RPN maps to basic mathematic expressions nicely
- From: Elizabeth D Rather
- Re: RPN maps to basic mathematic expressions nicely
- References:
- Re: RPN maps to basic mathematic expressions nicely
- From: John Passaniti
- Re: RPN maps to basic mathematic expressions nicely
- From: kenney
- Re: RPN maps to basic mathematic expressions nicely
- Prev by Date: Re: RPN maps to basic mathematic expressions nicely
- Next by Date: Re: RPN maps to basic mathematic expressions nicely
- Previous by thread: Re: RPN maps to basic mathematic expressions nicely
- Next by thread: Re: RPN maps to basic mathematic expressions nicely
- Index(es):
Relevant Pages
|