Post AbWjQuEC2fBulxNUf2 by IsomorphicDude@fosstodon.org
(DIR) More posts by IsomorphicDude@fosstodon.org
(DIR) Post #AbWTZnuXIcr6WJP8lM by alexelcu@social.alexn.org
2023-11-06T07:32:36Z
0 likes, 0 repeats
When learning new “paradigms”, telling people to “unlearn” is bad advice.We always build on existing knowledge. Teachers need to find ways to make people see the benefits of new paradigms by comparison, and to reuse prior knowledge.If seniors have a harder time learning, besides the cognitive decline, the obvious reason is their experience telling them “this is bullshit”. And that's a good thing. We should listen to our gut more often.Examples: Kubernetes, GraphQL, PaaS, serverless.
(DIR) Post #AbWUFHdnfVhobDM5lA by dwardoric@chaos.social
2023-11-06T07:40:06Z
0 likes, 0 repeats
@alexelcu Amen! =)
(DIR) Post #AbWUkX54JVRvSi0iga by IsomorphicDude@fosstodon.org
2023-11-06T07:45:45Z
0 likes, 0 repeats
@alexelcu I feel this is a definition problem. I think you're totally right in stating that we should listen more to our guts (and, to be honest, to a well carried out risk/benefits analysis). I'm guilty of telling people to unlearn, because for me that's the quickest way to let them know that they have to unwire their brain, otherwise they'll keep seeing the same old solution to a problem solved in a new way (for loop vs. .map is the example that comes to mind)
(DIR) Post #AbWdGC1gvcQd3x2Su0 by alexelcu@social.alexn.org
2023-11-06T09:21:05Z
0 likes, 0 repeats
@IsomorphicDude I know what you mean, and such a strategy may be right.However, if people know and have worked with loops, you can also use that to their advantage. A `foldLeft` or a `traverse` is just a loop. Given the `Iterator` protocol on the JVM, all `traverse` operations can be described as plain loops, on all data structures, no exceptions. Similarly, a tail-recursive function is just a loop, except that it works with immutability.https://alexn.org/blog/2021/01/26/tail-recursive-functions-in-scala/
(DIR) Post #AbWdS00FSMDRFRzeHQ by alexelcu@social.alexn.org
2023-11-06T09:23:16Z
0 likes, 0 repeats
@IsomorphicDude I actually don't know how it's best to teach people who haven't worked much with loops before. Because tail-recursion can also be taught by starting from regular recursion / math.
(DIR) Post #AbWiqxeLqGgMxbTPTE by IsomorphicDude@fosstodon.org
2023-11-06T10:23:48Z
0 likes, 0 repeats
@alexelcu Indeed. And the parallelism can help understanding the semantics of the operation. What I'm thinking of is more in terms of muscle memory. In my experience, when I was learning about polymorphic combinators I had to make a conscious effort not to start typing up `for (i = 0,. ...)`, which might seem a small thing, but I think is the first big hurdle that needs to be overcome when "unlearning to learn new stuff"
(DIR) Post #AbWjQuEC2fBulxNUf2 by IsomorphicDude@fosstodon.org
2023-11-06T10:30:17Z
0 likes, 0 repeats
@alexelcu I've never found myself in the situation, tbf. I've always worked with people that had some background. I guess it might not be an easy concept to grasp without an idea of loops