Skip to content

Reading R Code aloud

5 messages · cwdillon, Liviu Andronic, Andrew Hoerner +1 more

#
Dearfolks-- 
I have been told by an experienced R programmer and teacher whom I trust
that it is easier to understand R code if you read it aloud, as the language
that it is.  However, she was clear that reading it aloud was not simply
reading the marks on the screen: you read A.df[5,] as "the fifth row of
A.df" (or "the fifth row of data frame A"), not as "A dot df left square
bracket five comma right square bracket," which is not helpful at all.  So
you have to be able to read it to read it aloud. I have observed this of
poetry as well, and that, if you hear a poem read well once, you have a
deeper understanding of it (and often other work by the same poet) forever
after, even when reading it silently.

So I was wondering if there are any significant example of people reading R
code out loud available on the web, on youtube or something? I did not find
any on ten minutes search, but perhaps I do not know how best to look. Does
anyone know of any?

Warmly, andrewH

--
View this message in context: http://r.789695.n4.nabble.com/Reading-R-Code-aloud-tp3811142p3811142.html
Sent from the R help mailing list archive at Nabble.com.
#
Well, I've bee reading the R Manual, Nathan Yau's book on Flowing Data, and a
few others like this to my kids to get them to go to sleep. I started off
doing it the *wrong* way, just to keep it boring but slipped into doing it
the *correct* way for my own sanity. It puts the kids to sleep in no time
and I actually get some meaningful reading in. The familiar narrative style
and topics such as hotdog (hdb) eating contests are not as effective as R
manuals and getting the kids to sleep; even with the code.
-Clarence


--
View this message in context: http://r.789695.n4.nabble.com/Reading-R-Code-aloud-tp3811142p3811702.html
Sent from the R help mailing list archive at Nabble.com.
#
On Wed, Sep 14, 2011 at 4:50 AM, cwdillon <cwdillon at gmail.com> wrote:
This is a pearl! May I nominate this as a fortune?
Liviu
#
Dear Clarence--

LOL!  R really is good for an amazing range of things! How old are your
kids?

If no one else points to an intensional sample of "vocal R", maybe you could
record one of your more inspired readings. It could be a service to the
community of R learners -- and if it catches on, perhaps to parents
everywhere.

Peace, andrewH
 



--
View this message in context: http://r.789695.n4.nabble.com/Reading-R-Code-aloud-tp3811142p3813540.html
Sent from the R help mailing list archive at Nabble.com.
#
I wonder if reading C would work for those extra fussy nights?  Of
course if it didn't work, I'm not sure how to explain the cries of,
"but foo wasn't protected from the garbage collector!" to the
neighbors...
On Wed, Sep 14, 2011 at 10:03 AM, andrewH <ahoerner at rprogress.org> wrote: