3 ms·
But in order to teach something actually useful you need to provide code samples in a specific language. Speaking in generalities like 'Functional programming e
by yawaramin 5y ago
But in order to teach something actually useful you need to provide code samples in a specific language. Speaking in generalities like 'Functional programming emphasizes pure functions' doesn't really tell people how to practice it.
- flowerlad 5y agoSure, and as I said before, provide examples in multiple languages, because the demographic I am talking about is interested in FP, not one particular FP language.
- yawaramin 5y agoOverloading the learner with examples from multiple languages is also a bad teaching method. It just adds to the confusion and complexity. They will be overwhelmed with the different techniques needed to bolt functional programming on to various degrees in C#, JavaScript, Rust, etc. When teaching, it's much better to teach as little as possible at a time, so that learners can absorb concepts easily through their working memory and then build on their knowledge over time.
- pjmlp 5y agoPrograms = Algorithms + Data Structures Hence why I really favour CS books that rather pick a pseudo-code language, than trying to sell language X as part of exercises.