4 ms·
Learning a programming language in 1 day to solve a particular problem isn’t the same as learning it over years to write actual production code. I doubt the aut
by armchairhacker 4y ago
Learning a programming language in 1 day to solve a particular problem isn’t the same as learning it over years to write actual production code. I doubt the author was writing “idiomatic” code and he probably transplanted paradigms from more familiar languages in the newer ones.
But it’s still very useful and I’m sure he learned a lot and absorbed of some of the new languages’ programming styles. You don’t master idiomatic functional programming from one week of writing Haskell, but it does introduce you to basic concepts like functors, lambdas and embedding computation (IO) in data.
- canadianfella 4y ago[dead]
- fnands 4y agoDefinitely true (not that should stop anyone, little projects like these are a great way to get exposed to other languages). From my personal experience of doing AoC in Julia this year, my Julia code started out smelling a lot like Python, but managed to adopt a bit more of the Julian way of doing things as I went along (not done yet though...)
- DonaldPShimoda 4y agoFor what it's worth, the author is well-known in the field of programming languages and was a professor in that area at the University of Utah for a number of years before changing life focus and relocating to the University of Alabama's Precision Medicine Institute. Which isn't to say that you're wrong, but rather that the author is likely well aware of these particular shortcomings of the exercise. But then the exercise wasn't "write perfectly idiomatic code in a different language every day", but just "learn some languages I didn't know before".