From: Paul van Tilburg Date: 2004-09-26T20:44:56+09:00 Subject: Re: Ruby Programming Language Tutor On Sun, Sep 26, 2004 at 03:19:31AM +0900, Brian Schroeder wrote: > On Sun, 26 Sep 2004 01:51:58 +0900, Paul van Tilburg wrote: > > [...] > > > > | (10..15).each do |i| puts i end > > because it's common style to use { ... } for one-liners. > > I saw a style guide that proposed using { ... } for blocks without side > effects and do ... end for blocks with side effects. This conveys more > information and I really like and use it. Side effects as in: modifying other (instance, class, non-local) variables instead of just returning anything? > If you start right now with devising exercises, I'd like to profit from > it, as I want to give a "real" ruby course beginning on the 4. Oktober. It > will be four four hour sessions and I need more exercises. OK. But I think our target group is different. Since I think our tutor can only give help to people knowing very little of progamming or OO programming. In the other cases, our tutor could think it knows a better solution, while the student already found a (in his/her opinion) superior solution which the tutor doesn't agree with. > If you want to see what I have devised so far (attention, i'm not yet > proud of it) see > http://ruby.brian-schroeder.de/course/ You are not proud of it? You should be, it is very nice. > If anybody wants to take the time to look into the slides as they are now > and correct me or point me to include other things don't heasitate. > Creting the course material is a lot more work than I thought :/ > > Regards, > > Brian > > > -- > Brian Schr�der > http://www.brian-schroeder.de/ > -- Student @ Eindhoven | JID: paul@luon.net University of Technology, The Netherlands | email: paul@luon.net >>> Using the Power of Debian GNU/Linux <<< | GnuPG: finger paul@luon.net