[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ruby-tut] Errata / Comments
From: |
Davis, James (NIH/CIT) |
Subject: |
[ruby-tut] Errata / Comments |
Date: |
Mon, 24 Mar 2003 16:01:40 -0500 |
The Basics / New names for old things
Typo:
- Method ... Think of it as the object's "hehaviour".
+ Method ... Think of it as the object's "behaviour".
or
+ Method ... Think of it as the object's "behavior". (US Spelling)
The Basics / Writing good programs / Use constants
Suggestion: Might want to mention that some programmers use all
uppercase letters in constant names, e.g., MAX_WEIGHT = 100.
The Basics / Writing good programs / Use interactive resources?
Suggestion: Move the 'Use constants' section above 'Use irb',
and add sections for 'Use interactive resources' (as you
mentioned on the ML the other day):
ruby -e 'puts SomeClass.instance_methods.sort' | more
ri SomeClass.some_method
pickaxe
as ways to learn about what you can do with a class.
Note: Windows does not have a less command, but does have more.
Just a suggestion. Maybe it's too early to introduce the reader
to ri and ruby -e.
More later,
- Jim -