All the posts in my blog in the Functional programming category, enjoy!
19 posts
Convert the Open Meteo API from imperative code to functional programming in dart using fpdart. Introduction to the code and why using TaskEither as return type.
Either allows to explicitly handle errors in your code. Either is an alternative to try/catch. Let's learn how Either works, how it is defined, and how it differs from try/catch.
Differences and similarities of Future (Promise) and Task for asynchronous programming: how asynchronous requests are made using functional programming compared to imperative code.
Learn how to perform a complete API request with validation in Dart and Flutter using fpdart and Functional Programming.
TaskEither is the most used type in Functional Programming with fpdart. Do you know what TaskEither is in Functional Programming? In this post we are going to learn how to use TaskEither in fpdart.
Learn the difference between sync and async in Functional Programming, and how to work with asynchronous functions. What is the difference between Either and TaskEither? Option and TaskOption? IO and Task?
Loops using fold in Functional Programming. Learn why you do not need loops, and how to use the fold function in Functional Programming.
Immutability in Functional Programming. Learn what Immutability is, why Immutability is important, and how to write Immutable code.
Learn Pure functions in Functional Programming. Why using Pure functions, what a pure function is, and how to write code using pure functions.