So, I think we all got something out of tonight.  To recap, we covered:

* How to help yourself: ri, google, mailing lists
* Values, variables, and constants
* Arrays
* Introspection
* Blocks
* Why Matt should test his examples before bringing them to class

There's a couple of exercises to be done by about Monday next week, with
results sent back to the list for comment and improvement:

- Generate a set of 20 random numbers between 1 and 100, and then print only
  the odd ones -- with the special caveat that your solution *must* use
  Array#<< and Array#select.  Don't know what they do?  See the first point
  above.
- Read all lines from standard input, then print them out in a random order. 
  (Hint: Array#sort_by)  (Extra hint: There's more to the IO class than
  each_line -- there are also methods to read lines)

Remember, you're not being marked, so there's no point in "hiding" your
solutions -- post your ideas early, then you can get feedback from everyone,
and improve your code.

Also, please e-mail the code you wrote tonight to solve David's rounding
problem to the list, and watch the list so you can comment on other people's
submissions.  I'd like to see at least one suggestion on someone else's code
from everyone in the group.

- Matt
_______________________________________________
coders mailing list
[email protected]
http://lists.slug.org.au/listinfo/coders

Reply via email to