<?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 Jamil Moughal on Medium]]></title>
        <description><![CDATA[Stories by Jamil Moughal on Medium]]></description>
        <link>https://medium.com/@mjamilmoughal?source=rss-fa714f74f978------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8jznYWfOFf7XgAiysjWzmQ.jpeg</url>
            <title>Stories by Jamil Moughal on Medium</title>
            <link>https://medium.com/@mjamilmoughal?source=rss-fa714f74f978------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 06:22:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mjamilmoughal/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[Load Balancing: How Load Balancers enhance web performance.]]></title>
            <link>https://levelup.gitconnected.com/load-balancing-how-load-balancers-enhance-web-performance-1431f27ab47a?source=rss-fa714f74f978------2</link>
            <guid isPermaLink="false">https://medium.com/p/1431f27ab47a</guid>
            <category><![CDATA[load-balancing]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Jamil Moughal]]></dc:creator>
            <pubDate>Thu, 24 Aug 2023 14:59:24 GMT</pubDate>
            <atom:updated>2023-08-24T14:59:24.956Z</atom:updated>
            <content:encoded><![CDATA[<p>The Key Role of Load Balancers in Modern IT architecture.</p><figure><img alt="Load Balancing. How Load Balancers work" src="https://cdn-images-1.medium.com/max/1024/1*IyxeLqKN8UyPSKnixHLRZg.jpeg" /><figcaption>Image is copied from <a href="https://www.hvpmag.co.uk/images/teaser//W725/shutterstock_1360238264_75L.jpg">here</a></figcaption></figure><h3>Introduction</h3><p>A load balancer is a crucial component in modern IT architectures, especially for websites and applications that experience significant user traffic. It distributes incoming network traffic across multiple servers to ensure efficient resource utilization, enhance responsiveness, and prevent any single server from becoming overwhelmed. Load balancers play a key role in optimizing performance, improving availability, and maintaining stability for online services.</p><h3>How Load Balancers work?</h3><p>Load balancers work by intelligently distributing incoming network traffic among multiple servers, which are often referred to as a server farm or cluster. This distribution is based on a set of rules that take into account factors like server health, capacity, and current load. Here’s how the process generally works:</p><p><strong>Incoming Request:</strong><br>A user sends a request to access a website or application. This request is directed to the load balancer’s IP address.</p><p><strong>Distribution Decision:</strong><br>The load balancer receives the request and makes a decision on which server should handle it. This decision is made based on various algorithms and metrics, such as round-robin, least connections, or server response time.</p><p><strong>Routing the Request:</strong><br>The load balancer forwards the incoming request to the chosen server in the server farm. The choice is typically made to ensure even distribution of traffic and to prevent any one server from becoming overloaded.</p><p><strong>Server Response:</strong><br>The chosen server processes the request, performs the necessary computations, and generates a response.</p><p><strong>Returning the Response:</strong><br>The load balancer receives the response from the server and then sends it back to the original requester.</p><h3>Types of Load Balancers</h3><p>There are several types of load balancers, including:</p><p><strong>Layer 4 Load Balancers (Transport Layer):</strong><br>These operate at the transport layer (Layer 4) of the OSI model and make routing decisions based on IP addresses and port numbers. They can balance traffic among servers efficiently but lack awareness of application-specific data.</p><p><strong>Layer 7 Load Balancers (Application Layer):</strong><br>These operate at the application layer (Layer 7) and can make routing decisions based on more advanced criteria such as HTTP headers, cookies, or URL paths. Layer 7 load balancers are often used for applications requiring content-based routing and more granular control.</p><h3>Benefits of Load Balancers:</h3><p><strong>Scalability:</strong> Load balancers allow organizations to easily add or remove servers from the pool, facilitating horizontal scaling to handle increased traffic.</p><p><strong>High Availability:</strong> If one server fails, the load balancer redirects traffic to healthy servers, ensuring minimal downtime.</p><p><strong>Performance Optimization:</strong> By distributing traffic, load balancers prevent any one server from becoming overloaded, maintaining optimal performance.</p><p><strong>Efficient Resource Utilization:</strong> Load balancers maximize the utilization of available server resources, preventing underutilization.</p><p><strong>Traffic Management:</strong> Load balancers enable traffic routing based on different criteria, such as geographic location or server health.</p><figure><img alt="How load balancer improves the performance of a ecommerce website" src="https://cdn-images-1.medium.com/max/1024/1*KirwBLPCjWoVzeCSyzf2Dw.png" /><figcaption>Diagram created by <a href="https://medium.com/u/fa714f74f978">Jamil Moughal</a> using <a href="https://excalidraw.com/">ExcaliDraw</a></figcaption></figure><h3>Case study: Ecommerce website</h3><p>In this case study we will explain what will be the behaviors&#39; of a ecommerce website with and without Load Balancer.</p><h4>Scenario Without Load Balancers:</h4><p><strong>Incoming Traffic:</strong> Users visit the e-commerce website to shop for products during a holiday sale event.</p><p><strong>Single Server:</strong> The website is hosted on a single server.</p><p><strong>Server Overload:</strong> As user traffic surges, the single server becomes overwhelmed, causing slow response times and potential crashes.</p><p><strong>User Experience Impact:</strong> Users experience delays, errors, and an overall frustrating shopping experience.</p><h4>Scenario With Load Balancers:</h4><p><strong>Incoming Traffic:</strong> Users visit the e-commerce website to shop for products during a holiday sale event.</p><p><strong>Load Balancing:</strong> Load balancers distribute incoming requests across a pool of backend servers.</p><p><strong>Server Pool:</strong> Multiple servers work together to handle the incoming traffic load.</p><p><strong>Even Distribution:</strong> Traffic is evenly distributed among the servers, preventing overload on any single server.</p><p><strong>Smooth User Experience:</strong> Users experience fast response times, smooth browsing, and seamless transactions.</p><p>In the scenario with load balancers, the traffic is intelligently distributed among multiple servers, preventing server overload and ensuring a positive user experience even during high-traffic periods.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1431f27ab47a" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/load-balancing-how-load-balancers-enhance-web-performance-1431f27ab47a">Load Balancing: How Load Balancers enhance web performance.</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhancing API Performance: Strategies for a Faster and Responsive Experience]]></title>
            <link>https://levelup.gitconnected.com/enhancing-api-performance-strategies-for-a-faster-and-responsive-experience-36aeb4bf513f?source=rss-fa714f74f978------2</link>
            <guid isPermaLink="false">https://medium.com/p/36aeb4bf513f</guid>
            <category><![CDATA[api-development]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[performance]]></category>
            <dc:creator><![CDATA[Jamil Moughal]]></dc:creator>
            <pubDate>Wed, 09 Aug 2023 20:20:43 GMT</pubDate>
            <atom:updated>2023-08-09T20:20:43.606Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mJWWS6HFyn8rs8oMbCeyAQ.jpeg" /><figcaption>Image created by <a href="https://medium.com/u/fa714f74f978">Jamil Moughal</a> using Canva</figcaption></figure><p>In the fast-paced digital landscape, the performance of an API (Application Programming Interface) can make or break user experiences. A high-performing API not only ensures swift data exchange but also contributes to user satisfaction and retention. This article explores a range of strategies and best practices to optimize API performance, delivering a seamless and responsive experience for users and developers alike.</p><p>Following are some of the steps to optimize and enhance your APIs.</p><h4><strong>Optimize Database Queries:</strong></h4><p>Efficient database queries are at the core of API performance. To enhance database performance:</p><ul><li>Use indexes on frequently queried columns to speed up data retrieval.</li><li>Employ caching mechanisms to store frequently accessed data in memory, reducing the need for repetitive database queries.</li><li>Optimize queries by avoiding unnecessary joins and selecting only the required columns.</li></ul><h4><strong>Utilize a Content Delivery Network (CDN):</strong></h4><p>Content Delivery Networks distribute content across multiple servers globally, reducing latency and improving load times. By using a CDN, static assets can be served from servers that are geographically closer to users, resulting in faster content delivery.</p><h4>Minimize Network Latency:</h4><p>To reduce network latency and improve API responsiveness:</p><ul><li>Utilize modern protocols like HTTP/2 or HTTP/3 to minimize the number of round trips between clients and servers.</li><li>Compress response payloads using techniques such as Gzip or Brotli to decrease data transfer times.</li></ul><h4>Implement Effective Caching:</h4><p>Caching plays a pivotal role in API optimization:</p><ul><li>Implement browser caching to store resources locally on clients’ devices, reducing the need for repeated requests.</li><li>Employ server-side caching to store responses and data in memory, delivering cached content to users and reducing load on backend resources.</li><li>Leverage in-memory caching solutions like Redis to accelerate data access.</li></ul><h4>Optimize Data Transfer:</h4><p>Efficient data transfer is crucial for enhancing API performance:</p><ul><li>Implement pagination or limit the number of returned results to prevent overwhelming clients with large datasets.</li><li>Enable response compression to minimize data size during transmission.</li></ul><h4>Batch Requests for Efficiency:</h4><p>Allow clients to batch multiple requests into a single request. This approach reduces overhead and optimizes data transfer by minimizing the number of round trips.</p><h4>Content Negotiation for Flexibility:</h4><p>Support multiple response formats (such as JSON and XML) to cater to different client preferences. Allow clients to specify their preferred format for data transmission.</p><h4>Implement Effective Rate Limiting:</h4><p>Prevent API abuse and ensure fair usage:</p><ul><li>Implement rate limiting to control the number of requests from a single client within a specified time frame.</li><li>Consider using token bucket algorithms or other strategies to manage and enforce rate limits.</li></ul><h4>Choose Efficient Serialization Formats:</h4><p>Select lightweight serialization formats, such as JSON, over XML. These formats are faster to parse, improving overall API responsiveness.</p><h4>Optimize Error Handling:</h4><p>Efficient error handling is essential for maintaining a seamless user experience:</p><ul><li>Utilize appropriate HTTP status codes to communicate the outcome of requests effectively.</li><li>Craft concise error messages that avoid exposing sensitive information and aid in troubleshooting.</li></ul><h4>Happy Coding!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36aeb4bf513f" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/enhancing-api-performance-strategies-for-a-faster-and-responsive-experience-36aeb4bf513f">Enhancing API Performance: Strategies for a Faster and Responsive Experience</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Design Patterns: Implementing Pipeline design pattern]]></title>
            <link>https://levelup.gitconnected.com/design-patterns-implementing-pipeline-design-pattern-824bd2d42bab?source=rss-fa714f74f978------2</link>
            <guid isPermaLink="false">https://medium.com/p/824bd2d42bab</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <dc:creator><![CDATA[Jamil Moughal]]></dc:creator>
            <pubDate>Tue, 18 Jul 2023 19:27:25 GMT</pubDate>
            <atom:updated>2023-07-18T19:27:25.506Z</atom:updated>
            <content:encoded><![CDATA[<p>Understanding pipeline design pattern with real world example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*xMrVnA-lwfnY63Kq5TzWNQ.png" /><figcaption>Diagram created by <a href="https://medium.com/u/fa714f74f978">Jamil Moughal</a> using <a href="https://excalidraw.com/">ExcaliDraw</a></figcaption></figure><h3>What is a Pipeline design pattern?</h3><p>Pipeline design pattern is a software design pattern that process or execute a series of steps or stages in a linear sequence. It allows you to break down the complex tasks into smaller and modular steps or stages that can be executed in an order. Each step is taking input from the previous step, executing its specific functionality and producing output for the next step.</p><p>The pipeline design pattern promotes separation of concerns and improves maintainability by encapsulating each step’s logic in a separate component or class. It also enables the easiness in extensibility and flexibility as new steps can be added and existing steps can be modified without affecting the overall pipeline.</p><h3>Key Elements of the Pipeline design pattern</h3><p><strong>Steps:</strong> Steps are the individual components or classes which perform a specific task on the input data.</p><p><strong>Input and Output:</strong> Each step is taking input, processing it and producing output data for next step.</p><p><strong>Order:</strong> Steps are performed in a predefined order while setting up the pipeline.</p><p><strong>Context:</strong> Context is an optional shared object that can be passed between the steps, containing data or state relevant to the entire pipeline.</p><h3>Implementation in C#</h3><p>Let’s look at some real world scenario. Suppose we are working on a project which have some Image Processing functionality. It have several features like Loading, Filtering and Saving an Image. These three features may have some complex and detailed implementation like:</p><p><strong>Loading Image</strong> have different strategies to load image like loading from local computer, from google drive, from azure blob etc.</p><p><strong>Filtering Image</strong> have strategies like Blur filtration, Sepia filtration and Greyscale filtration.</p><p><strong>Saving Image</strong> have different logic for storing image like to store with some image format, convert it into pdf and store it. And storing it on local machine or on cloud.</p><p>These are the features that our Image Processor. These three features are completely different and can be implemented as separate module.</p><p>First we have an Image class:</p><pre>// Image class<br>public class Image<br>{<br>    // Properties and methods of the image<br>}</pre><p>Then we have a IPipelineContext interface which may have some common methods and properties.</p><pre>// Pipeline context interface<br>public interface IPipelineContext<br>{<br>    // Common context properties and methods<br>}</pre><p>We have a IPipelineStep interface which have a method Execute and every step of pipeline will be implementing this interface.</p><pre>// Pipeline step interface<br>public interface IPipelineStep<br>{<br>    void Execute(IPipelineContext context);<br>}</pre><p>Now we are implementing our first step, ImageLoading step. And it is implementing IPipelineStep interface.</p><pre>// Image loading step<br>public class ImageLoadingStep : IPipelineStep<br>{<br>    public void Execute(IPipelineContext context)<br>    {<br>        // Load the image from a file or any source<br>    }<br>}</pre><p>Next step is ImageFiltration step, it is also inheriting from IPipeline step.</p><pre>// Image filtering step<br>public class ImageFilteringStep : IPipelineStep<br>{<br>    public void Execute(IPipelineContext context)<br>    {<br>        Image image = context as Image;<br>        if (image != null)<br>        {<br>            // Apply the filtering strategy to the image<br>        }<br>    }<br>}</pre><p>Final step is ImageSavingStep, which is also implementing IPipelineStep.</p><pre>// Image saving step<br>public class ImageSavingStep : IPipelineStep<br>{<br>    public void Execute(IPipelineContext context)<br>    {<br>        Image image = context as Image;<br>        if (image != null)<br>        {<br>            // Save the image to a file or any destination<br>        }<br>    }<br>}</pre><p>We have implemented steps, next thing is to create the pipeline called ImageProcessingPipeline. This pipeline have a method to AddStep and another method ExecutePipeline.</p><pre>// Image processing pipeline<br>public class ImageProcessingPipeline<br>{<br>    private readonly List&lt;IPipelineStep&gt; _steps;<br><br>    public ImageProcessingPipeline()<br>    {<br>        _steps = new List&lt;IPipelineStep&gt;();<br>    }<br><br>    public void AddStep(IPipelineStep step)<br>    {<br>        _steps.Add(step);<br>    }<br><br>    public void ExecutePipeline(IPipelineContext context)<br>    {<br>        foreach (var step in _steps)<br>        {<br>            step.Execute(context);<br>        }<br>    }<br>}</pre><p>We have created the pipeline and steps. Now we are going to use this pipeline like how we can use it in our code.</p><pre>//creating the Image object<br>        Image image = new Image();<br>        <br>        //creating and initializing pipeline<br>        ImageProcessingPipeline pipeline = new ImageProcessingPipeline();<br>        <br>        //creating ImageLoadingStep and adding in our pipeline<br>        pipeline.AddStep(new ImageLoadingStep());<br><br>        //creating ImageFilteringStep and adding in our pipeline<br>        pipeline.AddStep(new ImageFilteringStep());<br><br>        //creating ImagesAVINGStep and adding in our pipeline<br>        pipeline.AddStep(new ImageSavingStep());<br><br>        //when all steps are created, calling executepipeline function which will execute all steps<br>        pipeline.ExecutePipeline(image);</pre><p>In above code we are creating an instance of Image class. Then we are creating and initializing pipeline object and adding steps. After adding all steps that we need, we are calling ExecutePipeline function which will execute methods of all steps.</p><p>It is not necessary to add all steps in the pipeline. We can add more steps and we can ignore some steps as well. But some steps are not ignorable. For example, ImageLoadingStep is loading image from some source, if we don’t add and execute this step then image will not be loaded and none of other steps will be executed.</p><p>I hope this example helps you understanding pipeline design pattern in the context of Image Processing context.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=824bd2d42bab" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/design-patterns-implementing-pipeline-design-pattern-824bd2d42bab">Design Patterns: Implementing Pipeline design pattern</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Design Patterns: Implementation of Strategy design pattern.]]></title>
            <link>https://levelup.gitconnected.com/design-patterns-implementation-of-strategy-design-pattern-dda719c1c827?source=rss-fa714f74f978------2</link>
            <guid isPermaLink="false">https://medium.com/p/dda719c1c827</guid>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[strategy]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <dc:creator><![CDATA[Jamil Moughal]]></dc:creator>
            <pubDate>Sun, 16 Jul 2023 21:51:05 GMT</pubDate>
            <atom:updated>2023-07-16T21:51:05.802Z</atom:updated>
            <content:encoded><![CDATA[<p>Understanding strategy design patterns with real world examples.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cmcpJtlKj5uV50hSChzOhw.jpeg" /></figure><h4>What is a design pattern?</h4><p>In the world of computer science and software development, design pattern is a solution to common problems in software design. A design pattern is not a fully completed design that can be translated into code directly. Rather it is a blueprint or template for how to solve a specific problem that can be used in many different situations.</p><p>Design pattern is useful when moving from analysis model to development model. It speeds up the development process as it provides a proven development paradigms which helps save time.</p><h4>Strategy Design Pattern</h4><p>Strategy is a behavioral design pattern that lets you design a family of algorithms and strategy of algorithm can be changed run time. Every algorithm of a class is implemented in a different and while creating a object, we can assign the strategy we want to use. It may sound a bit complex, I’ll explain it in code and will be easily understandable.</p><h4>Implementation in C#</h4><p>Suppose we are working on a Image Processor which is implementing various features. One of the feature is Image Filtering. There can be different kind of filtration like Greyscale filter, Sepia filter and Blur filter. Whenever Image Processor will run, it will apply selected filter. We’ll define the filtration strategy in the processor and when it will run it will use that strategy. For that let’s define an Interface <strong>IFilterStrategy </strong>which will have a function <strong>ApplyFilter</strong>. ApplyFilter function is taking imagePath as parameter and will apply filter on that Image.</p><pre>public interface IFilterStrategy<br>{<br>    void ApplyFilter(string imagePath);<br>}</pre><p>Now we’ll define algorithm of <strong>GreyscaleFilterStrategy</strong>, <strong>SepaFilterStrategy </strong>and <strong>BlurFilterStrategy </strong>which will inherit from the IFilterStrategy interface and will implement <strong>ApplyFilter</strong> method accordingly.</p><pre>// Implementation of Grayscale filter strategy<br>public class GrayscaleFilterStrategy : IFilterStrategy<br>{<br>    public void ApplyFilter(string imagePath)<br>    {<br>        // Logic to Apply grayscale filter to the image<br>    }<br>}<br><br>// Implementation ofSepia filter strategy<br>public class SepiaFilterStrategy : IFilterStrategy<br>{<br>    public void ApplyFilter(string imagePath)<br>    {<br>        //Logic to Apply sepia filter to the image<br>    }<br>}<br><br>// Implementation ofBlur filter strategy<br>public class BlurFilterStrategy : IFilterStrategy<br>{<br>    public void ApplyFilter(string imagePath)<br>    {<br>        //Logic to Apply blur filter to the image<br>    }<br>}</pre><p>Now we will create a class of <strong>ImageProcessor</strong>.</p><pre>public class ImageProcessor<br>{<br>    private IFilterStrategy _filterStrategy;<br><br>    public void SetFilterStrategy(IFilterStrategy filterStrategy)<br>    {<br>        _filterStrategy = filterStrategy;<br>    }<br><br>    public void ApplyFilter(string imagePath)<br>    {<br>        if (_filterStrategy != null)<br>        {<br>            _filterStrategy.ApplyFilter(imagePath);<br>        }<br>        else<br>        {<br>            throw new InvalidOperationException(&quot;Filter strategy not set.&quot;);<br>        }<br>    }<br>}</pre><p>In the above code ImageProcessor class have a SetFilterStrategy method which is taking filterStrategy as parameter and when executing ApplyFilter method of ImageProcessor it will execute selected strategy. Let do it in code.</p><pre>ImageProcessor imageProcessor = new ImageProcessor();<br><br>IFilterStrategy filterStrategy = new GrayscaleFilterStrategy();<br>imageProcessor.SetFilterStrategy(filterStrategy);<br>imageProcessor.ApplyFilter(&quot;image.jpg&quot;);<br><br>filterStrategy = new SepiaFilterStrategy();<br>imageProcessor.SetFilterStrategy(filterStrategy);<br>imageProcessor.ApplyFilter(&quot;image.jpg&quot;);</pre><p>I hope this example helps you understanding strategy design pattern in the context of filtering strategies.</p><h3>Level Up Coding</h3><p>Thanks for being a part of our community! Before you go:</p><ul><li>👏 Clap for the story and follow the author 👉</li><li>📰 View more content in the <a href="https://levelup.gitconnected.com/?utm_source=pub&amp;utm_medium=post">Level Up Coding publication</a></li><li>💰 Free coding interview course ⇒ <a href="https://skilled.dev/?utm_source=luc&amp;utm_medium=article">View Course</a></li><li>🧠 AI Tools ⇒ <a href="https://www.aimind.so/">View Now</a></li></ul><p>🔔 Follow us: <a href="https://twitter.com/gitconnected">Twitter</a> | <a href="https://www.linkedin.com/company/gitconnected">LinkedIn</a> | <a href="https://newsletter.levelup.dev/">Newsletter</a></p><p>🚀👉 <a href="https://jobs.levelup.dev/talent/welcome?referral=true"><strong>Join the Level Up talent collective and find an amazing job</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dda719c1c827" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/design-patterns-implementation-of-strategy-design-pattern-dda719c1c827">Design Patterns: Implementation of Strategy design pattern.</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What actually the design patterns are?]]></title>
            <link>https://medium.com/c-sharp-programming/what-actually-the-design-patterns-are-c98f3d7e17ec?source=rss-fa714f74f978------2</link>
            <guid isPermaLink="false">https://medium.com/p/c98f3d7e17ec</guid>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Jamil Moughal]]></dc:creator>
            <pubDate>Tue, 04 Jul 2023 16:18:21 GMT</pubDate>
            <atom:updated>2023-07-04T16:18:21.155Z</atom:updated>
            <content:encoded><![CDATA[<p>An overview of design patterns and their importance in building software applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_4Wu_MEZLN30QDruAcfjCQ.jpeg" /></figure><h3>Introduction</h3><p>Design patterns play a crucial role in the field of software development. They are proven solutions to recurring design problems that developers encounter during the software development process. By incorporating these patterns, developers can enhance the structure, maintainability, and scalability of their software systems. In this article, we will explore what design patterns are and why they are important in building robust and efficient software.</p><h3>What Are Design Patterns?</h3><p>Design patterns are general, reusable solutions to common problems in software design. They provide a blueprint or template that developers can apply to address specific issues and improve the overall design and architecture of their software. Design patterns are not code snippets or libraries; rather, they are high-level concepts and guidelines that aid in the development of well-organized and maintainable software systems.</p><h3>Importance of Design Patterns in Software Development:</h3><h4>1. Encourages Best Practices:</h4><p>Design patterns embody best practices and proven solutions accumulated over years of experience in software development. By following these patterns, developers adhere to established guidelines, resulting in code that is more maintainable, readable, and reusable. Design patterns also promote code consistency across different parts of the system and facilitate better collaboration among developers.</p><h4>2. Enhances Reusability:</h4><p>Design patterns promote reusability by providing standard solutions to common problems. By implementing these patterns, developers can reuse the proven design and implementation techniques across different projects, reducing development time and effort. Reusability leads to improved productivity and consistency in software development.</p><h4>3. Improves Maintainability:</h4><p>Design patterns emphasize modular design and separation of concerns, making software systems more maintainable. By following the principles of encapsulation and loose coupling, design patterns allow changes to be made to specific components without affecting the entire system. This modularity simplifies maintenance tasks, bug fixing, and system updates.</p><h4>4. Facilitates Scalability:</h4><p>Scalability is crucial for software systems to handle increased loads and user demands. Design patterns promote scalable architectures by providing guidelines for decoupling components, implementing layers of abstraction, and managing resources effectively. Scalability is essential for software systems that need to handle growing user bases and expanding functionalities.</p><h4>5. Enhances Software Testing:</h4><p>Design patterns often promote separation of concerns, making it easier to test individual components of the software system. By isolating functionalities into distinct modules, developers can write unit tests more effectively, ensuring that each component works as intended. Design patterns facilitate test-driven development and improve the overall quality of the software.</p><h4>6. Promotes Flexibility and Adaptability:</h4><p>Software systems need to adapt to changing requirements and evolving technologies. Design patterns enable flexibility and adaptability by providing well-defined structures that can be extended or modified without disrupting the entire system. This allows developers to introduce new features, incorporate new technologies, and accommodate future changes more easily.</p><h4>Some of the popular design patterns:</h4><ol><li>Singleton Pattern</li><li>Factory Pattern</li><li>Observer Pattern</li><li>Builder Pattern</li><li>Adapter Pattern</li><li>Strategy Pattern</li><li>MVC (Model-View-Controller) Pattern</li></ol><h3>Conclusion:</h3><p>Design patterns offer valuable solutions to common design problems in software development. By incorporating these patterns, developers can improve the structure, maintainability, and scalability of their software systems. Design patterns encourage best practices, enhance reusability, and facilitate maintainability, scalability, testing, flexibility, and adaptability. Familiarity with design patterns empowers developers to build robust and efficient software that can evolve and meet changing requirements in a rapidly evolving technological landscape.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c98f3d7e17ec" width="1" height="1" alt=""><hr><p><a href="https://medium.com/c-sharp-programming/what-actually-the-design-patterns-are-c98f3d7e17ec">What actually the design patterns are?</a> was originally published in <a href="https://medium.com/c-sharp-programming">Any Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Natural Language Processing: Key technology behind ChatGPT]]></title>
            <link>https://mjamilmoughal.medium.com/natural-language-processing-key-technologies-behind-chatgpt-66993c530cd8?source=rss-fa714f74f978------2</link>
            <guid isPermaLink="false">https://medium.com/p/66993c530cd8</guid>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Jamil Moughal]]></dc:creator>
            <pubDate>Fri, 26 May 2023 09:49:14 GMT</pubDate>
            <atom:updated>2023-05-26T09:49:33.805Z</atom:updated>
            <content:encoded><![CDATA[<p>Unleashing the power of human language and understanding Natural Language Processing, one of the Key technologies behind ChatGPT</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vYCiELNn3AUQlwBIfqVJdg.jpeg" /></figure><h3>Introduction</h3><p>Natural Language Processing (NLP) is a cutting-edge field of artificial intelligence that has revolutionized the way machines interact with human language. From chatbots and voice assistants to language translation and sentiment analysis, NLP has become integral to our daily lives. In this article, we will delve into the intricacies of NLP, exploring its foundations, techniques, and applications, ultimately demystifying the fascinating world of Natural Language Processing.</p><h3>The Essence of Natural Language Processing</h3><p>Language is a complex and dynamic system of communication that humans have mastered effortlessly. NLP aims to bridge the gap between human language and machines, enabling computers to understand, interpret, and generate natural language in a meaningful way. It combines elements of linguistics, computer science, and artificial intelligence to process, analyze, and extract valuable insights from textual data.</p><h3>Key Components of Natural Language Processing</h3><p>a. Tokenization: Breaking down text into individual units, such as words or characters, to facilitate analysis and understanding.<br>b. Part-of-Speech Tagging: Assigning grammatical tags to words, such as nouns, verbs, or adjectives, to determine their syntactic role in a sentence.<br>c. Named Entity Recognition: Identifying and categorizing named entities, such as names, organizations, or locations, within a text.<br>d. Sentiment Analysis: Analyzing the emotions and opinions expressed in text to determine the underlying sentiment, whether positive, negative, or neutral.<br>e. Language Generation: Creating coherent and contextually relevant text based on given prompts or input.</p><h3>Techniques Driving Natural Language Processing</h3><p><strong>a. Machine Learning:</strong> NLP leverages machine learning algorithms to train models on vast amounts of annotated data, allowing them to learn patterns and make predictions. Techniques like supervised learning, unsupervised learning, and reinforcement learning play a crucial role in training NLP models.<br><strong>b. Deep Learning:</strong> Deep neural networks, particularly Recurrent Neural Networks (RNNs) and Transformer models, have revolutionized NLP. They can process sequential data, capture context, and generate more human-like responses.</p><h3>Applications of Natural Language Processing</h3><p><strong>a. Conversational Agents:</strong> Chatbots and virtual assistants that engage in human-like conversations, providing information, answering queries, and assisting users.<br><strong>b. Text Classification and Topic Modeling:</strong> Sorting and categorizing text into predefined categories or extracting topics from large document collections.<br><strong>c. Machine Translation:</strong> Enabling automated translation of text from one language to another.<br><strong>d. Information Extraction:</strong> Identifying and extracting structured information from unstructured text, such as extracting key facts from news articles or documents.<br><strong>e. Sentiment Analysis and Opinion Mining:</strong> Analyzing social media posts, customer reviews, and feedback to gauge public sentiment and opinion towards products, services, or events.</p><h3>Challenges and Future Directions</h3><p>While NLP has made remarkable strides, challenges persist. Ambiguity, context understanding, and handling different languages and dialects are ongoing areas of research. Moreover, ethical considerations, such as bias detection and fairness, need to be addressed. Future directions of NLP include advancing multilingual models, improving contextual understanding, and enhancing interpretability and explainability.</p><h3>Conclusion</h3><p>Natural Language Processing is an exciting field that has transformed the way machines interact with human language. Its applications span from chatbots to language translation, making our lives more convenient and efficient. With ongoing advancements and research, NLP is poised to further revolutionize how we communicate and interact with technology, paving the way for a future where human language and machines seamlessly intertwine.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66993c530cd8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Middleware in Node.js]]></title>
            <link>https://mjamilmoughal.medium.com/middleware-in-node-js-aa6fe905a09b?source=rss-fa714f74f978------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa6fe905a09b</guid>
            <dc:creator><![CDATA[Jamil Moughal]]></dc:creator>
            <pubDate>Mon, 22 Aug 2022 12:11:27 GMT</pubDate>
            <atom:updated>2022-08-22T12:11:27.740Z</atom:updated>
            <content:encoded><![CDATA[<h4>What is middleware and how to use middleware in node.js with express.js</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ohm3dciPG0Whu3K8AxEI7w.jpeg" /></figure><h3>Creating and using a Middleware in Node.js</h3><h4>What is Middleware and why do we use it?</h4><p>Middleware is a piece of code (function) that is used to execute some code after the server gets a call from a client and before the controller action which will send a response. So it means that whenever a client will call an API, before reaching the request to that API (route), middleware code will be executed.</p><p>Middleware is used for different purposes like logging requests, and verifying requests for some specific requirement. Like in this article, we will be using middleware to verify if some specific key is present in the request headers or not.</p><h4>Creating a Node server using express.js</h4><p>For creating a node.js server, go to a folder and open vscode in it. Run the command <strong>npm init</strong> to initialize the node.js project. It will create a package.json file in your root directory. Then command <strong>npm install express </strong>to install express.js which we will use to create our server.</p><p>Optionally, run the command <strong>npm install nodemon </strong>this will install nodemon in your project. Nodemon is used to auto-refresh your node.js project without starting the server again and again.</p><p>In the package.json file, update the scripts tag as follows:</p><pre>//if nodemon is installed<br>“scripts”: {</pre><pre>        “start”: “nodemon index.js”</pre><pre>},</pre><pre>//if nodemon is not installed<br>&quot;scripts&quot;: {</pre><pre>        &quot;start&quot;: &quot;node index.js&quot;</pre><pre>},</pre><p>Then in your root directory, create a file app.js and add the following code to it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1329b746064dff05d83f5792316b856d/href">https://medium.com/media/1329b746064dff05d83f5792316b856d/href</a></iframe><h4>Creating the middleware</h4><p>In node.js, middleware has three parameters <strong>req</strong>, <strong>res,</strong> and <strong>next. </strong>Next is very important here. When we process our logic in the middleware then at the end we have to call <strong>next() </strong>so that call can react to the desired route.</p><p>We will be creating a middleware that will check every request and verify if some specific key (<strong>some-key</strong> in our case) is present in the header or not. If a key is there, then it will pass the request to the route otherwise it will reject the call and send the response that the request is invalid.</p><p>Create a folder with the name middleware (you can give any name but the code I am using for this article have this name) and add a file middleware.js in it. Then add the following code in the file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/13ae964511ec3181e8af228ec2417467/href">https://medium.com/media/13ae964511ec3181e8af228ec2417467/href</a></iframe><p>Then update your app.js code according to the following code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b58f002daf67c469d5dd48339cf950fa/href">https://medium.com/media/b58f002daf67c469d5dd48339cf950fa/href</a></iframe><h4>Output without passing the some-key in HTTP headers.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yRptQn1UbPZsdURyUe8tbQ.png" /></figure><h4>Output with some-key in HTTP headers</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LTDaHFpRpVywc47NRRveWg.png" /></figure><h3>Some key points about Middlewares</h3><h4>1. Middlewares are similar to controller actions (routes)</h4><p>Controller actions which have req, and res variables are similar to middleware. The only difference is that middleware also has a variable next which will be called at the end of middleware. It is not necessary for the next() method to be called at the end of the middleware method. It can be used anywhere in the middleware where the next route needs to be called.</p><h4>2. Middleware work in order</h4><p>Middleware work in the same order in which they are defined in the app.js file. For example, there are two middleware MiddlewareA and MiddlewareB these both will be called in order. First MiddlewareA will be executed and then MiddlewareB will be executed.</p><p><em>Original article was published </em><a href="https://www.c-sharpcorner.com/article/middleware-in-node-js/"><em>here</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa6fe905a09b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making faster API calls using the Refit Rest library]]></title>
            <link>https://mjamilmoughal.medium.com/making-faster-api-calls-using-the-refit-rest-library-923cabf4d0dd?source=rss-fa714f74f978------2</link>
            <guid isPermaLink="false">https://medium.com/p/923cabf4d0dd</guid>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[refit]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[aspnetcore]]></category>
            <category><![CDATA[http-request]]></category>
            <dc:creator><![CDATA[Jamil Moughal]]></dc:creator>
            <pubDate>Sun, 31 Jul 2022 21:44:55 GMT</pubDate>
            <atom:updated>2022-07-31T21:44:55.943Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to use Refit rest library to make HTTP calls</h4><h4>Introduction</h4><p>Refit is a rest library written in C# and available as a NuGet package. It is designed to make faster HTTP calls with less code. It has a specific syntax that we have to follow in our services/classes to make API calls. In this article, we will learn how we can use Refit to make API calls. For that, we will create a simple API project with some API calls. Then we will create a Blazor Web Assembly project that will call APIs using the Refit library.</p><h3>Web API project with APIs</h3><p>First of, all I will create an ASP.NET Core Web API project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*VKnztHHXThyiwSolHjrRow.png" /></figure><p>On the next screen, give your app a name and then select a .NET version (I am using .NET 6 in this article). Also, don’t forget to check the OpenAPI checkbox, it will add swagger to API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*NedcQTampfaoGnhKa2dA3Q.png" /></figure><p>When the project is created, Add a class Person in your models’ folder with the following properties.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/13fb7537100b0af19214e8227d33eb98/href">https://medium.com/media/13fb7537100b0af19214e8227d33eb98/href</a></iframe><p>Create a controller PersonsController and add the following code</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2e34cbbac6d79ce204c21164367014f7/href">https://medium.com/media/2e34cbbac6d79ce204c21164367014f7/href</a></iframe><p>Run the application, if everything is ok, your browser will look like following</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1S3pbLSc1V6hgjKzXiPSDA.png" /></figure><h3>CORS (Cross-Origin Resource Sharing)</h3><p>To make API calls from any other API or project, we must tell our Web API by allowing CORS. Go to your Program.cs (If you are using a lower version, go to a startup.cs file) and add the following code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/24916c93e2fc9908f336bf6cc5a344fc/href">https://medium.com/media/24916c93e2fc9908f336bf6cc5a344fc/href</a></iframe><h3>Creating frontend project</h3><p>API is ok and working fine. Now, I will create a Blazor Web Assembly Project as a frontend app and will consume APIs in it using Refit.</p><p>Create a new Blazor Web Assembly project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*W-SpVfkx_tBTtE-66eWUYw.png" /></figure><p>Run the project to check if it is working fine and then install Refit Packages from Nuget</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*k4GUTCbyucvWKye4PVFcYA.png" /></figure><p>Then in the models folder, create a Person model with the same properties as in your Web API project.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6ac7bc8802a01b768c244f96ca8dfcef/href">https://medium.com/media/6ac7bc8802a01b768c244f96ca8dfcef/href</a></iframe><p>Create a service class that will make API calls using Refit. Add the below code in it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e08a1c6e7852b4f999f774d947b659db/href">https://medium.com/media/e08a1c6e7852b4f999f774d947b659db/href</a></iframe><p>Refit has its syntax. On every method, the [Get] attribute with the same method name (API name) will be added. This attribute will tell the method to call that API. For example in the API project we have /Persons API that will return us all Persons. So in [Get(“/Persons”)], we added it with the same name. Similarly, with all other methods, we provided the same API name to call that API. It is important to use the same name.</p><p>Now in your Program.cs file, we have to tell the application to use IPersonApiService to call APIs using Refit. For that, add the following code to your Program.cs file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/242521c3b0bd2945779305a7ae024b90/href">https://medium.com/media/242521c3b0bd2945779305a7ae024b90/href</a></iframe><p>Then in your razor page Index.razor, add the following code</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/315c58916daf296f61fb20ee8f9b91bd/href">https://medium.com/media/315c58916daf296f61fb20ee8f9b91bd/href</a></iframe><p>Run both projects at the same time because the Frontend project will call the API project to get/post data. API project also must be running. After the successful running of both projects. The browser will look like following</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rlaWaZ302-ZL-Unsv4CJwQ.png" /></figure><p>We are calling methods from IPersonApiService class which is calling APIs using Refit and sending us a response that is displaying on the page. Add, Update and Delete buttons are also using APIs to perform specific operations.</p><p>If you want to get code download it from <a href="https://github.com/mjamilmoughal/refit-aspnetcore.git">GitHub</a>.</p><p><em>Originally published </em><a href="https://www.c-sharpcorner.com/article/making-faster-api-calls-using-refit-rest-library/"><em>here</em></a></p><p>Thank you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=923cabf4d0dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain developer roadmap 2022]]></title>
            <link>https://mjamilmoughal.medium.com/blockchain-developer-roadmap-3db5b55eff8b?source=rss-fa714f74f978------2</link>
            <guid isPermaLink="false">https://medium.com/p/3db5b55eff8b</guid>
            <dc:creator><![CDATA[Jamil Moughal]]></dc:creator>
            <pubDate>Sun, 17 Apr 2022 20:08:09 GMT</pubDate>
            <atom:updated>2022-04-23T04:53:08.261Z</atom:updated>
            <content:encoded><![CDATA[<h4>An ultimate guide on how to become a Blockchain Developer</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y6SRqr0eDNrBN9QViu2gNw.jpeg" /></figure><h4>1. A Strong Passion for Web 3.0 and Blockchain</h4><p>Passion and curiosity are the key things when learning a new tool or technology. To become a Blockchain developer, you must have a strong passion for learning Blockchain, its ecosystem, and how it works.</p><h4>2. Knowledge about Web 2.0</h4><p>To dive deeper into Blockchain development, one should have an understanding of Web 2.0. Blockchain technologies are built on top of web development and an understanding of web development is necessary. So if you want to learn Blockchain aks Web 3.0, you must understand the fundamentals of web development in general.</p><p>Knowledge about React.js, and Next.js will be beneficial because Decentralized applications aka DApps have a standard vanilla Javascript or Javascript framework frontend.</p><h4>3. Learn the Fundamentals of Blockchain</h4><p>To become a Blockchain developer, you need to understand what a blockchain is? how does it work? and why and when do we use it? You first need to know what you are working with.</p><p>To master the fundamentals of blockchain, learn the following things:</p><blockquote>What a Blockchain is?</blockquote><blockquote>How it works?</blockquote><blockquote>How to interact with Blockchain?</blockquote><blockquote>How to connect web applications to your Blockchain?</blockquote><p>It is a suggestion to start working with Ethereum blockchain as it is very popular and It has a strong dev community.</p><h4>4. Learn about Smart Contracts</h4><p>Smart contracts are like normal contracts but the difference is, that smart contracts are in digital form and traditional contracts are in physical form like some paper etc. There are different definitions of smart contracts. According to coinbase, a smart contract is:</p><blockquote>A smart contract, like any contract, establishes the terms of an agreement. But unlike a traditional contract, a smart contract’s terms are executed as code running on a blockchain like Ethereum. Smart contracts allow developers to build apps that take advantage of blockchain security, reliability, and accessibility while offering sophisticated peer-to-peer functionality — everything from loans and insurance to logistics and gaming.</blockquote><p>IBM&#39;s definition of a smart contract is:</p><blockquote>Smart contracts are simply programs stored on a blockchain that run when predetermined conditions are met. They typically are used to automate the execution of an agreement so that all participants can be immediately certain of the outcome, without any intermediary’s involvement or time loss. They can also automate a workflow, triggering the next action when conditions are met.</blockquote><p>Things to learn about Smart contracts:</p><blockquote>Basics of Smart Contracts</blockquote><blockquote>The life cycle of Smart Contracts</blockquote><blockquote>Compiling, Testing, Deploying Smart Contracts</blockquote><blockquote>Interacting with Smart Contracts using web3.js or ether.js</blockquote><h4>5. Learn Solidity, The language for Smart Contracts</h4><p>Solidity is known as the language of smart contracts. Solidity is an object-oriented, high-level language for implementing smart contracts. Smart contracts are programs that govern the behavior of accounts within the Ethereum state.</p><p>Solidity is a <a href="https://en.wikipedia.org/wiki/List_of_programming_languages_by_type#Curly-bracket_languages">curly-bracket language</a> designed to target the Ethereum Virtual Machine (EVM). It is influenced by C++, Python, and JavaScript. You can find more details about which languages Solidity has been inspired by in the <a href="https://docs.soliditylang.org/en/v0.8.13/language-influences.html">language influences</a> section.</p><p>Solidity is statically typed and supports inheritance, libraries, and complex user-defined types among other features.</p><p>With Solidity, you can create contracts for uses such as voting, crowdfunding, blind auctions, and multi-signature wallets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*keFLyK9oI8jqw_YS9PqFDg.png" /></figure><h4>6. Dive deeper into Decentralized applications</h4><p>After getting familiarity with smart contracts and solidity, you are ready to build, test and deploy your smart contracts. Now, you will need a user-friendly interface as the frontend so the end-user can interact with your dApp. In the frontend interface, you create a dApp (Decentralized Application). dApp can be a mobile or web app but in most cases, it is a web app. Web apps are usually like regular web apps using HTML, CSS, and Javascript.</p><p>While building your dApp, the two most important tasks are:</p><blockquote>Integration with Blockchain</blockquote><blockquote>Integration with Wallet</blockquote><p>For the integration with blockchain, a javascript library web3.js is used.</p><h4>7 Learn about MetaMask or any other Crypto wallet</h4><p>A blockchain wallet is a digital wallet that allows a user to store and manage their funds like Bitcoin, Ether, and other cryptocurrencies. The wallet is used to exchange funds quickly. These transactions are cryptographically signed and therefore, are secure. The wallet is accessible from mobile apps and web apps. A blockchain wallet provides all the necessary features for safe and secure transfers and exchanges of funds between different parties. It is very similar to sending or receiving money through PayPal or any other gateway used today, but you use cryptocurrency instead.</p><p>There are lots of blockchain/crypto wallets. I would suggest initially going with Metamask. Metamask allows users to access their Ethereum wallet through a browser extension or a mobile app.</p><h4>8. Learn web3.js and ether.js to connect smart contracts to dApp</h4><p>Now you will have a user interface application (frontend application) and a blockchain (smart contract). Now you’ll need your frontend to interact with the blockchain. The two most popular for this purpose are, web3.js and ether.js.</p><p><strong>Web3.js</strong> is a collection of libraries that allow you <br>to connect with a local or remote Ethereum node <br>using HTTP, Websockets, &amp; other communication <br>protocols directly from your JavaScript Based <br>front-end.<br><strong>Ethers.js</strong> is a lightweight JavaScript library used <br>to connect the JavaScript front-end with Smart <br>Contacts as an alternative to Web3.js.</p><h4>9. Practice your skills by building some Blockchain application</h4><p>After that, you will have to master the above skills with your practice. From my personal experience, practicing and working on test projects is the best way to learn a new technology or framework.</p><p>To keep learning effectively, challenge your capabilities by building small or mid-level Web3 applications. These kinds of small projects will help you to build your portfolio as well.</p><p>References:</p><ul><li><a href="https://web3js.readthedocs.io/en/v1.7.3/">web3.js - Ethereum JavaScript API - web3.js 1.0.0 documentation</a></li><li><a href="https://www.ibm.com/topics/smart-contracts">What Are Smart Contracts on Blockchain? | IBM</a></li><li><a href="https://www.youtube.com/channel/UCmXmlB4-HJytD7wek0Uo97A">JavaScript Mastery</a></li></ul><p><a href="https://www.coinbase.com/learn/crypto-basics/what-is-a-smart-contract">https://www.coinbase.com/learn/crypto-basics/what-is-a-smart-contract</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3db5b55eff8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Web 3.0 and Why you should care about it?]]></title>
            <link>https://mjamilmoughal.medium.com/what-is-web-3-0-and-why-you-should-care-about-it-6038b0ca1bc8?source=rss-fa714f74f978------2</link>
            <guid isPermaLink="false">https://medium.com/p/6038b0ca1bc8</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[dapps]]></category>
            <dc:creator><![CDATA[Jamil Moughal]]></dc:creator>
            <pubDate>Sun, 28 Nov 2021 17:52:03 GMT</pubDate>
            <atom:updated>2022-01-05T15:49:58.270Z</atom:updated>
            <content:encoded><![CDATA[<h4>What you should know about Web 3.0 and Decentralization</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*am5k55c9NgOZg008MMxAww.jpeg" /><figcaption>Picture from <a href="https://blockgeeks.com/">blockgeeks.com</a></figcaption></figure><p>The modern web we are experiencing today is a lot different than the one it was 10 or 20 years ago. The web has evolved a lot and it is continuously evolving.</p><blockquote>In 1999, <a href="https://interestingengineering.com/origin-of-the-internet-who-invented-the-world-wide-web">Tim Berners-Lee</a> introduced the term <a href="https://www.w3.org/RDF/Metalog/docs/sw-easy">Semantic Web</a>, an evolved version of the existing internet that would be mostly run by “intelligent agents” or machines that could process content in a human-like way. Berners-Lee and others described this vision in the May 2001 <em>Scientific American</em> article “The Semantic Web”, as, “an extension of the current web in which information is given well-defined meaning, better-enabling computers and people to work in cooperation.”<br>From <a href="https://interestingengineering.com/web-3-the-new-internet-is-about-to-arrive?fbclid=IwAR3DD2b1PTUyPaT2fQ5_GN1e-rHwkuzcWxdoKsoRDS42w8wDzYWMLs3PT94">InterestingEngineering</a></blockquote><p>To understand what Web 3.0 is, we need to understand the evolution of the web from its early days to today.</p><h3>Evolution of the Web</h3><p>The web has changed a lot from its early days. And the applications we are experiencing today were not even recognizable at the start. The web is categorized into three separate stages known as Web 1.0, Web 2.0, and Web 3.0.</p><h4>Web 1.0, the read-only era</h4><p>Web 1.0 is the one where the world wide web started. At that time the content creators were mostly developers who built websites. And the information at that time was mostly in the form of images or text. The era of Web 1.0 was considered between 1991 to 2004.</p><p>Web 1.0 was a kind of read-only web where sites have consisted of static content instead of dynamic HTML. Instead of databases, static files systems were used and those sites lack interactivity and were performance-wise very slow.</p><h4>Web 2.0, read-write era</h4><p>Web 1.0 evolved to Web 2.0 with the rise of Facebook, Twitter, Youtube, and other social media platforms. The static content from Web 1.0 was converted to dynamic and instead of using static file systems, databases came into use. One of the most important things is, creating content is not limited to developers only, end-users are now creating tons of data on different social media platforms. For example, a user can create a Facebook account and can create content, user can upload videos on his YouTube channel, and the same for many other social platforms.</p><p>When Web 1.0 is evolved to Web 2.0, the major change was the ease of use and that’s why lots of people become creators. The web we are experiencing today is Web 2.0, it is a lot useful for us and we can take lots of advantages from it, but still, there are some areas which need improvement and which can be improved.</p><h4>Security in Web 2.0</h4><p>As we have discussed earlier, Web 2.0 introduced new horizons of web technologies and with the introduction of social platforms, its usage increased a lot. But Web 2.0 applications have multiple times experienced data breaches and users&#39; data has been compromised lots of times.</p><p>Actually, in Web 2.0, the user can create content, share his data but this data is saved in a way that users don’t have any control over it. Companies often track and save user data even without users’ consent. These platforms are providing free services but charging the users with their data.</p><p>Governments will often shut down servers or seize bank accounts if they believe a person is voicing an opinion that goes against their propaganda. With centralized servers, it is easy for governments to intervene, control, or shut down applications as they see fit.</p><p>Because banks are also digital and under centralized control, governments often intervene there as well. They can shut down access to bank accounts or limit access to funds during times of volatility, extreme inflation, or other political unrest.</p><p>The purpose of Web 3.0 is to solve this kind of issue by architecting and building applications from the ground level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*-UgWOYTNnOawsMxwTD88Qw.jpeg" /></figure><h4>Web 3.0, the internet of tomorrow.</h4><p>Web 3.0 is many ways a return to Berners-Lee’s idea of Semantic Web, where there’s no central body for granting permission and there will be no central controlling body. Where Web 2.0 was influenced by the development of mobile internet, social media, and cloud computing, Web 3.0 will be on the top of new technological innovations including edge computing, decentralized data networks, artificial intelligence, and Blockchain.</p><p>Though we are yet to witness a full transformation to Web 3.0, tech experts and blockchain enthusiasts have been making some <a href="https://computer.howstuffworks.com/web-30.htm">promising predictions</a> about how the internet in the future might look. Some of them are following:</p><ul><li>Web 3.0 might serve as an extension to various elements of Web 2.0. For example, the way that developers create a combination of two or more applications now, in Web 3.0 users would be able to combine different programs and services for themselves, to customize how they use the web.</li><li>At present, a user gets information on the internet from various servers and databases located in different parts of the world. Unsurprisingly, more than 50 percent of these data centers are owned collectively by Amazon, Google, and Microsoft. In Web 3.0, data will be stored on <a href="https://mozartcultures.com/en/the-evolution-of-web-3-0-and-the-return-of-data-privacy/">decentralized cloud networks</a> and autonomous storage units. Therefore, Web 3.0 will not depend on any centralized data hubs for providing information to users. However, the creation of such a powerful decentralized data storage system is itself a very big challenge.</li><li>The internet search will also work differently on Web 3.0. Similar to the personalized ads and feeds you experience on Facebook and YouTube. Through the use of <a href="https://interestingengineering.com/new-ai-technology-reshapes-customer-experiences-in-online-shopping">advanced AI</a>, the search engine in Web 3.0 will offer personalized results for each user based on their preferences and need. So for example, if a meat-eater and a vegan each type “Best restaurants nearby” on the search bar, they will each receive different results based on their preferences. Of course, this also means algorithms will know even more about us.</li><li>As a user, you will have a unique identity on Web 3.0 that will enable you to access and control all your assets, data, and services without logging in on a platform or seeking permission from a particular service provider. You will be able to access the internet from anywhere for free, and you will be the only owner of your digital assets.</li><li>Apart from experiencing the internet on a screen in 2D, users will also get to <a href="https://www.expert.ai/blog/web-3-0/">participate in a larger variety of 3D environments</a>. From anywhere, you could visit the 3D VR version of any historical place you search, play games while being in the game as a 3D player, try clothing on your virtual self before you buy. In Web 3.0, you would also be able to spend time in an immersive <a href="https://interestingengineering.com/microsoft-enters-the-metaverse-race-wont-let-meta-have-a-free-run">3D metaverse</a> where you could collect or buy virtual assets. In short, with the use of VR, AR, Semantic Web, and AI altogether, Web 3.0 could offer you better opportunities to interact with the virtual world than Web 2.0.</li></ul><h4>Decentralization</h4><p>The core of Web 3.0 is decentralization, developers don’t usually build and deploy applications that run on a single server or that their data is stored on a single database (cloud provider), instead, Instead, web3 applications either run on blockchains, decentralized networks of many peer to peer nodes (servers), or a combination of the two that forms a crypto-economic protocol. These apps are often referred to as dapps (decentralized apps), and you will see that term used often in the web3 space.</p><p>To achieve a stable and secure decentralized network, network participants (developers) are incentivized and compete to provide the highest quality services to anyone using the service.</p><p>When you hear about web3, you’ll notice that cryptocurrency is often part of the conversation. This is because cryptocurrency plays a big role in many of these protocols. It provides a financial incentive (tokens) for anyone who wants to participate in creating, governing, contributing to, or improving one of the projects themselves.</p><p>These protocols may often offer a variety of different services like compute, storage, bandwidth, identity, hosting, and other web services commonly provided by cloud providers in the past.</p><p>People can make a living by participating in the protocol in various ways, at both technical and non-technical levels.</p><p>Consumers of the service usually pay to use the protocol, similar to how they would pay a cloud provider like AWS today. Except in web3, the money goes directly to the network participants.</p><p>In this, like in many forms of decentralization, you’ll see that unnecessary and often inefficient intermediary are cut out.</p><p>Many web infrastructure protocols like <a href="https://filecoin.io/blog/filecoin-circulating-supply/">Filecoin</a>, <a href="https://livepeer.com/">Livepeer</a>, <a href="https://www.arweave.org/">Arweave</a>, and <a href="https://thegraph.com/blog/the-graph-grt-token-economics">The Graph</a> (which is what I work with at Edge &amp; Node) have issued utility tokens that govern how the protocol functions. These tokens also reward participants at many levels of the network. Even native blockchain protocols like <a href="https://ethereum.org/en/">Ethereum</a> operate in this manner.</p><p>Source: My own research, <a href="https://www.freecodecamp.org/news/what-is-web3/">FreeCodecamp</a>, and <a href="https://interestingengineering.com/web-3-the-new-internet-is-about-to-arrive?fbclid=IwAR3DD2b1PTUyPaT2fQ5_GN1e-rHwkuzcWxdoKsoRDS42w8wDzYWMLs3PT94">Interesting Engineering</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6038b0ca1bc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>