<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Functional Programming on Mohseen</title><link>https://www.mohseen.dev/tags/functional-programming/</link><description>Recent content in Functional Programming on Mohseen</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 08 Dec 2021 18:58:10 -0800</lastBuildDate><atom:link href="https://www.mohseen.dev/tags/functional-programming/index.xml" rel="self" type="application/rss+xml"/><item><title>Convert Promises to ReaderTaskEithers</title><link>https://www.mohseen.dev/post/2021-12-08-convert-promises-to-rte/</link><pubDate>Wed, 08 Dec 2021 18:58:10 -0800</pubDate><guid>https://www.mohseen.dev/post/2021-12-08-convert-promises-to-rte/</guid><description>&lt;h2 id="making-promises-functional"&gt;Making Promises Functional&lt;/h2&gt;
&lt;p&gt;Hey folks, this is a quick overview on how to make promises functional in &lt;span class="highlight-block"&gt;fp-ts&lt;/span&gt;. If you&amp;rsquo;re new to fp-ts would highly recommend reading the &lt;a href="https://rlee.dev/practical-guide-to-fp-ts-part-1"&gt;fp-ts guide&lt;/a&gt; to get more familiar with the library. Before we delve into why fp-ts, and why promises are a pain to get port onto fp-ts, wanted to first walk through why functional paradigm is a good option in the first place.&lt;/p&gt;
&lt;p&gt;There is a heavy debate between Functional and OOP for decades with functional being more in vogue lately, but there are true benefits from having well tested and pure
functional code even in the most monolithic of applications.&lt;/p&gt;</description></item></channel></rss>