<?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 Devin Li on Medium]]></title>
        <description><![CDATA[Stories by Devin Li on Medium]]></description>
        <link>https://medium.com/@devinlijkw?source=rss-4ec9eb8577e4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*aLi0TgN4oL-69wxO</url>
            <title>Stories by Devin Li on Medium</title>
            <link>https://medium.com/@devinlijkw?source=rss-4ec9eb8577e4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 21:50:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@devinlijkw/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[Ramen in Exchange for YouTube Likes]]></title>
            <link>https://medium.com/@devinlijkw/ramen-in-exchange-for-youtube-likes-49757aaad0ee?source=rss-4ec9eb8577e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/49757aaad0ee</guid>
            <category><![CDATA[ramen]]></category>
            <category><![CDATA[experiment]]></category>
            <category><![CDATA[youtube]]></category>
            <dc:creator><![CDATA[Devin Li]]></dc:creator>
            <pubDate>Wed, 15 Jul 2020 20:35:28 GMT</pubDate>
            <atom:updated>2020-07-15T20:35:28.964Z</atom:updated>
            <content:encoded><![CDATA[<p>When Covid-19 hit, I rushed to Costco’s website and ordered a shitload of food. One of my purchases included a 48-pack of chicken flavored ramen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K7768vLfLyZwTmrh0P_o8g.jpeg" /></figure><p>But I didn’t like the flavor. So here I was, stuck with 47 packs of perfectly good, non-expired ramen that was about to go to waste.</p><p>Then I had an epiphany. What if I tried exchanging ramen for likes. What if I created a YouTube video and asked people to like it, and in exchange I’d give them a free pack of ramen.</p><p>I don’t know what’ll happen. But I’ve uploaded the video <a href="https://www.youtube.com/watch?v=7MRyqeDMqzw&amp;feature=youtu.be">https://www.youtube.com/watch?v=7MRyqeDMqzw&amp;feature=youtu.be</a></p><p>Now we wait… I will keep you posted on my results.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49757aaad0ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I created a Twitter bot to get Elon Musk to follow me]]></title>
            <link>https://medium.com/@devinlijkw/i-created-a-twitter-bot-to-get-elon-musk-to-follow-me-ee1f3b24e504?source=rss-4ec9eb8577e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee1f3b24e504</guid>
            <dc:creator><![CDATA[Devin Li]]></dc:creator>
            <pubDate>Wed, 08 Jul 2020 20:21:15 GMT</pubDate>
            <atom:updated>2020-07-08T20:26:26.812Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*iQjJodogDXMnEyoN.jpg" /><figcaption>Elon Musk dreaming about Mars</figcaption></figure><p>Due to boredom at work, I thought of an idea.</p><p>What if I tweeted everyday something like</p><blockquote><em>“Day XXX, has </em><a href="https://twitter.com/@ElonMusk"><em>@ElonMusk</em></a><em> followed me yet?”</em></blockquote><p>If he actually followed me, that would be amazing, and I could write it on my resume.</p><p>So off I went.</p><h3>Step 1: Create Twitter developer account</h3><p>I created a new twitter account called <a href="https://twitter.com/ElonMuskFan8">@ElonMuskFan8</a>. To grab Elon’s interest, I made my profile a picture of him next to Mars. Then I got API keys from Twitter’s <a href="https://developer.twitter.com/en/portal/dashboard">developer site</a>. One gotcha I found was, I had to enable write access and THEN regenerate my API keys and secrets or else I’d get 401 errors when trying to POST a tweet.</p><h3>Step 2: Create long-running process that sends one tweet a day.</h3><p>I setup a simple nodeJS project, then installed twitter and express. My app would simply start a server and run an interval, checking each minute if it was 9:30 am. If so, I would send a tweet that said:</p><blockquote><em>Day XX: Has </em><a href="https://twitter.com/@ElonMusk"><em>@ElonMusk</em></a><em> followed me yet?</em></blockquote><h3>Step 3: Deploy my app.</h3><p>For serving my app I chose Heroku. I followed their instructions <a href="https://devcenter.heroku.com/articles/getting-started-with-nodejs">here</a> and was able to deploy my app within 20 minutes. I also stored my API secrets in heroku’s environment variables so I don’t expose them in my Github repo.</p><h3>Step 4: Wait</h3><p>Now we wait and see if Elon Musk ever replies or follows back. It may take months or years, but we don’t care since the bot is taking care of it for us.</p><p>If you like these types of posts let me know!</p><p>My code: <a href="https://github.com/qikevinjkw/elonmuskfan">https://github.com/qikevinjkw/elonmuskfan</a></p><p><em>Originally published at </em><a href="https://dev.to/epic_qi/i-created-a-twitter-bot-to-get-elon-musk-to-follow-me-4poj"><em>https://dev.to</em></a><em> on July 8, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee1f3b24e504" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Interview Questions]]></title>
            <link>https://medium.com/@devinlijkw/javascript-interview-questions-847e59c42aca?source=rss-4ec9eb8577e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/847e59c42aca</guid>
            <dc:creator><![CDATA[Devin Li]]></dc:creator>
            <pubDate>Mon, 08 Jun 2020 20:30:02 GMT</pubDate>
            <atom:updated>2020-06-08T20:32:46.277Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zjim98Rt4M29YL2M" /><figcaption>Photo by <a href="https://unsplash.com/@emilep?utm_source=medium&amp;utm_medium=referral">Emile Perron</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Let’s face it, algorithms are a useless test of a candidate’s experience as a frontend developer. Someone who can <a href="https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/">construct a binary tree from preorder and inorder traversal</a> doesn’t mean they can create an amazing UI with an awesome user experience. <strong>It means they got lucky you asked them a question they’ve seen before.</strong></p><p>What I like to give are mini-projects the candidate can solve in a 30–45 minute timeframe. They can use any framework they like such as React, Angular, or even vanilla JavaScript! Since my firm focuses more on functionality than UI, I tend not to not be so picky about CSS. But adjust as needed.</p><h3><strong>1. Create a stopwatch</strong></h3><p>Ask them to create a simple stopwatch. It should have buttons to start, pause, and stop the timer. I created a <a href="https://stackblitz.com/edit/react-lj3nzp">simple example</a>.</p><p>Gotchas:</p><ul><li>Click the ‘Start’ button multiple times and see if multiple intervals are created. Most candidates make this mistake.</li><li>Ensure ‘Pause’ button is hidden when the stopwatch hasn’t started.</li></ul><p>Bonus questions:</p><ul><li>style the stopwatch</li><li>show milliseconds, minutes and hours</li></ul><h3><strong>2. Create a todo list</strong></h3><p>Enough said, so many tutorials out there about this. Tweak the problem however you like.</p><p>Bonus questions:</p><ul><li>add pagination</li><li>make a todo editable</li></ul><h3><strong>3. Create a simple upvote tool</strong></h3><p>This is a simple polling tool, similar to Slido, that let’s users ask questions and upvote the questions so the most popular ones are shown on top. See <a href="https://stackblitz.com/edit/react-snaajk?file=index.js">example</a>.</p><p>Gotchas:</p><ul><li>Questions should be sorted by upvotes</li><li>When a question is upvoted past another question, the one with the highest upvotes should move to the top</li><li>Handle duplicate questions</li></ul><p>Bonus questions:</p><ul><li>Make questions editable</li><li>Add delete button next to each question</li><li>Style the app</li></ul><p>If the user finishes ahead of time, I will usually ask them some JavaScript related questions. You can find a good list of them <a href="https://www.toptal.com/javascript/interview-questions">here</a>.</p><p>Hope this helped!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=847e59c42aca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Angular Sucks]]></title>
            <link>https://medium.com/@devinlijkw/why-angular-sucks-c90f4e734231?source=rss-4ec9eb8577e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c90f4e734231</guid>
            <dc:creator><![CDATA[Devin Li]]></dc:creator>
            <pubDate>Sat, 06 Jun 2020 14:34:33 GMT</pubDate>
            <atom:updated>2020-06-06T15:04:58.478Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*osUUP62TqtmGtPbZld88ag.jpeg" /><figcaption>Me when working with Angular</figcaption></figure><p>Before I begin, I’d like to clarify that I know Angular is open-source software and I appreciate how many people have dedicated their free time to improving it. But all that doesn’t prevent it from having faults. Some people might say “you’re free to use other frameworks”. Well that’s not true. What if your employer forces you to use Angular? Not everyone can afford to just quit their jobs.</p><p>Now some background.</p><p>In my first professional role, I worked on a large enterprise app written in AngularJS, then continued to work on the migration process to Angular. This went on for a hellish 2.5 years as I grew to hate Angular and ultimately spurred me to look for a role that did NOT use Angular. Now I’m at a different company developing React and it’s been a breath of fresh air.</p><p>With that out of the way, let’s go.</p><ol><li><strong>It’s named Angular</strong></li></ol><p>Yes AngularJS is Angular’s predecessor, but they are completely different frameworks. Why give them identical names?! Add to the fact that people used to refer to “AngularJS” as just “Angular”. Now, whenever I look up something for Angular, a bunch of results for both Angular and AngularJS come up. It usually goes like this(note this was when Angular just came out. The top results are probably related to Angular now, but I’m sure it still happens):</p><ul><li>Google “How to lazy load components Angular”</li><li>See a bunch of results for Angular</li><li>Click them only to find out they’re talking about AngularJS</li><li>Contemplate what I’m doing with my life</li></ul><p>This has cost me a lost of time filtering through posts. And time is something you don’t get back.</p><p>2.<strong> Toxic environment in the Angular team</strong></p><p>If you haven’t read this post by Jeff Cross please give it a read: <a href="https://medium.com/@jeffbcross/jeffs-letter-to-the-angular-team-and-community-5367934a16c9">https://medium.com/@jeffbcross/jeffs-letter-to-the-angular-team-and-community-5367934a16c9</a></p><p>He talks about his experience on the Angular team and how toxic and abusive behavior is perpetuated throughout the team. I believe his story is not unique and you can see more evidence on Angular’s Github issues page. Here’s an example: <a href="https://github.com/angular/angular/issues/13590">https://github.com/angular/angular/issues/13590</a></p><p>This guy raises an issue about why Angular is unable to compile if he has unused components, which is a perfectly valid use case. But here’s a contributor’s response:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*iWISsTAEPro4jE9rPr_aXg.png" /></figure><p>then the author gives another polite response for why its a valid use case and here’s the contributor’s response</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*1n9aeyIILrk6DYQgNfAJng.png" /></figure><p>Half a sentence. No explanation. Just an offhand remark implying the author doesn’t know enough about compilers. I’ve seen many examples like this while I was working on the AngularJS to Angular migration. A lot of responses from the Angular team just said “this will be fixed with the Ivy compiler”. Note this was around the time of Angular 4. <strong>It constantly feels like the members want to lay blame on the users and not the framework.</strong></p><p><strong>3. Too much BOILERPLATE</strong></p><p>Let’s create a new project in StackBlitz in both Angular and React and compare their starter code.</p><p>Here’s Angular. I’ve combined the components together so it’s easier to see. You can see it here as well: <a href="https://stackblitz.com/edit/angular-ivy-fn72rp?file=src%2Fmain.ts">https://stackblitz.com/edit/angular-ivy-fn72rp?file=src%2Fmain.ts</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*Dl-B_XYAUOP_a-Qnx1cVwg.png" /><figcaption>Boilerplate of DOOM</figcaption></figure><p>Now here’s React <a href="https://stackblitz.com/edit/react-gi2ajp?file=index.js">https://stackblitz.com/edit/react-gi2ajp?file=index.js</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*XadkdvcFZ7_S_xrKmNzumA.png" /><figcaption>I’ve even left in the spacing ;)</figcaption></figure><p>In fact, now that React has something called Hooks, I can make it even smaller:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*bNH0B09yKBcSbn9Yf94aLQ.png" /></figure><p>Voila! You tell me that isn’t beautiful, straight-to-the-point code.</p><p><strong>4. Keeping Up</strong></p><p>In my last firm, we were constantly playing catchup with the latest Angular version. It wasn’t as simple as updating the version in package.json and doing an npm install. Every upgrade had some kind backwards compatibility issue. I remember one time we had finally resolved the issues needed to upgrade from 4 to 5, and then 6 came out :(</p><p><strong>5. Too Complicated</strong></p><p>If something was complicated but came with advantages, be my guest! I’d happily spend the extra time to learn it.<strong> But with Angular, it feels like it provides no advantages to other frameworks yet comes with extra complexity. </strong>I’ve read quite a few articles comparing Angular, React and VueJS. They usually conclude with all three frameworks having similar performance, but Angular ends up with a larger bundle size. If they all have similar performance, why would I spend the extra hours learning a more complicated tool to fix the same problem?</p><p>To conclude, I think Angular comes with too much complexity and disadvantages, especially when compared to other frameworks. Please let me know if I am just alone in my opinion or if you think it sucks too. Actually, I know I’m not alone. Having asked many of my friends at other tech firms, including Google, they almost all prefer React or VueJS. The ones that prefer Angular don’t actually have much experience with other frameworks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c90f4e734231" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Cured My Seasonal Nasal Allergies With This Simple Trick]]></title>
            <link>https://medium.com/@devinlijkw/i-cured-my-seasonal-nasal-allergies-with-this-simple-trick-6602813108b7?source=rss-4ec9eb8577e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/6602813108b7</guid>
            <category><![CDATA[allergies]]></category>
            <category><![CDATA[dust-mite-allergies]]></category>
            <category><![CDATA[lifehacks]]></category>
            <category><![CDATA[health]]></category>
            <dc:creator><![CDATA[Devin Li]]></dc:creator>
            <pubDate>Thu, 15 Nov 2018 04:21:12 GMT</pubDate>
            <atom:updated>2018-11-15T04:21:12.033Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Oc-3DQ2dZOEObeMG" /><figcaption>Photo by <a href="https://unsplash.com/@simonmigaj?utm_source=medium&amp;utm_medium=referral">Simon Migaj</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I’ve suffered from nasal allergies for about 10 years. And I’ve tried everything from air purifiers, local honey, nasal sprays, allergy medicine, hot showers, steam rooms, Neti pots, vaseline in the nose, staying indoors, exercising. None of them have had a permanent effect on me.</p><p>Until I discovered this trick.</p><p><strong>Whenever I’m about to sneeze, I try my hardest to suppress it.</strong> It seems silly right. Too easy to be true. But it’s worked for me for the past 6 months and I haven’t had a stuffy nose since.</p><p>Here’s my non-scientific explanation of why I think it works. Whenever we have allergic reactions to pollen or dust mites, we let ourselves sneeze. But this irritates the blood vessels in our nose and enlarges them. Which makes our nose stuffy. Then we start blowing our noses to try and unclog them, but this just irritates it more.</p><p>But if we had not let ourselves sneeze the first time, we wouldn’t have needed to blow our nose. And when I say don’t let yourself sneeze, I mean, <strong>try your god damn hardest to not sneeze.</strong> But if you absolutely have to, <strong>try not make any noise when you sneeze.</strong> I’ve found that this minimizes the irritation to the nose.</p><p>So there you go. I’m not sure if this trick will work on anybody else. But it worked for me and I wanted to share it with those who suffer from nasal allergies. I wish I knew about this trick 10 years ago.</p><p>It’s easy to try, so why not?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6602813108b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>