<?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>DEV Community: roix</title>
    <description>The latest articles on DEV Community by roix (@roix).</description>
    <link>https://dev.to/roix</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%2F252525%2F6bc1f6db-b24b-4949-9917-711123291e6e.png</url>
      <title>DEV Community: roix</title>
      <link>https://dev.to/roix</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/roix"/>
    <language>en</language>
    <item>
      <title>Things to look for while picking a library</title>
      <dc:creator>roix</dc:creator>
      <pubDate>Wed, 18 Aug 2021 15:56:39 +0000</pubDate>
      <link>https://dev.to/roix/things-to-look-for-while-picking-a-library-4gi</link>
      <guid>https://dev.to/roix/things-to-look-for-while-picking-a-library-4gi</guid>
      <description>&lt;p&gt;Many times we come across the scenario where we need to pick a library to implement a feature. We usually have our go-to library in our mind in most of these cases. &lt;/p&gt;

&lt;p&gt;But in some cases, we will have to do some research on the available libraries and pick one of the available ones.&lt;/p&gt;

&lt;p&gt;Here are some things (in no particular order) you should look for while picking a library.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Popularity
&lt;/h2&gt;

&lt;p&gt;The more popular a library is, the more people would be using it. That means there is a large user community using the library every day and that comes with the following benefits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fewer bugs as most would be already reported by the users and fixed.&lt;/li&gt;
&lt;li&gt;More questions and answers on Stackoverflow (and more search results on Google).&lt;/li&gt;
&lt;li&gt;Better documentation.&lt;/li&gt;
&lt;li&gt;Less chance that the library has some serious performance issues or missing any important features.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I use the following metrics to decide how popular a library is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Github stars&lt;/strong&gt; - I look for libraries having more than 1.5k stars.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;npm weekly downloads (for javascript libraries)&lt;/strong&gt; - I look for libraries with 6 figure weekly npm downloads on npm.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. Last Release / Last Commit
&lt;/h2&gt;

&lt;p&gt;Another thing to consider is how recently a new release was made for the library.&lt;/p&gt;

&lt;p&gt;If the repository is publicly available then you should also check when was the last commit made to that repository and how often commits are being made in that repository.&lt;/p&gt;

&lt;p&gt;A library may be popular, but if it is not maintained anymore then it may become outdated or have bugs that will never be fixed.&lt;/p&gt;

&lt;p&gt;More frequent releases or commits means that the contributors/maintainers of the library are actively working on pushing important security/bug fixes or new features.&lt;/p&gt;

&lt;p&gt;It also means that if you find a serious bug or a very useful feature missing, you can request the developers to fix or implement them or you can directly contribute to the code if the library is open source.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Library Size
&lt;/h2&gt;

&lt;p&gt;Another thing to look for is the size of the library.&lt;/p&gt;

&lt;p&gt;More often than not, as a library gets popular, more and more features get added to it. This increases the size of the library.&lt;/p&gt;

&lt;p&gt;If you just want a very small subset of the features the library provides, then you can pick a library that has all the features you need and has a smaller footprint.&lt;/p&gt;

</description>
      <category>library</category>
      <category>github</category>
      <category>npm</category>
    </item>
    <item>
      <title>2 Tips to Code Faster</title>
      <dc:creator>roix</dc:creator>
      <pubDate>Wed, 21 Jul 2021 13:57:40 +0000</pubDate>
      <link>https://dev.to/roix/2-tips-to-code-faster-3dka</link>
      <guid>https://dev.to/roix/2-tips-to-code-faster-3dka</guid>
      <description>&lt;h1&gt;
  
  
  1. Increase your typing speed
&lt;/h1&gt;

&lt;p&gt;The faster you can type, the faster you can put your thoughts into code. The more time you save typing, the more time you can spend on thinking and improving your code.&lt;/p&gt;

&lt;p&gt;Head over to &lt;a href="https://www.typingtest.com/"&gt;https://www.typingtest.com/&lt;/a&gt; and check how fast you can type.&lt;/p&gt;

&lt;p&gt;Are you satisfied with your score? Do you want to improve your score?&lt;/p&gt;

&lt;p&gt;Don't worry, you can easily improve your typing speed by following a simple, well-documented but often not known technique.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fKP2BzXp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/osj4jz2zzvbibgfpcxps.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fKP2BzXp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/osj4jz2zzvbibgfpcxps.png" alt="Typing Color Code"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's pretty simple. You got to follow these rules.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You position your fingers on these keys &lt;strong&gt;(a,s,d,f)()(j,k,l,;)&lt;/strong&gt;. The row these keys (except ) are at is called the &lt;strong&gt;home row&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;You use the respective finger (as indicated by the color code) and &lt;strong&gt;only that finger&lt;/strong&gt; to type the character.&lt;/li&gt;
&lt;li&gt;Once you type your character, you reposition your fingers back to the home row.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now, when you start, this will do the opposite of what you want. It will decrease your typing speed. But that's part of unlearning what you are used to doing.&lt;/p&gt;

&lt;p&gt;You might get frustrated and tempted to go back to the old way of typing. But just trust me and keep at it. It may take a month or so, but eventually, you will be typing way faster than what you are capable of doing right now.&lt;/p&gt;

&lt;p&gt;You also won't need to look at the keyboard anymore once you get used to this.&lt;/p&gt;

&lt;h1&gt;
  
  
  2. Avoid the mouse
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--D06iCwZf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rk98m7el1giph0t2j92i.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--D06iCwZf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rk98m7el1giph0t2j92i.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What's faster?&lt;br&gt;
[alt + tab] or using the mouse to switch to the previous window?&lt;br&gt;
[alt + f4] or clicking on the x button?&lt;br&gt;
[ctrl + t] or clicking on the new tab button?&lt;/p&gt;

&lt;p&gt;Sure using the mouse is simple, intuitive, and user-friendly, but it is damn slow.&lt;/p&gt;

&lt;p&gt;Now if you are convinced that using the mouse is slower than using the keyboard, then as yourself this question.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How much time you are wasting while coding by using the mouse?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Just like the other things I mentioned above, all those scrolling, clicking, selecting, etc. you do with the mouse while coding takes up a lot of time and slows you down.&lt;/p&gt;

&lt;p&gt;That's why it is better to use an editor which allows you to do all the things which typically require a mouse without a mouse!&lt;/p&gt;

&lt;p&gt;Vim is one such editor. Emacs is another. There are probably more, but these are the two well-known ones.&lt;/p&gt;

&lt;p&gt;I have been a vim user for a long time, so I recommend using vim while coding.&lt;/p&gt;

&lt;p&gt;Now similar to getting used to the new typing technique, you will feel it is incredibly counterintuitive and hard to use vim at first. But don't give up, just keep at it, and using vim will become second nature to you.&lt;/p&gt;

&lt;p&gt;You may have seen vim on the cli only. Although vim (in its truest form) only works on the cli, there are usually plugins in editors which allow you to enable vim like typing in your IDE. I use &lt;a href="https://marketplace.visualstudio.com/items?itemName=vscodevim.vim"&gt;vim plugin&lt;/a&gt; with vscode.&lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;I know these techniques work because I have used them myself and I see a big difference in the speed at which I code.&lt;/p&gt;

&lt;p&gt;But the key to success using these techniques is practice and persistence. Getting used to these takes time and patience, but it is all worth it in the end.&lt;/p&gt;

</description>
      <category>typefast</category>
      <category>vim</category>
    </item>
  </channel>
</rss>
