The first 500 people to use my link (https://skl.sh/isaacharrisholt11241) will get a 1 month free trial of Skillshare premium!
Looping is a very common, and very useful, practice in software development. But do you need it, or are there other alternatives? Perhaps, better alternatives?
Resources:
Gleam's list module: https://hexdocs.pm/gleam_stdlib/gleam...
Errors as values are the future: • Errors as Values are the Future
This video is sponsored by Skillshare.
__________________________________________
Check out my other socials!
🎮 Discord ▶ https://discordapp.com/invite/bWrctJ7
🐦 Twitter ▶ / isaacharrisholt
🖥️ Portfolio ▶ https://ihh.dev
📝 Blog ▶ https://isaacharrisholt.com
__________________________________________
Timestamps:
00:00 - Introduction and explanation
01:11 - Recursion recap recursion recap recursion recap
02:26 - Replacing loop constructs
05:47 - Handling errors in recursive functions
07:14 - Higher-Order Functions, or ‘Why you don’t need to recurse’
08:02 - When is recursion better than loops?
09:07 - Are loops ever useful?
#gleam #softwareengineer