Thanks for marketing map. Yes, map rocks. It is very idiomatic, for decades now, so I wish people stopped teaching for-loops to new programmers. Loops make messy code, really, that hides the intent in favor of showing the mechanism. They are not 'classic' but 'outdated' (in 90% of the cases).
Also, I would love if exemplary articles as this one would choose tuple in their examples. Especially in the context of map, lists are really overkill.
My name is Enes and I am working as software engineer. I like to share some things like technical knowledges to teach and learn. If you are interested follow me and check the notifications :)
Thanks for marketing
map
. Yes,map
rocks. It is very idiomatic, for decades now, so I wish people stopped teaching for-loops to new programmers. Loops make messy code, really, that hides the intent in favor of showing the mechanism. They are not 'classic' but 'outdated' (in 90% of the cases).Also, I would love if exemplary articles as this one would choose
tuple
in their examples. Especially in the context ofmap
, lists are really overkill.I want to pont to a recent article of mine that explains this:
dev.to/xtofl/tuple-reveals-your-in...
thanks for the response ! :)