<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Darrion Ramdin on Medium]]></title>
        <description><![CDATA[Stories by Darrion Ramdin on Medium]]></description>
        <link>https://medium.com/@darrion?source=rss-e83d9d91d94a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8BtziAu61IF_aHFmrXQkhA.jpeg</url>
            <title>Stories by Darrion Ramdin on Medium</title>
            <link>https://medium.com/@darrion?source=rss-e83d9d91d94a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 19:04:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@darrion/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Functional Purity]]></title>
            <link>https://medium.com/@darrion/functional-purity-1d138c6e2c06?source=rss-e83d9d91d94a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d138c6e2c06</guid>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[js]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Darrion Ramdin]]></dc:creator>
            <pubDate>Tue, 27 Mar 2018 01:50:50 GMT</pubDate>
            <atom:updated>2018-03-27T01:50:50.509Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*L_LAg_S_PUyETPmvbhuIjw.jpeg" /></figure><p>What is a pure function? Let me tell you.</p><p>Today, while going through an online course, I learnt about pure functions. Pure functions are functions that have two characteristics.</p><ol><li>It has no side effects</li><li>It is deterministic</li></ol><h4>No side effects</h4><p>A side effect in this case simply means a function that does something outside of its universe, or scope. For example,</p><pre>var a = 1;</pre><pre>function newValue() {<br>    a = 2;<br>}</pre><p>This function has a side effect. It changes the variable value of a to 2. As stated by Wikipedia, a side effect is a function or express that modifies some state outside of its scope. In this case, the function newValue() modifies the variable a.</p><h4>Determinism</h4><p>Determinism? Deterministic? What? I honestly didn’t know such words existed when I first heard it.</p><p>Deterministic happens when we create a function that whatever inputs we put into it, it must return something. It must return that same thing every time the function is run.</p><p>Thank for reading my post!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d138c6e2c06" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>