There is something to be said for simplicity in teaching programming, since there is a segment of programming examples that use "difficult" math as examples of writing programs.
Or worse, make the code harder to read...
Let's take this elixir example:
add = fn a, b -> a + b end
A new person reading that code is going to be a bit confused:
add = fn(a, b) -> a + b end
... is more readable.
Code examples are filled with examples of learning something rather trivial, but instead of using a simpler example, we are led to solve the Fibonacci sequence.
I'm not that bad with math. But I'm not that great either. Still, I consider myself a pretty good programmer.
But man, using those math examples -- is a BIG turnoff and it slowed my learning a lot.
There is something to be said for simplicity in teaching programming, since there is a segment of programming examples that use "difficult" math as examples of writing programs.
Or worse, make the code harder to read...
Let's take this elixir example:
add = fn a, b -> a + b end
A new person reading that code is going to be a bit confused:
add = fn(a, b) -> a + b end
... is more readable.
Code examples are filled with examples of learning something rather trivial, but instead of using a simpler example, we are led to solve the Fibonacci sequence.
I'm not that bad with math. But I'm not that great either. Still, I consider myself a pretty good programmer.
But man, using those math examples -- is a BIG turnoff and it slowed my learning a lot.
(Self taught computer programmer)