some useful points. Dryness
not just good names for methods, the RIGHT names for methods Recognition that Enumerable, Array and Hash can do most of what you want for almost anything The correct partitioning of code between model and controller, for instance, controllers don't make decisions themselves they ask models to make decisions for them. Breaking larger methods down into smaller ones, with the right names be strict about migrations database level constraints are BAD. Don't fall in love with find_by_sql, it will fossilise your datastructure On 7 Oct 2008, at 11:48, Paul Robinson wrote: > > I've been asked by a client to deliver a training programme for Ruby > on Rails. Because of the target audience (experienced developers, but > not necessarily Ruby or web programmers), I'm giving it a re-vamp. > > One of my bugbears is that currently training is all back-to-front: it > focuses on syntax and then at the last minute suggests you go off and > discover version control, TDD, BDD, code coverage, improved security > techniques, etc. > > So I've decided whilst giving my material a dusting off and bringing > it up to date with latest Rails (it was written originally a little > before 2.0, and for online-only, not for classroom stuff as well), > I've decided to also re-vamp it in terms of tone and put things like > TDD and version control right in at the beginning so they become > habits right from the start of learning Rails. > > What other techniques do you think I should be putting in there? What > do you know now you wish had been in that first Rails tutorial you > picked up? Am I being too harsh on my students? :-) > > Oh, and I'm thinking that once this programme has been delivered, it > might be fun to run this for free with NWRUG'ers as Guinea Pigs. It's > currently set up for 3 days, but will be re-vamped to go to 6 days of > classroom time plus assignments, so it might be a 6-week course of > Saturdays along with some moddle stuff. If it were free, would people > be interested in becoming a guinea pig and helping me improve the > material so I could go and sell it? > > -- > Paul Robinson > > http://vagueware.com :: [EMAIL PROTECTED] :: +44 (0) 7740 465746 > > Vagueware Limited is registered in England/Wales, number 05700421 > Registered Office: 3 Tivoli Place, Ilkley, W. Yorkshire, LS29 8SU > Correspondence: 55 Velvet Court, Granby Row, Manchester, M1 7AB > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "NWRUG" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/nwrug-members?hl=en -~----------~----~----~----~------~----~------~--~---
