<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Prasoon  Jadon </title>
    <description>The latest articles on DEV Community by Prasoon  Jadon  (@pjdeveloper896).</description>
    <link>https://dev.to/pjdeveloper896</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3206128%2Fcf96660d-2ea8-4527-aa48-82ee3e48a87c.png</url>
      <title>DEV Community: Prasoon  Jadon </title>
      <link>https://dev.to/pjdeveloper896</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pjdeveloper896"/>
    <language>en</language>
    <item>
      <title>Why Averages Lie: Understanding Mean, Median with Real Data</title>
      <dc:creator>Prasoon  Jadon </dc:creator>
      <pubDate>Mon, 06 Apr 2026 11:23:11 +0000</pubDate>
      <link>https://dev.to/pjdeveloper896/why-averages-lie-understanding-mean-median-with-real-data-2e00</link>
      <guid>https://dev.to/pjdeveloper896/why-averages-lie-understanding-mean-median-with-real-data-2e00</guid>
      <description>

&lt;h2&gt;
  
  
  🧠 Introduction
&lt;/h2&gt;

&lt;p&gt;In any dataset, we often face a simple question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Can we represent all this data using a single number?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Whether it’s exam scores, income levels, or age distributions — we try to &lt;strong&gt;summarize complexity into simplicity&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This idea leads us to &lt;strong&gt;central tendency&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  📌 What is Central Tendency?
&lt;/h2&gt;

&lt;p&gt;Central tendency refers to the &lt;strong&gt;representative value&lt;/strong&gt; of a dataset — the point around which the data tends to cluster.&lt;/p&gt;

&lt;p&gt;It helps answer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;What is typical?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Where does the data concentrate?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What does this dataset “look like” overall?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔢 Measures of Central Tendency
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1️⃣ Mean (Average)
&lt;/h3&gt;

&lt;p&gt;[ \text{Mean} = \frac{\sum x_i}{n} ]&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Represents the &lt;strong&gt;balance point&lt;/strong&gt; of the dataset&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Highly sensitive to &lt;strong&gt;outliers&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  2️⃣ Median (Middle Value)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The &lt;strong&gt;middle value&lt;/strong&gt; after sorting data&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If even number of values → average of two middle values&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;👉 More &lt;strong&gt;robust&lt;/strong&gt; than mean in real-world datasets&lt;/p&gt;




&lt;h3&gt;
  
  
  3️⃣ Mode (Most Frequent Value)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The value that appears &lt;strong&gt;most often&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Useful for both &lt;strong&gt;numerical and categorical data&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  ⚠️ When Averages Mislead
&lt;/h2&gt;

&lt;p&gt;Consider:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;2, 3, 4, 5, 100
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Mean = 22.8 ❌&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Median = 4 ✅&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;👉 The mean is distorted by an extreme value.&lt;/p&gt;




&lt;h3&gt;
  
  
  🧭 Insight
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;A single number cannot always capture reality. The choice of measure defines the “truth” you see.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  🧪 Practical Implementation (Python)
&lt;/h2&gt;

&lt;p&gt;Using the &lt;strong&gt;Titanic dataset&lt;/strong&gt;, we analyze the &lt;strong&gt;Age&lt;/strong&gt; column.&lt;/p&gt;

&lt;h3&gt;
  
  
  🔹 Code
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;pandas&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;matplotlib.pyplot&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;plt&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;seaborn&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;sns&lt;/span&gt;

&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read_csv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;r&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;C:\Users\praso\vyomadatascience\module02\titanic.csv&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;head&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Mean Age:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Age&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Mode Age:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Age&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Median Age:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Age&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;median&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  📊 Optional Visualization
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;sns&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;histplot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Age&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;dropna&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt; &lt;span class="n"&gt;kde&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;title&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Age Distribution (Titanic Dataset)&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;xlabel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Age&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ylabel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Frequency&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;show&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  📂 Dataset Reference
&lt;/h2&gt;

&lt;p&gt;You can download the Titanic dataset from:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Titanic Dataset&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Official Kaggle link: &lt;a href="https://www.kaggle.com/datasets/yasserh/titanic-dataset" rel="noopener noreferrer"&gt;https://www.kaggle.com/datasets/yasserh/titanic-dataset&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;(You can place it in your project folder: &lt;code&gt;module02/titanic.csv&lt;/code&gt;)&lt;/p&gt;




&lt;h2&gt;
  
  
  💻 GitHub Repo
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Download the github repo of our course from here : &lt;a href="https://github.com/psjdeveloper/vyomadatascience" rel="noopener noreferrer"&gt;https://github.com/psjdeveloper/vyomadatascience&lt;/a&gt;
&lt;/h2&gt;




&lt;h2&gt;
  
  
  🧭 Final Reflection
&lt;/h2&gt;

&lt;p&gt;Central tendency is not just about computing mean, median, or mode.&lt;/p&gt;

&lt;p&gt;It is about understanding:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;How data behaves&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;How summaries can distort reality&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;And how &lt;strong&gt;interpretation matters more than calculation&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  ✍️ Closing Line
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Data does not speak for itself. The way we summarize it decides what it says.&lt;/p&gt;
&lt;/blockquote&gt;




</description>
      <category>python</category>
      <category>learning</category>
      <category>tutorial</category>
      <category>datascience</category>
    </item>
    <item>
      <title>“Do Not Type… The Web App That Fights Back 😈”</title>
      <dc:creator>Prasoon  Jadon </dc:creator>
      <pubDate>Fri, 03 Apr 2026 11:59:03 +0000</pubDate>
      <link>https://dev.to/pjdeveloper896/do-not-type-the-web-app-that-fights-back--44pa</link>
      <guid>https://dev.to/pjdeveloper896/do-not-type-the-web-app-that-fights-back--44pa</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/aprilfools-2026"&gt;DEV April Fools Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;I built a delightfully useless prank web app called &lt;strong&gt;“Do Not Type…”&lt;/strong&gt;.  &lt;/p&gt;

&lt;p&gt;It is intentionally chaotic and serves zero real-world purpose, designed purely to confuse and amuse anyone who tries to use it.  &lt;/p&gt;

&lt;h3&gt;
  
  
  Features:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Blocks typing&lt;/strong&gt; anywhere on the page, making the input impossible to use normally.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Randomly moves&lt;/strong&gt; the input field when you hover over it.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plays a sound&lt;/strong&gt; and &lt;strong&gt;flashes the background red&lt;/strong&gt; for extra dramatic effect.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Displays a “Hehe… April Fool 😈”&lt;/strong&gt; message with a counter for every attempt to type.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shakes the screen&lt;/strong&gt; for maximum chaos.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Console joke&lt;/strong&gt;: logs &lt;code&gt;Error 418: I'm a teapot ☕&lt;/code&gt; as a nod to Larry Masinter and internet silliness.
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This project embraces the spirit of the DEV April Fools Challenge: useless, confusing, and hilarious.  &lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://psjdeveloper.github.io/do-not-type/" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;psjdeveloper.github.io&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/psjdeveloper" rel="noopener noreferrer"&gt;
        psjdeveloper
      &lt;/a&gt; / &lt;a href="https://github.com/psjdeveloper/do-not-type" rel="noopener noreferrer"&gt;
        do-not-type
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;do-not-type&lt;/h1&gt;

