<?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 Shlok Kotiyal on Medium]]></title>
        <description><![CDATA[Stories by Shlok Kotiyal on Medium]]></description>
        <link>https://medium.com/@kotiyalshlok9?source=rss-82e85f76f1b2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9wbR4A2enOEGVzLQJEGnFQ@2x.jpeg</url>
            <title>Stories by Shlok Kotiyal on Medium</title>
            <link>https://medium.com/@kotiyalshlok9?source=rss-82e85f76f1b2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:10:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kotiyalshlok9/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[Why Developers Hate Repeating Code And How Inheritance Solves It]]></title>
            <link>https://medium.com/@kotiyalshlok9/why-developers-hate-repeating-code-and-how-inheritance-solves-it-4333d7cda963?source=rss-82e85f76f1b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4333d7cda963</guid>
            <dc:creator><![CDATA[Shlok Kotiyal]]></dc:creator>
            <pubDate>Fri, 29 May 2026 14:13:23 GMT</pubDate>
            <atom:updated>2026-05-29T14:13:23.409Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cpFz0NGzf4c1FZUw" /><figcaption>As projects grow, managing repeated code becomes increasingly difficult.</figcaption></figure><p>When I first started learning programming, I thought copying and pasting code was completely fine.</p><p>If I needed the same functionality somewhere else, I would just copy the code. If I needed an object that behaved slightly differently, I would copy the existing code and make a few changes.</p><p>At first, it felt like the fastest way to get things done.</p><p>But as my projects became larger, I started noticing a problem: the same code was scattered all over my program.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aNHtSxkrL7v6OOIE" /><figcaption><em>Duplicated code often leads to bugs, maintenance issues, and wasted development time.</em></figcaption></figure><h3>The Real Problem with Repeated Code</h3><p>Imagine you’ve written the same piece of code in ten different places.</p><p>Now imagine you discover a bug or need to make a small improvement.</p><p>Instead of fixing it once, you have to find and update all ten copies. Missing even one of them can create new bugs and inconsistencies.</p><p>Repeated code often leads to:</p><ul><li>More bugs</li><li>Extra maintenance work</li><li>Wasted development time</li><li>Hard-to-manage projects</li></ul><p>When applications grow, these issues become even more frustrating. That’s one of the reasons Object-Oriented Programming introduced inheritance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5qvPE8vIr9XVK3Tg" /><figcaption>Inheritance allows child classes to reuse properties and methods from parent classes.</figcaption></figure><h3>What Is Inheritance?</h3><p>Inheritance allows one class to acquire the properties and methods of another class without rewriting the same code.</p><p>A simple way to think about it is through a family relationship. Children inherit certain characteristics from their parents. In programming, a child class can inherit behavior from a parent class.</p><p>This helps developers reuse code and avoid unnecessary duplication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/0*KqyqWnJ90cap_T6f" /><figcaption><em>A Car class can inherit common functionality from a Vehicle class.</em></figcaption></figure><h3>A Simple Example</h3><p>Suppose we have a Vehicle class. Every vehicle can:</p><ul><li>Start</li><li>Stop</li><li>Have wheels</li></ul><p>Instead of writing these features separately for every type of vehicle, we can place them in a common parent class.</p><pre>class Vehicle {</pre><pre>    void start() {<br>        System.out.println(&quot;Vehicle starts&quot;);<br>    }<br>}</pre><pre>class Car extends Vehicle {</pre><pre>}</pre><p>Because Car extends Vehicle, it automatically gets access to the start() method.</p><p>This means:</p><ul><li>Less code to write</li><li>Better organization</li><li>Easier maintenance</li><li>Greater consistency across the application</li></ul><h3>Why Developers Like Inheritance</h3><p>Inheritance offers several advantages:</p><ul><li>Promotes code reuse</li><li>Reduces duplication</li><li>Makes applications easier to organize</li><li>Simplifies maintenance</li><li>Helps software scale as projects grow</li></ul><p>Rather than building everything from scratch, developers can build on top of existing code and extend it when needed.</p><h3>Final Thoughts</h3><p>When I first learned about inheritance, it seemed like just another programming concept I had to memorize.</p><p>However, once I started working on larger projects, I realized how useful it actually is. Inheritance isn’t just about writing less code — it’s about writing cleaner, more maintainable code that is easier to manage in the long run.</p><p>And that’s exactly why inheritance remains one of the most important concepts in Object-Oriented Programming.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4333d7cda963" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Wired and Wireless Networks]]></title>
            <link>https://medium.com/@kotiyalshlok9/understanding-wired-and-wireless-networks-e764722f9256?source=rss-82e85f76f1b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/e764722f9256</guid>
            <dc:creator><![CDATA[Shlok Kotiyal]]></dc:creator>
            <pubDate>Sun, 12 Apr 2026 15:08:55 GMT</pubDate>
            <atom:updated>2026-04-12T15:18:41.161Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In today’s time, networks are a very important part of our daily life. We use them for internet, communication, and sharing data between devices. Basically, a network connects different devices so they can exchange information. There are mainly two types of networks: wired and wireless networks.</p><h3>Wired Network</h3><p>A wired network is the type of network in which devices are connected using cables like Ethernet cables. These networks follow standards given by <strong>IEEE (802.3)</strong>.</p><p>From my understanding, wired networks are more stable and faster because the connection is direct through a cable. There is very less disturbance or signal loss. That’s why wired networks are mostly used in offices, labs, and companies where performance is very important.</p><p>But one disadvantage is that it is not flexible. Once connected with a cable, you cannot move around freely, and installation can also be a bit difficult.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8unAwrMqgujtikjg" /></figure><h3>Wireless Network</h3><p>Wireless networks are those networks where devices connect without any cables. They use radio signals and are based on <strong>IEEE (802.11)</strong>, which we commonly call Wi-Fi.</p><p>In simple words, when we use Wi-Fi on our phone or laptop, we are using a wireless network. These networks are very convenient because we can move anywhere within the range and still stay connected.</p><p>However, according to me, wireless networks are not always as reliable as wired ones. Sometimes the signal becomes weak or there is interference, which can reduce speed. Also, security can be a concern if not properly protected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*J9_RwMF2_QR7f4Mq" /></figure><h3>Difference Between Wired and Wireless Network</h3><p>The main difference between wired and wireless networks is in the way they connect devices. Wired networks use cables and provide high speed, better security, and stability. On the other hand, wireless networks use radio signals and offer mobility and convenience but may have lower speed and security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*PcazDiOOaARV7ESX" /></figure><h3>Conclusion</h3><p>So, both wired and wireless networks are important in their own ways. Wired networks are best when we need high performance and reliability, while wireless networks are useful for easy access and flexibility. In real life, we use both together depending on the situation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e764722f9256" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>