<?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: Naveenkumar M</title>
    <description>The latest articles on Forem by Naveenkumar M (@naveenkumarmd).</description>
    <link>https://forem.com/naveenkumarmd</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%2F574468%2F89521efc-df00-4e85-ad5c-f8e26fd9cd88.jpeg</url>
      <title>Forem: Naveenkumar M</title>
      <link>https://forem.com/naveenkumarmd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/naveenkumarmd"/>
    <language>en</language>
    <item>
      <title>Check out my portfolio</title>
      <dc:creator>Naveenkumar M</dc:creator>
      <pubDate>Wed, 01 Dec 2021 11:36:24 +0000</pubDate>
      <link>https://forem.com/naveenkumarmd/check-out-my-portfolio-47p6</link>
      <guid>https://forem.com/naveenkumarmd/check-out-my-portfolio-47p6</guid>
      <description>&lt;p&gt;I have created my portfolio and have hosted it and I like to have some suggestions to improve it so that it could increase the probability of getting a job in a good company&lt;br&gt;
&lt;a href="https://mdnaveenkumar.web.app/"&gt;https://mdnaveenkumar.web.app/&lt;/a&gt;&lt;br&gt;
Feel free to provide your suggestions&lt;/p&gt;

</description>
      <category>portfolio</category>
      <category>javascript</category>
      <category>html</category>
    </item>
    <item>
      <title>Mini project ideas</title>
      <dc:creator>Naveenkumar M</dc:creator>
      <pubDate>Thu, 18 Nov 2021 04:56:23 +0000</pubDate>
      <link>https://forem.com/naveenkumarmd/mini-project-ideas-5daf</link>
      <guid>https://forem.com/naveenkumarmd/mini-project-ideas-5daf</guid>
      <description>&lt;p&gt;My mini project guide wants me to chose an innovative topic for my mini project . I have gone through many things but nothing works. Could you please suggest me an idea in any domain.&lt;/p&gt;

</description>
      <category>react</category>
      <category>programming</category>
      <category>product</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Do Python One-Liners Make Your Code Faster?</title>
      <dc:creator>Naveenkumar M</dc:creator>
      <pubDate>Wed, 17 Nov 2021 11:02:03 +0000</pubDate>
      <link>https://forem.com/naveenkumarmd/do-python-one-liners-make-your-code-faster-514f</link>
      <guid>https://forem.com/naveenkumarmd/do-python-one-liners-make-your-code-faster-514f</guid>
      <description>&lt;p&gt;Most Python programmers have a myth that one-liners are the best way of programming and they even think that one-liners make the code faster. Let us check out this thing and analyze how one-liners differ from normal codes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Let us consider some of the five programs
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Creating an array with zeroes&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Selecting the even numbers in a range&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;One-liner for if-else statements&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Manipulating an array&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Checking palindrome&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We will be using the “time” module to check the time taken to execute the program.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;1. Creating an array with zeroes&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Let us create a 2-dimensional array of zeroes with a normal iterative method and let’s note the running time.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2A3Nv7G2VUjpYA-tV2vqAbVw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2A3Nv7G2VUjpYA-tV2vqAbVw.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Time taken is: 12.876641988754272&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I have run this program several times and found the maximum value So that we can analyze it easily.&lt;/p&gt;

&lt;p&gt;Let us check the one-liner for doing this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2AaKLpcsMg0KQ3etOMY60FIQ.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2AaKLpcsMg0KQ3etOMY60FIQ.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Time taken is: 4.390255928039551&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Selecting the even numbers in a range
&lt;/h3&gt;

&lt;p&gt;This time I wish to make the time a notable one. So I iterated the loop 99999999 times. The program is quite simple if the number is even I will append it in the array else nothing will happen.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2Achjhs5jfnCO5FSz9Riy9NQ.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2Achjhs5jfnCO5FSz9Riy9NQ.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Time taken is: 21.109660625457764&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;One-liner&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2A2cjLCg_1exkfB5AooTyqyg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2A2cjLCg_1exkfB5AooTyqyg.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Time taken is: 9.88336968421936&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. One liner if-else with a function
&lt;/h3&gt;

&lt;p&gt;Let us find the count of multiples of 3 in a range.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2AznKS6fM68YSxplTTXsj0sw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2AznKS6fM68YSxplTTXsj0sw.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Time taken is: 139.78343963623047&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Let us convert the divisibleby3 function and the main function to one-liners to compare the results.You can even convert the divisibleby3 function into a lambda function to make it even complex.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2A_W_Wgmkdl1ny35xcgkasCg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2A_W_Wgmkdl1ny35xcgkasCg.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Time taken is: 56.80164098739624&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Manipulating an array
&lt;/h3&gt;

&lt;p&gt;Let us convert the array of elements to its square values.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2AZQRIxbKHNuY8Ngc-y3jKeA.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2AZQRIxbKHNuY8Ngc-y3jKeA.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Time taken is: 56.80164098739624&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2AgXZXrD5Ja5Uz1GMs-bIVsg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2AgXZXrD5Ja5Uz1GMs-bIVsg.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Time taken is: 39.76653861999512&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Palindrome check
&lt;/h3&gt;

&lt;p&gt;This is a function to check whether a number is a palindrome or not.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2A0Lu_1ZJfn65xPmxNUZDs9A.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2A0Lu_1ZJfn65xPmxNUZDs9A.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Time taken is: 16.703513860702515&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;One liner:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2AyBrf2hOJw9LVDs0KlH791A.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2AyBrf2hOJw9LVDs0KlH791A.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Time taken is: 0.16199564933776855&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I’m astonished by the above results.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2A_tysjwwkU0t9CWRSH9sPgw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1%2A_tysjwwkU0t9CWRSH9sPgw.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;From the above table it is clear that the one liners make the code much faster. It will help you in competitive programming and so on.&lt;/p&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>beginners</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>Module not working</title>
      <dc:creator>Naveenkumar M</dc:creator>
      <pubDate>Tue, 12 Oct 2021 03:32:32 +0000</pubDate>
      <link>https://forem.com/naveenkumarmd/module-not-working-252k</link>
      <guid>https://forem.com/naveenkumarmd/module-not-working-252k</guid>
      <description>&lt;p&gt;I have been master methods for a while It works finely on node projects .it is a based module.But when Im using it on react It creates an error.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
