<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Yousra Khan  on Medium]]></title>
        <description><![CDATA[Stories by Yousra Khan  on Medium]]></description>
        <link>https://medium.com/@yousrakhanzai?source=rss-50dd23c85f8d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*crcNTlC9vvcvMFP5ZKkBjA.jpeg</url>
            <title>Stories by Yousra Khan  on Medium</title>
            <link>https://medium.com/@yousrakhanzai?source=rss-50dd23c85f8d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 06:39:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yousrakhanzai/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ OOP is Like a Toy Box!]]></title>
            <link>https://medium.com/@yousrakhanzai/oop-is-like-a-toy-box-9f5e4c052763?source=rss-50dd23c85f8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f5e4c052763</guid>
            <category><![CDATA[oops-concepts]]></category>
            <dc:creator><![CDATA[Yousra Khan ]]></dc:creator>
            <pubDate>Fri, 16 May 2025 12:22:59 GMT</pubDate>
            <atom:updated>2025-05-16T12:22:59.080Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine you have a <strong>toy box</strong> filled with different toys. Each toy is special and does something different.</p><p>In OOP:</p><ul><li><strong>Class</strong> = A <strong>blueprint</strong> (like a drawing of how to make a toy).</li><li><strong>Object</strong> = A <strong>real toy</strong> made from that blueprint.</li><li><strong>Attributes</strong> = <strong>Properties</strong> of the toy (color, size).</li><li><strong>Methods</strong> = <strong>Actions</strong> the toy can do (roll, beep, fly).</li></ul><p>Let’s learn the <strong>4 main concepts of OOP</strong> with toys!</p><blockquote><strong>🧸 1. Encapsulation (Keeping Toys Safe in a Box)</strong></blockquote><p><strong>Meaning:</strong> Hiding details and showing only what’s needed.</p><p><strong>Example:</strong></p><ul><li>Your <strong>remote-control car</strong> has buttons (like “go forward”).</li><li>You don’t need to know how the motor works inside.</li><li>Just press the button, and it moves!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RqvlxUYD34GImAZ_hg59Rg.png" /></figure><blockquote>🔄 2. Inheritance (Parent &amp; Child Toys)</blockquote><p><strong>Meaning:</strong> Passing features from one toy to another.</p><p><strong>Example:</strong></p><ul><li>A <strong>Parent Toy (Robot)</strong> can walk and talk.</li><li>A <strong>Child Toy (SuperRobot)</strong> can do everything Robot can <strong>plus</strong> fly!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HBbrbpwCjSn_wgONmHAqCQ.png" /></figure><blockquote>🎭 3. Polymorphism (One Button, Different Actions)</blockquote><p><strong>Meaning:</strong> Same name, different actions.</p><p><strong>Example:</strong></p><ul><li>You press a <strong>“Play”</strong> button:</li><li>On a <strong>Music Toy</strong> → It sings.</li><li>On a <strong>Video Toy</strong> → It shows a cartoon.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*n0Q2M6KnXmKmsuJeOhHwKw.png" /></figure><blockquote>🧩 4. Abstraction (Simple Remote for a Complex Toy)</blockquote><p><strong>Meaning:</strong> Showing only important buttons, hiding the rest.</p><p><strong>Example:</strong></p><ul><li>Your <strong>drone</strong> has 1000 parts inside.</li><li>But you only need to know <strong>“Take Off”</strong> and <strong>“Land”</strong> buttons.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0rkRHCuyqhwW2glOp83MPg.png" /></figure><h3>🎉 Summary (OOP in Simple Words)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*8zPM6jbaGUMCEjBsFaMTvQ.jpeg" /></figure><p><strong>OOP is just organizing code like toys in a box. 🧸💖</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f5e4c052763" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generative AI:]]></title>
            <link>https://medium.com/@yousrakhanzai/generative-ai-e7818c239c56?source=rss-50dd23c85f8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7818c239c56</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[generative-ai-solution]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[generative-ai-use-cases]]></category>
            <dc:creator><![CDATA[Yousra Khan ]]></dc:creator>
            <pubDate>Wed, 07 May 2025 14:06:16 GMT</pubDate>
            <atom:updated>2025-05-07T14:06:16.415Z</atom:updated>
            <content:encoded><![CDATA[<p>Generative AI refers to a class of artificial intelligence models designed to <strong>create new, original content</strong> — such as text, images, music, or even code — by learning patterns from existing data. Unlike traditional AI, which focuses on <strong>recognition</strong> (e.g., classifying images or predicting outcomes), generative AI <strong>produces</strong> new data that resembles its training examples.</p><h3>1. Core Theory Behind Generative AI</h3><h4>A. Machine Learning Basics.</h4><p>Generative AI is a subset of <strong>machine learning (ML)</strong>, where algorithms learn from data without being explicitly programmed.</p><p><strong>Training Data:</strong> The AI is fed massive datasets (e.g., books, paintings, or songs).</p><p><strong>Learning Patterns:</strong> It identifies statistical patterns (e.g., how words form sentences or how brushstrokes create faces).</p><p><strong>Generating New Data:</strong> Once trained, it can produce <strong>new, similar</strong> content.</p><h4>B. Key Techniques in Generative AI.</h4><p>1. Neural Networks (The Brain of AI)</p><ul><li>AI models are built like <strong>artificial brains</strong> with layers of “neurons.”</li><li>They adjust connections (<strong>weights</strong>) to improve accuracy.</li></ul><p>2. Generative Models (How AI Creates)</p><p>Two major approaches:</p><p><strong>📍Model Type:</strong></p><p><strong>1️⃣Generative Adversarial Networks (GANs)</strong></p><p><strong>📍How It Works: </strong>Two competing networks:<br>- <strong>Generator</strong> (creates fake data)<br>- <strong>Discriminator</strong> (detects fakes)</p><p><strong>📍Example: </strong>Deepfake videos, AI art</p><p><strong>1️⃣Transformer Models (LLMs)</strong></p><p><strong>📍How It Works: </strong>Predicts next word/pixel based on context</p><p><strong>📍Example: </strong>ChatGPT, DALL·E</p><p>3. Probability &amp; Predictions</p><ul><li>Generative AI uses <strong>probability distributions</strong> to guess the next word/pixel.</li><li>Example: After “The cat sat on the…”, it predicts <strong>“mat”</strong> (high probability) vs. <strong>“banana”</strong> (low probability).</li></ul><h3>2. How Does Generative AI Actually Work?</h3><h4>Step 1: Data Ingestion</h4><ul><li>The AI <strong>reads millions of examples</strong> (e.g., Wikipedia, paintings, code repositories).</li></ul><h4>Step 2: Pattern Recognition</h4><ul><li>It builds a <strong>mathematical representation</strong> (latent space) of how data is structured.</li><li>Example: Learns that “king — man + woman = queen.”</li></ul><h4>Step 3: Content Generation</h4><ul><li>When prompted (e.g., <em>“Write a poem about robots”</em>), it <strong>samples</strong> from learned patterns.</li><li>It doesn’t copy — it <strong>recombines</strong> knowledge to create something new.</li></ul><h3>3. Challenges &amp; Limitations</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*K-msG5QMNqZMzTLbXXQwdw.jpeg" /></figure><h3>4. Real-World Applications</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*LxkT6xRziZ6elnnJ-9X0vw.jpeg" /></figure><h3>FUN STORY:</h3><p>Imagine you have a <strong>magical robot friend</strong> 🤖✨ who loves to <strong>create new things</strong> all by itself! It can:</p><ul><li><strong>Draw pictures</strong> 🎨 (even if it never held a crayon before).</li><li><strong>Write stories</strong> 📖 (like a fairy tale about a dragon who loves pizza!).</li><li><strong>Make music</strong> 🎵 (maybe a happy song about dancing bananas!).</li><li><strong>Even talk like a human</strong> 🗣️ (and answer your silly questions!).</li></ul><p>This magical robot is called <strong>Generative AI</strong> because it <strong>“generates” (creates)</strong> new stuff instead of just repeating what it already knows.</p><p>Think of it like a <strong>super-smart baby brain</strong> 🧠 that learned from <strong>lots and lots of examples</strong>:</p><ol><li><strong>It Reads &amp; Watches Everything!</strong> 📚👀</li></ol><ul><li>If you show it <strong>1,000 cat pictures</strong>, it learns <em>“Oh! Cats have pointy ears, whiskers, and a tail!”</em></li></ul><p><strong>2. Then It Tries to Make Its Own!</strong> 🐱🎨</p><ul><li>You say <em>“Draw me a cat!”</em> and — POOF! — it draws a <strong>new cat</strong> (maybe a purple one with sunglasses!).</li></ul><p>But sometimes, it makes silly mistakes — like drawing a cat with <strong>three legs</strong> or writing a story where <strong>bananas drive cars</strong>! 🍌🚗 (That’s because it’s still learning!)</p><h3>Final Fun Fact! 🤖💡</h3><p>Generative AI is like a <strong>super creative parrot</strong> 🦜 — it doesn’t <em>really</em> understand like humans, but it can copy, mix, and create <strong>amazing new things</strong>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7818c239c56" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>