<?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 William Yu on Medium]]></title>
        <description><![CDATA[Stories by William Yu on Medium]]></description>
        <link>https://medium.com/@wy427?source=rss-df614833a2db------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rW1atwgcYUHXHUAU_OFFjQ.jpeg</url>
            <title>Stories by William Yu on Medium</title>
            <link>https://medium.com/@wy427?source=rss-df614833a2db------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 15:26:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@wy427/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why you should build your own pc]]></title>
            <link>https://medium.com/@wy427/i-just-finished-building-my-friends-pc-2c2b28e164ff?source=rss-df614833a2db------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c2b28e164ff</guid>
            <category><![CDATA[comics]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[business]]></category>
            <dc:creator><![CDATA[William Yu]]></dc:creator>
            <pubDate>Tue, 08 Mar 2022 05:08:44 GMT</pubDate>
            <atom:updated>2022-03-08T11:50:18.259Z</atom:updated>
            <content:encoded><![CDATA[<p>I just finished a friend’s PC build. I had a blast building it.</p><p>Why build it yourself you may ask? You’re saving yourself money, not to mention you get to pick down to the exact parts what you’re build looks like and the specs of it.</p><p>It’s much more cost efficient and ergonomic. You can easily maintain for future hardware upgrades. Not to mention — no more bloatware that comes with all these prebuilt pcs.</p><p>Onto the build.</p><p>This machine is top of the line in performance.</p><p>Let’s look at the specs:</p><p>We got a intel i9–9900k processor, with 32 gb of ram, and an RTX 2080 graphics card!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*pMOwFfbxafelMvo9kYIRkA@2x.jpeg" /></figure><p>It’s an absolute piece of art 🔥 — My cable management could be a lot better— the RGB lights though 👌</p><p>This is my current build — that AIO liquid cooler from Corsair looks really sleek.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JHcUsde-spnlx1uF_zwmng@2x.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*Sd05QOzDOxIP1VAEW8JBJQ@2x.jpeg" /></figure><p>It’s a really beefy build.</p><p>32gb of ram. With an i9–9900k too.</p><p>Yeah we got the same specs 👨‍💻</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*Fh4n7LHYV7DTIqlINbPexQ@2x.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*feaVRcIKPNRck6-iGBEeJg@2x.jpeg" /></figure><p>My set up! Also where I code and build my projects. A nice setup really boosts your work morale!</p><p>Here’s a bonus. My boy Shadow . 🐈</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*835eSXoa0syz4nGb74uK4w@2x.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c2b28e164ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Had a photo shoot with my cats]]></title>
            <link>https://medium.com/@wy427/had-a-photo-shoot-with-my-cats-51a8b5d02caa?source=rss-df614833a2db------2</link>
            <guid isPermaLink="false">https://medium.com/p/51a8b5d02caa</guid>
            <category><![CDATA[cats]]></category>
            <category><![CDATA[pets]]></category>
            <category><![CDATA[cats-n-things]]></category>
            <category><![CDATA[cute-animals]]></category>
            <category><![CDATA[cute-pics]]></category>
            <dc:creator><![CDATA[William Yu]]></dc:creator>
            <pubDate>Thu, 24 Feb 2022 01:24:34 GMT</pubDate>
            <atom:updated>2022-02-24T01:24:34.271Z</atom:updated>
            <content:encoded><![CDATA[<p>Had a photo shoot with my cats</p><p>I’m no photographer. Decided to give it a shot!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4R5klwyNsmJnt0tLbesqjg.jpeg" /><figcaption>My momma cat Ninja- She sits by my side whenever I am coding at home</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vF_GlB9o3vttxxILlqp2fQ.jpeg" /><figcaption>My boy Shadow</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pppk3jFUCPBxE5yOoyNLVA.jpeg" /><figcaption>What goof ball</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ImFmpbD_AIRI1YyL0cejOA.jpeg" /><figcaption>How charismatic right?!</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LsnQ0SeZ7wZepSG_PscPIw.jpeg" /><figcaption>Ninja!</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gtqrUPU49OPYxAbIqkNESg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jvq7trH-FuNDWB8LEUyVGw.jpeg" /><figcaption>Mother and son 👨‍👨‍👦‍👦</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51a8b5d02caa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Work Flow for Flat-Iron phase 1 challenge]]></title>
            <link>https://medium.com/@wy427/my-work-flow-for-flat-iron-phase-1-challenge-77abfd702d2c?source=rss-df614833a2db------2</link>
            <guid isPermaLink="false">https://medium.com/p/77abfd702d2c</guid>
            <category><![CDATA[dom-manipulation]]></category>
            <category><![CDATA[phase-1]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[flatiron-school]]></category>
            <category><![CDATA[challenge]]></category>
            <dc:creator><![CDATA[William Yu]]></dc:creator>
            <pubDate>Thu, 24 Feb 2022 01:11:33 GMT</pubDate>
            <atom:updated>2022-02-24T01:34:58.935Z</atom:updated>
            <content:encoded><![CDATA[<p>I have finished the first phase at Flat Iron School’s Soft Engineering program- I absolutely love the program and fallen in love with coding. Here is my work flow on how I aced the phase 1 challenge- completing the core deliverables and the bonus deliverables.</p><p>I have drilled over and over and have noticed a pattern. I managed to finish my challenge in under 30 minutes. — practice makes perfect!</p><ol><li>You will need first host the JSON file locally through terminal.</li></ol><p>2. use Get Request to fetch the JSON</p><p>3. Render part of the JSON Data — which involves iterating through the JSON array of Objects. This part will always be a menu of some sort</p><p>4. Each individual rendered element has a click functionality</p><p>5. The element that is clicked will be displayed is respective object information into a display container.</p><p>6. There will be a form of some type -&gt; here they will require you to manipulate the clicked object’s data. This requires backend and frontend manipulation.</p><p>What you need to follow this — A decent understanding of HTML, how scope works in Javascript, and basic dom manipulation techniques. Remember you have google and Stack Over Flow at your disposal — so really get good at this if you get stuck -&gt; but if you drilled and practiced enough you will not need it.</p><p>the Readme :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*9lAalik6px8BrMW3bQqSKw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*kD3E0Ma9VBtiOFzR28saiQ.gif" /></figure><p>We are asked create a page like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*hcrJ1GGFFzQOnLoBAvEVog.png" /></figure><p>The HTML we are given.</p><p>Don’t worry about the CSS. -Unless there are bonus deliverables that need you to-&gt; but I doubt it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*fIZkV8QqwPWRRVQ8uvgQgw.png" /></figure><p>the local API — quite simple and small.</p><ol><li>First thing — go ahead and start up your local JSON server. I noticed some of my colleagues had trouble with this- make sure you are in the same directory as the JSON file -&gt; i like to just open it -&gt; make sure the db.json tab is highlighted THEN I go and open up the VSC terminal and run the command: “json-server — watch db.json”</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*X6ODNvViunOtOj1ijG5EaQ.png" /></figure><p>sweet now its up and running -&gt; I like to have it opened in my browser next.</p><p>2. Now your fetch request. First thing I love to do is to store the endpoint as a global constant — it will be much easier to access later on. And your basic Get request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*8_u_0W_f0hp3KNbpfVQgdA.png" /></figure><p>go ahead and open the index.html in your browser → i like to do it with local saves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Api3acfuMAMoxCbkHmJDyQ.png" /></figure><p>Sweet ok we are getting the API.</p><p>3. Now we have to Iterate through this array of Objects and render each of these onto the top of the page. I use the .forEach method for iteration.</p><p>We will call a function on each of these individual elements (they are objects )of the array. This function will render each individual element and then insert it into the container.</p><p>You can name them however you like-&gt; These are my own naming schemes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*sHT2bqtrL71rPsf5EQz6yQ.png" /></figure><p>I am assuming you know how to manipulate the dome and object naming conventions. We create a span element first. Then give the span element the NAME of the Object -&gt;then we append it to the container -&gt; you can always go back to the README → it will tell you where it needs to be.</p><p>Now this is what we have.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MV28qZcnw1rBKRdCO_BxlA.png" /></figure><p>Looking like the sample.</p><p>Check the readme again for what to do next.</p><p>They want us to render the first object in the JSON on load of the page.</p><p>Simple → we will create the function which will display everything in the middle section on click.</p><p>Find the Nodes in the HTML where they belong. Put it in the global scope. The manipulate in your function. Here we define the function that will display on click. THIS is the important part for your code to work rite-&gt; you will need to pull the character object that is shown in the container out of the global scope so you can manipulate it with the form later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*3fMHx5agmgLRrVfdBULcvw.png" /></figure><p>Without that you will not be able to manipulate the object that is rendered in the display. This is a very common pattern in every single challenge I’ve done.</p><p>4. Now we simply render the first object when we grab our API</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*oxVffarmMTxABFLXGPUyGg.png" /></figure><p>This will render the firstobject in our array → when the api is successfully grabbed</p><p>Now look at the page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-LK5YZlld-TO92KuQ4wFpQ.png" /><figcaption>nice</figcaption></figure><p>5. Almost there we now need to add Click functionality to each of the menu elements. We do this in our renderList function -&gt; it needs to be in that scope.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*2ym5yBzeoYTtk9-gv39kNw.png" /></figure><p>see that? for every span element we click -&gt; we pass in the respective object into the renderCharacterDisplay function. we need to keep the addEventListener function inside the same function scope or else we cannot access the respective object.</p><p>6. Now we work on our submit form.</p><p>In order to create a submit form button event listener. We look for the the Form Node. then attach an event listener to the Form node. Declare your global DOM constants. then go ahead and add an eventlistener function at the bottom of the script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*eePm4C8x85qOuF9mENvMaA.png" /></figure><p>We are asked to take the number inside the vote input box and it adds to the existing</p><p>For submit button event listener s we use “submit” instead of click and we point to the FORM node instead of the button itself — we need to prevent the refresh of the page as the submit event will reload the page (line 61).</p><p>next we work on the back end data manipulation. We will take the current object vote value and add it to the value inside the form text box. but note that the value from the textbox is a string. so we must convert this string into an integer type first with the built in method .parseInt() → if you ever forget remember that you have google → you would google “how to convert string to integer in JS” you will see an answer.</p><p>Nice now we have the backend taken care of we just simply have to show it on the front end UI. Take a look at line 64 where its done. -I forgot to add a comment for that but that is our front end manipulation</p><p>line 65 is the patch request function call →but don&#39;t worry about that we have completed all the basic deliverables!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77abfd702d2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Algorithms]]></title>
            <link>https://medium.com/@wy427/algorithms-1828794bef04?source=rss-df614833a2db------2</link>
            <guid isPermaLink="false">https://medium.com/p/1828794bef04</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[rubiks-cube]]></category>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[William Yu]]></dc:creator>
            <pubDate>Fri, 28 Jan 2022 16:50:37 GMT</pubDate>
            <atom:updated>2022-02-24T00:05:58.294Z</atom:updated>
            <content:encoded><![CDATA[<p>Algorithms</p><p>My first exposure to algorithms was during my time in middle school when I picked up the Rubik’s cube. I was baffled seeing two of my classmates solve it. I was utterly intrigued. That has to be magic.</p><p>I went up to one of them and asked- how did you solve that? (This was the time when dial-up internet, and I did not have google at my disposal) He humbly replies, “No, I am no genius. It is nothing but a set of moves I remembered. It came with the instructions with the cube” And he showed me. No it was algorithms- a set of sequences that seemed to output the same thing every time it is executed. “There are more algorithms, which are more efficient, and require less moves and less time to move this piece to where I want, and I am practicing to remember them”, he said. “It is muscle memory. You do it over and over, and eventually you will not really have to think about it, your fingers will remember the sequence”.</p><p>I think that week, I asked my mother to buy me a Rubik’s cube. I picked up the instructions and began following. I remember I spent the entire day following the instructions. By just simply following the sequence instructions of rotating -the pieces were moved, solving layer by layer. Still, I needed this pamphlet next to me, opened to solve it. There for the following weeks, all I did was solve the Rubik’s cube. Finally, I remembered all the basic algorithms to solve the enter cube.</p><p>It did not end there. I managed to learn shorter algorithms, more efficient ways to hold the cube, as well as understand just the logic of the color placement. It seem to become more intuitive as time went on. I can almost “feel” where the pieces would end up. There are was a standard pattern.</p><p>Fast forward now to the present. Its been around two decades and these algorithms are still etched in my muscle memory. My average solution time is ~45 seconds- which is by no means impressive in the world of speed-cubing, yet it is still impressive to those who have never seen a Rubik’s cube before. The world record time for a human is 4.22 seconds by Feliks Zemdegs. The world record for a robot? 0.637 seconds. That is insane!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1828794bef04" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>