Re:Learn more programming languages, even if you won't use them
by darkhorn on Saturday April 13, 2019 @03:24PM
(#19655190)
It is not sarcasm. Yes, they love working with me, they learn new things from me and they use it. Generally their face is like "o_O I wish I've learned it before". I use build-in functions of PHP and Java in way without loops, there is nothing unknown. I don't write Erlang code. Here is an example what I mean;
And here in Python
[ Parent
| on HN ]
Re:Learn more programming languages, even if you won't use them
by jodrellblank on Saturday April 13, 2019 @11:22PM
(#19657404)
"no loops means less bugs"
But the loops will be clear and explicit. People can check if you have an off-by-one error.
Python does not support many recursive calls, after "n" gets beyond a certain number, the code will crash with a RecursionError.
That is a bug which is much harder to see. The code will crash if N < 0 for the n_th() method, which is probably a bug.