Closed robinetmiller closed 5 years ago
These are excellent changes, and I think they will simplify the workshop by a lot! 🤩Plus, it teaches pro Rubyist practices, if learners want to take their skills to the next level! 🤞🏼
Thanks for this work @robinetmiller!
Note: This is based on #17, so it's actually smaller than the current diff would indicate (if that PR accepted).
Extends the work done by @ChaoticBoredom and @eddieantonio's (in #15 and #16; merged in #17) and bring the slides further into standard Ruby practices, based on our strong mutual agreements after the 2019 April 27th Edmonton session.
It also furthers the mental model simplifications started by @jleben (#14, etc) to improve learner comprehension.
Error Corrections
Simplifications & Consistency
'it's cold out'
)hello.rb
toex1_hello.rb
=> To create a standard file name series in the solutionsAligned code and slides with professional Ruby standards
puts
instead of teaching bothprint
andputs
=> To reduce learner conceptual model to a single style. (We had many questions on which one to use) => To reduce use of unnecessary\n
characters => To conform with real-world code norms (puts
is far more common)for X in Y
loops with#each
=> To adhere to standard Ruby practice => To reduce the possibility of errors (iteration variable remains defined in first style)Object
) => Reduces conceptual model for learners (slides used to talk about both functions and methods)