<?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 Dev Swaika on Medium]]></title>
        <description><![CDATA[Stories by Dev Swaika on Medium]]></description>
        <link>https://medium.com/@devswaika?source=rss-5b30c6a8df37------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*GFRDu6V60zSkLWSu.jpg</url>
            <title>Stories by Dev Swaika on Medium</title>
            <link>https://medium.com/@devswaika?source=rss-5b30c6a8df37------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 06:45:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@devswaika/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[How to decide which Sorting Algorithm to use?]]></title>
            <link>https://medium.com/@devswaika/how-to-decide-which-sorting-algorithm-to-use-f41d7e7817c0?source=rss-5b30c6a8df37------2</link>
            <guid isPermaLink="false">https://medium.com/p/f41d7e7817c0</guid>
            <category><![CDATA[dsa-courses]]></category>
            <category><![CDATA[data-structure-algorithm]]></category>
            <category><![CDATA[sorting-algorithms]]></category>
            <category><![CDATA[sorting]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Dev Swaika]]></dc:creator>
            <pubDate>Tue, 14 Feb 2023 15:31:12 GMT</pubDate>
            <atom:updated>2023-02-14T15:31:12.856Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hGY1VNlAHRqTmZhUiyB5xA.jpeg" /><figcaption><a href="https://brilliant.org/wiki/sorting-algorithms/">https://brilliant.org/wiki/sorting-algorithms/</a></figcaption></figure><h3>First lets understand what a Sorting Algorithm does.</h3><p><em>A Sorting Algorithm is used to rearrange a given array or list of elements according to a comparison operator on the elements. The comparison operator is used to decide the new order of elements in the respective data structure.</em></p><p>There exists n-number of sorting algorithms in the programming world and each has its own specific use-case.<br>Although there exist pre-defined sort methods for various languages, it is always good to know how they work behind the scenes.</p><h3>Lets get to the good part!</h3><p>So how to decide when to use which kind of Algorithm? Well we can roughly categorise it into 9 kinds of use cases. Let us know see each use case.</p><ol><li><strong>When you have an Array with only 2 kinds of elements</strong></li></ol><p>This case includes Binary arrays too. For such scenarios it is best to go for any of the 3 partitioning methods i.e Naive, Lomuto and Hoare’s.<br>All three do that same job, however Naive method involves the use of O(n) extra space while the rest do not. Naive has a time complexity of O(n) with 3 traversals of the array, while rest provide the same time complxity with only 1 traversal. Amongst Lomuto and Hoare, the latter is considered to be faster and hence preferred.<br>Common questions regarding this type are Sorting positives and negatives, sort odd-even and binary array. <a href="https://www.geeksforgeeks.org/hoares-vs-lomuto-partition-scheme-quicksort/">Refer to Hoare Partition Method from here</a>.</p><p>2. <strong>When you have an Array with 3 kinds of value or you are sorting around a range</strong></p><p>Again the same as above, we can use any of the three partitioning methods. Common questions pertaining to this are Sort array consisting of 0’s, 1’s and 2’s, Three way partitioning and partition around a range.<br>The partition around a range can be easily solved using <a href="https://www.geeksforgeeks.org/sort-an-array-of-0s-1s-and-2s/">Dutch National Flag Algorithm</a></p><p>3. <strong>Array of size ‘n’ and the range of elements is small</strong></p><p>This kind of array can be optimally sorted using Counting Sort. It takes O(n+k) time complexity where n is the size of array and k is the range from which the array elements are derived. It also has an Auxiliary space complexity of O(k). <a href="https://www.geeksforgeeks.org/counting-sort/">Learn Counting sort from here.</a></p><p>4. <strong>Array of size ‘n’ and the range varies from n²/n³ or more</strong></p><p>In such cases where ‘k’ follows a quadratic or non-linear relation with ’n’, counting sort fails to operate optimally. For such cases we use Radix Sort.<br>It works with time complexity of O(n) and space complexity of O(n). <a href="https://www.geeksforgeeks.org/radix-sort/?ref=lbp">Learn Radix sort from here.</a></p><p>5. <strong>Array of Uniformly distributed data over a range</strong></p><p>The best sorting algorithm for such scenarios is <a href="https://www.geeksforgeeks.org/bucket-sort-2/?ref=lbp">Bucket Sort</a>. It also works well for sorting Floating Point numbers which have been uniformly distributed. Its main advantage is that it works in linear time complexity.</p><p>6. <strong>When you have costly memory writes</strong></p><p>2 algorithms provide optimal solutions in such cases. <a href="https://www.geeksforgeeks.org/selection-sort/?ref=lbp">Selection</a> Sort and <a href="https://www.geeksforgeeks.org/cycle-sort/?ref=gcse">Cycle</a> Sort. Selection sort provides minimum number of swaps however cycle sort is said to be more optimal and better.</p><p>7. <strong>When only swapping of adjacent elements are allowed</strong></p><p>When you can only swap to adjacent element at a time, then <a href="https://www.geeksforgeeks.org/bubble-sort/?ref=lbp">Bubble</a> Sort is the best algorithm. It has an optimised version too which is called <a href="https://www.geeksforgeeks.org/cocktail-sort/?ref=lbp">Cocktail</a> Sort.</p><p>8. <strong>When the array size is small</strong></p><p><a href="https://www.geeksforgeeks.org/insertion-sort/?ref=lbp">Insertion</a> sort is the best algorithm for such cases when the array size is small. Even the library sort functions make use of this algorithm when they have broken down an array into small arrays.</p><p>9. <strong>When available extra memory is less</strong></p><p>Generally for embedded systems, <a href="https://www.geeksforgeeks.org/shellsort/?ref=gcse">Shell</a> Sort is the best option as it has no extra memory requirements and performs with a time complexity of O(n(log n)²).</p><p>Hence these were some ways in which you can easily differentiate between when to use which kind of Sorting Algorithm for better efficiency.</p><p><em>Thanks for reading! Please give a clap if you enjoyed and learned something.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f41d7e7817c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DISCOVERING DIFFERENCES BETWEEN WEB DESIGN AND WEB DEVELOPMENT]]></title>
            <link>https://medium.com/adg-vit/discovering-differences-between-web-design-and-web-development-4371b66d08?source=rss-5b30c6a8df37------2</link>
            <guid isPermaLink="false">https://medium.com/p/4371b66d08</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[ui-ux-design]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[ui-design]]></category>
            <dc:creator><![CDATA[Dev Swaika]]></dc:creator>
            <pubDate>Sat, 20 Jun 2020 12:19:07 GMT</pubDate>
            <atom:updated>2020-06-20T12:19:07.912Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*TKat5r7RMXSLzwJvcXyi0g.jpeg" /><figcaption><em>(Image source: </em><a href="https://www.askmeblogger.com/web-designer-vs-web-developer-whats-difference/)"><em>https://www.askmeblogger.com/web-designer-vs-web-developer-whats-difference/)</em></a></figcaption></figure><p>Web development and web design have lately become two of the most explored fields in the software industry. The websites we see on the internet to the mobile apps we use, web development, and designs are employed everywhere! However, since both are so often interchangeable, people get confused between the two.</p><p>Let’s understand what most beginners get confused about.</p><p>So web design, fundamentally, means putting down together the layout of the website and adding what functions might be introduced in the layout to offer a better user experience, whereas web development, on the other hand, is majorly concerned with building that website and adding all the functionalities that work almost like adding structure, style, and behavior to the website.</p><p>One can think developers as construction workers, and web designers as architects — both necessary, but with different skill sets.</p><h3>WEB DESIGN</h3><p>Web design, as introduced earlier, is all about the layout of a website and aesthetics involved.</p><p>Web designer’s work on how the website would look like they also understand what might or might not be feasible in the project; they understand design theory and work around structuring a better user experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*FyxymI_e6ArZUNwgQrYzag.jpeg" /><figcaption><em>(Image source: </em><a href="https://www.techfern.com/good-web-design-why-there-is-thus-very-little/)"><em>https://www.techfern.com/good-web-design-why-there-is-thus-very-little/)</em></a></figcaption></figure><p>So to describe the appearance, for example, relates to the colors used, the typography as in the fonts used, the layout as in what content lies where which images are placed where and whatnot.</p><p>A good web designer always makes the project look aesthetically pleasing and also easy to use. There are a few aspects that designers have to pay extra attention to, and they are:</p><p>• Responsive design</p><p>• Adaptive design</p><p><strong>Responsive design:</strong></p><p>These days are considered the days of the mobile, and so it’s essential to make websites that work well on all the platforms, be it desktops, mobiles, or tablets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*8CaNaZKNB9_qMT3V4j0LbQ.png" /></figure><p>In this type of design, the content is supposed to fit the screen size dynamically.</p><p><strong>Adaptive design:</strong></p><p>This type of design is static, so these layouts don’t respond once they’re initially loaded, the adaptive design will first work to figure out the layout size and then load the appropriate layout. So, in this case, six standard widths are designed based on sizes, and then the website shows up displaying appropriately sized content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*mKinkZl_yEd8ZyT5ZN1ocA.png" /></figure><p>Now both of these designs are used frequently, and each has its pros and cons based on the complexities involved and the target audience engaged with.</p><h3>WEB DEVELOPMENT</h3><p>As we mentioned earlier, web developers are similar to those who build, and web designers like the visionaries. They take the design created and build a fully functioning website.</p><p>We can think of the design as a non-interactive “picture” of a website which the developers use as reference and break up into its components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OgK5BUJsuKrbvgpCrqYEKw.jpeg" /><figcaption><em>(Image source: </em><a href="https://www.dailycupoftech.com/reasons-web-development-essential-business/web-dev/)"><em>https://www.dailycupoftech.com/reasons-web-development-essential-business/web-dev/)</em></a></figcaption></figure><p>While the designers use software’s like Photoshop, Figma, Adobe XD, Illustrator, etc. to create designs, developers have programming languages which help them create these functional websites.</p><p>As designers, the web developers have some specific roles:</p><p>• Back-end Developer</p><p>• Front-end Developer</p><p>The back-end of a website is its core-structure, and users do not see the work they do as it involves coding on the web servers and databases, and not on the browser. For this, the developer has a range of programming languages to choose from and is not limited to one.</p><p>Front-end is the part of web development which people confuse with design often. This is also known as client-side development. This involves using HTML, CSS, and JavaScript to create things the user can see and interact with. Here the developer can take the help of many frameworks available to add micro-interaction to its website, which helps in providing better user experience.</p><h3>CONCLUSION</h3><p>The difference between a web designer and a web developer is more significant than one thinks. A web designer’s responsibility is to bring a brand’s idea into an on-screen reality and precisely knows what the specific audience will enjoy. A web developer builds the site’s structure, using coding languages to construct functional and interactive websites.</p><p>However, just like mustard and ketchup on a hot dog, sometimes one needs both to get the best experience. When building a website from scratch, you need a web developer to build the foundation, and web designers to make it look and feel the way you and — more importantly — your users want.</p><p>This article is written in partnership with <a href="https://medium.com/u/a7c9e6b55d17">Shambhavi Sharma</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4371b66d08" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adg-vit/discovering-differences-between-web-design-and-web-development-4371b66d08">DISCOVERING DIFFERENCES BETWEEN WEB DESIGN AND WEB DEVELOPMENT</a> was originally published in <a href="https://medium.com/adg-vit">ADGVIT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>