<?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: Suganya Muthukumar</title>
    <description>The latest articles on DEV Community by Suganya Muthukumar (@twtsuganya).</description>
    <link>https://dev.to/twtsuganya</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%2F372273%2F6c956af3-b4cf-44f1-90f1-5cd8a9376bc4.jpeg</url>
      <title>DEV Community: Suganya Muthukumar</title>
      <link>https://dev.to/twtsuganya</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/twtsuganya"/>
    <language>en</language>
    <item>
      <title>Why should we know ALGORITHMS?</title>
      <dc:creator>Suganya Muthukumar</dc:creator>
      <pubDate>Fri, 08 May 2020 08:55:42 +0000</pubDate>
      <link>https://dev.to/twtsuganya/why-should-we-know-algorithms-36c1</link>
      <guid>https://dev.to/twtsuganya/why-should-we-know-algorithms-36c1</guid>
      <description>&lt;p&gt;Learning has no end, be it any industry we work in. It is inevitable and a continuous process.But,the question is how much do we put to use in our day to day life. &lt;/p&gt;

&lt;p&gt;In this post, I specifically like to emphasize on the algorithms we learn, which is considered as a kind of mandate for any Software developer to know.  Do we really use Algorithms in our day to day process? Yes, but not in a direct way. Today we have 'N' number of utility packages, to replace all our general use cases. &lt;/p&gt;

&lt;p&gt;Few years back, I encountered a problem statement where we had to migrate the data between two completely different data sources. A typical use case was to convert an expression data into a complex JSON structure. Initially it looked like a straight forward approach but the actual implementation was pretty daunting. It was not a problem which can be solved by nested conditions.It needed a much cleaner approach which solves all types of inputs which by definition known as an 'ALGORITHM'.&lt;/p&gt;

&lt;p&gt;On a high level, my requirement was to achieve the following conversion.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Input Expression:&lt;/strong&gt; '(((ABC=AXE))AND((GPR=ADC)))' &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Output JSON:&lt;/strong&gt; { "exp": { "typ": "and", "sbe": [ { "exp": { "typ": "eq", "vtp": "str", "vst": "AXE", "key": "ABC" } }, { "exp": { "typ": "eq", "vtp": "str", "vst": "ADC", "key": "GPR" } } ] } }&lt;/p&gt;

&lt;p&gt;No utility packages will come for your rescue to solve such kind of issues. Knowledge on Algorithms changes the way you look at a problem. Many of the use cases can be solved by using the concepts of some algorithms or by tweaking it. But before all the foremost thing required is, spending a quality time to understand the problem statement. &lt;/p&gt;

&lt;p&gt;Checkout my code at git hub to know how I tweaked the Expression tree traversal techniques to achieve the desired result.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;a href="https://github.com/suganyamuthukumar/ExpressionParsing"&gt;https://github.com/suganyamuthukumar/ExpressionParsing&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Happy Sharing !!&lt;/p&gt;

</description>
      <category>java</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Postman For Beginners - Part 1</title>
      <dc:creator>Suganya Muthukumar</dc:creator>
      <pubDate>Thu, 23 Apr 2020 14:04:48 +0000</pubDate>
      <link>https://dev.to/twtsuganya/postman-for-beginners-45kn</link>
      <guid>https://dev.to/twtsuganya/postman-for-beginners-45kn</guid>
      <description>&lt;p&gt;As a developer, I always wished if there could be any tool which would identify the silly human errors we make. Given the monotonous way of work it is not always possible for a developer to find all the dependency conflicts, which could break some other while we are keen on developing the new things. At least the foremost thing I would expect is not to break anything. &lt;/p&gt;

&lt;p&gt;In my quest to identify tools, which could make my job easier, few features provided by Postman, I felt it handy. &lt;br&gt;
This is post is purely for beginners who would like to explore more of its useful features.&lt;/p&gt;

&lt;p&gt;A general use case to a developer is to check the functionality in different environments like Prod, Test etc. Rather than changing the context each time how about switching the context in just a click?&lt;/p&gt;

&lt;p&gt;Let me walk through the steps to set up the below API for different environments.&lt;br&gt;
Environment1 url:&lt;br&gt;
&lt;a href="http://dummy.restapiexample.com/api/v1/employees" rel="noopener noreferrer"&gt;http://dummy.restapiexample.com/api/v1/employees&lt;/a&gt;&lt;br&gt;
Environment2 url:&lt;br&gt;
&lt;a href="http://dummy2.restapiexample.com/api/v1/employees" rel="noopener noreferrer"&gt;http://dummy2.restapiexample.com/api/v1/employees&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Set up the environment and customize the variables&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Select ‘Manage environment’ and click on Add.&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fip0t89aqipt6v5lt9gbk.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fip0t89aqipt6v5lt9gbk.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Set up the variables for different environments&lt;br&gt;
Environemnt 1:&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Feok5xc35yupew5hm7s30.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Feok5xc35yupew5hm7s30.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Environment 2:&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fcsfa3nbipho9916ui1kt.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fcsfa3nbipho9916ui1kt.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;br&gt;
  1.Use the same variable names across all the environments.&lt;br&gt;
  2.In any case if you have to update the values make sure the correct value is  updated in the ‘Current Value’ text box as well.&lt;/p&gt;

&lt;p&gt;Now that your environments are set, we are Ready to Test!!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2.Ready to Run&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Choose the proper environment from the environment list and use the placeholders to define the context.&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fwkhgmzrrwyrhc02qh559.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fwkhgmzrrwyrhc02qh559.png" alt="Alt Text"&gt;&lt;/a&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F9unbq4ne3qi7bk96lucv.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F9unbq4ne3qi7bk96lucv.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can now see the API response for different contexts.&lt;/p&gt;

&lt;p&gt;Happy Sharing !!&lt;/p&gt;

</description>
      <category>testing</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>todayilearned</category>
    </item>
  </channel>
</rss>
