<?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 Ravi Somayaji on Medium]]></title>
        <description><![CDATA[Stories by Ravi Somayaji on Medium]]></description>
        <link>https://medium.com/@ravi_20222?source=rss-ad5076703bdf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*4GX9RteT_LAKzuj_.jpg</url>
            <title>Stories by Ravi Somayaji on Medium</title>
            <link>https://medium.com/@ravi_20222?source=rss-ad5076703bdf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 13:55:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ravi_20222/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[Review of XState]]></title>
            <link>https://medium.com/@ravi_20222/review-of-xstate-dbeefd4aaa64?source=rss-ad5076703bdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbeefd4aaa64</guid>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Ravi Somayaji]]></dc:creator>
            <pubDate>Thu, 02 Dec 2021 04:40:29 GMT</pubDate>
            <atom:updated>2021-12-02T04:40:29.398Z</atom:updated>
            <content:encoded><![CDATA[<p>XState is a library put together to declare finite state machines in modern JavaScript applications</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*GXjZdgwSd-s6bUzuy6DwzQ@2x.jpeg" /></figure><h3>Finite state automata</h3><blockquote>an abstract machine that can be in exactly one of a finite number of states at any given time.</blockquote><p>Has been the backbone of workflows, process automation and all things that involves steps.</p><p>Over a period of time folks have developed their own ways to manage declarative ways to abstract finite state automation.</p><h3>Introduction to XState</h3><p>David Khourshid, and team developed XState. XState is a package that I recently came across that helps declare state machines in TypeScript form.</p><p><a href="https://xstate.js.org/">XState - JavaScript State Machines and Statecharts</a></p><p>Glorious parts of the package is that it</p><ul><li>has great support fro TypeScript.</li><li>Easily declarable actions, services, guards</li><li>Supports nested flows</li><li>Great community support on Discord</li></ul><h3>State management</h3><p>XState also has support for React and other modern front end libraries which make it easier to adopt.</p><p>It attempts to be a state management layer (should have realised by its name), providing mechanisms to subscribe and dispatch actions to the machine.</p><p>It also allows for modularisation of states for components unlike Redux attempting to be the global state manager.</p><h3>Disadvantage</h3><p>The only disadvantage with the package is that it has a steep learning curve, and if used in parts of an application then those areas remain dependent on specific people who’ve developed it.</p><p>Unlike Redux which has quite a big fan following which drives people to study it despite its overwhelming boiler-plating, XState is very community adopted and tends to be for slightly more sophisticated developers who love to write code that lives for long.</p><h3>Conclusion</h3><p>Many a times, I’ve developed bits of applications that have absorbed state machines like declaration and followed through with via a Wizard or through sequence of steps. XState is a natural choice for those use-cases and works incredibly well.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbeefd4aaa64" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advantages of using Typescript]]></title>
            <link>https://medium.com/@ravi_20222/advantages-of-using-typescript-in-a-react-project-71c4cb25fea1?source=rss-ad5076703bdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/71c4cb25fea1</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Ravi Somayaji]]></dc:creator>
            <pubDate>Thu, 02 Dec 2021 01:29:15 GMT</pubDate>
            <atom:updated>2021-12-02T01:36:34.867Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/113/1*8m1ZBQ0etk9MryRghd_A-w@2x.jpeg" /></figure><p>Coding has been a practice that has developed over the last few decades. A thoughtful few have developed patterns that help maintain, read, and resolve problems more easily than others</p><p>Reacts’ entrant into the pragmatic world is relatively new, however JavaScript has been around since the early ‘90s</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*894tW1ar8_YyrZONQIttqQ@2x.jpeg" /></figure><p>The main reasons for JavaScript to be a fence sitter, rather a front end specific language is it’s nature of being flexible, rather non-strict</p><p>Flavours of JavaScript have been introduced for sometime now for example – Coffeescript, and Typescript.</p><p>In my opinion, Typescript has an edge over Vanilla JS in that it provides for</p><ul><li>Strict typing – for old timers who’ve arrived through the Java, C++ world, types are an integral part of being able to navigate code. As some would put it, the advantages being</li></ul><ol><li>Readability</li><li>Maintainability</li><li>Easier navigation through powerful tooling</li></ol><p>As a developer, your priorities range around, being able</p><ul><li>to read someone else’s code or at least develop code in such a way another person can read</li><li>To refactor areas of code either for housekeeping or for further development</li><li>To catch problems early during the development phase</li></ul><p>The paradigms of TypeScript are plenty and the language guys keep enhancing the libraries.</p><p>Having observed that some of the inherent utilities aren’t either learnt well or just missed due to the confidence of the knowledge of an OOP, I’d suggest a primer into the utilities that form the language pack</p><p><a href="https://www.dslemay.com/blog/2020/04/27/typescript-utility-types-part-1-partial-pick-and-omit">TypeScript Utility Types Part 1: Partial, Pick, and Omit - Daniel Lemay</a></p><p>Happy Typescript-ing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71c4cb25fea1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>