&lt;/div&gt;
&lt;/div&gt;



&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/psjdeveloper/do-not-type" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;HTML, CSS, and JavaScript&lt;/li&gt;
&lt;li&gt;Used &lt;code&gt;document.addEventListener('keydown')&lt;/code&gt; so prank works even if input loses focus&lt;/li&gt;
&lt;li&gt;Added animations for pulse and shake effects&lt;/li&gt;
&lt;li&gt;Forced focus on the input to trap the user&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Prize Category
&lt;/h2&gt;

&lt;p&gt;I am submitting this entry for &lt;strong&gt;Best Ode to Larry Masinter&lt;/strong&gt;.  &lt;/p&gt;

&lt;p&gt;Why:&lt;br&gt;&lt;br&gt;
This prank web app pays homage to Larry Masinter’s famous joke protocol, HTCPCP, by including the classic &lt;strong&gt;“418: I’m a teapot”&lt;/strong&gt; console message.&lt;br&gt;&lt;br&gt;
It embraces the spirit of silliness and uselessness that the April Fools Challenge celebrates, making it a perfect nod to teapots and internet humor.  &lt;/p&gt;

</description>
      <category>418challenge</category>
      <category>showdev</category>
      <category>devchallenge</category>
    </item>
    <item>
      <title>🧠 Building an Expectation-Based AI Governance Model (EBAGM) in Python</title>
      <dc:creator>Prasoon  Jadon </dc:creator>
      <pubDate>Tue, 31 Mar 2026 12:04:29 +0000</pubDate>
      <link>https://dev.to/pjdeveloper896/building-an-expectation-based-ai-governance-model-ebagm-in-python-2cgc</link>
      <guid>https://dev.to/pjdeveloper896/building-an-expectation-based-ai-governance-model-ebagm-in-python-2cgc</guid>
      <description>&lt;h1&gt;
  
  
  🧠 Building an Expectation-Based AI Governance Model (EBAGM) in Python
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;What if AI governance wasn’t just about accuracy—but about aligning with human expectations?&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🚀 Introduction
&lt;/h2&gt;

&lt;p&gt;Most AI systems today are evaluated using metrics like &lt;strong&gt;accuracy, precision, and recall&lt;/strong&gt;. But in real-world scenarios, that’s not enough.&lt;/p&gt;

&lt;p&gt;A model can be &lt;em&gt;technically correct&lt;/em&gt; and still feel &lt;strong&gt;unfair, biased, or unethical&lt;/strong&gt; to humans.&lt;/p&gt;

&lt;p&gt;This is where a new idea comes in:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Expectation-Based AI Governance Model (EBAGM)&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Instead of only focusing on data and outputs, EBAGM introduces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Human &lt;strong&gt;expectations&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Perceived intent&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Ethical alignment&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In this blog, I’ll walk you through building a &lt;strong&gt;working prototype in Python&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  ⚙️ What is EBAGM?
&lt;/h2&gt;

