<?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 Diksha Pathak on Medium]]></title>
        <description><![CDATA[Stories by Diksha Pathak on Medium]]></description>
        <link>https://medium.com/@pathakdiksha?source=rss-b9fb8928c645------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fkyccJF7svsXDRgZ2a3WHg.jpeg</url>
            <title>Stories by Diksha Pathak on Medium</title>
            <link>https://medium.com/@pathakdiksha?source=rss-b9fb8928c645------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:44:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pathakdiksha/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[Java HashMaps 101]]></title>
            <link>https://pathakdiksha.medium.com/java-hashmaps-101-d2ab75f366e0?source=rss-b9fb8928c645------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2ab75f366e0</guid>
            <dc:creator><![CDATA[Diksha Pathak]]></dc:creator>
            <pubDate>Fri, 03 Apr 2026 02:57:02 GMT</pubDate>
            <atom:updated>2026-04-03T03:48:59.353Z</atom:updated>
            <content:encoded><![CDATA[<h4>HashMaps</h4><ol><li>put() requires strict data types with which map is created. If not, compile time error.</li><li>while get(), containsKey(), containsValue(), remove() accept an Object type as it is allowed for flexibility purposes.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V_QA1UD41hEoAVJrpft6Ow.png" /></figure><pre><br><br>Map&lt;Integer, String&gt; map = new HashMap&lt;&gt;();<br><br>//Adding values in a Map<br>map.put(1,&quot;john&quot;);<br>map.put(2,&quot;doe&quot;);<br><br>//Adding values with similar key<br>map.put(1,&quot;jack&quot;); // john will be replaced with jack and only 1 entry will be present<br><br>//Calculating size<br>int size = map.size();<br><br>//Remove an element<br>map.remove(1); //this accepts an object but only removes using key<br><br>/*<br>this will only delete if both key and value matches.<br>this is an overloaded method<br>*/<br>map.remove(1,&quot;jack&quot;);<br><br>map.values.remove(&quot;jack&quot;); //removes first occurence of this value<br><br>//this will remove all entries<br>map.entrySet().removeIf(entry-&gt; entry.getValue().equals(&quot;jack&quot;));<br><br>//Contains a key/Value, this also accepts an object<br>map.containsKey(2); //returns true if contains<br>map.containsValue(&quot;doe&quot;); //returns true if contains</pre><h4>Traversal in HashMap</h4><pre>//Traversal in a Map<br>for(Map.Entry&lt;Integer,String&gt; entry: map.entryset()){<br>entry.getValue(), entry.getKey()<br>}<br><br>//KeySet<br>for(Integer i: map.keySet()){<br><br>}<br><br>//Values<br>for(String s: map.values()){<br><br>}</pre><h4>Converting map to other data types</h4><pre>List&lt;String&gt; list = new ArrayList&lt;&gt;(map.values());<br><br>//we can put map.keySet() in a set as well<br>List&lt;Integer&gt; list1 = new ArrayList&lt;&gt;(map.keySet()); <br><br>//converting to arrays<br>String[] arr = map.values().toArray(new String[0]);<br>Integer[] arr1 = map.keySet().toArray(new Integer[0]);</pre><h4>Sorting a Map</h4><p><strong>Sort By Keys —</strong></p><ol><li>TreeMap can be used to sort a map using keys. It is implemented using self balancing red black trees, by default natural ordering.</li><li>Custom comparator can also be added.</li><li>This is slower than HashMap (O(1)) while this is O(log n)</li><li>Null key is not allowed in tree map, while in hash map it is allowed.</li></ol><pre><br>//Use a treemap to sort a map using keys<br>Map&lt;Integer,String&gt; map = new TreeMap&lt;&gt;(map);<br><br>map.firstKey();     // smallest key<br>map.lastKey();      // largest key<br>map.higherKey(2);   // next greater key<br>map.lowerKey(2);    // next smaller key<br>map.ceilingKey(2);  // &gt;= key<br>map.floorKey(2);    // &lt;= key</pre><p><strong>Sort By Values —</strong></p><pre>//Ascending order<br>Map&lt;Integer,String&gt; map2 = map1.entrySet().stream().sorted(Map.Entry.comparingByValue())<br>                .collect(Collectors.toMap(<br>                        Map.Entry::getKey,<br>                        Map.Entry::getValue,<br>                        (e1,e2)-&gt; e1, LinkedHashMap::new<br>                ));<br><br>//Reverse order<br>Map&lt;Integer,String&gt; map2 = map1.entrySet().stream().sorted(Map.Entry.comparingByValue().reversed())<br>                .collect(Collectors.toMap(<br>                        Map.Entry::getKey,<br>                        Map.Entry::getValue,<br>                        (e1,e2)-&gt; e1, LinkedHashMap::new<br>                ));</pre><h4>LinkedHashMap</h4><ol><li>LinkedHashMap is a linked list + hash map combination that maintains order of elements.</li><li>Fast operations like hashmap O(1) and predictable insertion order.</li><li>internally uses hashtable for fast lookup and doubly linkedlist for maintaining insertion order.</li><li>you can also maintain access order in place of insertion order. LRU cache is an example of this.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2ab75f366e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOLID Principles]]></title>
            <link>https://pathakdiksha.medium.com/solid-principles-1612d877e306?source=rss-b9fb8928c645------2</link>
            <guid isPermaLink="false">https://medium.com/p/1612d877e306</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[oops-concepts]]></category>
            <category><![CDATA[solid-principles]]></category>
            <dc:creator><![CDATA[Diksha Pathak]]></dc:creator>
            <pubDate>Sat, 12 Oct 2024 11:41:00 GMT</pubDate>
            <atom:updated>2024-10-12T11:41:00.960Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*j4l7CCUtUvkICE8e" /><figcaption>Source : Google</figcaption></figure><p>SOLID is an acronym for 5 design principles in Object Oriented Programming to create high-quality, maintainable and scalable applications. These principles were invented by Robert C. Martin (Uncle Bob).</p><h4>Single Responsibility Principle</h4><p>A class should have only one reason to change.</p><p>Let’s say we have a Marker entity and Invoice class for the Marker entity.</p><pre>class Marker {<br>  String name;<br>  String color;<br>  int year;<br>  int price;<br><br>  //constructor<br>  public Marker(String name, String color, int year, int price){<br>    this.name = name;<br>    this.color = color;<br>    this.year = year;<br>    this.price = price;<br>  }<br>}</pre><pre>class Invoice  {<br>  private Marker marker;<br>  private int quantity;<br><br>  //constructor<br>  public Invoice(Marker marker, int quantity) {<br>    this.marker = marker;<br>    this.quantity = quantity;<br>  }<br><br>  //calculateTotal<br>  public int calculateTotal() {<br>    int price = ((marker.price) + this.quantity);<br>    return price;<br>  }<br><br>  //printInvoice<br>  public void printInvoice() {<br>    //do something<br>  }<br><br>  //saveToDb<br>  public void saveToDb() {<br>    //do something<br>  }<br>}</pre><p>Invoice class has 3 resposibilities to calculateTotal price , print the invoice and save the invoice to DB. It has 3 reasons to change. If either of the logic changes, classes change. We’ll have to refactor the invoice class to provide only one responsibility to each class. Invoice class below will calculateTotal, InvoiceDao will save invoice to DB and InvoicePrinter will print the invoice. Each class, one responsibility.</p><pre>class Invoice  {<br>  private Marker marker;<br>  private int quantity;<br><br>  //constructor<br>  public Invoice(Marker marker, int quantity) {<br>    this.marker = marker;<br>    this.quantity = quantity;<br>  }<br><br>  //calculateTotal<br>  public int calculateTotal() {<br>    int price = ((marker.price) + this.quantity);<br>    return price;<br>  }<br><br>}<br><br>class InvoiceDao {<br>  Invoice invoice;<br><br>  //constructor<br><br>  //saveToDb<br>  public void saveToDb() {<br>    //do something<br>  }<br>  <br>}<br><br>class InvoicePrinter {<br>  Invoice invoice;<br><br>  //constructor<br><br>  //printInvoice<br>  public void printInvoice() {<br>    //do something<br>  }<br>  <br>}</pre><h4>Open-Closed Principle</h4><p>Open for extension, closed for modification.</p><p>Let’s say our InvoiceDao is tested and live, taking traffic and another requirement comes to add a method to save invoice file to a file. Now, if we modify the same class, it violates single responsibility and is not considered a good practice.</p><pre>interface InvoiceDao {<br>  public void save(Invoice invoice);<br>}<br><br>class DatabaseInvoiceDao implements InvoiceDao {<br>  @Override<br>  public void save(Invoice invoice) {<br>    //save to db<br>  }<br>}<br><br>class FileInvoiceDao implements InvoiceDao {<br>  @Override<br>  public void save(Invoice invoice) {<br>    //save to file<br>  }<br>}</pre><h4>Liskov Substitution Principle</h4><p>If class B is a sub-class of class A, then we should be able to replace object A with object B without breaking the behavior of the program. Sub class should extend the capability of the parent class and not narrow it down.</p><pre>interface Bike {<br>  void turnOnEngine();<br>  void accelerate();<br>}<br><br>class Motorcycle implements Bike { //extends the capability of Bike <br>  boolean isEngineOn;<br>  int speed;<br><br>  @Override<br>  public void turnOnEngine(){<br>    this.isEngienOn = true;<br>  }<br><br>@Override<br>  public void accelerate(){<br>    this.speed = this.speed + 10;<br>  }<br>}<br><br>class Bicycle implements Bike { //narrows the capability of Bike<br><br>  @Override<br>  public void turnOnEngine(){<br>    throw new AssertionError(&quot;there is no engine&quot;);<br>  }<br><br>@Override<br>  public void accelerate(){<br>    //do something<br>  }<br>}</pre><p>In the above example Bike interface is implemented by both Motorcycle and Bicycle classes, while we can easily replace Bike with Motorcycle we can not replace Bike with Bicycle because it will throw an exception. Therefore we need to design interfaces in such a way that there are no unnecessary classes.</p><h4>Interface Segregation Principle</h4><p>Interfaces should be such that client should not implement unnecessary functions they do not need.</p><pre>interface RestaurantEmployee {<br>  void washDishes();<br>  void serveCustomers();<br>  void cookFood();<br>}<br><br>class Waiter implements RestaurantEmployee {<br>  @Override <br>  public void washDishes() {<br>    //not my job<br>  }<br><br>  @Override <br>  public void serveCustomers() {<br>    //is my job<br>  }<br><br>  @Override <br>  public void cookFood() {<br>    //not my job<br>  }<br><br>}</pre><p>Waiter class has to override methods which are irrelevant to the class. We need to build interfaces in such a way that it can be segmented well into smaller and required methods.</p><pre>interface WaiterInterface {<br>  void serveCustomers();<br>  void takeOrder();<br>}<br><br>interface ChefInterface {<br>  void cookFood();<br>  void decideMenu();<br>}</pre><h4>Dependency Inversion Principle</h4><p>Class should depend on interfaces rather than concrete classes.</p><p>Let’s say we have two interfaces</p><ol><li>KeyboardInterface is implemented by WiredKeyboard and BluetoothKeyboard classes.</li><li>MouseInterface is implemented by WiredMouse and BluetoothMouse classes.</li></ol><pre>class MackBook {<br>  private final WiredKeyboard keyboard;<br>  private final WiredMouse mouse;<br><br>  public MacBook() {<br>    keyboard = new WiredKeyboard();<br>    mouse = new WiredMouse();<br>  }<br>}</pre><p>With above implementation, we are depending on concrete classes and if we were to change the wired implementation to bluetooth in future we will have to change the MacBook class code. This is not an ideal way of implementing if interfaces are being used.</p><pre>class MackBook {<br>  private final Keyboard keyboard;<br>  private final Mouse mouse;<br><br>  public MacBook(Keyboard keyboard, Mouse mouse) {<br>    this.keyboard = keyboard;<br>    this.mouse = mouse;<br>  }<br>}</pre><p>Now, when this implementation is depending on the interface we can choose to send either a wired object or bluetooth object based on the requirement at hand without touching the MacBook class.</p><p>Reference —<a href="https://www.youtube.com/@ConceptandCoding"> Concept &amp; Coding</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1612d877e306" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git Merge Vs Rebase]]></title>
            <link>https://pathakdiksha.medium.com/git-merge-vs-rebase-b2a2f19440bf?source=rss-b9fb8928c645------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2a2f19440bf</guid>
            <category><![CDATA[git-merge]]></category>
            <category><![CDATA[git-merge-vs-git-rebase]]></category>
            <category><![CDATA[git-merge-vs-rebase]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[git-rebase]]></category>
            <dc:creator><![CDATA[Diksha Pathak]]></dc:creator>
            <pubDate>Thu, 10 Oct 2024 11:30:43 GMT</pubDate>
            <atom:updated>2024-10-10T11:30:43.162Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*l178YLPfT0LOb4no.jpg" /><figcaption>Source : Google</figcaption></figure><p>Git Rebase and Merge are both used to integrate changes from one branch to another but in a different way. Goal is same but the process of doing it differs.</p><h4>Why do we need to integrate?</h4><p>Say you freshly checked out a feature branch from master which is at commit K1 (master head) . You go ahead with writing your code and make 3 commits L1, L2, L3. Meanwhile your peer merges their commit to master branch and now the master head is at K2. And now, you are done with your changes and want to merge the commits but as soon as you try to do git push, your push gets rejected because your branch is not in sync with the upstream branch. This is where you are required to integrate the changes with whatever branch you are trying to push to.</p><p>Like we saw above integration can happen by two means — merge and rebase. Let’s see what are they and the difference between them.</p><h4>Git Merge</h4><p>As the name suggests, it merges the changes between two branches. It does so by making a merge commit on the feature branch which also preserves the commit history between two branches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xOGb_G8IJOHW4aEPQQ95LQ.png" /><figcaption>Source : <a href="https://phoenixnap.com/">phoenixNAP</a></figcaption></figure><h4>Git Rebase</h4><p>Rebasing is rewriting the base of the feature branch, there is one base when you checkout the feature branch, and when you wish to integrate you rewrite the base by pulling all new commits from master to your feature branch and then adding your commits on top of the rewritten base.</p><p>There is no additional commit involved, commit history is not preserved because it’s re-written like a linear history.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6sgDqU4l2lQ2VQBsfWuZKg.png" /><figcaption>Source : <a href="https://phoenixnap.com/">phoenixNAP</a></figcaption></figure><h4>Which is better?</h4><ol><li>If you are a big team and wish to preserve all commit history as is, then git merge is a right choice because rebase resets the history.</li><li>If multiple people are working on the same feature branch, then git merge is again a right choice, because rebase will confuse everyone as the commit history is reset.</li><li>Rebase can be a good choice, if you’re a small team or only one person is working on a branch.</li><li>Rebase also provides a linear git log history while merge provides a rather complex history.</li></ol><p><em>While git merge is a safe option in most scenarios, it is solely left on the discretion of the development team with what they want to follow. Some teams prefer rebase over merge to avoid an extra commit and have a linear commit history while some prefer merge as it’s safe.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2a2f19440bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spring Data JPA Interface Projections]]></title>
            <link>https://pathakdiksha.medium.com/spring-data-jpa-interface-projections-5cdbe370ccc6?source=rss-b9fb8928c645------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cdbe370ccc6</guid>
            <category><![CDATA[jparepository]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[spring-boot]]></category>
            <dc:creator><![CDATA[Diksha Pathak]]></dc:creator>
            <pubDate>Fri, 29 Sep 2023 08:39:48 GMT</pubDate>
            <atom:updated>2023-09-29T08:39:48.442Z</atom:updated>
            <content:encoded><![CDATA[<p>In Spring we declare entity/root classes to hold the data we want in our application. And we use repository methods to query data from those entity classes and they usually return one or more instances of your entity class. Now, there may be scenarios where</p><ol><li>You want your repository method to return only a set of fields from the entity class or combine multiple fields from different entity class.</li><li>You do not want to directly use your entity classes in the business logic layer for security reasons.</li></ol><p>In such scenarios, projection comes handy. Projection is selecting only some columns from your root class which you need as per your use case.</p><p>There are different kinds of projections in Spring Data JPA —</p><p>a. Interface based projections</p><p>b. Class based projections</p><p>c. Dynamic projections</p><h4>Entity Classes</h4><p>Let’s define two entity classes — Employee class and an Address class</p><pre>@Entity<br>public class Employee {<br> <br>    @Id<br>    private Long employeeId;<br> <br>    private String firstName;<br> <br>    private String lastName;<br> <br>    @OneToOne(mappedBy = &quot;person&quot;)<br>    private Address address;<br><br>    // getters and setters<br>}</pre><pre>@Entity<br>public class Address {<br> <br>    @Id<br>    private Long EmployeeId;<br> <br>    @OneToOne<br>    private Employee employee;<br> <br>    private String state;<br> <br>    private String city;<br> <br>    private String street;<br> <br>    private String zipCode;<br><br>    // getters and setters<br>}</pre><p>Now, let’s look at how we can use projections with these entity classes to fit our use cases.</p><h4>Interface Based Projections</h4><p>In this type of projection, we create interfaces where we provide the getter methods for only the fields we need as a part of our repository method.</p><p>In the background, Spring creates a proxy instance of this projection interface for each entity object and all the calls to proxy are forwarded to the entity object.</p><p>Interface based projections can be further divided into two —</p><ol><li>Closed Projections</li></ol><p>An entity has a lot of fields but not all of them are useful for all repository use cases. Hence, here we can define the getter methods of the fields that we need for our specific use case. Setter methods for these interfaces will be needed if we need to write unit test cases.</p><p>Let’s create a projection interface for Employee class —</p><pre>public interface EmployeeView {<br>    String getFirstName();<br><br>    String getLastName();<br>}</pre><p>Then, we ‘ll use the EmployeeView interface in the following repository method. It’s easy to see that defining a repository method with a projection interface is pretty much the same as if we would be when using an entity class. The only difference is <strong>the return type</strong>.</p><pre>public interface EmployeeRepository extends Repository&lt;Employee, Long&gt; {<br>List&lt;EmployeeView&gt; getAllEmployees();<br>}</pre><p>Now, let’s also take a look at if we create a nested projection. <strong>Notice the method that returns the nested projection must have the same name as the method in the root class that returns the related entity.</strong></p><pre>public interface AddressView {<br>    // ...<br>    String getStreet();<br>    EmployeeView getEmployee();<br>}</pre><p><em>Note that recursive/nested projections only work if we traverse from the owning side to the inverse side (Employee -&gt; Address). If we do it the other way around, the nested projection would be set to null.</em></p><p>2. Open Projections</p><p>These projections only differ from closed ones, that in Closed projections all the fields are an exact match of the fields defined in entity classes. While in open projections we can define custom fields for the interface like combining first name and last name into a single field called full name.</p><pre>public interface PersonView {<br>    // ...<br><br>    @Value(&quot;#{target.firstName + &#39; &#39; + target.lastName}&quot;)<br>    String getFullName();<br>}</pre><p>Please find a summary of other two types of projections below.</p><h4>Class Based Projections</h4><p>Instead of using proxies defined by Interface based projections, we can declare projection classes. These are called DTOs. Data Transfer Objects also helps in transferring data between processes and reduces the number of calls between server and client. <strong>With class-based approach, we can’t use nested projections.</strong></p><h4>Dynamic Projections</h4><p>An entity class may use many projections. Sometimes we may need to use one projection while sometimes we may need another. And in some cases we might need to use the entity class itself. Hence, at some places we are not really sure what all fields we would need and we need something that supports multiple return types. Dynamic projections come into picture.</p><h4>References</h4><p><a href="https://www.baeldung.com/spring-data-jpa-projections">Spring Data JPA Projections | Baeldung</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cdbe370ccc6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upgrading Angular & Spring Boot Versions]]></title>
            <link>https://pathakdiksha.medium.com/upgrading-angular-spring-boot-versions-15f53bfdc300?source=rss-b9fb8928c645------2</link>
            <guid isPermaLink="false">https://medium.com/p/15f53bfdc300</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[spring-boot-3]]></category>
            <category><![CDATA[spring-security]]></category>
            <dc:creator><![CDATA[Diksha Pathak]]></dc:creator>
            <pubDate>Sun, 09 Apr 2023 10:31:27 GMT</pubDate>
            <atom:updated>2023-04-09T10:37:55.565Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Here, the focus is on upgrading Angular 13 to Angular 15, Nodejs 14 to Nodejs18, Spring Boot 2.x to Spring Boot 3 along with Java 11 to Java 17. I will also discuss some errors that I encountered while performing this upgrade. This blog will assume that you’re already using Java 11,springboot 2.x, Angular 13 or higher and Nodejs 14.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*nrx2xeCFm1_2zfJU8yioYw.jpeg" /></figure><p>In software development, technology versions that we use keep on reaching end of life with their new releases taking their place. I have recently worked on upgrading Angular &amp; Spring boot versions and will touch base the steps that I followed and a few things to keep in mind.</p><h3>Nodejs 14 to Nodejs 18</h3><ol><li>Install Nodejs 18 in your system and delete older version of Nodejs from your system.</li><li>Import the settings into your IDE.</li><li>Open your IDE and go to settings. In your Languages &amp; framework, select the latest version of node to use as node interpreter and package manager.</li><li>Update your yaml files if there is a mention of Nodejs.</li><li>Delete package-lock.json file and run npm install. New package-lock.json will be auto-generated.</li><li>Run all your unit test cases once to see if no test case fails because of the upgrade.</li></ol><h3>Angular 13 to Angular 15</h3><p>Firstly, you can not directly upgrade Angular 13 to 15, first you’ll need to upgrade Angular 13 to 14 and then to 15. Secondly, there are 2 ways to perform this upgrade and we will see both ways — Manual and using ng update.</p><h4>Manual Upgrade</h4><ol><li>Manually update package.json to versions of Angular 14. Delete old package-lock.json and run npm install.</li><li>Do the same for upgrading to Angular 15.</li></ol><p>Checkpoint : If you’re using NGCC, make sure its compilation is successful. Because if you’re not upgrading both Nodejs &amp; Angular, there is a possibility that their versions might be incompatible with each other.</p><h4>Ng Update Upgrade</h4><ol><li>Run ng update <a href="http://twitter.com/angular/core">@angular/core</a>@14 <a href="http://twitter.com/angular/cli">@angular/cli</a>@14. If there are any peer dependency incompatibility, then manually update only those dependencies to the latest version and then run the command again. Incompatibilities can mostly arise in ng-inline-svg and @angular-eslint/schematics.</li><li>Dependencies and Dev dependencies will be updated automatically.</li><li>Delete old package-lock.json and run npm install again. New package-lock.json will be generated.</li><li>Follow steps 1–3 for upgrading from Angular 14 to Angular 15.</li></ol><p>Checkpoint : Your project’s global stylesheet might not pick some imports if you’e using scss. SCSS needs to be updated to CSS.</p><h3>Java 11 to Java 17</h3><ol><li>Install JDK 17 in your system and configure your ide to use JDK 17 as your JDK for your project.</li><li>Update your Java versions in any yaml files on your project and also in your projet’s pom.</li><li>Review Lombok dependency version. Latest version to be used here 1.18.22.</li></ol><h3>Spring Boot 2.x to Spring Boot 3</h3><ol><li>Update your pom.xml to use spring boot version 3 .</li><li>You’ll need Spring framework 6 and Java 17 to use Spring Boot 3.</li><li>Review existing dependencies and specially Spring security dependency.</li><li>Review deprecations from Spring Boot 2.x. Some of the classes, methods, properties and annotations that were deprecated in Spring Boot 2.x have been removed in this release. For example, <a href="https://javatechonline.com/spring-security-without-websecurityconfigureradapter/">WebSecurityConfigurerAdapter</a> class, <a href="https://javatechonline.com/spring-security-annotations/#EnableMethodSecurity">@EnableGlobalWebSecurity</a> annotation has been removed. Methods authorizeRequests() and antMatchers() are also changed to <a href="https://javatechonline.com/spring-security-userdetailsservice-using-spring-boot-3/#Step9_Write_SecurityConfig_class_Without_Using_WebSecurityConfigurerAdapter">authorizeHttpRequests() and requestMatchers()</a> respectively.</li><li>As Java EE has been changed to Jakarta EE, Spring Boot 3.0 has also upgraded from Java EE to Jakarta EE APIs for all dependencies. Hence, the package names starting with ‘javax’ need to be changed to ‘jakarta’ accordingly.</li><li>If you’re using Spring security, make sure to update the method names mentioned in Step 4.</li><li>Compile your application to see if there are any other compilation error.</li></ol><h4>Resources</h4><ol><li><a href="https://docs.spring.io/spring-boot/docs/2.7.x/reference/html/dependency-versions.html#appendix.dependency-versions">Spring Boot 2.x Dependencies</a></li><li><a href="https://docs.spring.io/spring-boot/docs/3.0.x/reference/html/dependency-versions.html#appendix.dependency-versions">Spring Boot 3.0 Dependencies</a></li><li><a href="https://javatechonline.com/how-to-migrate-spring-boot-2-to-spring-boot-3/">Migration from Spring Boot 2.x to 3.0</a></li><li><a href="https://update.angular.io/">Angular Version Upgrade</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15f53bfdc300" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Constructor Injection is better in Spring?]]></title>
            <link>https://pathakdiksha.medium.com/why-constructor-injection-is-better-in-spring-e9b22d116544?source=rss-b9fb8928c645------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9b22d116544</guid>
            <category><![CDATA[dependency-injection]]></category>
            <category><![CDATA[constructor-injection]]></category>
            <category><![CDATA[spring]]></category>
            <category><![CDATA[spring-boot]]></category>
            <dc:creator><![CDATA[Diksha Pathak]]></dc:creator>
            <pubDate>Sat, 01 Apr 2023 05:45:53 GMT</pubDate>
            <atom:updated>2023-04-01T05:45:53.652Z</atom:updated>
            <content:encoded><![CDATA[<p>In Spring, first it is important to understand the concept of Inversion Of Control (IoC). IoC is a software engineering principle which helps to transfer the control of objects to a Container. IoC is achieved through Dependency Injection in Spring.</p><p>Dependency injection is the process of providing the dependencies and IoC is the end result of Dependency Injection. We are also able to develop loosely coupled applications in Spring because of Dependency Injection.</p><p>In traditional programming, if we have to provide a dependency for an object on another object, we did it like below —</p><pre>public class EmployeeService{<br>  private Employee employee;<br>  <br>  public EmployeeService(){<br>    this.employee = new Employee();<br>  }<br>}</pre><p>Now, with Dependency Injection we can do the same without explicitly specifying the implementation of Employee class.</p><pre>public class EmployeeService{<br>  private Employee employee;<br>  <br>  public EmployeeService(Employee employee){<br>    this.employee = employee;<br>  }<br>}</pre><h3>Spring IoC Container</h3><p>An IoC container is common to frameworks that implement IoC. In Spring, the interface called <em>ApplicatonContext</em> is the IoC container. It is responsible for instantiating, configuring and assembling objects (also called beans), as well as managing their lifecycle.</p><pre>@SpringBootApplication<br>public class EmployeePortal {<br><br>  public static void main(final String[] args){<br>    ApplicationContext applicationContext = SpringApplication.run(EmployeePortal.cass,args);<br>  }<br><br>}</pre><p>In Spring, Dependency Injection can be done via Constructor Injection, Setter Injection and Field Injection. Let’s discuss about all of them and which is the better approach and why.</p><h4>Constructor-Based Injection</h4><p>In this case, the container will invoke a constructor with arguments each representing a dependency we want to set.</p><pre>@Component<br>public class EmployeeService{<br>  private Employee employee;<br>  <br>  public EmployeeService(Employee employee){<br>    this.employee = employee;<br>  }<br>}</pre><p>Before Spring 4.3, we had to add an @Autowired annotation to the constructor. With newer versions, this is optional if the class has only one constructor.</p><pre>@Component<br>public class EmployeeService{<br>  private Employee employee;<br>  private DataRefresh dataRefresh;<br>  <br>  public EmployeeService(Employee employee){<br>    this.employee = employee;<br>  }<br><br>  @Autowired<br>  public EmployeeService(Employee employee, DataRefresh dataRefresh){<br>    this.employee = employee;<br>    this.dataRefresh = dataRefresh;<br>  }<br>}</pre><p>When we have a class with multiple constructors, we need to explicitly add the @Autowired annotation to any one of the constructors so that Spring knows which constructor to use to inject the dependencies.</p><h4>Setter-Based Injection</h4><p>In setter-based injection, we create a setter method and provide the required dependencies as field parameter.</p><pre>@Component<br>public class EmployeeService{<br>  private Employee employee;<br>  <br>  @Autowired<br>  void setEmployee(Employee employee){<br>    this.employee = employee;<br>  }<br><br>  Employee getEmployee(){<br>  return this.employee;<br>  }<br>}</pre><p>EmployeeService class requires a dependency of Employee class. Employee object is provided as an argument of the setter method defined. Spring will find the @Autowired annotation and call the setter to inject the dependency.</p><h4>Field-Based Injection</h4><p>With field-based injection, Spring assigns the required dependencies directly to the fields on annotating with @Autowired annotation.</p><pre>@Component<br>public class EmployeeService{<br>  <br>  @Autowired<br>  private Employee employee;<br>  <br>  void setEmployee(Employee employee){<br>    this.employee = employee;<br>  }<br><br>  Employee getEmployee(){<br>  return this.employee;<br>  }<br>}</pre><p>If we add @Autowired in both field and setter, IoC will use setter-based injection because field-based injection uses reflection, hence it’s more costlier.</p><h3>Which approach is better?</h3><p>Constructor-based injection has more advantages than other two approaches for the following reasons :</p><ol><li>The dependencies are clearly identified. We can be 100% sure that a class will never be instantiated if any of it’s dependencies are not injected. This also helps in preventing null pointer exception.</li><li>Dependencies can be final which promotes robustness and thread-safety.</li><li>Identifying code smells, helps us knowing if our bean is dependent on too many objects. If the constructor has too many arguments, it means that the class has too many responsibilities which violates the Single Responsibility Principle.</li><li>Constructor injection simplifies writing unit tests. The constructor forces us to provide valid objects for all dependencies. Using mocking libraries like Mockito, we can create mock objects that we can then pass into the constructor.</li><li>Promote Immutability. If we want our bean to be immutable, we can initialize it once and for all during the constructor invocation and not alter its dependencies at a later point of time.</li></ol><p>Reference : <a href="http://www.baeldung.com/">www.baeldung.com</a>, <a href="https://reflectoring.io/">reflectoring.io/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9b22d116544" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dependency Injection in Angular]]></title>
            <link>https://pathakdiksha.medium.com/dependency-injection-in-angular-c289ec15232b?source=rss-b9fb8928c645------2</link>
            <guid isPermaLink="false">https://medium.com/p/c289ec15232b</guid>
            <category><![CDATA[dependency-injection]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[full-stack-developer]]></category>
            <dc:creator><![CDATA[Diksha Pathak]]></dc:creator>
            <pubDate>Fri, 31 Mar 2023 12:19:08 GMT</pubDate>
            <atom:updated>2023-03-31T12:21:28.768Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Imagine you’re working at a Burger Junction and you need to make a burger. Before starting to work, you’ve already set up items that you’d need like buns, patties, sauces etc, so when you actually are going to make a burger you’ve everything that you need ready.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*vHx5Mof8KZWILGW7Ww3tMQ.png" /></figure><p>When we are building complex applications, we try to modularize the code so that it’s easy to read, understand and reuse if needed. This brings a challenge because a method might need an object of another class to execute. So now we have to make sure that before any method executes it has all the objects it depends on. This is where the concept of Dependency Injection comes into picture.</p><p>Dependency is nothing but an object and Injection is providing those objects wherever necessary. There are two roles in the DI system —</p><ol><li>Dependency Producer, class which is producing a object</li><li>Dependency Consumer, class which is consuming the same object</li></ol><h3><strong>Angular Framework</strong></h3><p>Angular enables dependency injection using an abstraction called an Injector. A layer that connects producer and consumer is called an Injector. Whenever a dependency is requested, the injector checks to see if an instance of that dependency is available in the registry, if it is, it provides the instance to the consumer, if not, it creates the instance, stores it in the registry and provides it to the consumer.</p><p>In Angular, a dependency can be a service, a function or a constant such as a string. At the time of bootstrapping the application, Angular creates application-wide injectors (also called root-injectors) and any other injectors that might be needed.</p><h4>Providing a Dependency</h4><p>Let’s say, there’s a class called EmployeeService that needs to act as a dependency in a component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*1fHs9mdSV_qSTDU-EeStMQ.png" /><figcaption>Providing a Dependency</figcaption></figure><p>@Injectable decorator tells us that this class can be injected. Dependency can be made available at 3 levels — @Component level, @NgModule level and Root level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*1wsUpYnbpg9SylosVVvmIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*0zxHIXu1sPg2tAP7M0BNKA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*1fHs9mdSV_qSTDU-EeStMQ.png" /><figcaption>@Component, @NgModule, Root Levels</figcaption></figure><p>When we provide a service at the root level, Angular creates a single shared instance of EmployeeService and injects it into any class that might need it.</p><h4>Injecting a dependency</h4><p>The most common way to inject a dependency is to declare it in a class constructor. Hence, whenever angular creates a new instance of the component, it determines which dependencies needs to be injected based on the constructor’s parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*vLUMBWDzq_6qVvEXoDfHog.png" /></figure><p>Reference — <a href="https://angular.io/">https://angular.io/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c289ec15232b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LinkedIn Polls : Review]]></title>
            <link>https://pathakdiksha.medium.com/linkedin-polls-review-560bb08e869c?source=rss-b9fb8928c645------2</link>
            <guid isPermaLink="false">https://medium.com/p/560bb08e869c</guid>
            <category><![CDATA[linkedin]]></category>
            <category><![CDATA[product-management]]></category>
            <dc:creator><![CDATA[Diksha Pathak]]></dc:creator>
            <pubDate>Sat, 27 Jun 2020 09:37:57 GMT</pubDate>
            <atom:updated>2020-06-27T09:37:57.826Z</atom:updated>
            <content:encoded><![CDATA[<h3>LinkedIn Polls : Review</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*GPv45HnBw8Bu6IeLM_GxjQ.jpeg" /><figcaption>Source : Google</figcaption></figure><p>LinkedIn recently (re)launched its polls feature and has been trending since then. With everyone trying their hands on it, I did too. I observed LinkedIn polls from an author and a voter’s perspective as a part of a challenge and came up with some insights and improvements.</p><p>Polls are done to get people’s opinions on things. The audience is given a few choices to select from, against the question being asked. Once the author of the poll has had enough count of votes received, then he/she can go ahead and analyze the result. Based on the results,</p><h3>Problem Statement</h3><p>Analyzing LinkedIn Polls to come up with design and feature enhancements in the current version.</p><h3>Target Users</h3><ol><li>Creator of the poll (Author)</li><li>Voter on the poll</li></ol><h3>Metric</h3><ol><li>User Engagement</li><li>Usability</li></ol><h3>What do we know about LinkedIn Polls</h3><h4>From an author’s perspective :</h4><p>· Has an option to write a caption for the poll.<br>· Can add poll’s question and it’s options ( 2 being the min and 4 being the max) and select the poll duration.<br>· Pretty much looks like a linkedin post with a box at the bottom which shows the actual poll.<br>· Can not edit poll’s questions and options but can edit caption.<br>· Receives passive notification when someone votes.<br>· Can see detailed and summarized version of the results.<br>· Can also vote himself/herself and undo as well.<br>· How many people have already voted and time left before it closes ( same for both author and voter)<br>· Like and comment on the post.</p><h4>From a voter’s perspective :</h4><p>· Select one of the options and vote if the poll hasn’t closed. Is able to undo and re-vote.<br>· Can see how many people have already voted and time left before it closes ( same for both author and voter)<br>· Able to see the result percentage.<br>· Like comment and share the post.</p><h3>Poll Screens to understand it better</h3><p>Voter Screens:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*vrR_F3GcKYZ9i9O4nJzT9A.png" /><figcaption>Viewing the Poll Post</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*k0sq-5OyqR7KUWKXO3UMiA.png" /><figcaption>After Voting on the Poll Post</figcaption></figure><p>Author Screens:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*kYTqecVzJ-o4QO-pmcQRTQ.png" /><figcaption>Creating a Poll Post</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*MkXlmm1uLdC5CwI4O-x86g.png" /><figcaption>Viewing the Poll Post</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*Isf2F9MhOngMDWQrhRXfaw.png" /><figcaption>Notifications on receiving votes</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*s7KC5n5tedxHHU81HXGv5A.png" /><figcaption>Result Summary</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*TOijZmTwAuQxREqbhM7_bQ.png" /><figcaption>Detailed Results</figcaption></figure><h3>Observations</h3><p>From an author’s perspective : <br>Passive notifications from poll’s engagement was the best part. It could get annoying if the author is notified every time a user votes.</p><p>From a voter’s perspective :<br>1. Look and feel of the poll post was very much authentic to a normal [in] post, so that was a plus point. User doesn’t need to learn anything new.<br>2. A box highlight for the poll separates the poll from other distractions in the overall post, which is again a great experience.</p><h3>Improvements</h3><ol><li>Poll Duration</li></ol><p>Setting the poll duration looks restricted. Author is only able select one of the few durations which are pre-set by LinkedIn. Ability to choose a more flexible time will add great value. Left screenshot is what LinkedIn offers, right one would be the improvement suggested.</p><p>2. Poll Closing Time</p><p>Once the poll is created, there shouldn’t be an option of editing it, because then it will lose the real essence of it. I want to take time and explain this using an analogy since I spent much time to understand why one shouldn’t be allowed to edit the poll once created.</p><p>Imagine you go out for voting on election day and after you vote, list of candidates gets updated and your most favorite candidate is added to the list. How will it make you feel? When a polling is done, same options should be available for the complete audience, they deserve fair and equal chances.</p><p>Though one thing which I feel that could be allowed for editing is the poll end time. This will enable the author to end the poll early than the specified time in case if he/she has got enough responses and they’re running short on time. The poll post could come as a warning that the author might close the poll early than the said time.</p><p>3. Notification when poll closes</p><p>A notification asking the author to take an action on either of the 2 items –<br>o Share the final results with the audience.<br>o Analyze/View the final results.</p><p>This review was done on 7 June 2020. Any changes/updates on LinkedIn Polls after this date are not considered.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=560bb08e869c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UPI Payments]]></title>
            <link>https://pathakdiksha.medium.com/upi-payments-16e2d188b676?source=rss-b9fb8928c645------2</link>
            <guid isPermaLink="false">https://medium.com/p/16e2d188b676</guid>
            <category><![CDATA[upi]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[upi-payment-app]]></category>
            <dc:creator><![CDATA[Diksha Pathak]]></dc:creator>
            <pubDate>Wed, 17 Jun 2020 16:48:19 GMT</pubDate>
            <atom:updated>2020-06-17T16:48:19.120Z</atom:updated>
            <content:encoded><![CDATA[<p>A brief explanation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*Z-eNhn0Et-hThr7v7jcRNA.jpeg" /><figcaption>Unified Payments Interface</figcaption></figure><h3>Introduction</h3><p>NPCI (National Payments Corporation of India) a not-for-profit organization functions under RBI (Reserve Bank of India) and IBA (Indian Bank Association). It was launched in 2008 with an aim to handle and transform payments in India.</p><p>One of the prominent services of NPCI includes payments through UPI, launched in 2016 (the same year Demonetisation happened).</p><p>UPI (Unified Payment Interface) is a payment system built on IMPS technology to enable instant transfer of money between bank accounts using a VPA (Virtual Payment Address)or UPI id without having to use bank account or debit/credit card details.</p><p>There was clearly a large scope in retail payments to be digitized across after UPI’s launch since it enabled a large base of payer and payee to get onboard. Imagine one being a small merchant, wouldn’t be comfortable in sharing their bank account details with you for a nominal transaction but instead, a mobile number or an email id wouldn’t be much big of a deal with also saving you from that “cash change hassle”.</p><p>Some of the Key Features -</p><ol><li>UPI is a big step towards a <strong>cashless economy</strong>.</li><li>Mobile number linkage to the bank account can be considered as the core of enabling UPI payments.</li><li>A user with multiple bank accounts can generate multiple VPA and get paid on or pay through any address, the linked account will get credited or debited respectively.</li><li>If one mobile number is linked to multiple bank accounts then one UPI app can be used to generate multiple UPI ids. And if more than one mobile number is linked, then there could be a need to use more than one application. In short, one app per mobile number.</li><li>Banks acted as the <strong>payment service provider</strong> of UPI, hence they were responsible for assigning UPI handles to users. For instance, Applications that were powered by a bank, assigned a UPI handle to its users. For instance, yes bank powered PhonePe, so all PhonePe users had a UPI handle of XXX@ybl.</li><li>Payments could be done by a UPI id, mobile number or a QR code.</li><li>Most of the payments done using UPI are <strong>peer to peer</strong>.</li></ol><h3>UPI 2.0</h3><p>NPCI (National Payments Corporation of India) launched an upgraded version of UPI in August 2018 — UPI 2.0. UPI 2.0 has emphasized more on peer-to-merchant spheres, unlike the previous version which focused on peer-to-peer transaction base. This approach has unleashed enormous opportunities for small and big merchants to shift from the traditional POS system to a contactless POS system. This is the reason why banks are facing disruption in their POS device business. At the time of the launch UPI 2.0 was supported by 11 banks.</p><p>Some of the key features of UPI 2.0 -</p><ol><li>Now the users will be able to link their <strong>overdraft accounts</strong> to UPI, earlier only current and savings accounts were allowed.</li><li>UPI <strong>mandate</strong> enables a user to pre-authorize a transaction and amount debits from the account at a later date.</li><li>Users will be able to view the <strong>invoice</strong> of the purchase before approving payment on their UPI apps.</li><li>Payers will be able to check the authenticity of the merchants, if they’re a <strong>verified UPI merchant </strong>or not.</li><li>Increased <strong>transfer limit</strong> of up to 2 Lakhs.</li></ol><h3>UPI Integration</h3><blockquote><em>Suppose you’re a merchant, looking to facilitate payments in your app and would like to make “pay via UPI” as an option for your customer. How can this be achieved? What are the options do you have, to integrate this payment service into your application? This article talks about exactly that.</em></blockquote><p>A customer while checking out from an e-commerce website after shopping, sees a list of online payment options on the screen and “UPI” is one among them. When this happens it means, that the e-commerce website has UPI payment integrated into its system. That is UPI integration in simple terms.</p><p><strong>How does one get UPI integrated?</strong></p><ol><li>Choose a Payment Service Provider. (Banks, UPI Payment Gateways, UPI apps)</li><li>These PSPs will provide UPI integration kits to integrate into your application.</li></ol><blockquote><em>There are independent </em><a href="https://medium.com/mindorks/implementing-upi-payment-integration-in-android-with-easyupipayment-library-aaf9bea715d9"><em>open source SDKs</em></a><em> available which are capable of enabling UPI service in your application.</em></blockquote><p><strong>Which PSP is best for me?</strong></p><p>Choosing a Payment Service Provider is the only work here. While banks are the primary service provider, UPI payment gateways provide you a simple and quick integration with all the work handled by them. There are different kinds of checkout flows available too, to chose from like web-flow, intent-flow, etc.</p><p>There is an amazing article written by <a href="https://blog.cashfree.com/upi-integration/">Cashfree</a> in which they’ve listed a few pros and cons of various PSPs and detailed various checkout flows. It is a must-read.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16e2d188b676" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My First User Personas!]]></title>
            <link>https://pathakdiksha.medium.com/my-first-user-personas-fe96c72c6c43?source=rss-b9fb8928c645------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe96c72c6c43</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[creating-a-user-persona]]></category>
            <category><![CDATA[user-personas]]></category>
            <dc:creator><![CDATA[Diksha Pathak]]></dc:creator>
            <pubDate>Sat, 08 Feb 2020 16:03:11 GMT</pubDate>
            <atom:updated>2020-06-17T16:51:25.354Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ThEitJGKeU74D9FcEzaADg.jpeg" /><figcaption>Source : <a href="https://careerfoundry.com/en/blog/ux-design/how-to-define-a-user-persona/">Careerfoundry</a></figcaption></figure><blockquote>Purpose of this article is to pen down my understandings on What, Why and How of User Personas while I finish my first case study.</blockquote><h4>What ?</h4><p>A user persona is a representation of an end user. This is also an end product of all your user research. Anyone glancing at the personas should understand which user base is targeted. It depicts the users needs, experiences, behaviors and goals.</p><h4>Why?</h4><ol><li>To give a shape to the findings from user research. Building an end product out of the research, user personas is a way to do that.</li><li>They can be revisited whenever there is a confusion about the user at a later stage of product development.</li><li>It can also give a brief idea about the users to stakeholders and engineers who weren’t a part of user research and can help them empathize.</li></ol><h4>How?</h4><p>There are various ways a user persona can be defined. A lot of templates are available on the web. I created user personas using a table as the template which kept the information precise and organized.</p><p>Basic Info — This includes basic demography of the user. For example, their name, age, picture, summary statement etc.</p><p>Goals/Needs — This includes listing of users goals which they want to accomplish in respect to the kind of problem you’re trying to solve.</p><p>Behavior — A short description on users’ core behavioral traits. Identifying how the user would behave given a particular situation.</p><p>Experiences/Pain Points — Listing out relevant experiences from the past can help identify users’ current pain points.</p><h4>Personas from my case study</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gpl4cd6vJ-6sqyzYj3zCdQ.png" /><figcaption>A Customer User Persona</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ULbxvFifyDfaNJbQVaBjuw.png" /><figcaption>A Vendor User Persona</figcaption></figure><p>My <a href="https://medium.com/diksha-pathak/upi-problem-a-case-study-aa010e0d9bf7">first case study</a> was on the day to day problems a frequent user of the UPI payment method could face indulging in small transactions. These user personas were a part of it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe96c72c6c43" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>