<?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 Maxx Selva K on Medium]]></title>
        <description><![CDATA[Stories by Maxx Selva K on Medium]]></description>
        <link>https://medium.com/@maxxselvak?source=rss-7c1e44bdeed3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lypTF9tz_oD5UAnYPtYiuA.jpeg</url>
            <title>Stories by Maxx Selva K on Medium</title>
            <link>https://medium.com/@maxxselvak?source=rss-7c1e44bdeed3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 02:28:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@maxxselvak/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[Flyweight Design Pattern Simplified]]></title>
            <link>https://medium.com/@maxxselvak/flyweight-design-pattern-simplified-590baa75f99f?source=rss-7c1e44bdeed3------2</link>
            <guid isPermaLink="false">https://medium.com/p/590baa75f99f</guid>
            <category><![CDATA[java8]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[flyweight-pattern]]></category>
            <category><![CDATA[flyweight]]></category>
            <dc:creator><![CDATA[Maxx Selva K]]></dc:creator>
            <pubDate>Sun, 16 Oct 2022 12:51:52 GMT</pubDate>
            <atom:updated>2022-10-16T12:51:52.258Z</atom:updated>
            <content:encoded><![CDATA[<p>With this design pattern, we can reduce the amount of memory taken by the Objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*bHKsrNUXX8de4Ibg" /></figure><p><strong>Definition :</strong><br> A flyWeight is an Object that we can share in a Different Context. One important feature of flyweight objects is that they are <strong>immutable, </strong>means that they cannot be modified after they have been constructed.</p><h3>Example :</h3><p>Let’s say You have SpreadSheet.The spreadsheet will have thousands of Cell objects and each object can have a different property like font,bold,italic and font size. If we keep property objects for all thousands of cells then we end up in holding huge memory in RAM. To overcome this, we are going to use a flyweight design pattern. With this design pattern, we are going to keep only one reference and use that for many cells that have common properties. To identify the common property we are going to use a hash function.</p><h3>classes :</h3><p>Cell.java — Object that holds its own properties</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ba3c7ec2cb50249431d78f589e6be446/href">https://medium.com/media/ba3c7ec2cb50249431d78f589e6be446/href</a></iframe><p>CellProperty.java -&gt; Immutable property</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/059a81804fe52c60504db61d1c1a9ecd/href">https://medium.com/media/059a81804fe52c60504db61d1c1a9ecd/href</a></iframe><p>CellPropertyFactory.java -&gt; <strong>Producing Immutable flyweight propery objects</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c43ebb37b36faa561bf9e7ba3c5d75e5/href">https://medium.com/media/c43ebb37b36faa561bf9e7ba3c5d75e5/href</a></iframe><p>SpreadSheet.java</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8ebf946ae6c9bc1b4d2b3336a0723605/href">https://medium.com/media/8ebf946ae6c9bc1b4d2b3336a0723605/href</a></iframe><p><strong>Demo.java</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8ad80d3a8ec890bb1b59bebd4f9297e6/href">https://medium.com/media/8ad80d3a8ec890bb1b59bebd4f9297e6/href</a></iframe><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0YbnbVCqMoYHWwwqPmqRRQ.png" /></figure><p>Finally, with the help of the FlyWeight Design Pattern, we optimized the memory usage by our own SpreadSheet class. You made it, Thanks for Reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=590baa75f99f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Beauty of Thread class in JAVA]]></title>
            <link>https://medium.com/@maxxselvak/the-beauty-of-thread-class-in-java-5626eae08860?source=rss-7c1e44bdeed3------2</link>
            <guid isPermaLink="false">https://medium.com/p/5626eae08860</guid>
            <category><![CDATA[threads]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[templatedesign]]></category>
            <category><![CDATA[java8]]></category>
            <dc:creator><![CDATA[Maxx Selva K]]></dc:creator>
            <pubDate>Thu, 07 Apr 2022 07:17:14 GMT</pubDate>
            <atom:updated>2022-04-07T07:17:14.325Z</atom:updated>
            <content:encoded><![CDATA[<p>I Hope, all of you remember the thread class in java, the purpose of the Thread class is to create threads and Manage their life cycle of it. In this post we are not going to discuss the thread class functionality, instead, we are going to discuss the design of the Thread class in java.</p><p>Ways to create a Thread:</p><ol><li>By Extending a Thread class</li><li>By Implementing a Thread class</li></ol><p>Have you ever thought, about whether the thread class is an abstract class or not? :)<br>The answer is No, Thread is a concrete class, not an Abstract class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zDs-gQovDsrcZzA7nbdlpg.png" /><figcaption>The two types of creating a Thread class</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*bXl-1KAK2OR9RCo1lbW7Ww.png" /><figcaption>Main class running the threads</figcaption></figure><p>Here the two threads running without any problem even though they follow different implementation, one is extending thread and one implements a Runnable interface.</p><p>Have you ever thought about how the thread class handles these two types of implementation?</p><p>check the simple implementation of the Thread class,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YfPNQrrREXwsAWOwnHNXMA.png" /></figure><p><strong>The architecture of Thread class:</strong></p><ol><li>The Thread has two methods start and run</li><li>start() method will use System APIs to create new thread and call run method</li><li>run() method is abstract method and implemented by subclasses</li><li>A client program defines a class X that extends Thread and implements the run method. The client then creates a new X-object and calls its start method</li></ol><p>Thread class is a perfect example of <strong>Template Design pattern. </strong>Its start method is part of the public API and acts as the template for thread execution. Its responsibility is to create and execute a new thread, but it doesn’t know what code to execute. The run method is the helper method. Each Thread subclass customizes the template by specifying the code for run.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5626eae08860" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adapter Design Pattern]]></title>
            <link>https://medium.com/@maxxselvak/adapter-design-pattern-4fe848948ebb?source=rss-7c1e44bdeed3------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fe848948ebb</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[ood]]></category>
            <category><![CDATA[adapter-pattern]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[design-patterns]]></category>
            <dc:creator><![CDATA[Maxx Selva K]]></dc:creator>
            <pubDate>Sat, 05 Mar 2022 11:06:13 GMT</pubDate>
            <atom:updated>2022-03-05T11:06:13.559Z</atom:updated>
            <content:encoded><![CDATA[<p>we already seen adapter in real life. Suppose you want to plug three prong electric kettle into two prong electric outlet. One of the best/cheap way to solve this problem is to buy a adapter that has three prongs one side and two prong in the other side. Now without hassle we can use the electric kettle in a two prong electric outlet with the help of adapter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/0*uqXN83mLFEhsDG0l.jpg" /></figure><p>In the similar way, adapters can be created and used in Java programs <br>Do you know java language itself has some adapters?</p><p>The answer is ‘YES’ java language has adapters classes, Like Integer,Long and other wrapper classes are considered as Adapters.</p><blockquote><strong>Purpose of adapter classes :</strong></blockquote><ol><li>Enhance the functionality of existing class without modifying it</li><li>If a class has one interface to perform the client requirements, for some reasons it want to use third part classes to achieve the same. in this case, the third party classes will not be implemented the interface which is used by the client class. In this scenario we need a adapter class to fullfil the requirement. will see this in code example below.</li></ol><blockquote><strong>case 1.Enhance the functionality of existing class</strong></blockquote><ul><li>The best example for this was all wrapper classes in Java like Integer, Long, Boolean. Which improve the functionality of primitive types without modifying the behaviour of it. I’m not going to provide code example for this. Hope everyone seen the Wrapper classes in java.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j_Oy9CWj6STBxhCntBe_3A.png" /><figcaption>Adapter design pattern</figcaption></figure><blockquote><strong>case 2: Adapter Classes</strong></blockquote><ul><li>Let’s take a currencyConverter as Example. we have a CurrencyConverter class which has the dependency of Converter Interface. The client has two classes which implements the interfaces namely USDINRConverter, USDEUROConverter. check the below coding.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*Hr5x3ctQXQgeJlFQMe8DOg.png" /><figcaption>Interface that used by Client</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*Gmeu3AcLEADkfGSAAPnZdQ.png" /><figcaption>class has dependency of client interface</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hXlGFS_lIOcZy3twwfiGTw.png" /><figcaption>class implements client interface</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*CJokYn9yp7465b1sxqs-0g.png" /><figcaption>class implements client interface</figcaption></figure><ul><li>Here the converter classes are implements the client’s interface. Now the converter class Utilising this to process the conversion. check below code.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yzhIiCmoUlhNUjXg5vSR2g.png" /><figcaption>Client main class</figcaption></figure><p>Here the client make use of CurrencyConverter class to perform the desired currency conversion and it works very well without any issue.</p><p>Now, <strong>the client has a requirement to convert the USD into Bitcoin. Client have no idea about how to do this. Finally client decided use third party classes to achieve it.</strong> The third party code will be like this below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*pFk_6DSHW3m3cwKuAuKKlg.png" /><figcaption>third party class</figcaption></figure><p>Now the client wants to use this class with the Currency Converter. But the currency converter class existing code logic will perform the conversion only if the class implements the Converter interface. In this scenario without modifying the currencyConverter class we need to provide the class that converts the USD into Bitcoins.</p><p>Here the <strong>adapter design pattern comes into the picture. We want to create the adapter class for the third party class, so that we can use it with CurrencyConverter class without modifying the CurrencyConverter</strong>. Here below code will be the adapter class for the third party class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GuJ8Y6DhRDdCYUtrC0R5ag.png" /><figcaption>Adapter class which implements clients desired interface</figcaption></figure><p>Now with the help of this adpater class client can now use the CurrencyConverter class without modifying it for the USD bitcoin conversion. Below is the clients code to use the third party classes with the adapter class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZZx3t483Rj0OvJYY00d_Xg.png" /></figure><p>This is the exact use of adapter design pattern. Client can use the Third party Conversion classes without modifying it existing classes.</p><p>Thanks for Reading !!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fe848948ebb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prototype Design Pattern simplified]]></title>
            <link>https://medium.com/@maxxselvak/prototype-design-pattern-simplified-68545ce21c12?source=rss-7c1e44bdeed3------2</link>
            <guid isPermaLink="false">https://medium.com/p/68545ce21c12</guid>
            <category><![CDATA[java8]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[design-patterns]]></category>
            <dc:creator><![CDATA[Maxx Selva K]]></dc:creator>
            <pubDate>Sun, 09 Jan 2022 06:33:18 GMT</pubDate>
            <atom:updated>2022-01-09T06:33:18.508Z</atom:updated>
            <content:encoded><![CDATA[<p>Usecase : to create new objects by copying an existing object. <br>It’s comes under a creational design pattern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*NX8AcSRYuZ8IT06FDNZOoA.png" /></figure><p><strong>Simplest Example :</strong></p><ol><li>In photoshop software we can duplicate any shape by clicking duplicate. in this case we can use prototype pattern to achieve.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/0*79adWtn5Qoa6AZPB.gif" /></figure><p>Architecture from Gang Of Four book,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ESscoHLm03G9y6zTpb3xlA.png" /></figure><p>Code example : <br>ComponentInterface -&gt; represent the object<br>Circle -&gt; type of object<br>ContextMenu -&gt; right click options</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*ivModOG29vDxhWudx2R5LQ.png" /><figcaption>generic Component interface</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*4WcP5hsZJGIJd0bsiUmCog.png" /><figcaption>Circle component</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KsrnmyltrL2bLwTgD3e_yA.png" /><figcaption>right click context menu option methods</figcaption></figure><p>From this, we made maintainable and decoupled architecture that easily supports other components like square and rectangle. Our context menu class will easily duplicate any kind of component. because the duplicate responsibility is inside the component class, each component will take care of its own duplicating process instead of context menu.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68545ce21c12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Polymorphism in a Nutshell]]></title>
            <link>https://medium.com/@maxxselvak/polymorphism-in-a-nutshell-fa5f3b9b742?source=rss-7c1e44bdeed3------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa5f3b9b742</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[java8]]></category>
            <category><![CDATA[polymorphism]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Maxx Selva K]]></dc:creator>
            <pubDate>Wed, 05 Jan 2022 17:15:54 GMT</pubDate>
            <atom:updated>2022-01-05T17:15:54.818Z</atom:updated>
            <content:encoded><![CDATA[<p>Examples will be based on java…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*JV8OLvjuaExbCFLz.jpg" /></figure><p><strong>What is Polymorphism? </strong><br>Polymorphism means the ability of an object to take multiple forms in Runtime. Like this lot of similar definitions available on the internet, keep it simple with your words. Poly means many. morphs means forms. One name but multiple forms :) eg) Poly clinic</p><p><strong>What is Method Signature in Java:</strong><br> =&gt; It&#39;s a concept we must remember when we use method overloading and method overriding. <br><em>public int m1(int i,float f)</em><br>1) in the above method declaration , the method signature is method name plus arguments list <strong><em>i.e) m1(int , float)</em></strong> // this is the method signature (argument order also to be considered)</p><p>2) In java return type is not part of method signature.</p><p><strong>Who is going to use method signature?</strong><br> The compiler will use during the compilation for method resolution.</p><p><strong>Key concepts in Polymorphism :</strong><br>1) Overloading<br>2) Overriding</p><p><strong>Overloading:<br>when we say that two methods is overloaded? </strong><br>If two methods have same name and different arguments, then we say it as overloaded methods. method calls will be mapped during compilation itself.</p><p><strong>ex) Math.abs(param) is supports int,long,float.</strong></p><p>There are few cases where method resolution will fail, at the time we get compile time exception also. its a special case, lets not discuss about this here.</p><p><strong>Advantages:</strong><br>1) Easy to remember same method for different types<br>2) More flexible code<br>3) It removes the complexity of the code.</p><p>Overloading is called compile time polymorphism or static polymorphism or Early binding. It will be happen during compile time only.</p><p><strong>Overriding :</strong><br>Overriding is the process of redefining the parent class method implementation in child class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lnZZrxJTGN6ejpOd8gxDOw.png" /></figure><p>In the above image marry() method is the overridden method, it’s annotated with @Override annotation also. <br>Method overriding is called Runtime polymorphism and method resolution done by JVM.</p><p><strong>Overriding static methods :</strong><br> Static methods cannot be overriden because they are class level methods. only instance methods can be overriden.</p><p><strong>Overriding final methods :</strong><br> Final methods cannot be overriden, if we try to override in child class, compile time exception will be thrown.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa5f3b9b742" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Clean code Practice in Java #2]]></title>
            <link>https://medium.com/@maxxselvak/clean-code-practice-in-java-2-747e0d0471e?source=rss-7c1e44bdeed3------2</link>
            <guid isPermaLink="false">https://medium.com/p/747e0d0471e</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[best-practice-advice]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Maxx Selva K]]></dc:creator>
            <pubDate>Tue, 28 Dec 2021 04:40:26 GMT</pubDate>
            <atom:updated>2021-12-28T04:42:17.322Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/509/0*Kf9xYHJePhBV0QXQ" /></figure><h3><strong>Long parameter list :</strong></h3><p>The more parameter we user, the harder it gets to understand it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S-xaMXhGoB_7n5rIfeo-gQ.png" /></figure><p>In the above method call we can’t simply understand the usage of all parameters without checking the method implementations. <br><strong>Example :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mCZRCpx-vzoi_lWrNmBBzQ.png" /><figcaption>Bad coding practice #</figcaption></figure><p>In the above example we are passing two parameter list with same type and they are<strong><em> related to each other</em></strong> and the reservation id. It’s a type of code smell of Long parameter list. Lets Refactor it to most elegant code :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1q60CLA5ozLXwPQ_UZ6mkg.png" /><figcaption>Good coding practice #</figcaption></figure><p>In the refactored version we have introduced new Custom Range Date class to hold the fromDate and toDate. they are tightly coupled parameters. so we merge them into a sinlge unit. Finally we reduced the parameters list a little bit from the earlier version. Its a really simple example as we see.</p><blockquote>With the help of grouping related parameters we can refactor the method parameters in a great way. Happy coding!!!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=747e0d0471e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are Sandboxes in Zoho CRM?]]></title>
            <link>https://medium.com/@maxxselvak/what-are-sandboxes-in-zoho-crm-36b688fcd51e?source=rss-7c1e44bdeed3------2</link>
            <guid isPermaLink="false">https://medium.com/p/36b688fcd51e</guid>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[zoho-crm]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[zoho]]></category>
            <category><![CDATA[sandbox]]></category>
            <dc:creator><![CDATA[Maxx Selva K]]></dc:creator>
            <pubDate>Wed, 22 Dec 2021 07:43:52 GMT</pubDate>
            <atom:updated>2021-12-22T07:43:52.982Z</atom:updated>
            <content:encoded><![CDATA[<p>Zoho CRM sandboxes are copies of your Production environment. A sandbox contains all the configuration, customization, apps, and code (known as <strong>metadata</strong>) that you have made to your Production environment (where users log in and work every day). Some sandbox types can even contain some of your production data too and it is chosen by the user who created the sandbox.</p><p>The benefit of a Sandbox is you can do anything you like in there without any risk of harm to the configuration or data contained in your Production environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ry3hAINP3hB3lGvNS0BiWQ.png" /></figure><p><strong>Usage of Sandbox :</strong></p><p><strong>Development : </strong><br> Sandboxes are just a clone of our production org with the same configuration like workflow, profile, roles… etc. We can create a new configuration like workflow and blueprint and verify the execution. During development production environment data will not be affected.</p><p><strong>Testing:</strong><br>Sandboxes are mainly introduced for testing purposes, where we can safely test our new configuration without affection production data. We can test our existing configuration also since it is copied to the sandbox from production already. Some of the restrictions are also there in a sandbox environment like mailing is not possible in the sandbox. We cannot add or modify the status of users in the sandbox.</p><p><strong>Deployment:</strong><br> A most interesting feature in the sandbox is deploying the newly added and modified configurations of sandbox org. whatever we are changing or adding in the sandbox org will be tracked and listed in the sandbox changes page. With the help of the deployment facility we can move the tested configuration to production environment. If any conflict is there like duplicate name or missing module in production, it will show the conflicts in the sandbox check dependency popup during deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PyFXapn5IEJvU5s90Av-Lg.png" /></figure><p><strong>Deployment logs:</strong><br>It&#39;s a history of sandbox deployment that happened in the last 6 months. we can filter the specific component, module, and deployed user in the deployment logs page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0HH1VYcK8xR9wxUZPAJNuw.png" /></figure><p><strong>See difference in Sandbox :</strong><br> We can visually see the difference between sandbox and production configuration for the updated changes with the help of see diff feature. For example modify and workflow in sandbox and in the changes page hover over the workflow, you will see the see diff button. By clicking it we can see both the changes and differences there itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VCHY1Ct_YK7L520sJX6owQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gj2SGjz1rMEEBUEhat7afg.png" /></figure><p>Will be continued….. start using Zoho CRM <a href="https://crm.zoho.com/">https://crm.zoho.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36b688fcd51e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Clean code Practice in Java #1]]></title>
            <link>https://medium.com/@maxxselvak/clean-code-practice-in-java-story-1-45890983cdb8?source=rss-7c1e44bdeed3------2</link>
            <guid isPermaLink="false">https://medium.com/p/45890983cdb8</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[enum]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[java8]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Maxx Selva K]]></dc:creator>
            <pubDate>Tue, 14 Dec 2021 12:51:44 GMT</pubDate>
            <atom:updated>2021-12-14T12:52:36.607Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Best practice to improve coding….</strong><br>If you want to be a better programmer, you must follow these recommendations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/0*Kg_TQl5VA0kozrjp" /><figcaption>Happy Coding…</figcaption></figure><p><strong>Tip 1: Naming variables and Functions.</strong><br>The variable name itself should reveal the purpose of the variable… These are some examples of a code smell. Below is the bad and good example of it.</p><p><strong>Bad one :</strong></p><pre>int pId;<br>String acInfo;</pre><p><strong>Good one :</strong></p><pre>int productId;<br>String actionInfo;</pre><p><strong>Tip 2: Never Use Hard-Coded constants</strong><br>Always use Constance variables instead of hard coding. The best way to do this is by utilizing Enums in java. Many developers follow different methods to avoid hard coding in if checks. Below is the bad and good examples.</p><p><strong>Bad one:</strong></p><pre>if(date.today == &quot;Monday&quot;) {<br>  // Do Something<br>} else if(date.today == &quot;Friday&quot;) {<br>  // Do something different<br>} else if(date.today == &quot;Sunday&quot;) {<br>  // Do something else<br>}.....// The ladder can go on extending</pre><p><strong>Good one:</strong></p><pre>public enum Days {<br>    MONDAY,<br>    FRIDAY,<br>    SUNDAY<br>}<br>switch(date.today) {<br>     case MONDAY: // Do something<br>     break;<br>     case FRIDAY: // Do something different<br>     break;<br>     case SUNDAY: // Do something else<br>     break;<br>     default: // default behaviour is desired<br>}</pre><p>The above switch gives some better control of it instead of an if-else ladder.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45890983cdb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Get All values for a key in JSONArray using JAVA]]></title>
            <link>https://medium.com/@maxxselvak/get-all-values-for-a-key-in-jsonarray-using-java-784a96537b1c?source=rss-7c1e44bdeed3------2</link>
            <guid isPermaLink="false">https://medium.com/p/784a96537b1c</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[structure]]></category>
            <category><![CDATA[json]]></category>
            <dc:creator><![CDATA[Maxx Selva K]]></dc:creator>
            <pubDate>Wed, 08 Dec 2021 15:38:04 GMT</pubDate>
            <atom:updated>2021-12-08T15:38:04.856Z</atom:updated>
            <content:encoded><![CDATA[<p>the following snippet will help you… !! Happy coding :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PQzXikRh5g-vj4M-aygTaA.png" /><figcaption>:)</figcaption></figure><p><strong>Full Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oqzmSlQTpbr70vI97zrSPA.png" /></figure><p><strong>Output :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*YTPZRBfj5mx4Holx5auS2Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=784a96537b1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mistake I did in Java Map which resulted in Production Fire.]]></title>
            <link>https://medium.com/@maxxselvak/mistake-i-did-in-java-map-which-resulted-in-production-fire-8bb87b78024d?source=rss-7c1e44bdeed3------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bb87b78024d</guid>
            <category><![CDATA[company]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[hashmap]]></category>
            <category><![CDATA[maps]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Maxx Selva K]]></dc:creator>
            <pubDate>Thu, 02 Dec 2021 12:54:14 GMT</pubDate>
            <atom:updated>2021-12-02T12:54:14.459Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the mistake i have done in my organization which is resulted in a production fire..</p><p>I have added a simple fix for an issue reported by customer. I have a common users map in my class that holds the userids and used the map in various places and allowed to use the map by other developers. one of the developers used the map and modified it with his ids inside the map.</p><p>Due to the other ids, one of my scheduler got failed. To fix this wherever the map is used, i cloned the map and passed it to other developers code.</p><p>While cloning i have used the putAll(map) method. In my case my map can be null. I missed to test the case and finally if the map is null then putAll method is throwed the NullPointerException. this resulted in production fire. then i have added a if check to avoid this Exception</p><p>HashMap&lt;Long, Long&gt; new_user_map = new HashMap&lt;&gt;();</p><p>new_user_map.putAll(mainVsDummyUserid);</p><p><strong>Fix</strong></p><p>if(mainVsDummyUserid != null){</p><p>new_user_map.putAll(mainVsDummyUserid);</p><p>}</p><p>resellerinfo.setUserIdsMap(new_user_map);</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bb87b78024d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>