&lt;p&gt;EBAGM is a governance framework with 5 layers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Expectation Layer (E)&lt;/strong&gt; → What humans expect (fairness, privacy, etc.)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data Governance (D → D')&lt;/strong&gt; → Modify data based on expectations&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model (M)&lt;/strong&gt; → AI decision-making&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Perceived Intent (P)&lt;/strong&gt; → Does AI &lt;em&gt;feel&lt;/em&gt; fair?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Feedback Loop&lt;/strong&gt; → Adjust system if misaligned&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  🧪 Step 1: Creating a Biased Dataset
&lt;/h2&gt;

&lt;p&gt;We simulate a loan approval system with built-in bias.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;pandas&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;

&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;seed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;42&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DataFrame&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;income&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;randint&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;100000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;credit_score&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;randint&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;850&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;gender&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;choice&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;

&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;approved&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;income&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;50000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;credit_score&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;600&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;astype&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Bias toward males
&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;loc&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;gender&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;approved&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;|=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;rand&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mf"&gt;0.7&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🧠 Step 2: Defining Expectations
&lt;/h2&gt;

&lt;p&gt;This is the core of EBAGM.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;expectations&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;fairness&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.9&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;accuracy&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;privacy&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.7&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 Here, fairness is prioritized.&lt;/p&gt;




&lt;h2&gt;
  
  
  ⚖️ Step 3: Data Governance
&lt;/h2&gt;

&lt;p&gt;If fairness is high, we remove sensitive attributes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;apply_governance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expectations&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;copy&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;expectations&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;fairness&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mf"&gt;0.8&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;drop&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;columns&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;gender&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;

&lt;span class="n"&gt;governed_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;apply_governance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expectations&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🤖 Step 4: Train the Model
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;sklearn.model_selection&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;train_test_split&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;sklearn.linear_model&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;LogisticRegression&lt;/span&gt;

&lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;governed_data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;drop&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;columns&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;approved&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;governed_data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;approved&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;X_train&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X_test&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y_train&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y_test&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;train_test_split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;X&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;test_size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;model&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;LogisticRegression&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;X_train&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y_train&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;predictions&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;predict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;X_test&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔥 Step 5: Perceived Intent Score (PIS)
&lt;/h2&gt;

&lt;p&gt;This is the &lt;strong&gt;key innovation&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Instead of just checking accuracy, we measure:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Does the model &lt;em&gt;appear fair&lt;/em&gt;?&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;perceived_intent_score&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;original_data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X_test&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;predictions&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expectations&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;original_data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;loc&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;X_test&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;copy&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;pred&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;predictions&lt;/span&gt;

    &lt;span class="n"&gt;male_rate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;gender&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;pred&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;female_rate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;gender&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;pred&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

    &lt;span class="n"&gt;bias&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;male_rate&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;female_rate&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="n"&gt;pis&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bias&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;expectations&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;fairness&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pis&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="nf"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bias&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;pis&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bias&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;perceived_intent_score&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X_test&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;predictions&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expectations&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔁 Step 6: Governance Feedback
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;governance_feedback&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pis&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;threshold&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.75&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;pis&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;threshold&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;⚠️ Misalignment detected&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;✅ System aligned&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;governance_feedback&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pis&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  📊 Sample Output
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Perceived Intent Score (PIS): 0.955
Bias: 0.05

✅ System aligned with expectations
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🧠 Key Insight
&lt;/h2&gt;

&lt;p&gt;Even though the model doesn’t explicitly optimize fairness, &lt;strong&gt;governance decisions (like removing gender)&lt;/strong&gt; improved ethical alignment.&lt;/p&gt;




&lt;h2&gt;
  
  
  ⚠️ Experiment: Lower Fairness
&lt;/h2&gt;

&lt;p&gt;Change:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;fairness&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.2&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Gender is NOT removed&lt;/li&gt;
&lt;li&gt;Bias increases&lt;/li&gt;
&lt;li&gt;PIS drops&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;👉 You may see:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;⚠️ Misalignment detected
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔥 Why This Matters
&lt;/h2&gt;

&lt;p&gt;Traditional AI governance focuses on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Data quality&lt;/li&gt;
&lt;li&gt;Model performance&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;EBAGM adds something new:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Human expectation alignment&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This leads to three new concepts:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Expectation Misalignment
&lt;/h3&gt;

&lt;p&gt;When AI is correct but feels wrong&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Perceived Consciousness Risk
&lt;/h3&gt;

&lt;p&gt;When humans think AI has intent&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Utility vs Ethics Conflict
&lt;/h3&gt;

&lt;p&gt;When optimization clashes with fairness&lt;/p&gt;




&lt;h2&gt;
  
  
  🚀 Final Thoughts
&lt;/h2&gt;

&lt;p&gt;EBAGM is a simple but powerful idea:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;AI systems shouldn’t just be &lt;em&gt;correct&lt;/em&gt;—they should be &lt;em&gt;aligned with human expectations&lt;/em&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This prototype shows how we can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Embed ethics into pipelines&lt;/li&gt;
&lt;li&gt;Quantify perceived fairness&lt;/li&gt;
&lt;li&gt;Build adaptive governance systems&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  📌 What’s Next?
&lt;/h2&gt;

&lt;p&gt;You can extend this by:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Adding fairness metrics (demographic parity, equal opportunity)&lt;/li&gt;
&lt;li&gt;Using real datasets (Kaggle)&lt;/li&gt;
&lt;li&gt;Adding explainability (SHAP, LIME)&lt;/li&gt;
&lt;li&gt;Running multi-scenario experiments&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  💡 Closing Idea
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;“The future of AI governance is not just about controlling systems, but about aligning them with how humans &lt;em&gt;expect them to behave&lt;/em&gt;.”&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;If you’re exploring AI ethics, data governance, or philosophy of AI—this is a space worth building in.&lt;/p&gt;

&lt;p&gt;Let me know if you want the &lt;strong&gt;research paper version&lt;/strong&gt; or a &lt;strong&gt;GitHub-ready project&lt;/strong&gt; 👇&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>python</category>
      <category>programming</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Prasoon  Jadon </dc:creator>
      <pubDate>Sun, 29 Mar 2026 06:15:40 +0000</pubDate>
      <link>https://dev.to/pjdeveloper896/-181k</link>
      <guid>https://dev.to/pjdeveloper896/-181k</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/pjdeveloper896/build-a-data-science-query-language-in-python-using-lark-pgo" class="crayons-story__hidden-navigation-link"&gt;Build a Data Science Query Language in Python using Lark&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/pjdeveloper896" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3206128%2Fcf96660d-2ea8-4527-aa48-82ee3e48a87c.png" alt="pjdeveloper896 profile" class="crayons-avatar__image" width="800" height="800"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/pjdeveloper896" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Prasoon  Jadon 
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Prasoon  Jadon 
                
              
              &lt;div id="story-author-preview-content-3423757" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/pjdeveloper896" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3206128%2Fcf96660d-2ea8-4527-aa48-82ee3e48a87c.png" class="crayons-avatar__image" alt="" width="800" height="800"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Prasoon  Jadon &lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/pjdeveloper896/build-a-data-science-query-language-in-python-using-lark-pgo" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Mar 29&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/pjdeveloper896/build-a-data-science-query-language-in-python-using-lark-pgo" id="article-link-3423757"&gt;
          Build a Data Science Query Language in Python using Lark
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag crayons-tag--filled  " href="/t/discuss"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;discuss&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/datascience"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;datascience&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/python"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;python&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/programming"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;programming&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/pjdeveloper896/build-a-data-science-query-language-in-python-using-lark-pgo" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/exploding-head-daceb38d627e6ae9b730f36a1e390fca556a4289d5a41abb2c35068ad3e2c4b5.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;5&lt;span class="hidden s:inline"&gt; reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/pjdeveloper896/build-a-data-science-query-language-in-python-using-lark-pgo#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              Comments


              &lt;span class="hidden s:inline"&gt;Add Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            2 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
      <category>datascience</category>
      <category>python</category>
      <category>programming</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Build a Data Science Query Language in Python using Lark</title>
      <dc:creator>Prasoon  Jadon </dc:creator>
      <pubDate>Sun, 29 Mar 2026 06:10:14 +0000</pubDate>
      <link>https://dev.to/pjdeveloper896/build-a-data-science-query-language-in-python-using-lark-pgo</link>
      <guid>https://dev.to/pjdeveloper896/build-a-data-science-query-language-in-python-using-lark-pgo</guid>
      <description>&lt;h1&gt;
  
  
  Build a Data Science Query Language in Python using Lark
&lt;/h1&gt;

&lt;p&gt;What if you could write something like this:&lt;/p&gt;

&lt;p&gt;DATA [1, 2, 3, 4, 5]&lt;br&gt;
SUM&lt;br&gt;
MEAN&lt;br&gt;
STD&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
…and have it behave like a mini data science engine?

In this tutorial, we’ll build a &lt;span class="k"&gt;**&lt;/span&gt;Domain-Specific Language &lt;span class="o"&gt;(&lt;/span&gt;DSL&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="k"&gt;**&lt;/span&gt; &lt;span class="k"&gt;for &lt;/span&gt;data analysis using:

- Python   
- Lark &lt;span class="o"&gt;(&lt;/span&gt;parser library&lt;span class="o"&gt;)&lt;/span&gt;   
- NumPy   

&lt;span class="nt"&gt;---&lt;/span&gt;

&lt;span class="c"&gt;#  What Are We Building?&lt;/span&gt;

We are creating a &lt;span class="k"&gt;**&lt;/span&gt;custom query language&lt;span class="k"&gt;**&lt;/span&gt; that:

- Accepts a dataset
- Runs statistical commands
- Prints results

&lt;span class="nt"&gt;---&lt;/span&gt;

&lt;span class="c"&gt;#  Step 1: Install Dependencies&lt;/span&gt;

&lt;span class="sb"&gt;```&lt;/span&gt;
&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt;
bash
pip &lt;span class="nb"&gt;install &lt;/span&gt;lark numpy
&lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h1&gt;
  
  
  Step 2: Define the Grammar
&lt;/h1&gt;

&lt;p&gt;The grammar defines how our language looks.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
from lark import Lark, Transformer
import numpy as np

grammar = """
start: data command+

data: "DATA" list

command: "SUM" -&amp;gt; sum
       | "MEAN" -&amp;gt; mean
       | "STD" -&amp;gt; std
       | "MAX" -&amp;gt; max
       | "MIN" -&amp;gt; min

list: "[" NUMBER ("," NUMBER)* "]"

%import common.NUMBER
%import common.WS
%ignore WS
"""


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h2&gt;
  
  
  Explanation
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;start: data command+&lt;/code&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Program must start with &lt;code&gt;DATA&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Followed by &lt;strong&gt;one or more commands&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  &lt;code&gt;data: "DATA" list&lt;/code&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Defines dataset input&lt;/li&gt;
&lt;li&gt;Example:&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
plaintext
  DATA [1, 2, 3]


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h3&gt;
  
  
  Commands
&lt;/h3&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
plaintext
SUM → sum
MEAN → mean
STD → std
MAX → max
MIN → min


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;These map text → function names&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-&amp;gt; sum&lt;/code&gt; means call &lt;code&gt;sum()&lt;/code&gt; in Transformer&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  List Rule
&lt;/h3&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
plaintext
list: "[" NUMBER ("," NUMBER)* "]"


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Accepts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;[1]&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;[1, 2, 3]&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;&lt;p&gt;&lt;code&gt;(, NUMBER)*&lt;/code&gt; means repeat&lt;/p&gt;&lt;/li&gt;

&lt;/ul&gt;




&lt;h3&gt;
  
  
  Ignore Spaces
&lt;/h3&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
plaintext
%ignore WS


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;Allows flexible formatting&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  ⚙️ Step 3: Build the Interpreter
&lt;/h1&gt;

&lt;p&gt;Now we convert parsed text into execution.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
class DLangInterpreter(Transformer):

    def data(self, items):
        self.data = np.array([float(x) for x in items[0]])
        return self.data


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h2&gt;
  
  
  Explanation
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;items[0]&lt;/code&gt; → list of numbers&lt;/li&gt;
&lt;li&gt;Convert to NumPy array&lt;/li&gt;
&lt;li&gt;Store in &lt;code&gt;self.data&lt;/code&gt; for reuse&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  Step 4: Add Operations
&lt;/h1&gt;

&lt;h3&gt;
  
  
  SUM
&lt;/h3&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
def sum(self, _):
    print(np.sum(self.data))


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
  
  
  MEAN
&lt;/h3&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
def mean(self, _):
    print(np.mean(self.data))


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
  
  
  STD
&lt;/h3&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
def std(self, _):
    print(np.std(self.data))


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
  
  
  MAX
&lt;/h3&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
def max(self, _):
    print(np.max(self.data))


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
  
  
  MIN
&lt;/h3&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
def min(self, _):
    print(np.min(self.data))


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h2&gt;
  
  
  Explanation
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Each function matches grammar rule&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;_&lt;/code&gt; = unused input&lt;/li&gt;
&lt;li&gt;Uses NumPy for computation&lt;/li&gt;
&lt;li&gt;Prints result immediately&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  Step 5: Parse List
&lt;/h1&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
def list(self, items):
    return items


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h2&gt;
  
  
  Explanation
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Returns list of numbers&lt;/li&gt;
&lt;li&gt;Passed to &lt;code&gt;data()&lt;/code&gt; method&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  Step 6: Create the Parser
&lt;/h1&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
parser = Lark(grammar, parser="lalr", transformer=DLangInterpreter())


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h2&gt;
  
  
  Explanation
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;lalr&lt;/code&gt; → fast parsing algorithm&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;transformer&lt;/code&gt; → auto-executes logic&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  Step 7: Read Input File
&lt;/h1&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
with open("example.dl") as f:
    code = f.read()

parser.parse(code)


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h2&gt;
  
  
  Example &lt;code&gt;example.dl&lt;/code&gt;
&lt;/h2&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
plaintext
DATA [10, 20, 30, 40]
SUM
MEAN
MAX


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h1&gt;
  
  
  ✅ Output
&lt;/h1&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
plaintext
100
25.0
40


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h1&gt;
  
  
  How It Works (Flow)
&lt;/h1&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
plaintext
Text Input
   ↓
Parser (Lark)
   ↓
Grammar Rules Match
   ↓
Transformer Methods Trigger
   ↓
NumPy Executes
   ↓
Output Printed


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h1&gt;
  
  
  ✨ Why This Is Powerful
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;You built a &lt;strong&gt;mini programming language&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Clean separation of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Syntax (grammar)&lt;/li&gt;
&lt;li&gt;Execution (Transformer)&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;&lt;p&gt;Easily extensible&lt;/p&gt;&lt;/li&gt;

&lt;/ul&gt;




&lt;h1&gt;
  
  
  Next Features You Can Add
&lt;/h1&gt;

&lt;h3&gt;
  
  
  1. Filtering
&lt;/h3&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
plaintext
FILTER &amp;gt; 10


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h3&gt;
  
  
  2. Sorting
&lt;/h3&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
plaintext
SORT ASC


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h3&gt;
  
  
  3. CSV Support
&lt;/h3&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
plaintext
DATA file.csv


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h3&gt;
  
  
  4. Chaining
&lt;/h3&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
plaintext
DATA [1,2,3,4]
FILTER &amp;gt; 2
MEAN


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  Final Thought
&lt;/h1&gt;

&lt;p&gt;This is how real systems like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SQL&lt;/li&gt;
&lt;li&gt;Pandas query engine&lt;/li&gt;
&lt;li&gt;Spark&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;…start at a basic level.&lt;/p&gt;

&lt;p&gt;You just built the foundation of a &lt;strong&gt;data query engine&lt;/strong&gt; &lt;/p&gt;




&lt;h1&gt;
  
  
  If You Liked This
&lt;/h1&gt;

&lt;p&gt;Drop a like ❤️&lt;br&gt;
Follow for more AI + Systems content&lt;br&gt;
And try extending this DSL yourself!&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>python</category>
      <category>programming</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Automate Your Life with PyAutoGUI: The Unsung Python Library</title>
      <dc:creator>Prasoon  Jadon </dc:creator>
      <pubDate>Sat, 28 Mar 2026 05:47:47 +0000</pubDate>
      <link>https://dev.to/pjdeveloper896/automate-your-life-with-pyautogui-the-unsung-python-library-4bc</link>
      <guid>https://dev.to/pjdeveloper896/automate-your-life-with-pyautogui-the-unsung-python-library-4bc</guid>
      <description>&lt;h1&gt;
  
  
  Automate Your Life with PyAutoGUI: The Unsung Python Library
&lt;/h1&gt;

&lt;p&gt;Have you ever wished your computer could just do tasks for you—open apps, type text, click buttons—while you sip coffee or brainstorm your next big idea? Enter &lt;strong&gt;PyAutoGUI&lt;/strong&gt;, one of Python’s most underrated and &lt;strong&gt;unique automation libraries&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is PyAutoGUI?
&lt;/h2&gt;

&lt;p&gt;At its core, PyAutoGUI allows your Python scripts to &lt;strong&gt;control the keyboard and mouse&lt;/strong&gt;. Think of it as giving your code a pair of hands and eyes—it can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Move your mouse anywhere on the screen&lt;/li&gt;
&lt;li&gt;Click, double-click, or drag-and-drop&lt;/li&gt;
&lt;li&gt;Type text automatically&lt;/li&gt;
&lt;li&gt;Take screenshots and locate elements on the screen&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And the best part? It works on &lt;strong&gt;Windows, macOS, and Linux&lt;/strong&gt;, making it a versatile tool for developers, testers, or productivity enthusiasts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why PyAutoGUI is Unique
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Human-like automation&lt;/strong&gt; – Unlike standard automation tools, PyAutoGUI can type slowly, move the mouse smoothly, and behave more like a real user.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cross-platform support&lt;/strong&gt; – One script can run across different operating systems with minimal changes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Simplicity meets power&lt;/strong&gt; – You don’t need thousands of lines of code to automate repetitive tasks.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  A Quick Example: Open Edge and Visit YouTube
&lt;/h2&gt;

&lt;p&gt;Here’s a simple automation script:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;pyautogui&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;pag&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;

&lt;span class="c1"&gt;# Open Start menu
&lt;/span&gt;&lt;span class="n"&gt;pag&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;press&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;win&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Search for Edge and launch
&lt;/span&gt;&lt;span class="n"&gt;pag&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;edge&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;interval&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;pag&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;press&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;enter&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Open YouTube
&lt;/span&gt;&lt;span class="n"&gt;pag&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;youtube.com&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;interval&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;pag&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;press&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;enter&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With just a few lines, you’ve automated opening a browser and visiting your favorite site! Imagine scaling this to multiple apps, workflows, or even repetitive tasks at work—PyAutoGUI becomes a &lt;strong&gt;productivity game-changer&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Pro Tips
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Safety first:&lt;/strong&gt; PyAutoGUI has a built-in fail-safe—move your mouse to the top-left corner to stop any script instantly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Interval is key:&lt;/strong&gt; Adding small delays (&lt;code&gt;interval=0.1&lt;/code&gt;) makes automation &lt;strong&gt;human-like&lt;/strong&gt; and avoids crashes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Combine with other Python libraries:&lt;/strong&gt; Pair it with &lt;code&gt;speech_recognition&lt;/code&gt;, &lt;code&gt;opencv&lt;/code&gt;, or &lt;code&gt;pandas&lt;/code&gt; for smarter, interactive automation.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Why Every Python Developer Should Try It
&lt;/h2&gt;

&lt;p&gt;Whether you’re building &lt;strong&gt;testing scripts&lt;/strong&gt;, &lt;strong&gt;personal bots&lt;/strong&gt;, or &lt;strong&gt;mini Jarvis systems&lt;/strong&gt;, PyAutoGUI gives you the ability to interact with the computer &lt;strong&gt;just like a human would&lt;/strong&gt;. It’s not just coding—it’s coding that can &lt;strong&gt;touch the real world&lt;/strong&gt;.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Conclusion:&lt;/strong&gt;&lt;br&gt;
PyAutoGUI might not be the flashiest Python library, but it’s &lt;strong&gt;extremely powerful and fun&lt;/strong&gt;. Automating boring tasks, building productivity hacks, or experimenting with AI interfaces—it can do it all.&lt;/p&gt;

&lt;p&gt;So, fire up your Python editor, install PyAutoGUI with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;pyautogui
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;…and let your scripts do the typing, clicking, and scrolling for you. Your coffee break just got an upgrade. ☕&lt;/p&gt;




</description>
      <category>python</category>
      <category>programming</category>
      <category>automation</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Chapter 2: The Learner Who Wants to Create</title>
      <dc:creator>Prasoon  Jadon </dc:creator>
      <pubDate>Thu, 26 Mar 2026 05:02:58 +0000</pubDate>
      <link>https://dev.to/pjdeveloper896/chapter-2-the-learner-who-wants-to-create-3a39</link>
      <guid>https://dev.to/pjdeveloper896/chapter-2-the-learner-who-wants-to-create-3a39</guid>
      <description>&lt;h1&gt;
  
  
  Raw Developer Stories: The Side Nobody Shows
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Chapter 2: The Learner Who Wants to Create
&lt;/h2&gt;

&lt;p&gt;I personally started coding because I love creating things. Before I began learning, I was deeply inspired by Tony Stark. He’s a fictional character, of course, but his drive to invent and build something extraordinary sparked my own desire to create. And yes, I was just a kid back then.&lt;/p&gt;

&lt;p&gt;As I explored the world of coding, I wanted to understand the real experiences of other developers—the reality behind their work. I reached out to a few developers, and one in particular stood out for his kindness and impressive mindset. His name is Sypros.&lt;/p&gt;

&lt;p&gt;Sypros told me he started coding for the same reason I did: he loved creating things. He began with VB, C++, and Turbo Pascal. He said the hardest part of coding is often hard to describe. Sometimes he feels like quitting. Sometimes he gets tired of coding and even considers doing something completely different.&lt;/p&gt;

&lt;p&gt;One line that stayed with me was:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“What usually changes things for me is building something interesting again and reconnecting with the reason I started.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Hearing this motivated me deeply.&lt;/p&gt;

&lt;p&gt;He also shared a truth that really resonates: nobody builds everything alone. In the past, we learned from the internet; today, many also rely on AI. Success is visible to everyone, but the failures and struggles behind it remain hidden. I want to shine a light on that reality because it’s just as important as the victories.&lt;/p&gt;

&lt;p&gt;If this resonates with you, leave a like—and stay tuned for Chapter 3, where your stories take center stage.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://coderlegion.com/user/Spyros" rel="noopener noreferrer"&gt;https://coderlegion.com/user/Spyros&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>discuss</category>
      <category>devjournal</category>
      <category>community</category>
    </item>
    <item>
      <title>Chapter 1: The Illusion of Learning to Code</title>
      <dc:creator>Prasoon  Jadon </dc:creator>
      <pubDate>Mon, 23 Mar 2026 12:30:41 +0000</pubDate>
      <link>https://dev.to/pjdeveloper896/chapter-1-the-illusion-of-learning-to-code-97e</link>
      <guid>https://dev.to/pjdeveloper896/chapter-1-the-illusion-of-learning-to-code-97e</guid>
      <description>&lt;h2&gt;
  
  
  Raw Developer Stories: The Side Nobody Shows
&lt;/h2&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Chapter 1: The Illusion of Learning to Code&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;We all start from zero.&lt;/p&gt;

&lt;p&gt;Learning the basics.&lt;br&gt;
Writing our first lines of code.&lt;br&gt;
Trying to build something.&lt;/p&gt;

&lt;p&gt;We learn, we grow, we build.&lt;/p&gt;

&lt;p&gt;But this journey… isn’t as simple as it looks.&lt;/p&gt;

&lt;p&gt;It’s not always exciting.&lt;br&gt;
Sometimes, it’s frustrating.&lt;br&gt;
Sometimes, it breaks you.&lt;/p&gt;

&lt;p&gt;Bugs. Confusion. Rejection—from the very people you’re trying to build for.&lt;/p&gt;

&lt;p&gt;And I’m one of those people.&lt;/p&gt;

&lt;p&gt;But this isn’t just my story.&lt;/p&gt;

&lt;p&gt;It’s something almost every developer goes through—&lt;br&gt;
a phase that feels less like learning…&lt;br&gt;
and more like an illusion.&lt;/p&gt;

&lt;p&gt;So I asked a few developers:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What does your real journey look like?&lt;/em&gt;&lt;br&gt;
Not the polished version.&lt;br&gt;
The part nobody talks about.&lt;/p&gt;




&lt;p&gt;One response came from &lt;strong&gt;Adarsh Kant&lt;/strong&gt;, a developer building his own product.&lt;/p&gt;

&lt;p&gt;He shared something most people don’t realize at the start:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“The hardest phase was the gap between building features and building something people actually use.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;He spent months building—only to face a brutal truth:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Nobody cares about your tech stack.&lt;br&gt;
They care about the problem you solve.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;But what hit me the most was this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Developers who look like they have it figured out are just better at hiding the chaos.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That line doesn’t just describe coding.&lt;br&gt;
It describes the reality behind it.&lt;/p&gt;




&lt;p&gt;Another developer, known as &lt;strong&gt;EmberNoGlow&lt;/strong&gt; on &lt;strong&gt;DEV Community&lt;/strong&gt;, had a completely different perspective.&lt;/p&gt;

&lt;p&gt;Instead of relying on courses, they learned by constantly asking AI questions.&lt;/p&gt;

&lt;p&gt;And their view was blunt:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Most courses don’t teach you programming. They just teach you syntax.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Because real programming isn’t about knowing code.&lt;/p&gt;

&lt;p&gt;It’s about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;solving problems&lt;/li&gt;
&lt;li&gt;making mistakes&lt;/li&gt;
&lt;li&gt;getting lost… and finding your way back&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As they put it:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Without practice, you can't do anything. Without making mistakes, you won’t make your own code work.”&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;Two completely different journeys.&lt;/p&gt;

&lt;p&gt;But the same underlying truth:&lt;/p&gt;

&lt;p&gt;Learning to code doesn’t feel like learning.&lt;/p&gt;

&lt;p&gt;It feels like being lost.&lt;/p&gt;

&lt;p&gt;And maybe that’s the point.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Confusion isn’t a bug in the process.&lt;br&gt;
It is the process.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;Maybe the problem isn’t you.&lt;/p&gt;

&lt;p&gt;Maybe the way we think about learning to code… is wrong.&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Chapter 2 isn’t written yet.&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Maybe your story belongs there.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;DM me or share your experience.&lt;/p&gt;




&lt;h3&gt;
  
  
  Developers that i meet
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://dev.to/embernoglow"&gt;https://dev.to/embernoglow&lt;/a&gt;&lt;br&gt;
&lt;a href="https://hashnode.com/@adarshkant" rel="noopener noreferrer"&gt;https://hashnode.com/@adarshkant&lt;/a&gt;&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>community</category>
      <category>programming</category>
      <category>ai</category>
    </item>
    <item>
      <title>Raw Developer Stories: The Side Nobody Shows</title>
      <dc:creator>Prasoon  Jadon </dc:creator>
      <pubDate>Sun, 22 Mar 2026 06:20:39 +0000</pubDate>
      <link>https://dev.to/pjdeveloper896/raw-developer-stories-the-side-nobody-shows-2941</link>
      <guid>https://dev.to/pjdeveloper896/raw-developer-stories-the-side-nobody-shows-2941</guid>
      <description>&lt;h1&gt;
  
  
  Raw Developer Stories: The Side Nobody Shows
&lt;/h1&gt;

&lt;p&gt;I thought learning to code would fix my life.&lt;/p&gt;

&lt;p&gt;Instead, it confused me.&lt;/p&gt;

&lt;p&gt;Hours of tutorials.&lt;br&gt;&lt;br&gt;
Endless scrolling.&lt;br&gt;&lt;br&gt;
Starting things… never finishing them.  &lt;/p&gt;

&lt;p&gt;At some point, I realized —&lt;br&gt;&lt;br&gt;
I wasn’t alone.&lt;/p&gt;

&lt;p&gt;There are thousands of people trying to become developers…&lt;br&gt;&lt;br&gt;
but silently struggling.&lt;/p&gt;

&lt;p&gt;Not posting.&lt;br&gt;&lt;br&gt;
Not sharing.&lt;br&gt;&lt;br&gt;
Just figuring things out alone.&lt;/p&gt;




&lt;h2&gt;
  
  
  So I decided to do something.
&lt;/h2&gt;

&lt;p&gt;I’m starting a series:&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Raw Developer Stories: The Side Nobody Shows&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Not success stories.&lt;br&gt;&lt;br&gt;
Not “I learned coding in 30 days.”&lt;/p&gt;

&lt;p&gt;Just real journeys:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;confusion
&lt;/li&gt;
&lt;li&gt;self-doubt
&lt;/li&gt;
&lt;li&gt;failures
&lt;/li&gt;
&lt;li&gt;and the moments that changed everything
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Why this series?
&lt;/h2&gt;

&lt;p&gt;Because most content shows the highlight reel.&lt;/p&gt;

&lt;p&gt;Very few talk about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;feeling stuck for months
&lt;/li&gt;
&lt;li&gt;not understanding anything despite trying
&lt;/li&gt;
&lt;li&gt;questioning if you're even meant for this
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But that’s the real journey.&lt;/p&gt;




&lt;h2&gt;
  
  
  I want to hear your story
&lt;/h2&gt;

&lt;p&gt;If you're a developer (or trying to become one)&lt;br&gt;&lt;br&gt;
and you've ever felt lost—&lt;/p&gt;

&lt;p&gt;I’d love to share your experience.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It can be anonymous
&lt;/li&gt;
&lt;li&gt;No perfect writing needed
&lt;/li&gt;
&lt;li&gt;Just honesty
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  📩 How to participate
&lt;/h2&gt;

&lt;p&gt;Send me a message with:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;How you started coding
&lt;/li&gt;
&lt;li&gt;Your hardest phase
&lt;/li&gt;
&lt;li&gt;A moment you almost quit
&lt;/li&gt;
&lt;li&gt;What changed things for you
&lt;/li&gt;
&lt;li&gt;One truth about coding nobody talks about
&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;Let’s show the side nobody talks about.&lt;/p&gt;

&lt;p&gt;Because someone out there needs to hear it.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>community</category>
    </item>
    <item>
      <title>Using Math in Programming Beautifully: Drawing with Turtle</title>
      <dc:creator>Prasoon  Jadon </dc:creator>
      <pubDate>Sat, 21 Mar 2026 12:41:16 +0000</pubDate>
      <link>https://dev.to/pjdeveloper896/using-math-in-programming-beautifully-drawing-with-turtle-19n2</link>
      <guid>https://dev.to/pjdeveloper896/using-math-in-programming-beautifully-drawing-with-turtle-19n2</guid>
      <description>&lt;h1&gt;
  
  
  Using Math in Programming Beautifully: Drawing with Turtle
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;"Programming is not just a skill; it is an art. And math is its brush."&lt;/em&gt; — &lt;em&gt;Programming as an Art&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Programming becomes truly beautiful when math guides your code. With Python’s &lt;code&gt;turtle&lt;/code&gt; module, you can &lt;strong&gt;turn numbers and formulas into living art&lt;/strong&gt;, making math visible, interactive, and mesmerizing.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Patterns with Loops
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;"Recognize the rhythm in numbers, and you will find rhythm in code."&lt;/em&gt; — &lt;em&gt;Programming as an Art&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Loops and math are perfect partners. For example, let’s draw a simple spiral:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;turtle&lt;/span&gt;

&lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;turtle&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Turtle&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;speed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forward&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;right&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;45&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;turtle&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;done&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The combination of a growing forward step and rotation creates a &lt;strong&gt;mathematical spiral&lt;/strong&gt;—a visual echo of Fibonacci-like growth.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Geometry Comes Alive
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;"Lines, curves, and shapes are as much math as they are poetry."&lt;/em&gt; — &lt;em&gt;Programming as an Art&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Math lets us transform equations into visual art. For instance, using angles and loops:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;turtle&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;

&lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;turtle&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Turtle&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;speed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;360&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;radians&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;cos&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;radians&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;goto&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;turtle&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;done&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Suddenly, a simple sine and cosine function becomes a perfect circle—a pure &lt;strong&gt;mathematical shape made visible&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Fractals: Math in Nature
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;"Every algorithm is a story, written with variables, loops, and functions."&lt;/em&gt; — &lt;em&gt;Programming as an Art&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Fractals are a stunning example of recursion and math:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;turtle&lt;/span&gt;

&lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;turtle&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Turtle&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;speed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;left&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;90&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;tree&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;branch_len&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;branch_len&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forward&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;branch_len&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;left&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="nf"&gt;tree&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;branch_len&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;right&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="nf"&gt;tree&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;branch_len&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;left&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;backward&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;branch_len&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;tree&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;turtle&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;done&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each branch splits recursively, creating a &lt;strong&gt;mathematical tree&lt;/strong&gt;, full of natural elegance.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Controlled Randomness
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;"When uncertainty enters, math becomes your compass."&lt;/em&gt; — &lt;em&gt;Programming as an Art&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Math also controls randomness to create generative art:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;turtle&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;random&lt;/span&gt;

&lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;turtle&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Turtle&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;speed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;colors&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;red&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;blue&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;green&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;purple&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;orange&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;color&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;choice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;colors&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;penup&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;goto&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;randint&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;randint&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pendown&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;circle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;randint&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

&lt;span class="n"&gt;turtle&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;done&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, probability and random numbers generate &lt;strong&gt;unique, colorful patterns&lt;/strong&gt; every time.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Elegance is Key
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;"Elegance in code is the silent poetry of mathematics."&lt;/em&gt; — &lt;em&gt;Programming as an Art&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;With &lt;code&gt;turtle&lt;/code&gt;, the beauty isn’t just in the result—it’s in the &lt;strong&gt;logic and math behind it&lt;/strong&gt;. Each loop, angle, and function is like a brushstroke, producing art from numbers.&lt;/p&gt;




&lt;h3&gt;
  
  
  Final Thought
&lt;/h3&gt;

&lt;p&gt;Programming isn’t just solving problems—it’s &lt;strong&gt;painting with math&lt;/strong&gt;. Turtle makes the invisible visible. Every function, formula, and loop is an opportunity to create beauty.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;"To program without math is to paint without colors."&lt;/em&gt; — &lt;em&gt;Programming as an Art&lt;/em&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>python</category>
      <category>discuss</category>
      <category>learning</category>
    </item>
    <item>
      <title>Making AI Understandable: A Beginner’s Guide to Explainable AI (XAI)</title>
      <dc:creator>Prasoon  Jadon </dc:creator>
      <pubDate>Wed, 18 Mar 2026 12:44:53 +0000</pubDate>
      <link>https://dev.to/pjdeveloper896/making-ai-understandable-a-beginners-guide-to-explainable-ai-xai-28m4</link>
      <guid>https://dev.to/pjdeveloper896/making-ai-understandable-a-beginners-guide-to-explainable-ai-xai-28m4</guid>
      <description>&lt;h1&gt;
  
  
  Making AI Understandable: A Beginner’s Guide to Explainable AI (XAI)
&lt;/h1&gt;

&lt;p&gt;Artificial intelligence is everywhere—from recommending your next binge-watch to helping doctors diagnose diseases. But have you ever wondered &lt;strong&gt;why AI makes certain decisions&lt;/strong&gt;?&lt;/p&gt;

&lt;p&gt;If you’ve played with deep learning or complex machine learning models, you probably noticed something frustrating: they’re often &lt;strong&gt;black boxes&lt;/strong&gt;. You feed in data, and out comes a prediction… but &lt;strong&gt;why?&lt;/strong&gt; That’s where &lt;strong&gt;Explainable AI (XAI)&lt;/strong&gt; comes in.&lt;/p&gt;




&lt;h2&gt;
  
  
  What is Explainable AI (XAI)?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Explainable AI&lt;/strong&gt; is all about making AI decisions &lt;strong&gt;transparent, understandable, and trustworthy&lt;/strong&gt;. It’s not just a technical challenge—it’s also about building &lt;strong&gt;trust, accountability, and ethical AI&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Think of it this way:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“An AI that predicts is smart, but an AI that explains is wise.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For example, if a model rejects a loan application, XAI can answer:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Rejected because the applicant’s credit score is below 600 and debt-to-income ratio is above 40%.”&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Why Developers Should Care About XAI
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Trust &amp;amp; Adoption:&lt;/strong&gt; Users trust AI more when they understand it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Debugging Models:&lt;/strong&gt; Helps you spot errors or biases in your model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compliance &amp;amp; Ethics:&lt;/strong&gt; Regulations like GDPR require explanations for automated decisions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transparency:&lt;/strong&gt; Ethical AI isn’t optional—it’s necessary.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Two Ways to Explain AI
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1️⃣ Intrinsic Interpretability
&lt;/h3&gt;

&lt;p&gt;Some models are &lt;strong&gt;naturally easy to understand&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Decision Trees:&lt;/strong&gt; Follow the path of decisions to see the reasoning.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Linear Regression:&lt;/strong&gt; Each feature’s weight shows how it impacts the output.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These models are simpler but sometimes less accurate on complex tasks.&lt;/p&gt;

&lt;h3&gt;
  
  
  2️⃣ Post-Hoc Explainability
&lt;/h3&gt;

&lt;p&gt;For complex models like deep neural networks, we use &lt;strong&gt;explainability tools&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;LIME (Local Interpretable Model-agnostic Explanations):&lt;/strong&gt; Approximates complex models locally for explanations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SHAP (SHapley Additive exPlanations):&lt;/strong&gt; Calculates the contribution of each feature to a prediction.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Saliency Maps:&lt;/strong&gt; Highlight the parts of an image important for classification.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Challenges of XAI
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Accuracy vs. Explainability:&lt;/strong&gt; Highly accurate models are often harder to explain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Misleading Explanations:&lt;/strong&gt; Simplified explanations can sometimes hide complexity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Human Interpretation:&lt;/strong&gt; An explanation for a data scientist might be meaningless for a business stakeholder.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  XAI in Real Life
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Healthcare:&lt;/strong&gt; AI diagnoses tumors and explains why.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Finance:&lt;/strong&gt; Credit scoring and risk assessment become transparent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Autonomous Vehicles:&lt;/strong&gt; Explains why a car made a specific maneuver.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Law &amp;amp; Policy:&lt;/strong&gt; Supports fair decision-making by revealing model reasoning.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Philosophical Takeaway
&lt;/h2&gt;

&lt;p&gt;XAI isn’t just code—it’s about &lt;strong&gt;how humans and machines interact&lt;/strong&gt;. A truly explainable AI bridges the gap between human intuition and machine intelligence.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What counts as a “good” explanation?&lt;/li&gt;
&lt;li&gt;Can AI ever truly understand its own reasoning?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These questions are just as important as the technical ones.&lt;/p&gt;




&lt;h2&gt;
  
  
  Tools to Get Started
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/marcotcr/lime" rel="noopener noreferrer"&gt;LIME&lt;/a&gt; – Local model explanations&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/slundberg/shap" rel="noopener noreferrer"&gt;SHAP&lt;/a&gt; – Feature contribution analysis&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://captum.ai/" rel="noopener noreferrer"&gt;Captum&lt;/a&gt; – PyTorch model interpretability&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://eli5.readthedocs.io/" rel="noopener noreferrer"&gt;Eli5&lt;/a&gt; – Easy model inspection in Python&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Wrapping Up
&lt;/h2&gt;

&lt;p&gt;Explainable AI is &lt;strong&gt;the future of trustworthy, ethical AI&lt;/strong&gt;. As developers, understanding XAI isn’t just a skill—it’s a responsibility.&lt;/p&gt;

&lt;p&gt;Whether you’re building models for fun or for serious applications, make sure your AI &lt;strong&gt;doesn’t just predict—but also explains&lt;/strong&gt;.&lt;/p&gt;




&lt;p&gt;💡 &lt;strong&gt;Your Turn:&lt;/strong&gt;&lt;br&gt;
Have you ever had a model make a “weird” prediction? How did you figure out why? Share your experience in the comments!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>machinelearning</category>
      <category>discuss</category>
    </item>
    <item>
      <title>10 Tools Every Gen Z Developer Should Know About (2026 Edition)</title>
      <dc:creator>Prasoon  Jadon </dc:creator>
      <pubDate>Sat, 14 Mar 2026 12:37:48 +0000</pubDate>
      <link>https://dev.to/pjdeveloper896/10-tools-every-gen-z-developer-should-know-about-2026-edition-10kb</link>
      <guid>https://dev.to/pjdeveloper896/10-tools-every-gen-z-developer-should-know-about-2026-edition-10kb</guid>
      <description>&lt;h1&gt;
  
  
  &lt;strong&gt;10 Tools Every Gen Z Developer Should Know About (2026 Edition)&lt;/strong&gt;
&lt;/h1&gt;

&lt;p&gt;If you’re a Gen Z developer trying to survive the chaotic tech world, knowing the right tools isn’t optional — it’s your superpower. The right tools can save hours of work, make your projects look professional, and even help you land your dream job.&lt;/p&gt;

&lt;p&gt;Here are &lt;strong&gt;10 tools that will level up your coding, design, and productivity game — fast.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;1. AI Coding Assistants – ChatGPT &amp;amp; GitHub Copilot&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;AI is no longer sci-fi. These assistants can write code snippets, debug, and even explain complex algorithms in plain English.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Why it matters:&lt;/strong&gt; Speeds up coding and learning simultaneously.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pro tip:&lt;/strong&gt; Ask ChatGPT to explain your own code — it’s like having a tutor 24/7.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;2. Modern IDEs &amp;amp; Editors – VS Code &amp;amp; JetBrains Fleet&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Your development environment can make or break your workflow.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Why it matters:&lt;/strong&gt; Extensions and smart suggestions turn small projects into pro-level apps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pro tip:&lt;/strong&gt; Use VS Code extensions like Live Share to collaborate in real-time.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;3. Cloud Development Platforms – Replit &amp;amp; CodeSandbox&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Set up a dev environment in seconds, no heavy installations needed.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Why it matters:&lt;/strong&gt; Instantly share your projects with anyone online.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pro tip:&lt;/strong&gt; Experiment with new frameworks without messing up your local machine.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;4. Version Control Tools – GitHub &amp;amp; GitLab&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Version control isn’t just for pros — it’s how developers keep their work organized.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Why it matters:&lt;/strong&gt; Collaboration, portfolio building, and job-ready skills.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pro tip:&lt;/strong&gt; Use GitHub Copilot integration to save time on pull requests and commits.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;5. Design &amp;amp; Prototyping Tools – Figma, Canva, &amp;amp; MidJourney&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Modern developers aren’t just coders — design matters.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Why it matters:&lt;/strong&gt; Build prototypes, mockups, or AI-generated graphics for your projects.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pro tip:&lt;/strong&gt; Use Figma community templates to speed up your UI design process.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;6. API &amp;amp; Backend Tools – Postman, Supabase &amp;amp; Firebase&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;You don’t need to be a backend wizard anymore.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Why it matters:&lt;/strong&gt; Build full-stack apps quickly with minimal server setup.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pro tip:&lt;/strong&gt; Connect Firebase authentication and database in under 30 minutes.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;7. Dev Automation / Productivity Tools – Notion, Obsidian &amp;amp; Linear&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Managing projects can be messy. These tools make it clean and automated.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Why it matters:&lt;/strong&gt; Organize your projects, track progress, and automate repetitive tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pro tip:&lt;/strong&gt; Use Notion templates to manage your coding projects like a startup.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;8. Learning &amp;amp; Experimentation Platforms – LeetCode, Kaggle &amp;amp; HackerRank&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Practice makes perfect. These platforms turn learning into a challenge.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Why it matters:&lt;/strong&gt; Sharpen skills, prepare for interviews, or compete globally.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pro tip:&lt;/strong&gt; Kaggle competitions are perfect for building a real portfolio.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;9. AI-Powered Design &amp;amp; Writing Tools – ChatGPT, Runway, Copymatic&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Content, docs, and even marketing materials can be handled with AI.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Why it matters:&lt;/strong&gt; Helps solo developers focus on coding while AI handles the rest.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pro tip:&lt;/strong&gt; Generate README files or documentation instantly — makes your project look pro.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;10. Emerging Tech Tools – Web3 Dev, LangChain &amp;amp; Quantum SDKs&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Stay ahead of the curve. The future belongs to developers who innovate.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Why it matters:&lt;/strong&gt; Skills in emerging tech give you an edge in the next 5–10 years.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pro tip:&lt;/strong&gt; Experiment with LangChain for AI-powered apps — it’s the next big trend.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Closing Thoughts&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;These 10 tools won’t just make you a better developer — they’ll make you &lt;strong&gt;unstoppable&lt;/strong&gt;. The trick is to &lt;strong&gt;pick a few, master them, and build projects that showcase your skills&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Which of these tools have you tried? And which one are you starting with today? Drop a comment and share this with your coding squad!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>cloud</category>
      <category>fullstack</category>
    </item>
  </channel>
</rss>
