<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Ilia</title>
    <description>The latest articles on Forem by Ilia (@noway).</description>
    <link>https://forem.com/noway</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F27115%2F9d156ede-7c1b-4c24-95da-9c022707071c.jpeg</url>
      <title>Forem: Ilia</title>
      <link>https://forem.com/noway</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/noway"/>
    <language>en</language>
    <item>
      <title>Best practices for creating scalable and resilient REST Apis</title>
      <dc:creator>Ilia</dc:creator>
      <pubDate>Thu, 17 Oct 2019 01:49:20 +0000</pubDate>
      <link>https://forem.com/noway/best-practices-for-creating-scalable-and-resilient-rest-apis-3m4b</link>
      <guid>https://forem.com/noway/best-practices-for-creating-scalable-and-resilient-rest-apis-3m4b</guid>
      <description>&lt;p&gt;Hello folks,&lt;/p&gt;

&lt;p&gt;I'm using Node.js, Sequalize and MySQL. I also heavily use Websockets.&lt;/p&gt;

&lt;p&gt;I'm implementing a new REST Api, and I'm trying to learn about all the best practices I am potentially missing out. Recently, I've learnt about the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Idempotency. I was always trying to create APIs which can receive a route action twice and return the same thing. PUT /thing, PUT /thing should return 200 in both cases, for the situation when the client had lost the connection midway through the request and the user had to click again (or the client retried by itself, potentially). GETs are idempotent by default really. DELETEs should be idempotent too, really. POSTs are better to avoid, I think.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Eventual Consistency. Had a lot of trouble with this one. Apparently creating a row and then immediately reading it might return a null result, because the row hasn't propagated to all replicas. Oops. I guess I need to get everything I need with whatever the database returns from model.create and make do with that.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What are the other good practices I might be missing out on that gonna bite me in the future?&lt;/p&gt;

&lt;p&gt;Cheers.&lt;/p&gt;

</description>
      <category>discuss</category>
    </item>
    <item>
      <title>Are utils (folder where you put random stuff you don’t know where to put otherwise) a code smell?</title>
      <dc:creator>Ilia</dc:creator>
      <pubDate>Sun, 25 Aug 2019 22:27:40 +0000</pubDate>
      <link>https://forem.com/noway/are-utils-folder-where-you-put-random-stuff-you-don-t-know-where-to-put-otherwise-a-code-smell-3054</link>
      <guid>https://forem.com/noway/are-utils-folder-where-you-put-random-stuff-you-don-t-know-where-to-put-otherwise-a-code-smell-3054</guid>
      <description>&lt;p&gt;Personally, I love them. The way I think about is every function in that folder is npm package (or other package manager module) which was just never published. &lt;/p&gt;

&lt;p&gt;Inspired by this article &lt;a href="https://neilkakkar.com/things-I-learnt-from-a-senior-dev.html"&gt;https://neilkakkar.com/things-I-learnt-from-a-senior-dev.html&lt;/a&gt;&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>healthydebate</category>
    </item>
    <item>
      <title>How to only see my follows in the Feed?</title>
      <dc:creator>Ilia</dc:creator>
      <pubDate>Sun, 25 Aug 2019 08:25:50 +0000</pubDate>
      <link>https://forem.com/noway/how-to-only-see-my-follows-in-the-feed-1dad</link>
      <guid>https://forem.com/noway/how-to-only-see-my-follows-in-the-feed-1dad</guid>
      <description>&lt;p&gt;It seems like my feed consists not only out of tags and profiles I follow, but some other random posts as well. How do I only have follows and followed tags on my Feed?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

</description>
      <category>watercooler</category>
    </item>
    <item>
      <title>Hi, I'm Ilia</title>
      <dc:creator>Ilia</dc:creator>
      <pubDate>Sun, 23 Jul 2017 14:08:33 +0000</pubDate>
      <link>https://forem.com/noway/hi-im-ilia</link>
      <guid>https://forem.com/noway/hi-im-ilia</guid>
      <description>&lt;p&gt;I have been coding for [number] years.&lt;/p&gt;

&lt;p&gt;You can find me on GitHub as &lt;a href="https://github.com/noway" rel="noopener noreferrer"&gt;noway&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I live in [city].&lt;/p&gt;

&lt;p&gt;I work for [company]&lt;/p&gt;

&lt;p&gt;I mostly program in these languages: [languages].&lt;/p&gt;

&lt;p&gt;I am currently learning more about [topic].&lt;/p&gt;

&lt;p&gt;Nice to meet you.&lt;/p&gt;

</description>
      <category>introduction</category>
    </item>
  </channel>
</rss>
