<?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 Shrishadhajambudurai on Medium]]></title>
        <description><![CDATA[Stories by Shrishadhajambudurai on Medium]]></description>
        <link>https://medium.com/@shrishadhajambudurai?source=rss-cd682c971f9e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*yQWEKEzpdajszufr</url>
            <title>Stories by Shrishadhajambudurai on Medium</title>
            <link>https://medium.com/@shrishadhajambudurai?source=rss-cd682c971f9e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:27:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shrishadhajambudurai/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 Do We Need Microsoft Fabric? Turning Raw Data into Real Insights]]></title>
            <link>https://medium.com/@shrishadhajambudurai/why-do-we-need-microsoft-fabric-turning-raw-data-into-real-insights-b3bca241baf1?source=rss-cd682c971f9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3bca241baf1</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[microsoft-fabric]]></category>
            <dc:creator><![CDATA[Shrishadhajambudurai]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 07:40:38 GMT</pubDate>
            <atom:updated>2026-10-28T07:40:38.939Z</atom:updated>
            <content:encoded><![CDATA[<h3>Imagine This Situation…</h3><p>Imagine you are working for an online shopping company.</p><p>Every day, thousands of customers place orders. New products are added, sales are recorded, and customer information is collected.</p><p>All this information is stored in different places. Some data is in databases, some is in Excel files, and some comes from applications and APIs.</p><p>Now, your manager asks you a simple question:</p><p><strong>“Which products are selling the most, and why are our sales decreasing?”</strong></p><p>Sounds simple, right?</p><p>But before answering this question, you need to collect data from different sources, clean it, fix errors, organize it, and analyze it.</p><p>Suddenly, a simple question becomes a big task!</p><p>This is one of the challenges companies face when working with large amounts of data.</p><p>So, how can we make this process easier?</p><p><strong>Let’s explore Microsoft Fabric!</strong></p><h3>What Is Microsoft Fabric?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y3ewj-6fKzzMvvq7.png" /></figure><p>Think of Microsoft Fabric as a place where different data-related tasks come together.</p><p>Microsoft Fabric is an end-to-end data analytics platform developed by Microsoft. It provides tools and services for collecting, storing, cleaning, transforming, and analyzing data.</p><p>Instead of building an entire data solution using separate, disconnected tools, teams can use the integrated capabilities available in Microsoft Fabric.</p><p>In simple words:</p><p><strong>Microsoft Fabric helps us bring data together, prepare it for analysis, and turn it into useful information.</strong></p><p>But why is this important? Let’s find out.</p><h3>Why Do We Really Need Microsoft Fabric?</h3><h3>1. Data Is Everywhere, but Insights Are Not!</h3><p>Companies collect data from many sources.</p><p>For example:</p><ul><li>Customer details come from databases.</li><li>Product information comes from applications.</li><li>Sales records are stored in files.</li><li>Order information comes from APIs.</li></ul><p>The problem is that all this data may be stored in different places.</p><p>Imagine trying to solve a puzzle when all the pieces are scattered across different rooms!</p><p>Microsoft Fabric provides tools to bring data from different sources into a common analytics environment.</p><p>This makes it easier to prepare data for analysis.</p><h3>2. Raw Data Is Not Always Ready to Use</h3><p>Let’s say you have a dataset containing 10,000 product records.</p><p>Sounds good, right?</p><p>But when you examine the data, you discover that some values are missing, some categories are written differently, and some columns contain incorrect data types.</p><p>Can you directly use this data for analysis?</p><p>Not reliably.</p><p>Before using it, you need to clean and transform it.</p><p>Microsoft Fabric supports these tasks through tools such as notebooks, Dataflows Gen2, and SQL-based processing.</p><p>You can use these capabilities to standardize values, handle missing information, and prepare data for further analysis.</p><p><strong>Remember: Better-quality data helps us produce more reliable insights.</strong></p><h3>3. Where Should We Store All This Data?</h3><p>After collecting data, we need a place to store it.</p><p>This is where OneLake comes in.</p><p>OneLake provides a unified logical data lake for the Microsoft Fabric environment.</p><p>Fabric also offers a Lakehouse, which supports working with data using data engineering and analytical tools.</p><p>Think of OneLake as a common foundation for data across Fabric workloads.</p><p>Instead of treating every analytics workload as a completely separate environment, Fabric provides ways for supported workloads to work with data through this shared foundation.</p><h3>4. Data Is Useful Only When We Learn Something From It</h3><p>Imagine that you have stored one million sales records.</p><p>Great! But what can you learn from them?</p><p>You might want to answer questions such as:</p><ul><li>Which product generates the most revenue?</li><li>Which region has the highest sales?</li><li>Are sales increasing or decreasing?</li><li>Which products should the company promote?</li></ul><p>This is where data analysis becomes important.</p><p>Microsoft Fabric provides tools for processing and analyzing data. Power BI can help present the results through interactive reports and dashboards.</p><p>Instead of looking through thousands of rows, a manager can use a dashboard to understand important business trends.</p><p><strong>The real goal is not just to collect data. It is to understand what the data is telling us.</strong></p><h3>Meet the Main Components of Microsoft Fabric</h3><p>Microsoft Fabric contains different workloads, each designed for particular data-related tasks.</p><p>Let’s understand them through a simple analogy.</p><p>Imagine you are running a restaurant.</p><ul><li>You collect ingredients from different suppliers.</li><li>You store the ingredients.</li><li>You wash, cut, and prepare them.</li><li>You cook the food.</li><li>You serve it to customers.</li></ul><p>Similarly, a data analytics process has different stages.</p><p><strong>Data Factory — Bringing the Ingredients</strong></p><p>Data Factory helps connect to data sources, move data, and organize data workflows.</p><p><strong>Data Engineering — Preparing the Ingredients</strong></p><p>Data Engineering supports processing and transforming data using technologies such as Apache Spark.</p><p><strong>OneLake — The Common Storage Foundation</strong></p><p>OneLake provides a unified logical data lake for the Fabric environment.</p><p><strong>Data Warehouse — Organizing Data for Analysis</strong></p><p>The Data Warehouse workload supports storing and querying structured data for analytical purposes.</p><p><strong>Data Science — Discovering Patterns</strong></p><p>Data Science supports data exploration, experimentation, and machine learning.</p><p><strong>Real-Time Intelligence — Understanding Events as They Happen</strong></p><p>Real-Time Intelligence supports working with streaming and event-driven data.</p><p><strong>Power BI — Serving the Final Dish</strong></p><p>Power BI helps users understand data through reports, charts, and dashboards.</p><p>Together, these capabilities support different stages of the data analytics process.</p><h3>Let’s Build a Data Story: From Raw Data to Useful Information</h3><p>Now, let’s see how Microsoft Fabric can be used in a practical project.</p><p>Imagine we are working with product catalogue data from the Olist dataset.</p><p>Our goal is to prepare the product data for analysis.</p><p>How would we do it?</p><h3>Step 1: Collect the Data</h3><p>Our product information is stored in JSON files on GitHub.</p><p>We retrieve the files and prepare to ingest them into Microsoft Fabric.</p><h3>Step 2: Enter the Bronze Layer</h3><p>We load the source data into our Fabric Lakehouse and store it in the Bronze layer.</p><p>At this stage, we preserve the raw data so that we can refer to the original information later.</p><p>Think of Bronze as our starting point.</p><h3>Step 3: Move to the Silver Layer</h3><p>Now comes the important part: cleaning and transforming the data.</p><p>We examine the data and apply the required changes.</p><p>For example:</p><ul><li>Standardize product category names.</li><li>Handle missing values using appropriate rules.</li><li>Correct data types.</li><li>Apply the transformations required by the project.</li></ul><p>After these steps, the data becomes more consistent and suitable for further analysis.</p><h3>Step 4: Prepare the Gold Layer</h3><p>If our project requires a Gold layer, we can prepare curated datasets for business analysis.</p><p>For example, we might create a dataset that summarizes product categories or combines information needed for a report.</p><h3>Step 5: Turn Data into Insights</h3><p>Finally, we can use Power BI or other analytical tools to explore the prepared data and communicate useful findings.</p><p>Our journey looks like this:</p><p><strong>GitHub → Data Ingestion → Bronze → Silver → Gold → Analysis</strong></p><p>We have moved from raw source data toward data that is ready for business use!</p><p>This is one example of how Microsoft Fabric can support an end-to-end data pipeline.</p><h3>What Makes Microsoft Fabric Useful?</h3><p>Let’s summarize the main benefits.</p><p><strong>1. Different Capabilities in One Platform</strong></p><p>Fabric brings together several data analytics workloads, reducing the need to build every part of a solution independently.</p><p><strong>2. Easier Data Integration</strong></p><p>Its integration tools help teams bring data from different sources into their analytics environment.</p><p><strong>3. Organized Data Processing</strong></p><p>The Bronze, Silver, and Gold layers can help teams organize data as it moves through different stages of processing.</p><p><strong>4. Support for Different Types of Analytics</strong></p><p>Fabric supports data engineering, data science, data warehousing, real-time analytics, and business intelligence.</p><p><strong>5. Better Business Understanding</strong></p><p>When data is properly prepared and analyzed, reports and dashboards can help organizations make more informed decisions.</p><p>Of course, the right solution still depends on the organization’s needs, existing systems, and budget.</p><h3>Is Microsoft Fabric Only for Large Companies?</h3><p>Not necessarily!</p><p>Microsoft Fabric can be useful for different types of organizations that need an integrated environment for data analytics.</p><p>A small team might use it to build a simple data pipeline, while a larger organization might use its capabilities across many data sources and analytical workloads.</p><p>However, organizations should consider their requirements, licensing, capacity, and costs before choosing the platform.</p><p>The important point is that <strong>Microsoft Fabric is not just about handling large amounts of data. It is about bringing different parts of the data analytics process together.</strong></p><h3>Final Thoughts: Data Is More Than Rows and Columns</h3><p>Every organization has data. But data alone does not automatically provide answers.</p><p>To discover useful information, we need to collect it, organize it, prepare it, and analyze it.</p><p>Microsoft Fabric provides an integrated platform that supports these different stages of the data journey.</p><p>From bringing raw data into a Lakehouse to transforming it and preparing it for reports, Fabric offers tools that help teams build data analytics solutions.</p><p>As more organizations rely on data to make decisions, understanding platforms such as Microsoft Fabric can be valuable for anyone interested in data engineering and analytics.</p><p>So, the next time you look at a spreadsheet filled with thousands of rows, remember:</p><p><strong>The real value of data is not in how much we collect, but in what we learn from it.</strong></p><p>And that is where the journey from raw data to meaningful insights begins.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3bca241baf1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Data Cleaning with MySQL: A Practical Step-by-Step Project]]></title>
            <link>https://medium.com/@shrishadhajambudurai/sql-data-cleaning-with-mysql-a-practical-step-by-step-project-9ae2bd3e48a5?source=rss-cd682c971f9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ae2bd3e48a5</guid>
            <category><![CDATA[data-cleaning-with-sql]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Shrishadhajambudurai]]></dc:creator>
            <pubDate>Tue, 22 Sep 2026 18:24:07 GMT</pubDate>
            <atom:updated>2026-09-22T18:24:07.799Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7_teMBaV-uNHFqoGjGQy8Q.png" /></figure><p>Data cleaning is one of the most important steps in data analytics.</p><p>Real-world datasets are rarely perfect. They may contain:</p><p>- Missing values<br>- Extra spaces<br>- Inconsistent capitalization<br>- Invalid phone numbers<br>- Incorrect email addresses<br>- Duplicate records<br>- Invalid ages<br>- Negative or invalid amounts<br>- Inconsistent date formats<br>- Inconsistent city and state names</p><p>In this project, we will use MySQL to clean a deliberately messy customer dataset step by step.</p><p>Instead of only learning individual SQL functions, we will use them together in a practical data-cleaning workflow.</p><p>What we will learn</p><p>By the end of this project, you will know how to:</p><p>- Identify missing values<br>- Remove unnecessary spaces<br>- Standardize text<br>- Clean phone numbers<br>- Validate email addresses<br>- Identify duplicate records<br>- Standardize categorical values<br>- Handle invalid numeric values<br>- Convert inconsistent date formats<br>- Check data consistency<br>- Validate the final cleaned dataset</p><p><strong>Project Overview</strong></p><p>We will work with a customer dataset containing information such as:</p><p>- Customer ID<br>- Name<br>- Email<br>- Phone<br>- Gender<br>- Age<br>- City<br>- State<br>- Purchase Amount<br>- Purchase Date</p><p>The dataset is intentionally messy so that we can practice identifying and fixing common data-quality problems.</p><p><strong>Step 1 — Create a new database</strong><br>Let’s create a database specifically for this project.</p><pre>CREATE DATABASE data_cleaning_project;</pre><p>Then select it:</p><pre>USE data_cleaning_project;</pre><p>You can verify:</p><pre>SELECT DATABASE();</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*x6OmbeGldjjE2xazovLjZQ.png" /></figure><p>You should get:<br>data_cleaning_project</p><p><strong>Step 2 — Create our messy table<br></strong>We’ll create a table called customers.</p><pre>CREATE TABLE customers (<br>    customer_id INT PRIMARY KEY,<br>    name VARCHAR(100),<br>    email VARCHAR(100),<br>    phone VARCHAR(30),<br>    gender VARCHAR(20),<br>    age INT,<br>    city VARCHAR(50),<br>    state VARCHAR(50),<br>    purchase_amount DECIMAL(10,2),<br>    purchase_date VARCHAR(30)<br>);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*dtWJKS1AX0Ygsfd-l3eOJQ.png" /></figure><p>Why is purchase_date a VARCHAR?<br>Normally, a date should be stored as:</p><pre>DATE</pre><p>But we’re deliberately making the data messy.</p><p><strong>Step 3 — Insert intentionally messy data<br></strong>Now let’s insert our raw data.</p><pre>INSERT INTO customers<br>(customer_id, name, email, phone, gender, age, city, state, purchase_amount, purchase_date)<br>VALUES<br><br>(1, &#39;  Arun Kumar  &#39;, &#39;ARUN.KUMAR@EMAIL.COM &#39;, &#39;98765-43210&#39;, &#39;Male&#39;, 25, &#39; Chennai &#39;, &#39;Tamil Nadu&#39;, 2500.00, &#39;2026-01-15&#39;),<br><br>(2, &#39;Priya Sharma&#39;, &#39; priya.sharma@email.com&#39;, &#39;98765 12345&#39;, &#39;FEMALE&#39;, 28, &#39;chennai&#39;, &#39;tamil nadu&#39;, 3200.00, &#39;15/02/2026&#39;),<br><br>(3, &#39;  arun kumar&#39;, &#39;arun.kumar@email.com&#39;, &#39;9876543210&#39;, &#39;M&#39;, 25, &#39;CHENNAI&#39;, &#39;TAMIL NADU&#39;, 1800.00, &#39;2026-03-20&#39;),<br><br>(4, &#39;Rahul  Singh &#39;, &#39;rahul@@email.com&#39;, &#39;98765-ABCDE&#39;, &#39;male &#39;, 0, &#39; Bangalore &#39;, &#39; Karnataka &#39;, 4500.00, &#39;2026-04-10&#39;),<br><br>(5, &#39;Sneha Patel&#39;, NULL, &#39;99999-88888&#39;, &#39;Female&#39;, 30, &#39;Mumbai&#39;, &#39; Maharashtra &#39;, 5000.00, &#39;2026-05-25&#39;),<br><br>(6, &#39;Vijay Kumar&#39;, &#39;vijay.kumar@email.com&#39;, &#39;987654321&#39;, &#39;Male&#39;, 150, &#39;Delhi&#39;, &#39;Delhi&#39;, -500.00, &#39;2026-06-05&#39;),<br><br>(7, &#39;  Meena Devi &#39;, &#39;meena.devi@email.com&#39;, &#39;88888-77777&#39;, &#39;female&#39;, 27, &#39; Madurai &#39;, &#39; Tamil Nadu &#39;, 2750.00, &#39;07/07/2026&#39;),<br><br>(8, &#39;Rajesh Kumar&#39;, &#39;rajesh.kumar@email.com&#39;, &#39;77777 66666&#39;, &#39;M&#39;, 35, &#39;Bangalore&#39;, &#39;Karnataka&#39;, 6200.00, &#39;2026-08-12&#39;),<br><br>(9, &#39;Priya Sharma&#39;, &#39;priya.sharma@email.com&#39;, &#39;9876512345&#39;, &#39;F&#39;, 28, &#39;Chennai&#39;, &#39;Tamil Nadu&#39;, 3200.00, &#39;2026-02-15&#39;),<br><br>(10, &#39;Karthik&#39;, &#39;karthik@email.com&#39;, NULL, &#39;Unknown&#39;, 22, &#39;Coimbatore&#39;, &#39;Tamil Nadu&#39;, 1500.00, &#39;2026-09-01&#39;);</pre><p>What Problems Are Present in the Dataset?</p><p>Before cleaning the data, let’s identify some of the problems we intentionally introduced.</p><p>For example:</p><p>- Names contain unnecessary spaces.<br>- Email addresses have inconsistent capitalization and spaces.<br>- Phone numbers contain spaces and hyphens.<br>- Some phone numbers have an invalid number of digits.<br>- Some email addresses are invalid.<br>- Gender values use different formats such as `Male`, `male`, `M`, `Female`, and `F`.<br>- Some ages are invalid.<br>- One purchase amount is negative.<br>- Dates are stored in different formats.<br>- Some records are duplicated.<br>- Some values are missing.</p><p>Now let’s clean these problems one by one.</p><p><strong>Step 4 — Look at our messy data<br></strong>Before cleaning anything, always inspect the raw data.<br>Run:</p><pre>SELECT *<br>FROM customers;</pre><p>Don’t clean anything yet.<br>Look at the data carefully.<br>You should notice problems such as:<br><strong>Names</strong></p><pre>&#39;  Arun Kumar  &#39;<br>&#39;  arun kumar&#39;<br>&#39;Rahul  Singh &#39;</pre><p>We have unnecessary spaces and inconsistent capitalization.<br><strong>Emails</strong></p><pre>ARUN.KUMAR@EMAIL.COM<br> priya.sharma@email.com<br>rahul@@email.com<br>NULL</pre><p>There are formatting problems and missing values.<br><strong>Phones</strong></p><pre>98765-43210<br>98765 12345<br>98765-ABCDE<br>987654321<br>NULL</pre><p>Multiple representations of the same values.<br><strong>Age</strong></p><pre>25<br>28<br>0<br>150</pre><p>Clearly some values need investigation.</p><p><strong>Step 5 — Handle Missing Values<br></strong>First, let’s learn how to <strong>find missing data</strong>.</p><p>In SQL, a missing value is usually represented by: <strong>NULL</strong></p><p><strong>5.1 Find all rows with a missing email</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1qizc8_RhvFt8TTHFkbeww.png" /></figure><p><strong>5.2 Find missing phone numbers</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1YJsQ5dslSc7b9jcX0DElg.png" /></figure><p><strong>5.3 Find rows where either email OR phone is missing</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*17IgpwK_uWBDEACdX7eHpw.png" /></figure><p><strong>5.4 Count how many missing values we have</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*Ih3_UOczYLSyNT4dLYaGCw.png" /></figure><p><strong>5.5 Should we delete the NULLs?<br></strong>Not necessarily.<strong><br></strong>This is an important data-cleaning lesson.<br>Customer 5 has a missing email, but the rest of their information is useful:</p><pre>Sneha Patel<br>Phone: 99999-88888<br>Age: 30<br>City: Mumbai<br>Purchase: 5000</pre><p>Deleting the entire customer would throw away all that useful information just because one field is missing.</p><p>Instead, we might:</p><ul><li>leave it as NULL</li><li>replace it with a meaningful value for reporting</li><li>investigate the source data</li><li>flag it as missing</li></ul><p>For now, we will leave the NULLs alone.</p><p><strong>Step 6 — Clean Extra Spaces<br></strong>Now we’ll clean text.<br>Remember our original data had things like:</p><pre>&#39;  Arun Kumar  &#39;<br>&#39;Rahul  Singh &#39;<br>&#39; Chennai &#39;<br>&#39; Tamil Nadu &#39;</pre><p>The function for removing spaces from the beginning and end is:<br><strong>TRIM()</strong></p><p>Try:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*aWSzoWsLWgBTOC-p0-4zrw.png" /></figure><h4><strong>TRIM() removes outer spaces.</strong></h4><p>It does <strong>not</strong> remove the extra space between:</p><pre>Rahul  Singh<br>       ↑</pre><p>We’ll handle that separately.</p><p><strong>Step 6.1— Actually update the table</strong></p><p>Once we’ve checked that the cleaning works, we can modify the data:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZZk8woGSSdP4TumyMFoupw.png" /></figure><h4>Step 7 — Standardize Text with LOWER()</h4><p>Look at your current data.<br>Your gender values include:</p><pre>Male<br>FEMALE<br>M<br>male<br>Female<br>female<br>M<br>F<br>Unknown</pre><p>Your cities include:</p><pre>Chennai<br>chennai<br>CHENNAI<br>Bangalore<br>Mumbai<br>...</pre><p>And states include:</p><pre>Tamil Nadu<br>tamil nadu<br>TAMIL NADU<br>Karnataka<br>...</pre><p>These are inconsistent.<br>For example:</p><pre>Chennai<br>chennai<br>CHENNAI</pre><p>are all the same city, but SQL treats them as different strings.</p><p><strong>7.1 Standardize names</strong></p><p>Let’s convert names to lowercase.</p><p>First preview the result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*2NoaH5UIh4LGSeb4CYcLEA.png" /></figure><p>You’ll see:</p><pre>Arun Kumar → arun kumar<br>Priya Sharma → priya sharma</pre><p>If the result looks correct:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*SlEgGz_3A89531u1yUN7Lg.png" /></figure><p><strong>7.2 Standardize gender<br></strong>Preview first:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*dyuWQGySvT2yAn2_EmcB0w.png" /></figure><p>Then:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*Y3DALWfxs4a6VDDHGk3EXg.png" /></figure><p>Now :</p><pre>Male   → male<br>FEMALE → female<br>M      → m<br>F      → f</pre><p>This is better, but we aren’t finished with gender yet.<br>We’ll later use CASE to turn:</p><pre>male → M<br>m → M<br>female → F<br>f → F<br>Unknown → Other</pre><p><strong>7.3 Standardize city<br></strong>Preview:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*Hp27R0C5I5B3DJazvjZWfA.png" /></figure><p>Then:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*3vyd3UapMePtmJG758qAPw.png" /></figure><p><strong>7.4 Standardize state<br></strong>You’ve already done:</p><pre>UPDATE customers<br>SET state = TRIM(state);</pre><p>Now add lowercase:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*4PwJSvX0YZYkUVICjcZ1Sg.png" /></figure><p>Now:</p><pre>Tamil Nadu → tamil nadu<br>tamil nadu → tamil nadu<br>TAMIL NADU → tamil nadu</pre><p><strong>Step 8 — Clean the phone numbers<br></strong>Now let’s look at our phone column.<br>Currently we have values such as:</p><pre>98765-43210<br>98765 12345<br>9876543210<br>98765-ABCDE<br>99999-88888<br>987654321<br>NULL</pre><p>Our goal is to make valid phone numbers look like:</p><pre>9876543210</pre><p>First, preview the cleaning</p><p>Use :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*YSl9aEIEwVXoXLIKJDnfeA.png" /></figure><p>Let’s understand:</p><pre>REGEXP_REPLACE(phone, &#39;[^0-9]&#39;, &#39;&#39;)</pre><p>[^ 0–9] means:</p><p><em>Any character that is </em><strong><em>not a number</em></strong><em>.</em></p><p>So:</p><pre>98765-43210</pre><p>becomes :</p><pre>9876543210</pre><p>And:</p><pre>98765 12345</pre><p>becomes :</p><pre>9876512345</pre><p>But:</p><pre>98765-ABCDE</pre><p>becomes :</p><pre>98765</pre><p>And that’s actually useful because we’ve exposed an invalid phone number.</p><p><strong>Step 8.1 — Let’s check the cleaned phone lengths<br></strong>Before updating anything, run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*6l36Yt7wC-Q6n3D-Mb76jA.png" /></figure><p>Now we can clearly identify:</p><pre>10 digits → potentially valid<br>9 digits  → invalid<br>5 digits  → invalid<br>NULL      → missing</pre><p><strong>Step 8.2 — Now update the valid formatting<br></strong>Since we want to remove - and spaces from the phone numbers:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*Y4Gt0NRX8dnbZzKGBgo6dQ.png" /></figure><p>But notice:<br><strong>Cleaning the format doesn’t automatically make the data valid.<br></strong>That’s a very important data-cleaning concept.</p><p><strong>Step 8.3 — Find invalid phone numbers<br></strong>Now run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KYZOT0tMOlhW-NuSRunhZw.png" /></figure><p>These are now clearly invalid based on our rule:<br><em>A valid phone number in this project must contain exactly 10 digits.</em></p><h4>What should we do with them?</h4><p>For our practice project, instead of immediately deleting the whole customer, let’s mark the phone as missing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*_-_ozrmYO09KyGkMY1pbkw.png" /></figure><p>Now:</p><pre>customer 4 → phone = NULL<br>customer 6 → phone = NULL<br>customer 10 → phone = NULL</pre><p>We haven’t deleted those customers. We’ve only identified that their phone number isn’t usable.</p><p>That’s generally safer than deleting an entire customer record just because one field is bad.</p><h4>Step 9 — Clean the Email Column</h4><p>Now let’s work on emails.<br>Our original email data contained:</p><pre>ARUN.KUMAR@EMAIL.COM<br> priya.sharma@email.com<br>arun.kumar@email.com<br>rahul@@email.com<br>NULL<br>...</pre><p>There are two different problems here:<br>Problem 1: Formatting<br>For example:</p><pre>ARUN.KUMAR@EMAIL.COM</pre><p>We want:</p><pre>arun.kumar@email.com</pre><h4>Problem 2: Invalid email</h4><p>We have:</p><pre>rahul@@email.com</pre><p>That is not a valid email format.</p><p>So again, we’ll clean first → validate second.</p><p><strong>9.1 Preview the cleaned emails<br></strong>Run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jbp9GpiDabczXfmVTYQYTQ.png" /></figure><p>This does two things:</p><pre>TRIM()<br> ↓<br>removes spaces<br><br>LOWER()<br> ↓<br>converts everything to lowercase</pre><p><strong>9.2 Update the email column<br></strong>If the preview looks correct:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*BLy7I_jd11KtxDjKfN0AAA.png" /></figure><p>Now the emails are standardized.</p><p><strong>Step 10 — Find suspicious emails<br></strong>Now let’s identify emails that don’t look valid.<br>For our simple project, we’ll use this basic rule:<br>An email should contain exactly one @ and at least one . after the @</p><p>First, let’s look for emails with the wrong number of @ symbols.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*eGhF4XrZuBg_ZFn5cc9ezQ.png" /></figure><p><strong>Step 10.2 — What should we do with Rahul’s email?<br></strong>We don’t know what the correct email should be.<br>Maybe it was:<br>rahul@email.com<br>Maybe:<br>rahul.singh@email.com<br>We should not invent the correct value.<br>So for our cleaning project, we’ll mark it as missing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*3Xl-SOMuglQepFtXHuPeBQ.png" /></figure><p>Now Rahul still exists as a customer, but his email is marked as unavailable rather than storing an invalid email.</p><p><strong>Important data-cleaning principle<br></strong>We just encountered an important rule:<br>Never “correct” data by guessing what the original value was.</p><p><strong>Step 11 — Find Duplicate Data<br></strong>Look at your original data:</p><pre>customer_id = 2<br>Priya Sharma<br>priya.sharma@email.com<br>3200<br>2026-02-15</pre><p>and:</p><pre>customer_id = 9<br>Priya Sharma<br>priya.sharma@email.com<br>3200<br>2026-02-15</pre><p>These look like duplicate records.<br>But there’s an important question:<br>How do we know whether something is actually a duplicate?</p><p>We shouldn’t simply say:</p><pre>GROUP BY name</pre><p>because the same person can legitimately appear multiple times in a sales/transaction table.<br>For example:</p><pre>Priya → Purchase 1<br>Priya → Purchase 2<br>Priya → Purchase 3</pre><p>Those are not necessarily duplicates.<br>In our customers table, however, the combination of:</p><pre>name<br>email<br>phone<br>gender<br>age<br>city<br>state<br>purchase_amount<br>purchase_date</pre><p>is identical for customers 2 and 9.<br>So let’s investigate.</p><p><strong>Step 11.1 — Find duplicate emails<br></strong>Run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jSlf0mHPcCMYwDHXSSWHww.png" /></figure><h4>What does this mean?</h4><p>This:</p><pre>GROUP BY email</pre><p>puts identical emails together.<br>Then:</p><pre>COUNT(*)</pre><p>counts how many times each email occurs.<br>And:</p><pre>HAVING COUNT(*) &gt; 1</pre><p>keeps only emails appearing more than once.</p><p><strong>Step 11.2 — See the actual duplicate rows<br></strong>Now we want to see which customers are involved.<br>Run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hfsEK3u5nc3I16o-7q3svw.png" /></figure><p>Now we have evidence that these two rows are duplicates in our practice dataset.</p><p><strong>Step 11.3 — Why shouldn’t we immediately delete duplicates?<br></strong>This is important.<br>Imagine a different table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_CM8qZjQcPY-SjCh3qE_9g.png" /></figure><p>These aren’t necessarily duplicates.<br>They could represent two purchases.<br>So the definition of a duplicate depends on what the table represents.</p><p>Our table is called customers, and in our practice data the two Priya records have identical customer and purchase information, so we&#39;ll treat one as a duplicate.</p><p><strong>Step 11.4 — Which row should we keep?<br></strong>We have:</p><pre>ID 2 → original<br>ID 9 → duplicate</pre><p>For our practice project, we’ll keep the smaller customer ID and remove ID 9.<br>Before deleting, let’s verify it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fZzGGZgdrHJi0YuyN6RafA.png" /></figure><p>If everything matches except customer_id, we&#39;re ready. Only priya’s details match except customer_id.</p><p><strong>Step 11.5 — Remove the duplicate</strong></p><p>Run :</p><pre>DELETE FROM customers<br>WHERE customer_id = 9;</pre><p>You should now have 9 <strong>customer records</strong> instead of 10.<br>verify it :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GUuhw4oJUamVvB6qtf3grw.png" /></figure><p><strong>Step 12 — Standardize Gender with </strong><strong>CASE</strong></p><p>Look at your current gender values:</p><pre>male<br>female<br>m<br>female<br>male<br>male<br>female<br>m<br>unknown</pre><p>We want to standardize them:</p><pre>male     → M<br>m        → M<br><br>female   → F<br>f        → F<br><br>unknown  → Other</pre><h4>First, don’t update anything</h4><p>Let’s preview what the transformation will do:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*oD4XU0UqJVEUjNkF4ro1YA.png" /></figure><h3>Why CASE?</h3><p>Think of it like an IF / ELSE IF / ELSE structure:</p><pre>IF gender is male or m<br>        ↓<br>       M<br><br>ELSE IF gender is female or f<br>        ↓<br>       F<br><br>ELSE<br>        ↓<br>      Other</pre><p>And this part:</p><pre>gender IN (&#39;male&#39;, &#39;m&#39;)</pre><p>is just a shorter way of saying:</p><pre>gender = &#39;male&#39; OR gender = &#39;m&#39;</pre><p><strong>Now update the actual column</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*eSypSrEC5UHH12FsT6i4NA.png" /></figure><p><strong>Step 13 — Validate the </strong><strong>age column</strong></p><p>Look at your current data. We deliberately inserted:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wh_lYVSiXjg7WA46m5TD1g.png" /></figure><p>The suspicious values are:</p><pre>customer 4 → age = 0<br>customer 6 → age = 150</pre><p>But before changing anything, we should identify the invalid records.</p><p><strong>13.1 Find invalid ages<br></strong>Run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ipr8Ba0h8vPxTtjMuDwVPg.png" /></figure><p>You’ll get customers 4 and 6.</p><p><strong>13.2 Don’t immediately delete them</strong></p><p>This is important.<br>Suppose customer 6 has:</p><pre>Vijay Kumar<br>vijay.kumar@email.com<br>₹-500 purchase<br>Delhi<br>age = 150</pre><p>The <strong>age</strong> is invalid, but the entire customer record isn’t necessarily useless.<br>So instead of deleting the entire record we can just update the age to NULL :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cca93pBnO-oBb5K2y_GQjw.png" /></figure><p>Now:</p><pre>customer 4 → age = NULL<br>customer 6 → age = NULL</pre><p><strong>Step 14 — Validate purchase_amount</strong></p><p>Now look at this value:</p><pre>customer 6<br>purchase_amount = -500</pre><p>A purchase amount being negative is suspicious.</p><p>But again, <strong>don’t assume every negative number is invalid in every business</strong>.</p><p>For example, in a financial system, a negative transaction could represent:<br>refund</p><ul><li>cancellation</li><li>reversal</li><li>adjustment</li></ul><p>For our project, we’ll define this rule:<br>purchase_amount must be zero or greater.<br>So first find violations:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xWlc7axSAxPtwHtOdFxgXQ.png" /></figure><p>You should find Vijay:<br>purchase_amount = -500</p><p><strong>14.1 Set the invalid amount to NULL<br></strong>Because we don’t know whether the correct amount was 500, 0, or something else, we shouldn&#39;t guess.<br>Run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*quXORsIunur0sF8pSHsipg.png" /></figure><p>Vijay should now have:<br>purchase_amount = NULL</p><p><strong>Step 15 — Clean and Standardize Dates</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*LdoBUOWdJ6014MasbJKWOQ.png" /></figure><p>We have <strong>two formats</strong>:</p><pre>YYYY-MM-DD</pre><p>and:</p><pre>DD/MM/YYYY</pre><p><strong>15.1 First, identify the different formats<br></strong>We can find the dates containing /:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8AGwIibgi2-BXy0-muvg6Q.png" /></figure><p><strong>15.2 Convert the </strong><strong>DD/MM/YYYY dates</strong></p><p>MySQL provides:</p><pre>STR_TO_DATE()</pre><p>It converts a string into a date.<br>For example:</p><pre>SELECT STR_TO_DATE(&#39;15/02/2026&#39;, &#39;%d/%m/%Y&#39;);</pre><p><strong>15.3 Preview before updating<br></strong>Let’s first convert only the dates containing /.</p><p>Run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*8YXNPI8-gjgMQ2H_l7KP5Q.png" /></figure><p><strong>15.4 Convert the column to an actual </strong><strong>DATE</strong></p><p>Here’s something important.<br>Right now:</p><pre>purchase_date VARCHAR(30)</pre><p>But before changing the column type, we need to make sure all values are in the same format.<br>First, update the slash-formatted dates:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*zILo1jRvOb3itDnsWvF1Gg.png" /></figure><p>Make sure every date is now YYYY-MM-DD.</p><p><strong>15.5 Now change the column type<br></strong>Once you’ve confirmed all dates are standardized:</p><pre>ALTER TABLE customers<br>MODIFY purchase_date DATE;</pre><p>Now MySQL understands this column as a real date, rather than text.<br>That’s a very important improvement for data analysis.</p><p><strong>Step 16 — Validate City and State<br></strong>Your city/state values are already lowercase and trimmed:</p><pre>chennai<br>bangalore<br>mumbai<br>delhi<br>madurai<br>coimbatore</pre><p>and:</p><pre>tamil nadu<br>karnataka<br>maharashtra<br>delhi</pre><p>But cleaning isn’t just about formatting.<br>We also need to ask:<br><strong><em>Are the values actually valid and consistent?</em></strong></p><p><strong>16.1 Find all distinct cities<br></strong>Run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*MilFv_bOGe9oqdzZnDRfMQ.png" /></figure><p>This is called a distinct-value check.<br>It’s very useful when cleaning categorical data.</p><p><strong>16.2 Find all distinct states</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*TPpsYJVnhzV2p14g7KyvtQ.png" /></figure><p>There aren’t obvious formatting inconsistencies anymore.</p><p><strong>Step 17 — Check City/State Consistency<br></strong>Now let’s perform a more meaningful check.<br>For example:</p><pre>chennai → tamil nadu<br>madurai → tamil nadu<br>bangalore → karnataka<br>mumbai → maharashtra<br>delhi → delhi<br>coimbatore → tamil nadu</pre><p>We can look at combinations:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*V_MJT_CcaaYAEJ7_5FG5PQ.png" /></figure><p>This helps us see whether a city is associated with multiple states.</p><h4>Step 18 — Check for Missing Values Again</h4><p>This is an important part of <strong>final validation</strong>.</p><p>We’ve intentionally created some NULLs during cleaning.</p><p>Let’s see where they are.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WKzULYpTnoN8dEyCMoHdjg.png" /></figure><p>You should find customers with missing:</p><ul><li>email</li><li>phone</li><li>age</li><li>purchase amount</li></ul><p>But importantly, these are now known missing values, rather than dirty values such as -500 or 150.</p><p><strong>Step 19 — Final Data Quality Validation</strong></p><p>We have cleaned the major data-quality problems in our dataset.</p><p>But cleaning the data is only half of the process.</p><p>We also need to make sure that our cleaning actually worked.</p><p>Let’s perform a few final validation checks.</p><p>Check 1 — Invalid Ages</p><pre>SELECT *<br>FROM customers<br>WHERE age &lt;= 0<br>   OR age &gt; 100;</pre><p>If this query returns no rows, there are no remaining invalid ages according to our project rule.</p><p>Check 2 — Invalid Purchase Amounts</p><pre>SELECT *<br>FROM customers<br>WHERE purchase_amount &lt; 0;</pre><p>An empty result means there are no remaining negative purchase amounts according to our project rule.</p><p>Check 3 — Invalid Phone Numbers</p><pre>SELECT *<br>FROM customers<br>WHERE phone IS NOT NULL<br>  AND LENGTH(phone) &lt;&gt; 10;</pre><p>This checks that every non-NULL phone number contains exactly 10 digits.</p><p>Check 4 — Duplicate Emails</p><pre>SELECT email, COUNT(*) AS count<br>FROM customers<br>WHERE email IS NOT NULL<br>GROUP BY email<br>HAVING COUNT(*) &gt; 1;</pre><p>If no rows are returned, there are no remaining duplicate non-NULL email addresses.</p><p><strong>Step 20 — View the Final Cleaned Dataset<br></strong> Now let’s look at the complete cleaned dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CDggayAD_UzVnx6LrxKRJw.png" /></figure><p>This allows us to visually inspect the final result after all of our cleaning steps.</p><p><strong>Conclusion</strong></p><p>In this project, we cleaned a messy customer dataset using MySQL. We worked with missing values, inconsistent text, phone numbers, email addresses, duplicates, categorical values, invalid numeric values, dates, and location data. More importantly, we learned how to approach a real-world data-cleaning problem systematically. The main lesson is that data cleaning is not about blindly deleting data. It is about understanding the data, identifying problems, applying appropriate rules, and validating the result.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ae2bd3e48a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Java to C#: I Finally Explored .NET — And What Learning Taught Me]]></title>
            <link>https://medium.com/@shrishadhajambudurai/from-java-to-c-i-finally-explored-net-and-what-learning-taught-me-6c9ca0ef5503?source=rss-cd682c971f9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c9ca0ef5503</guid>
            <category><![CDATA[csharp]]></category>
            <dc:creator><![CDATA[Shrishadhajambudurai]]></dc:creator>
            <pubDate>Mon, 24 Aug 2026 10:55:38 GMT</pubDate>
            <atom:updated>2026-08-24T10:55:38.757Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bCX28r-RaGeNUMMaoS0EhQ.png" /></figure><p>Sometimes life doesn’t go the way we expect.</p><p>There are moments when we face setbacks, lose motivation, don’t know what to do next, or even when our health doesn’t cooperate with us.</p><p>I recently went through one of those phases.</p><p>I didn’t have all the answers. I was thinking a lot about what to do next and how to move forward.</p><p>Then I decided to do something simple.</p><p><strong>I started learning.</strong></p><p>For a long time, I had wanted to explore <strong>.NET and C#</strong>. I was already familiar with Java and backend development, but I kept telling myself:</p><p><strong>“I’ll learn .NET someday.”</strong></p><p>After my setback, I finally decided that “someday” should be today.</p><p>So I started learning C# and exploring the .NET ecosystem.</p><p>And something interesting happened.</p><p>The more I learned, the more I realized that learning was not just helping me improve technically.</p><p><strong>It was helping me move forward.</strong></p><p>Every new concept I understood gave me a small feeling of progress.</p><p>Every small program I wrote reminded me that I was still capable of learning something new.</p><p>And that is when I realized something important:</p><p><strong><em>“Whatever life puts on you, don’t stop learning.”</em></strong></p><p>You may not be able to control everything that happens to you.</p><p>You may have setbacks.</p><p>You may have bad days.</p><p>You may even feel like you are not making progress.</p><p>But you can always learn something.</p><p>And sometimes, learning something new can be the first step toward getting yourself back on track.</p><p>So, while exploring C#, I started comparing it with the language I already knew — Java.</p><p>And here is what I found.</p><h3>C# and Java — My First Impression</h3><p>When I wrote my first C# program, I immediately noticed something:</p><p><strong>It looked familiar.</strong></p><p>I already knew Java, so I expected C# to feel completely new.</p><p>But it didn’t.</p><p>For example, here is a simple Java program:</p><pre>public class HelloWorld { <br>public static void main(String[] args) { <br>System.out.println(&quot;Hello World&quot;); <br>}<br>}</pre><p>And here is the C# version:</p><pre>using System; <br>class HelloWorld {<br> static void Main() { <br>Console.WriteLine(&quot;Hello World&quot;); <br>} <br>}</pre><p>The syntax is different, but the basic idea is very similar.</p><p>Both have:</p><ul><li>Classes</li><li>Objects</li><li>Methods</li><li>Interfaces</li><li>Inheritance</li><li>Exception handling</li><li>Generics</li><li>Loops</li><li>Conditions</li><li>Garbage collection</li></ul><p>Because I already knew Java, learning C# didn’t feel like starting from zero.</p><p>And that taught me another small lesson:</p><p><strong>Sometimes we already have more knowledge than we realize.</strong></p><p>We just need to use what we already know to learn something new.</p><h3>C# and .NET Are Not the Same</h3><p>One of the first things I learned was that C# and .NET are not the same thing.</p><p><strong>C# is a programming language.</strong></p><p><strong>.NET is the platform used to build and run applications.</strong></p><p>This was similar to what I already knew from Java.</p><p>We can think of it like this:</p><pre>Java → Programming Language<br>JVM  → Runs Java applications<br>JDK  → Development tools</pre><p>And:</p><pre> C# → Programming Language <br>.NET → Platform <br> CLR → Runs.NET applications <br>.NET SDK → Development tools</pre><p>Understanding this made the .NET ecosystem much easier for me.</p><h3>JVM vs CLR</h3><p>Another interesting comparison was the JVM and CLR.</p><p>In Java:</p><pre>Java Code<br>    ↓<br>Java Compiler<br>    ↓<br>Bytecode<br>    ↓<br>JVM<br>    ↓<br>Machine Code</pre><p>In C#:</p><pre>C# Code<br>    ↓<br>C# Compiler<br><br>    ↓<br>IL<br>    ↓<br>CLR<br>    ↓<br>Machine Code</pre><p>The names are different, but the overall idea is quite similar.</p><p>Since I already understood the JVM, understanding the CLR was easier.</p><h3>What Is IL( <strong>Intermediate Language)</strong>?</h3><p>Java code is compiled into bytecode.</p><p>C# code is compiled into IL, which means Intermediate Language.</p><p>The C# compiler first converts our code into IL.</p><p>Then the JIT compiler converts it into machine code that the computer can execute.</p><p>So:</p><pre>C# Code<br>   ↓<br>C# Compiler<br>   ↓<br>IL<br>   ↓<br>CLR<br>   ↓<br>JIT<br>   ↓<br>Machine Code</pre><p>This was one of those moments where I thought:</p><p><strong>“Okay, I already understand something similar from Java.”</strong></p><p>And again, my previous knowledge helped me learn something new.</p><h3>JDK vs .NET SDK</h3><p>I also wanted to understand what the equivalent of the Java JDK is in .NET.</p><p>The answer is the <strong>.NET SDK</strong>.</p><p>Just like the JDK provides tools to develop Java applications, the .NET SDK provides tools to develop .NET applications.</p><p>For example:</p><pre>dotnet --version</pre><p>checks the installed .NET version.</p><p>We can create a console application using:</p><pre>dotnet new console</pre><p>And run it using:</p><pre>dotnet run</pre><p>Since I already knew the Java development process, these commands were easy to understand.</p><p><strong>C# Properties vs Java Getters and Setters</strong></p><p>One C# feature I liked was properties.</p><p>In Java, we commonly write getters and setters:</p><pre>private String name;<br><br>public String getName() {<br> return name; <br>} <br>public void setName(String name) { <br>this.name = name; <br>}</pre><p>In C#, we can write:</p><pre>public string Name { get; set; }</pre><p>Small features like this made me curious to explore more of C#.</p><p><strong>Java + Spring Boot vs C# + ASP.NET Core</strong></p><p>Since I am interested in backend development, this was one of the comparisons I was most interested in.</p><p>In Java, we commonly use:<br>Java + Spring Boot</p><p>In .NET, we can use:<br>C# + ASP.NET Core</p><p>Both can be used to build:</p><ul><li>REST APIs</li><li>Web applications</li><li>Backend services</li><li>Microservices</li><li>Authentication systems</li><li>Database applications</li></ul><p>The architecture can also be similar:</p><pre>Controller<br>    ↓<br>Service<br>    ↓<br>Repository / Data Access<br>    ↓<br>Database</pre><p>So again, I didn’t have to forget everything I already knew.</p><p>I simply had to learn how another ecosystem does things.</p><h3>What Surprised Me?</h3><p>The biggest surprise wasn’t how different C# was.</p><p>It was how familiar it felt.</p><p>Before starting, I thought:</p><p>“I have to learn something completely new.”</p><p>After starting, I realized:</p><p>“I already know many of these concepts. I just need to learn how .NET does them.”</p><p>And that realization was bigger than just a technical lesson.</p><p>It reminded me that progress doesn’t always have to be huge.</p><p>Sometimes progress is simply:</p><ul><li>Learning one new concept</li><li>Writing one small program</li><li>Understanding one error</li><li>Solving one problem</li><li>Trying something you were afraid to start</li></ul><p>Those small things add up.</p><h3>Learning Helped Me Move Forward</h3><p>Looking back, I think starting C# at that time was exactly what I needed.</p><p>It gave me something to focus on.</p><p>Instead of constantly thinking about the setback, I started thinking about:</p><p><strong>“What can I learn today?”</strong></p><p>And that question changed my mindset.</p><p>I wasn’t trying to solve my entire life in one day.</p><p>I was simply trying to learn one more thing.</p><p>One day it was variables.</p><p>Another day it was loops.</p><p>Then classes.</p><p>Then properties.</p><p>Then the CLR.</p><p>Then .NET.</p><p>Little by little, I started feeling that I was moving again.</p><h3>My Biggest Lesson</h3><p>This experience taught me something that I want to remember:</p><p>“<strong><em>Whatever the world puts on you, don’t stop learning.”</em></strong></p><p>You may face setbacks.</p><p>You may lose opportunities.</p><p>Things may not happen according to your plan.</p><p>You may even have days when you don’t feel motivated.</p><p>But don’t stop.</p><p>You don’t have to move fast.</p><p>You don’t have to know exactly where you’re going.</p><p>Just keep learning something.</p><p>Because every new thing you learn becomes a part of you.</p><p>And one day, you may look back and realize that the difficult phase you went through didn’t stop you.</p><p><strong>It made you stronger and pushed you to learn something new.</strong></p><h3>A Lesson Beyond Technology</h3><p>I started exploring .NET because it was something I had wanted to learn for a long time.</p><p>But I didn’t expect it to teach me something beyond C# and .NET.</p><p>It reminded me that learning itself can be a way of moving forward.</p><p>I started with a simple question:</p><p><strong>“How different is C# from Java?”</strong></p><p>But I ended up learning something much more important:</p><p><strong>“No matter what happens, I should not stop learning.”</strong></p><p>There will always be things we cannot control.</p><p>There will always be setbacks.</p><p>But there will also always be something new we can learn.</p><p>So if you’re going through a difficult phase right now, you don’t need to have everything figured out.</p><p>Start small.</p><p>Learn something.</p><p>Build something.</p><p>Try something new.</p><p>And most importantly:<br>“<strong><em>Don’t stop learning. Don’t stop growing. Keep moving forward.</em></strong><em> 🚀”</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c9ca0ef5503" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the Stock Market: Simple and Clear Explanation]]></title>
            <link>https://medium.com/@shrishadhajambudurai/understanding-the-stock-market-simple-and-clear-explanation-be596571c006?source=rss-cd682c971f9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/be596571c006</guid>
            <dc:creator><![CDATA[Shrishadhajambudurai]]></dc:creator>
            <pubDate>Tue, 25 Nov 2025 18:06:01 GMT</pubDate>
            <atom:updated>2025-11-25T18:06:01.644Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*-MNqhZ6Qtgt-dXbRcYDQog.jpeg" /></figure><h3>What Is the Stock Market?</h3><p>The stock market is a place where people buy and sell shares.<br> A share is simply a tiny piece of a company.<br> When you buy a share, you become a small owner of that company.</p><h3>Why Do Companies Sell Shares?</h3><p>Companies need money to expand their business. They usually have two choices:</p><ol><li>Take a loan from a bank</li><li>Sell shares to the public and collect money</li></ol><p>When a company sells its shares to the public for the first time, it is called an IPO (Initial Public Offering).</p><h3>Why Do People Invest in Shares?</h3><p>People invest in shares because they can:</p><p>1.Earn profit when the share price increases</p><p>2.Receive dividends, which is a part of the company’s profit</p><p>3.Build long-term wealth</p><p>4.Protect their money from inflation</p><h3>Why Do Share Prices Go Up or Down?</h3><p>Share prices change based on demand and supply.</p><p>1.If more people want to buy a share → The price will increase</p><p>2.If more people want to sell → The price will decrease</p><p>The demand and supply depend on many things:</p><p>1.How well the company is performing</p><p>2.News about the company</p><p>3.Country’s economic condition</p><p>4.World events</p><p>5.How investors feel (positive or negative)</p><h3>Where Are Shares Traded in India?</h3><p>In India, shares are traded on two main stock exchanges:</p><ol><li><strong>NSE — National Stock Exchange</strong></li><li><strong>BSE — Bombay Stock Exchange</strong></li></ol><h3>Popular indices:</h3><ol><li><strong>Nifty 50</strong> :</li></ol><p>Nifty 50 is an index of the National Stock Exchange (NSE).</p><p>It includes the top 50 best and biggest companies in India.</p><p>These 50 companies are selected based on:</p><ul><li>Size</li><li>Performance</li><li>Trading volume</li></ul><p><strong>2.Sensex :</strong></p><ul><li>Sensex is an index of the Bombay Stock Exchange (BSE).</li><li>It includes the top 30 best and biggest companies in India.</li></ul><p>These indices show whether the overall market is going up or down.</p><h3>Why Do We Need These Indices?</h3><p>Because there are thousands of companies in the stock market.</p><p>We can’t check every company’s price.<br> So we check only the overall score using Nifty or Sensex.</p><h3>Types of Shares</h3><p><strong>1.Large Cap Stocks:</strong> Very big and stable companies</p><p><strong>2.Mid Cap Stocks:</strong> Medium-sized growing companies</p><p><strong>3.Small Cap Stocks:</strong> Small companies with high risk but high return potential</p><h3>Ways to Invest in the Stock Market</h3><h3>1️.Delivery Trading (Long-Term Investing)</h3><p>You buy shares and hold them for months or years.<br> This is the safest and best method to build wealth.</p><h3>2️.Intraday Trading</h3><p>You buy and sell shares on the same day.<br> This is very risky and not recommended for beginners.</p><h3>3️.F&amp;O — Futures and Options</h3><p>Here you trade contracts, not actual shares.<br> This is extremely risky if you don’t understand it well.</p><h3>4️.Mutual Funds</h3><p>Your money is managed by professional fund managers.<br> Great option for beginners.</p><h3>Fundamental Analysis</h3><p>This tells you whether the company is strong or weak.<br> You check things like:</p><ul><li>Revenue</li><li>Profit</li><li>Debt</li><li>Dividends</li><li>Management quality</li><li>Future growth of the industry</li></ul><p>Used mainly for long-term investment.</p><h3>Technical Analysis</h3><p>This is used to study price movements on charts.<br> Mostly used by traders.</p><p>Common tools:</p><ul><li>Moving Averages</li><li>RSI</li><li>MACD</li><li>Support and Resistance</li><li>Trendlines</li></ul><h3>How to Start Investing in India</h3><ol><li>Open a Demat and Trading account on platforms like Zerodha, Groww, Angel One, etc.</li><li>Add money to your account</li><li>Choose the shares or mutual funds you want to buy</li><li>Buy and hold them</li></ol><h3>Risks in the Stock Market</h3><p>1.Share prices can fall suddenly</p><p>2.The company may perform badly</p><p>3.Wrong timing of buying or selling</p><p>5.High risk in F&amp;O trading</p><p>Risk cannot be avoided completely, but it can be managed well.</p><h3>How to Reduce Risk</h3><p>1.Invest in strong and reliable companies</p><p>2.Spread your money across different sectors</p><p>3.Think long-term</p><p>4.Don’t panic when prices fall</p><p>5.Avoid intraday trading if you are new</p><p>6.Begin with mutual funds or index funds</p><p><a href="https://medium.com/u/b19f3c2484a0">Senthil Kumar</a></p><p><a href="https://medium.com/u/6ff84f1aab3e">Dhileepan</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be596571c006" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step-by-Step Guide to Selection Sort]]></title>
            <link>https://medium.com/@shrishadhajambudurai/step-by-step-guide-to-selection-sort-5b98048fb4a0?source=rss-cd682c971f9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b98048fb4a0</guid>
            <dc:creator><![CDATA[Shrishadhajambudurai]]></dc:creator>
            <pubDate>Mon, 08 Sep 2025 19:23:17 GMT</pubDate>
            <atom:updated>2025-09-08T19:23:17.466Z</atom:updated>
            <content:encoded><![CDATA[<p>Sorting means arranging things in order. For example, arranging numbers from small to big or names in alphabetical order. In computer science, sorting helps to search and manage data easily. One of the simplest sorting methods is Selection Sort.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/0*sviMVtcHhH2mCpS1.jpg" /></figure><h3>What is Selection Sort?</h3><p>Selection Sort is a method where we repeatedly pick the smallest number from the list and place it at the correct position. We keep doing this until the whole list is sorted.</p><h3>How it Works</h3><p>Let us take an example list:</p><p>[64, 25, 12, 22, 11]</p><p>Step 1: Find the smallest number (11) and put it at the first place -&gt;[11, 25, 12, 22, 64]</p><p>Step 2: Find the next smallest (12) and put it in the second place -&gt;[11, 12, 25, 22, 64]</p><p>Step 3: Find the next smallest (22) and put it in the third place -&gt;[11, 12, 22, 25, 64]</p><p>Step 4: Next smallest (25) is already in the right place.</p><p>Step 5: The list is sorted -&gt;[11, 12, 22, 25, 64]</p><h3>Example code</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8fVwNdxa5jxYbo7NY8c96g.png" /></figure><p><strong>public class SelectionSort {</strong><br> This creates a class named SelectionSort. In Java, every program must be inside a class.</p><p><strong>public static void selectionSort(int arr[]) {</strong><br> This is a method called selectionSort. It will take an array of numbers and arrange them in order.</p><p><strong>int n = arr.length;</strong><br> Here we find the length of the array, which means how many numbers are inside it.</p><p><strong>for (int i = 0; i &lt; n — 1; i++) {</strong><br> This is the outer loop. It goes through the array one by one. Each time, it will place one number in the correct position.</p><p><strong>int minIndex = i;</strong><br> At the beginning of each loop, we assume the current number is the smallest.</p><p><strong>for (int j = i + 1; j &lt; n; j++) {</strong><br> This is the inner loop. It checks the rest of the array to find if there is a smaller number.</p><p><strong>if (arr[j] &lt; arr[minIndex]) { minIndex = j; }</strong><br> If a smaller number is found, we update minIndex to remember its position.</p><p><strong>int temp = arr[minIndex]; arr[minIndex] = arr[i]; arr[i] = temp;</strong><br> After finding the smallest number, we swap it with the number at position i. This puts the smallest number in the right place.</p><p><strong>public static void main(String[] args) {</strong><br> This is where the program starts running.</p><p><strong>int arr[] = {64, 25, 12, 22, 11};</strong><br> Here we create an array with 5 numbers.</p><p><strong>System.out.println(“Original array:”);</strong><br> This prints the message “Original array:” on the screen.</p><p><strong>for (int num : arr) { System.out.print(num + “ “); }</strong><br> This prints all the numbers in the array before sorting.</p><p><strong>selectionSort(arr);</strong><br> Here we call the selectionSort method to sort the array.</p><p><strong>System.out.println(“\nSorted array:”);</strong><br> This prints the message “Sorted array:” on the screen.</p><p><strong>for (int num : arr) { System.out.print(num + “ “); }</strong><br> This prints all the numbers after sorting.</p><h3>output</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SKyiClzSWZeM9r_n3_oqtQ.png" /></figure><h3>Advantages</h3><p>Very easy to understand.</p><p>Works fine for small lists.</p><p>Uses less memory.</p><h3>Disadvantages</h3><p>Very slow for large lists.</p><p>Takes the same time even if the list is almost sorted.</p><h3>Conclusion</h3><p>Selection Sort is simple and clear to understand. It may not be the fastest, but it helps in learning how sorting works and is useful in small cases.</p><p><a href="https://medium.com/u/b19f3c2484a0">Senthil Kumar</a></p><p><a href="https://medium.com/u/6ff84f1aab3e">Dhileepan</a></p><p><a href="https://medium.com/u/3019a213a021">Maheshkumar Srinivasan</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b98048fb4a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Order-Agnostic Binary Search]]></title>
            <link>https://medium.com/@shrishadhajambudurai/order-agnostic-binary-search-12280edaf313?source=rss-cd682c971f9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/12280edaf313</guid>
            <dc:creator><![CDATA[Shrishadhajambudurai]]></dc:creator>
            <pubDate>Thu, 04 Sep 2025 09:04:28 GMT</pubDate>
            <atom:updated>2025-09-04T09:04:28.106Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tvoibMIegCfnLtrG" /></figure><h3>Introduction</h3><p>Normally, when we use binary search, we think the array is sorted in ascending order . But sometimes the array may be sorted in descending order . A normal binary search will not work correctly in that case. That is why we use Order-Agnostic Binary Search. It can work for both ascending and descending arrays.</p><h3>How It Works</h3><p>1)First, check the order of the array:</p><p>If the first number is smaller than the last number -&gt;array is ascending.</p><p>Otherwise -&gt;array is descending.</p><p>2)After finding the order, we use binary search rules:</p><p>If ascending:</p><p>If target is smaller than middle element -&gt;search left side.</p><p>If target is bigger than middle element -&gt;search right side.</p><p>If descending:</p><p>If target is bigger than middle element -&gt;search left side.</p><p>If target is smaller than middle element -&gt;search right side.</p><p>3)Repeat this process until you find the number or until no elements are left.</p><h3>Code Example in Java</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cMA4Dh7AuK8FuF0RwP4z5w.png" /></figure><p>output of the code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rFnSjVQH2Qoa1U6LKSWoTQ.png" /></figure><h3>Advantages</h3><p>Works for both ascending and descending arrays.</p><p>Saves time since we don’t need two different functions.</p><p>Still takes O(log n) time like normal binary search.</p><h3>Conclusion</h3><p>Order-Agnostic Binary Search is a simple twist to the normal binary search. The best part is, you don’t need to worry about the order of the array. Just write this one function and it will work for both.</p><p><a href="https://medium.com/u/b19f3c2484a0">Senthil Kumar</a></p><p><a href="https://medium.com/u/6ff84f1aab3e">Dhileepan</a></p><p><a href="https://medium.com/u/3019a213a021">Maheshkumar Srinivasan</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12280edaf313" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Binary Search Explained: From Scratch to Advanced]]></title>
            <link>https://medium.com/@shrishadhajambudurai/binary-search-explained-from-scratch-to-advanced-826f706bb03b?source=rss-cd682c971f9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/826f706bb03b</guid>
            <dc:creator><![CDATA[Shrishadhajambudurai]]></dc:creator>
            <pubDate>Wed, 03 Sep 2025 18:13:56 GMT</pubDate>
            <atom:updated>2025-09-03T18:13:56.146Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N3ZinOy3KjIGxwil.png" /></figure><p>Searching is something we do every day. When you look for a word in a dictionary, you don’t read from the first page to the last. Instead, you open the middle, check, and then decide whether to go left or right. This is exactly how Binary Search works.</p><h3>What is Binary Search?</h3><p>Binary Search is a fast way to find an element in a sorted array.<br> Instead of checking one by one (like Linear Search), Binary Search cuts the search space into half each time.</p><ul><li>Works only on sorted data (ascending or descending).</li><li>Much faster than Linear Search.</li></ul><h3>How Binary Search Works (Step by Step)</h3><p>1)Start with two pointers:</p><p>low = 0(first index)</p><p>high = arr.length-1(last index)</p><p>2)Find the middle index : mid=(low+high)/2</p><p>3)Compare the element at mid with the key:</p><p>If equal -&gt;Found!</p><p>If key &lt; arr[mid] -&gt; search in left half.</p><p>If key &gt; arr[mid] -&gt; search in right half.</p><p>4)Repeat until low&gt;high. If not found, return -1.</p><p><strong>Example</strong></p><p>lets take an array</p><p>int arr[] = {2, 5, 8, 12, 16, 23, 38, 56, 72, 91}</p><p>Key = 23</p><p>Step 1: low=0, high=9 -&gt;mid=4 → arr[4]=16. Key is bigger -&gt;search right half.</p><p>Step 2: low=5, high=9 -&gt;mid=7 -&gt;arr[7]=56. Key is smaller -&gt;search left half.</p><p>Step 3: low=5, high=6 -&gt;mid=5 -&gt; arr[5]=23. Found!</p><h3><strong>Code Example in Java</strong></h3><pre>package code;<br><br>public class BinarySearch{<br>    public static int binarySearch(int[] arr, int key) {<br>        int low = 0, high = arr.length - 1;<br><br>        while (low &lt;= high) {<br>            int mid = (low + high) / 2;<br><br>            if (arr[mid] == key) {<br>                return mid; // element found<br>            } else if (arr[mid] &lt; key) {<br>                low = mid + 1; // search right half<br>            } else {<br>                high = mid - 1; // search left half<br>            }<br>        }<br>        return -1; // not found<br>    }<br><br>    public static void main(String[] args) {<br>        int[] nums = {2, 5, 8, 12, 16, 23, 38, 56, 72, 91};<br>        int key = 23;<br><br>        int result = binarySearch(nums, key);<br><br>        if (result == -1) {<br>            System.out.println(&quot;Element not found&quot;);<br>        } else {<br>            System.out.println(&quot;Element found at index: &quot; + result);<br>        }<br>    }<br>}<br><br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4XqABTpdBf0Bdwbs3borBQ.png" /></figure><p>Explanation:</p><p>This program shows how binary search works in Java. First, we create a method called binarySearch that takes a sorted array and the number we want to find. We start with two pointers: low at the beginning of the array and high at the end. Inside a loop, we calculate the middle index. If the middle element is equal to the number we are looking for, we return its index. If the middle element is smaller than the number, we move the low pointer to the right side because the number must be in the right half. If the middle element is bigger, we move the high pointer to the left side because the number must be in the left half. This process keeps reducing the search space until we either find the number or the pointers cross each other, which means the number is not in the array. In the main method, we test this by searching for 23 in the array, and the program prints the index where it is found.</p><p>output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vzgFxfy-mOxMFqyuqnmtTQ.png" /></figure><h3>Advantages of Binary Search</h3><p>Instead of checking each element one by one, it eliminates half of the array at every step.</p><p>Works very well when the dataset is huge, because the time complexity is only O(log n).</p><p>The basic idea is easy: keep dividing into halves until you find the element</p><p>Since it always halves the search space, it has a fixed maximum number of steps.</p><h3>Disadvantages of Binary Search</h3><p>It only works correctly if the array is sorted. If the data is unsorted, you must sort it first (which takes extra time).</p><p>If you keep adding or removing elements, maintaining the sorted order is expensive.</p><p>Binary search is efficient in arrays (where you can directly access any index), but not as useful in linked lists.</p><p>For very small datasets, linear search might be simpler and just as fast.</p><p>Binary search is efficient in arrays (where you can directly access any index), but not as useful in linked lists.</p><p>For very small datasets, linear search might be simpler and just as fast.</p><h3>Conclusion</h3><p>Binary Search is a powerful algorithm that saves time by cutting the search space in half. Start simple -&gt; find one element. Then learn advanced variations -&gt;first/last occurrence, count, rotated arrays.Once you master Binary Search, many coding interview problems will feel much easier.</p><p><a href="https://medium.com/u/6ff84f1aab3e">Dhileepan</a></p><p><a href="https://medium.com/u/b19f3c2484a0">Senthil Kumar</a></p><p><a href="https://medium.com/u/3019a213a021">Maheshkumar Srinivasan</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=826f706bb03b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linear Search Explained Simply]]></title>
            <link>https://medium.com/@shrishadhajambudurai/linear-search-explained-simply-459255b37b5d?source=rss-cd682c971f9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/459255b37b5d</guid>
            <dc:creator><![CDATA[Shrishadhajambudurai]]></dc:creator>
            <pubDate>Tue, 02 Sep 2025 17:29:05 GMT</pubDate>
            <atom:updated>2025-09-02T17:29:05.650Z</atom:updated>
            <content:encoded><![CDATA[<p>Searching means finding something in a list.<br> For example: You want to find your friend’s name in your contact list. The easiest way to do this is Linear Search.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/0*JskAx5EkrrPxBJ7S.jpg" /></figure><h3>What is Linear Search?</h3><p>Linear Search means checking one by one until you find the item you are looking for.</p><ul><li>Start at the first element.</li><li>Look at it. If it is what you want → stop.</li><li>If not, move to the next element.</li><li>Continue until you find it or reach the end.</li></ul><h3>Real Life Example</h3><p>Imagine you have 5 books in a pile:</p><p>Math | Science | English | History | Biology</p><p>You want to find English.</p><ul><li>First, check Math -&gt; not English.</li><li>Next, check Science -&gt; not English.</li><li>Next, check English -&gt; found it!</li></ul><p>This is exactly how Linear Search works.</p><h3>Steps of Linear Search</h3><p>Start from the first item.</p><p>Compare it with what you want.</p><p>If it matches -&gt; you found it.</p><p>If not -&gt; go to the next item.</p><p>Continue until the end.</p><p>Lets see a few examples</p><h3><strong>Example in java</strong></h3><ol><li><strong>Code that Returns the Index</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZPB-hsKIhKlHU3LdavO0MQ.png" /></figure><p><strong>Explanation:</strong></p><ul><li>The loop checks each number in the array.</li><li>If it matches the target, we return its position (index).</li><li>If it is not found, we return -1.</li></ul><p>output of the code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hxO4GiYb0lrDg2K_O_vMAg.png" /></figure><p>The number 19 is present in the index 5.</p><p><strong>2. Code that Returns the Element</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oyAy4gzMZ_E-ZbAb1bD1xw.png" /></figure><p><strong>Explanation:</strong></p><ul><li>The loop checks each number in the array. We use for each loop to check each element in the array.</li><li>If it matches, we return the number itself.</li><li>If it is not found, we return -1.</li></ul><p>output of the code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GxK4YNs0FDhiMVpN_86foA.png" /></figure><p>The code returns the value 19 as it is present in the array.</p><p><strong>3. Code that Returns True/False</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6kaphLhGITYh4-kZ08b16A.png" /></figure><p><strong>Explanation:</strong></p><ul><li>The loop checks each number in the array.</li><li>If it matches, we return true.</li><li>If not found, we return false.</li></ul><p>output of the code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sN5p6jDD23Mw2uzxEadcxg.png" /></figure><p>It returns true as the element in present in the array.</p><h3>Advantages of Linear Search</h3><p>Works on both sorted and unsorted data.<br> Very simple to implement.<br> No extra memory needed.</p><h3>Disadvantages of Linear Search</h3><p>Slow for large datasets.<br> Inefficient compared to faster algorithms like Binary Search.</p><h3>Conclusion</h3><p>Linear Search is the most basic searching algorithm. It’s not the most efficient, but it is useful for understanding how searching works and is practical when dealing with small datasets or unsorted lists.</p><p><a href="https://medium.com/u/b19f3c2484a0">Senthil Kumar</a></p><p><a href="https://medium.com/u/6ff84f1aab3e">Dhileepan</a></p><p><a href="https://medium.com/u/3019a213a021">Maheshkumar Srinivasan</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=459255b37b5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[First Steps in Data Structures: Arrays and ArrayLists]]></title>
            <link>https://medium.com/@shrishadhajambudurai/first-steps-in-data-structures-arrays-and-arraylists-560d32dbb852?source=rss-cd682c971f9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/560d32dbb852</guid>
            <dc:creator><![CDATA[Shrishadhajambudurai]]></dc:creator>
            <pubDate>Sun, 31 Aug 2025 19:02:03 GMT</pubDate>
            <atom:updated>2025-08-31T19:02:40.758Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are starting your journey in Data Structures and Algorithms (DSA), learning about arrays and ArrayLists is the first step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/0*jwAOxluYeb-wWGnk.png" /></figure><ol><li><strong>Array</strong></li></ol><p>An array is a way to store many values of the same type in a single variable.</p><p>Key points:</p><ul><li>The size of an array is fixed.</li><li>Elements are accessed using indices starting from 0.</li></ul><p>Lets get more clear by this example.</p><pre>import java.util.Scanner;<br><br>public class ArrayExample {<br>    public static void main(String[] args) {<br>        Scanner in = new Scanner(System.in);<br><br>        // Create an array of size 5<br>        int[] numbers = new int[5];<br><br>        // Input 5 numbers from the user<br>        System.out.println(&quot;Enter 5 integers:&quot;);<br>        for (int i = 0; i &lt; numbers.length; i++) {<br>            numbers[i] = in.nextInt(); // Store user input in the array<br>        }<br><br>        // Print the array elements<br>        System.out.println(&quot;The numbers you entered are:&quot;);<br>        for (int i = 0; i &lt; numbers.length; i++) {<br>            System.out.println(&quot;numbers[&quot; + i + &quot;] = &quot; + numbers[i]);<br>        }<br><br>       <br>    }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5RkI1gpzPnZG6vo2Er756A.png" /></figure><h3>2. 2D Array</h3><p>A 2D array is like a table with rows and columns. It is an array of arrays.</p><p><strong>Key points:</strong></p><ul><li>Access elements using two indices: row and column.</li></ul><p>Lets get more clear by this example.</p><pre>import java.util.Scanner;<br><br>public class TwoDArrayExample {<br>    public static void main(String[] args) {<br>        Scanner in = new Scanner(System.in);<br><br>        // Create a 2D array with 3 rows and 3 columns<br>        int[][] matrix = new int[3][3];<br><br>        // Input values for the 2D array<br>        System.out.println(&quot;Enter 9 integers for 3x3 matrix:&quot;);<br>        for (int i = 0; i &lt; matrix.length; i++) {       // Loop through rows<br>            for (int j = 0; j &lt; matrix[i].length; j++) { // Loop through columns<br>                matrix[i][j] = in.nextInt();            // Store input in matrix[i][j]<br>            }<br>        }<br><br>        // Print the 2D array<br>        System.out.println(&quot;The matrix you entered is:&quot;);<br>        for (int i = 0; i &lt; matrix.length; i++) {<br>            for (int j = 0; j &lt; matrix[i].length; j++) {<br>                System.out.print(matrix[i][j] + &quot; &quot;); // Print each element<br>            }<br>            System.out.println(); // New line after each row<br>        }<br><br>        <br>    }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uk8SGTadUMtRN4VP25vAlg.png" /></figure><h3>3. Dynamic Array / ArrayList</h3><p>An ArrayList is like an array but can grow or shrink during runtime.</p><p><strong>Key points:</strong></p><ul><li>Can add or remove values anytime.</li><li>Stores objects only (use Integer for integers).</li></ul><pre>import java.util.ArrayList;<br>import java.util.Scanner;<br><br>public class ArrayListExample {<br>    public static void main(String[] args) {<br>        Scanner in = new Scanner(System.in);<br><br>        // Create an empty ArrayList to store integers<br>        ArrayList&lt;Integer&gt; list = new ArrayList&lt;&gt;();<br><br>        System.out.println(&quot;Enter 5 integers to store in ArrayList:&quot;);<br>        for (int i = 0; i &lt; 5; i++) {<br>            int num = in.nextInt();<br>            list.add(num); // Add number to ArrayList<br>        }<br><br>        // Print the ArrayList<br>        System.out.println(&quot;The numbers in ArrayList are:&quot;);<br>        System.out.println(list);<br><br>        // Remove the second element (index 1)<br>        list.remove(1);<br>        System.out.println(&quot;After removing second element:&quot;);<br>        System.out.println(list);<br><br>        <br>    }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mhMIUG_xAJOe8MK8uq_JpA.png" /></figure><h3>Conclusion</h3><p>Arrays, 2D arrays, and ArrayLists are ways to store and manage data in Java.</p><ul><li>Arrays are simple and fast but cannot change size.</li><li>2D arrays store data in rows and columns like a table.</li><li>ArrayLists are flexible because they can grow or shrink.</li></ul><p>Learning these is the first step in Data Structures and Algorithms. They help you write programs that are organized and efficient.</p><p><a href="https://medium.com/u/6ff84f1aab3e">Dhileepan</a></p><p><a href="https://medium.com/u/b19f3c2484a0">Senthil Kumar</a></p><p><a href="https://medium.com/u/3019a213a021">Maheshkumar Srinivasan</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=560d32dbb852" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Story That Touched My Heart]]></title>
            <link>https://medium.com/@shrishadhajambudurai/a-story-that-touched-my-heart-3fbfa869c90c?source=rss-cd682c971f9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fbfa869c90c</guid>
            <dc:creator><![CDATA[Shrishadhajambudurai]]></dc:creator>
            <pubDate>Thu, 21 Aug 2025 16:37:54 GMT</pubDate>
            <atom:updated>2025-08-21T16:38:55.039Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*uXV08KQtIbZhbQuqjuRawg.jpeg" /></figure><p>Today in our meeting, I shared the story of a brave woman, Muniba Mazari. Her life story is full of pain, but also full of hope and inspiration.</p><p>Muniba was just 21 years old when she had a terrible car accident with her husband. In that accident, she suffered serious injuries. Her backbone was crushed, her ribs were broken, her arm and collarbone were damaged, and her liver was badly hurt. The doctors told her she would never be able to walk again, and she would have to spend her life in a wheelchair. They also told her she would never be able to become a mother.</p><p>At such a young age, these words could have broken anyone completely. Her husband also left her after the accident, which made her feel even more alone. But instead of giving up, Muniba chose a new path.</p><p>She decided to live life with courage. She started painting, and her art gave her a way to express her feelings. Later, she became a motivational speaker and started sharing her story with the world. Even though she could not have her own children, she adopted a baby boy and gave him all her love.</p><p>Muniba’s journey shows that no matter how many struggles life gives us, we can still choose to stand strong. She turned her pain into power and became an inspiration for millions of people.</p><p>When I told this story in the meeting, I felt very emotional. It reminded me that life is not about what we lose, but about what we create with what we still have. Her story made me realize the importance of hope, courage, and never giving up.</p><p><strong>Moral of the Story</strong></p><p>Life will give us difficulties, but we should never stop living. With hope, courage, and love, we can turn even our darkest moments into a source of light for ourselves and for others.</p><p><a href="https://medium.com/u/6ff84f1aab3e">Dhileepan</a></p><p><a href="https://medium.com/u/b19f3c2484a0">Senthil Kumar</a></p><p><a href="https://medium.com/u/3019a213a021">Maheshkumar Srinivasan</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fbfa869c90c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>