<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>JavaScript on Mohseen</title><link>https://www.mohseen.dev/tags/javascript/</link><description>Recent content in JavaScript on Mohseen</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 03 Oct 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://www.mohseen.dev/tags/javascript/index.xml" rel="self" type="application/rss+xml"/><item><title>Master the Code Beast: An Absolute Guide to Profiling in NodeJS</title><link>https://www.mohseen.dev/post/2023-10-03-master-the-code-beast-an-absolute-guide-to-profiling-in-nodejs/</link><pubDate>Tue, 03 Oct 2023 00:00:00 +0000</pubDate><guid>https://www.mohseen.dev/post/2023-10-03-master-the-code-beast-an-absolute-guide-to-profiling-in-nodejs/</guid><description>&lt;p&gt;In every developer&amp;rsquo;s journey, there comes a time when an application starts knocking on the doors of performance deficiencies. You may have written clean &amp;amp; efficient code (well, most of the time at least), but server woes can put a damper on the best efforts. This guide will teach you the nuances of profiling in Node.js, helping you master those server performance issues once and for all!&lt;/p&gt;
&lt;p&gt;As Krogh Hansen succinctly puts it, &amp;ldquo;You can&amp;rsquo;t improve what you can&amp;rsquo;t measure&amp;rdquo;[1]. Profiling, at its core, involves measuring how CPU time is spent in a program’s functions and methods. This is a powerful technique central to honing the performance of your application.&lt;/p&gt;</description></item><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>