canadalearningcode / llc-intro-to-ruby

Intro to Data Analysis with Ruby -- (SLIDES - http://ladieslearningcode.github.io/llc-intro-to-ruby/slides.html), (LEARNER FILES - http://bit.ly/llc-ruby-data) - No sample project.
Other
7 stars 10 forks source link

Remove functions #16

Closed eddieantonio closed 5 years ago

eddieantonio commented 5 years ago

This pull request removes the brief introduction to functions in the slides. In the current version of the slides, functions are introduced before variables, before if/else, and before loops πŸ€”. Functions themselves present tricky syntax that learners frequently stumble upon. Even worse, aside from the final exercise casually asking the learners to define a function to solve it, defining functions is never mentioned or practiced in the rest of the slide deck!

As such, myself and a few other mentors/instructors have concurred that functions should not be introduced in the slide deck at all, in order to reduce cognitive burden, lessen the amount of syntax to remember, and as to avoid explaining concepts like scope, argument passing, return values, etc., β€” especially when they are not at all required to solve any of the exercises in this workshop.

Don't get me wrong β€” functions are my favourite thing in computer science! β€” but it's better to introduce them a bit later in a learner's journey in learning how to code, rather than early on a Saturday morning! πŸ˜„

robinetmiller commented 5 years ago

To hopefully reduce the workload of merging a bunch of changes (hopefully not treading on toes), I've already merged #16 and #15 into my fork here: https://github.com/robinetmiller/llc-intro-to-ruby