<?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 Lulu on Medium]]></title>
        <description><![CDATA[Stories by Lulu on Medium]]></description>
        <link>https://medium.com/@dearlulu1995?source=rss-5b161e81411b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fRO-thhq5O1wzjogaYBrXw.jpeg</url>
            <title>Stories by Lulu on Medium</title>
            <link>https://medium.com/@dearlulu1995?source=rss-5b161e81411b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 17:47:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dearlulu1995/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[SSE (Server-Sent Events) — What the Heck Is It?]]></title>
            <link>https://medium.com/@dearlulu1995/sse-server-sent-events-what-the-heck-is-it-ce903fb0ad3d?source=rss-5b161e81411b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce903fb0ad3d</guid>
            <category><![CDATA[js]]></category>
            <category><![CDATA[sse]]></category>
            <category><![CDATA[https]]></category>
            <dc:creator><![CDATA[Lulu]]></dc:creator>
            <pubDate>Tue, 21 Oct 2025 23:02:17 GMT</pubDate>
            <atom:updated>2025-10-21T23:02:17.726Z</atom:updated>
            <content:encoded><![CDATA[<h3>SSE (Server-Sent Events) — What the Heck Is It?</h3><p>Alright, let’s keep this chill. You know how usually you have to refresh a webpage to see new stuff, like tweets, comments, or stock prices? SSE is like magic — it lets the webpage get new info automatically, without you doing a thing.</p><p><strong>So, what’s the deal?</strong><br>Think of SSE as a one-way “pipe” from the server to your browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/0*cJso5Y73DL9E4uyK.png" /></figure><p>Whenever the server has something new, it just pushes it straight to your page.</p><p>Your page receives it instantly — boom! New message, new notification, new price… whatever.</p><p>And the pipe stays open, so you don’t need to keep asking the server for updates.</p><p>Basically, it’s like chilling in a chat room, waiting for messages. The server just keeps sending stuff down the line, and your page catches it live.</p><p><strong>How’s it different from WebSocket?</strong><br>Yeah, people often ask, “Isn’t this just WebSocket?”<br>Not really.</p><p>WebSocket is <strong>two-way. Y</strong>ou can send messages to the server and get messages back. <br>SSE is <strong>one-way</strong>: server → browser.</p><p>If all you need is real-time updates coming to the user, SSE is way simpler and lighter.</p><p><strong>When would you actually use it?</strong></p><ol><li>Live news feeds</li><li>Stock or crypto price updates</li><li>Notifications (someone commented on your post, someone liked your photo…)</li></ol><p>Basically any time you want live updates but don’t need the user to send stuff back.</p><p>So yeah, SSE is like the server whispering in your page’s ear:</p><blockquote>Hey, there’s something new!</blockquote><p>And your page just hears it automatically.</p><p>Super chill, super simple🙃</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce903fb0ad3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Typescripts use cases]]></title>
            <link>https://medium.com/@dearlulu1995/typescripts-use-cases-75a09746f41d?source=rss-5b161e81411b------2</link>
            <guid isPermaLink="false">https://medium.com/p/75a09746f41d</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Lulu]]></dc:creator>
            <pubDate>Tue, 22 Jul 2025 02:14:51 GMT</pubDate>
            <atom:updated>2025-07-22T02:17:18.682Z</atom:updated>
            <content:encoded><![CDATA[<h3>Typescripts Use Cases</h3><p>What is TypeScript?<br> Why can’t I just stick with JS or JSX?<br> Why do I <em>have</em> to learn it??<br> Honestly… I really don’t want to. 🤯</p><p>Totally valid questions. I’ve been there.</p><p>As a frontend developer and someone who hopes to be full-stack in the future. I see TypeScript as a foundational skill.</p><p>Why do I say that?</p><p>Because JavaScript is a loosely typed language, which means it doesn’t always behave the way you’d expect. For example:</p><pre>let result = 1 + &#39;1&#39; // result === &#39;11&#39; it is a string 😂</pre><p>Stuff like this can get <em>really</em> messy 🤯 in larger projects.<br>TypeScript helps catch those weird bugs early by enforcing strict types.<br> It gives you more control, better autocomplete, and way more confidence as your codebase grows.</p><pre>const [user, setUser] = useState({}) <br>// like... who even knows what&#39;s inside this object??? 😩</pre><p>Without types, you’re just hoping it has what you need.<br> With TypeScript, you can <em>define</em> what user looks like, so you don’t have to guess later.</p><pre>interface User {<br>  id: number;<br>  name: string;<br>  email: string;<br>}<br><br>const [user, setUser] = useState&lt;User | null&gt;(null);</pre><p>Now, anytime you access user.name, your editor will actually help you. And if you mess up, TypeScript will yell at you in a good way 😅</p><h3>Form handling</h3><p>Ugh. Forms.<br> If you’ve worked on the frontend for even a <em>week</em>, you’ve probably dealt with one.</p><p>And at first it seems simple — just a few inputs and a submit button, right?</p><p>But once the form has more than a few fields, validations, dynamic state, and error messages…<br> it can get chaotic <em>real</em> quick 😵‍💫</p><p>Let’s say you’re building a user preferences form. Without TypeScript:</p><pre>const [form, setForm] = useState({<br>  timezone: &#39;&#39;,<br>  notifications: [],<br>  contact: &#39;&#39;,<br>  preferences: {},<br>})<br><br>const handleChange = (key, value) =&gt; {<br>  setForm(prev =&gt; ({ ...prev, [key]: value }))<br>}<br><br>// somewhere in your JSX:<br>&lt;input onChange={(e) =&gt; handleChange(&#39;contact&#39;, e.target.value)} /&gt;</pre><p>Looks fine at first glance, but…</p><p>notifications is supposed to be an array of booleans? but what if someone sends a string?<br>preferences might have sub-options like { darkMode: true } but nothing is enforced.<br>timezone might be a string | null… or maybe a select value? Who knows?<br>contact… is it an email? a phone number? a Telegram handle?</p><p>This is where bugs <em>love</em> to hide 👀</p><h3>With TypeScript</h3><pre>type PreferencesForm = {<br>  timezone: string<br>  notifications: Array&lt;&#39;email&#39; | &#39;sms&#39; | &#39;push&#39;&gt;<br>  contact: string // we&#39;re enforcing this as a string for now<br>  preferences: {<br>    darkMode?: boolean<br>    language?: string<br>  }<br>}<br><br>const [form, setForm] = useState&lt;PreferencesForm&gt;({<br>  timezone: &#39;&#39;,<br>  notifications: [],<br>  contact: &#39;&#39;,<br>  preferences: {}<br>})<br><br>const handleChange = &lt;K extends keyof PreferencesForm&gt;(key: K, value: PreferencesForm[K]) =&gt; {<br>  setForm(prev =&gt; ({ ...prev, [key]: value }))<br>}</pre><p>Boom 💥 Now:</p><p>TypeScript will yell if you try to assign a number to contact<br>You get autocomplete for ‘email’ | ‘sms’ | ‘push’ in notifications<br>You know exactly what’s inside preferences, even if it’s nested<br>No more guessing. And when this form grows to 10+ fields? You’ll thank yourself.</p><h3><strong>Next steps</strong></h3><p>Alright — we’ve talked about state and forms.<br>Now let’s look at one of the most important use cases for TypeScript in frontend development: <strong>APIs</strong>.</p><p>👉 [Coming up next: How to use TypeScript with API data, fetch calls, and response types.]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75a09746f41d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comparison gives me direction.]]></title>
            <link>https://medium.com/@dearlulu1995/comparison-gives-me-direction-35f255758ce4?source=rss-5b161e81411b------2</link>
            <guid isPermaLink="false">https://medium.com/p/35f255758ce4</guid>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[people]]></category>
            <dc:creator><![CDATA[Lulu]]></dc:creator>
            <pubDate>Tue, 15 Jul 2025 21:20:21 GMT</pubDate>
            <atom:updated>2025-07-15T21:20:21.883Z</atom:updated>
            <content:encoded><![CDATA[<p>That’s something I’ve learned on my UI/UX journey.</p><p>I want to improve my aesthetic sense. I want to design cleaner UIs, smoother flows, more “delightful” experiences. But how do I actually get better?</p><p>After lots of exploration and trial-and-error, I found that <strong>the best way to grow is to look at more examples and make thoughtful comparisons</strong>. What works? What doesn’t? Why do I like this layout more than that one?</p><p>And through that process, I realized something even more important: <strong>Design isn’t just about looking good. It’s about people.</strong></p><p>The final (and most important) step is listening to users. Their feedback tells you what really works, not just what looks good.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35f255758ce4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>