2 ms·
I’m not a psychologist. I can’t talk about most people. I do not. I break problems down into sub problems and then think of how to combine results to achieve th
by tathougies 8y ago
I’m not a psychologist. I can’t talk about most people. I do not. I break problems down into sub problems and then think of how to combine results to achieve the answer. I repeat this until my subproblem is trivial. This lends well to the compositional approach of functional languages. Imperative languages require taking the extra step of scheduling. I think many people think like me but due to the prevalence of imperative languages, do not pursue cs.
- magicalhippo 8y agoWell, scheduling is important. I can't connect my new phone to the computer until I've taken it out of the box it came in. It feels like I'm leaning to the imperative side. When breaking down the problem into substeps, I'm already thinking about the sequencing which will later dictate the scheduling. I've been teaching Scratch[1] to 11-13 year olds for a few years now, and most seem to pick it up pretty quick. However a few struggle (while still being motivated enough to keep trying). Would be interesting to see how it went with a functional Scratch version. [1]: https://scratch.mit.edu/ https://scratch.mit.edu/
- lmm 8y ago> Well, scheduling is important. I can't connect my new phone to the computer until I've taken it out of the box it came in. That's not scheduling, that's a data dependency which functional style handles very well. Imperative would be more like deciding you have to unpack the charger and then unpack the phone and then charge the phone, when in fact it's fine to unpack them in either order. http://www.lihaoyi.com/post/WhatsFunctionalProgrammingAllAbout.html http://www.lihaoyi.com/post/WhatsFunctionalProgrammingAllAbo... has an extended example.
- magicalhippo 8y agoGood point, thanks for the correction.
- tathougies 8y agoI think codeworld is a more functional alternative to scratch, although much less drag and drop. Check it out.. It's pretty fun! https://code.world/ https://code.world/