<?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 P1xt on Medium]]></title>
        <description><![CDATA[Stories by P1xt on Medium]]></description>
        <link>https://medium.com/@P1xt?source=rss-bf42d244c85------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*rkguMemP-l6olY64.png</url>
            <title>Stories by P1xt on Medium</title>
            <link>https://medium.com/@P1xt?source=rss-bf42d244c85------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 14:08:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@P1xt/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[Guides updated to version 4.0]]></title>
            <link>https://medium.com/p1xts-blog/guides-updated-to-version-4-0-34d3d88c2c80?source=rss-bf42d244c85------2</link>
            <guid isPermaLink="false">https://medium.com/p/34d3d88c2c80</guid>
            <category><![CDATA[p1xt-guides]]></category>
            <dc:creator><![CDATA[P1xt]]></dc:creator>
            <pubDate>Sat, 25 May 2019 20:04:08 GMT</pubDate>
            <atom:updated>2019-05-25T20:04:08.652Z</atom:updated>
            <content:encoded><![CDATA[<p>Today I published a long overdue update to my guides. You can read the <a href="https://github.com/P1xt/p1xt-guides/blob/master/faq.md">FAQ in the repo</a> or <a href="https://twitter.com/P1xt/status/1132361283578269698">read my Twitter post</a> for more information.</p><p>I am only posting here for those few friends who’ve, unlike me, not abandoned Medium at this point.</p><p>You can find the 4.0 version of my guides in their normal repository on GitHub, <a href="https://github.com/P1xt/p1xt-guides">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34d3d88c2c80" width="1" height="1" alt=""><hr><p><a href="https://medium.com/p1xts-blog/guides-updated-to-version-4-0-34d3d88c2c80">Guides updated to version 4.0</a> was originally published in <a href="https://medium.com/p1xts-blog">P1xt’s Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scrollspy with ‘just JavaScript’]]></title>
            <link>https://medium.com/p1xts-blog/scrollspy-with-just-javascript-3131c114abdc?source=rss-bf42d244c85------2</link>
            <guid isPermaLink="false">https://medium.com/p/3131c114abdc</guid>
            <category><![CDATA[scrollspy]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[navbar]]></category>
            <dc:creator><![CDATA[P1xt]]></dc:creator>
            <pubDate>Wed, 17 Apr 2019 21:05:40 GMT</pubDate>
            <atom:updated>2019-04-17T21:18:46.564Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sd18GU0S656F2PvWXU8dkQ.png" /><figcaption>Native JavaScript to implement ScrollSpy (change active menu based on scrolled location on page)</figcaption></figure><p>Bootstrap has an awesome feature baked into it for highlighting the ‘active’ item in a page’s navbar based on what section of the page a user is currently viewing — as the user scrolls down the page, the menu automagically updates, adding the active class to the appropriate nav item.</p><p>But what if you’re not using Bootstrap?</p><p>Well, there are a metric ton of npm packages that’ll help you accomplish the same thing if you’re using jQuery, or Angular, or React, etc, etc, etc.</p><p>But what if you just want to code up the functionality in plain ‘ole JavaScript?</p><p>That’s where I found myself this week and it turns out to be surprisingly simple.</p><h3>There are only really four things you need to know:</h3><h4>How to get some JavaScript loaded up when your page loads:</h4><p>To do this, add an ‘event listener’ that watches for the ‘DOMContentLoaded’ event</p><pre>document.addEventListener(&#39;DOMContentLoaded&#39;, function(){<br>  // the JavaScript you want to run after the page loads<br>}, false);</pre><h4>How to get the DOM elements you want to either change or check the position of:</h4><p>To do this, use document.querySelectorAll and pass in something that uniquely identifies the HTML elements you want to capture. In my case, I gave the elements specific classnames then queried based on those classes.</p><pre>const sections = document.querySelectorAll(&quot;.template__section&quot;);<br>const menu_links = document.querySelectorAll(&quot;.template__nav-item a&quot;);</pre><h4>How to check whether a DOM element you care about is in the currently viewable area of the browser window:</h4><p>To do this, first you need to capture ‘scroll events’ so you know when the user is scrolling and can then check the user’s position in the page to see which nave element it corresponds to.</p><pre>window.addEventListener(&quot;scroll&quot;, () =&gt; {<br>  // check position and update nav<br>});</pre><p>Checking the position is a bit mathy, but not too mathy — you just check the current scroll position and compare it to the positions of the sections of the page to find which one matches up. It helps to add a bit of ‘wiggle room’ at the top of a section to ensure your section header is well within the user’s view when that section registers as the current one.</p><pre>const current = sections.length - [...sections].reverse().findIndex((section) =&gt; window.scrollY &gt;= section.offsetTop - sectionMargin ) - 1</pre><p>That’s a lot happening in one statement so I’ll break it down a bit.</p><p>window.scrollY — is the user’s current scroll position</p><p>section.offsetTop — corresponds to how far down each particular section is</p><p>sectionMargin — is that ‘wiggle room’ I was talking about, to allow a bit of space at the top of a section when it’s considered the active section.</p><p>[...sections] — is a bit of ES6 magic that takes a list of DOM nodes (what we got from the queries we did above, and turns them into a regular JavaScript array we can use all normal array methods on</p><p>reverse() — just reverses the array. Why reverse is the important part here — by reversing, when we use findIndex() next it will find the last section on the page that’s past the current window scroll. Not reversed, it’d find the first section of the page ‘first’ every single time and our scrolling magic wouldn’t work.</p><p>findIndex() — finds the first index in an array that matches the given condition.</p><h4>How to add or remove a class from a DOM element:</h4><p>To do this, use classList.add and classList.remove, which are methods available on the DOM nodes we queried earlier.</p><pre>const makeActive = (link) =&gt; menu_links[link].classList.add(&quot;active&quot;);</pre><pre>const removeActive = (link) =&gt; menu_links[link].classList.remove(&quot;active&quot;);</pre><pre>const removeAllActive = () =&gt; [...Array(sections.length).keys()].forEach((link) =&gt; removeActive(link));</pre><p>If you want to see the full (minimal) demo I put together as a proof of concept, you can see it on CodePen here:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2FP1xt%2Fembed%2Fpreview%2FVNrPbg%3Fheight%3D600%26slug-hash%3DVNrPbg%26default-tabs%3Dhtml%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io&amp;url=https%3A%2F%2Fcodepen.io%2FP1xt%2Fpen%2FVNrPbg&amp;image=https%3A%2F%2Fscreenshot.codepen.io%2F472978.VNrPbg.small.759fffdc-33b9-4181-81cc-b86305a779fd.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/2dee4c06e42525cf3d55a4e9188c236f/href">https://medium.com/media/2dee4c06e42525cf3d55a4e9188c236f/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3131c114abdc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/p1xts-blog/scrollspy-with-just-javascript-3131c114abdc">Scrollspy with ‘just JavaScript’</a> was originally published in <a href="https://medium.com/p1xts-blog">P1xt’s Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Speedrun progress — entry 5]]></title>
            <link>https://medium.com/p1xts-blog/speedrun-progress-entry-5-968615056d5c?source=rss-bf42d244c85------2</link>
            <guid isPermaLink="false">https://medium.com/p/968615056d5c</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[sass]]></category>
            <category><![CDATA[speedrun]]></category>
            <dc:creator><![CDATA[P1xt]]></dc:creator>
            <pubDate>Wed, 13 Jun 2018 19:14:12 GMT</pubDate>
            <atom:updated>2018-06-13T19:59:55.792Z</atom:updated>
            <content:encoded><![CDATA[<p>A public service announcement</p><p>I hit the Sass part of the freeCodeCamp curriculum today.</p><p>I am not going to write a wall of text.</p><p>Instead, a public service announcement:</p><p>If you are doing one of the FCC Sass challenges, enter a solution you believe to be valid, and see it make the correct change in the display frame, but a bunch of the test cases fail, do NOT waste even a minute (much less 30 like I did) trying to figure out what you did wrong.</p><p>Instead, just submit it a few more times (without changing anything), just keep clicking the “Run the Tests” button or clicking ctrl-enter.</p><p>The platform is bugged. Sometimes your code will fail the tests even though your code is correct. Resubmit it a few times. Usually at least one of 5 submits will pass the test cases.</p><p>I bug reported it, but in the meantime, just spam submit.</p><p><a href="https://github.com/freeCodeCamp/freeCodeCamp/issues/17570">Sass Challenges intermittently report failed tests for correct solutions · Issue #17570 · freeCodeCamp/freeCodeCamp</a></p><h4>Update: This workaround does not work for</h4><pre>Sass: Apply a Style Until a Condition is Met with @while</pre><p>That challenge is bugged on Chrome, if correct code won’t pass the tests and you’re using Chrome, try another browser. I used the PaleMoon browser to pass the challenge, others report Firefox works.</p><p><a href="https://github.com/freeCodeCamp/freeCodeCamp/issues/17479">Sass - Apply a Style Until a Condition is Met with @while correct code can not pass! · Issue #17479 · freeCodeCamp/freeCodeCamp</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=968615056d5c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/p1xts-blog/speedrun-progress-entry-5-968615056d5c">Speedrun progress — entry 5</a> was originally published in <a href="https://medium.com/p1xts-blog">P1xt’s Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Speedrun progress — entry four]]></title>
            <link>https://medium.com/p1xts-blog/speedrun-progress-entry-four-78a9aef96a8?source=rss-bf42d244c85------2</link>
            <guid isPermaLink="false">https://medium.com/p/78a9aef96a8</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[speedrun]]></category>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[P1xt]]></dc:creator>
            <pubDate>Tue, 12 Jun 2018 22:26:32 GMT</pubDate>
            <atom:updated>2018-06-12T22:26:32.312Z</atom:updated>
            <content:encoded><![CDATA[<h4><a href="https://github.com/raisedadead">@raisedadead</a> is awesome</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3xdB-CLmvB98v8y_" /><figcaption>Photo by <a href="https://unsplash.com/@robinpierre?utm_source=medium&amp;utm_medium=referral">Robin Pierre</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>For this sprint I decided to stop worrying about the brittle user stories on the web dev projects and just bang out the JS cert. It took me around 8ish hours to go through all the lessons and do the 5 required algorithmic “projects”. I wrapped them up, headed to my settings page to collect my cert and … bam, settings page is borked. So I hit up the FCC github to see if there was an open issue, there was, it had been open for a couple weeks but it must have been some special sort of magic because within about 20 minutes of me encountering the issue, there was a workaround, and <a href="https://medium.com/u/77e07c28e64f">Mrugesh Mohapatra</a> was deploying a fix. I ended up having to re-code my solutions for the 5 required projects because apparently FCC doesn’t like saving shit, but within the hour I had them redone and claimed the cert.</p><h4>This was the issue, in case anyone else comes across it:</h4><p><a href="https://github.com/freeCodeCamp/freeCodeCamp/issues/17278#issuecomment-396709967">Sections missing from settings page · Issue #17278 · freeCodeCamp/freeCodeCamp</a></p><h4>Pro tip folks:</h4><p>Save your code off to repl.it or something to ensure you never end up in a situation where you need access to that code again and FCC has sent your solutions off into the cosmic shitter. Seriously, I’ve done upwards of 500 lessons in the past few days and none of them are available if I click them on my portfolio or from the curriculum page (or even if I download “all my data” from my settings page) … the cosmic shitter has them.</p><h4>Retrospective on “Javascript Algorithms And Data Structures Certification (300 hours)”</h4><p>Well, firstly, it took me under 8, but I’m pretty comfortable with both JavaScript and Algorithms and Data Structures. I could easily see it taking 300 (or even double/triple that) if you’re new to programming. I’m not really convinced that giving an hours estimate is that helpful because, really, when you get down to it, how long it’s going to take is going to be different for everyone and I think saying “300 hours” is pretty detrimental to morale of true beginners who might well take longer.</p><p>Some of the new lessons are brilliant. JavaScript is now covered much more thoroughly — there was a vast improvement to the JS coverage in the revamp. Seriously. It’s much better.</p><p>That said, though the individual lessons were much better, and the sequences within a section are quite good, the overall sequence would have benefited a lot from a bit of analysis and restructuring. In several cases, “the basics” came dozens of lessons and several sections later in the sequence than more advanced topics. Case in point, one early lesson relies on the use of Array.map and any solution that doesn’t use map is not accepted — neither the lesson, nor any lesson before it mentioned map, and map doesn’t first appear in the curriculum until several sections later. I very much got the impression that the sequence was drawn up and finalized without anyone ever actually going through the entire section start to finish and ordering them logically so later lessons build on earlier ones.</p><p>Additionally, this section would really benefit from a “for more information” page wrap-up. The content is much improved over the last FCC release, but there are still gaps. There should, at minimum, be links to MDN — there used to be, but they seem to all be gone now.</p><h4>Pro Tip #2:</h4><p>Don’t take FCC’s curriculum as all you need to know. When, you’re learning a section, also consult the official docs. By this I mean: hit up MDN for HTML/CSS/JavaScript — and nodejs.org or reactjs.org or whatever the official site is for whatever you happen to be using. You’ll find that there’s a wealth of additional information available to you. Don’t just FCC and StackOverflow your way through the curriculum, you’d be doing yourself a disservice.</p><h4>Pro Tip #3:</h4><p><a href="https://repl.it/">https://repl.it/</a> is awesome</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78a9aef96a8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/p1xts-blog/speedrun-progress-entry-four-78a9aef96a8">Speedrun progress — entry four</a> was originally published in <a href="https://medium.com/p1xts-blog">P1xt’s Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Speedrun progress — entry three]]></title>
            <link>https://medium.com/p1xts-blog/speedrun-progress-entry-three-ca092aadf1ea?source=rss-bf42d244c85------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca092aadf1ea</guid>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[speedrun]]></category>
            <dc:creator><![CDATA[P1xt]]></dc:creator>
            <pubDate>Sat, 09 Jun 2018 19:42:19 GMT</pubDate>
            <atom:updated>2018-06-09T21:02:04.220Z</atom:updated>
            <content:encoded><![CDATA[<h4>My June speedrun is over — ok maybe not</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*IGXurazjcXmFtaMT5IO3aA.png" /><figcaption>Image from: <a href="https://emojiisland.com/products/poop-emoji-icon">https://emojiisland.com/products/poop-emoji-icon</a></figcaption></figure><p>I gave input on the new freeCodeCamp “test suites” that automatically test project submissions back when they were first implemented. None of what I felt were reasonable concerns put forth by myself and others were addressed at all. Well, I take that back. Now the projects have this disclaimer tacked to the top of them:</p><blockquote>You can use HTML, JavaScript, and CSS to complete this project. Plain CSS is recommended because that is what the lessons have covered so far and you should get some practice with plain CSS. You can use Bootstrap or SASS if you choose. Additional technologies (just for example jQuery, React, Angular, or Vue) are not recommended for this project, and using them is at your own risk. Other projects will give you a chance to work with different technology stacks like React. We will accept and try to fix all issue reports that use the suggested technology stack for this project. Happy coding!</blockquote><p>Let me translate that for you — what it really means is “our brittle as shit testing suite can’t handle anything but plain html”.</p><blockquote>Additional technologies (just for example jQuery, React, Angular, or Vue) are not recommended for this project, and using them is at your own risk.</blockquote><p>At my own risk? Isn’t that sort of warning typically reserved for dangerous stuff? I expect that type of disclaimer for things like skiing, deep sea diving, jumping out of airplanes , running with bulls, juggling chainsaws— but “use Angular at your own risk” — wtf? What dire consequence will befall me if I throw caution to the wind and decide “screw it, I’m using Angular, I accept the risks” — well, the FCC test suite breaks because it’s brittle as ****.</p><p>What this means, in practical terms, is that my awesome Angular speedrun application in which I implement every one of the FCC projects won’t pass the FCC test suites because I <strong><em>*gasp* </em></strong>use material design components.</p><p>In order to pass the test suites and still have my comprehensive app, my only option is to make my app how I want — then reimplement stand-alone crappier versions of all the projects to pass FCC’s test suites.</p><p>While I’m on my soap-box, let’s talk user stories. At the top of each of the project descriptions there’s a link to <a href="https://en.wikipedia.org/wiki/User_story">Wikipedia’s description of user stories.</a> I actually went and read everything at that link to ensure that my understanding of user stories (I’ve been using them to describe applications for, well, decades) wasn’t outdated — I mean, hell, tech changes so fast in the web world that maybe there was some fancy new-fangled concept of the user story that somehow made it ok for the bulk of your stories (or even one of them, for that matter) to be things like “as a user I can see a div with the id ‘bullshit’”. User stories didn’t change — FCC just has zero understanding of the concept, even though they link to a Wikipedia article that explains it in depth.</p><p><strong><em>Midway through typing this I decided to proceed with the “do the projects correctly in my app then give FCC a crappy other version that passes their test suite”.</em></strong></p><h4>You can view the results of my tribute page here:</h4><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fcodepen.io%2FP1xt%2Ffull%2FOEWjdX%2F&amp;src=https%3A%2F%2Fcodepen.io%2FP1xt%2Fembed%2Fpreview%2FOEWjdX%3Fheight%3D600%26slug-hash%3DOEWjdX%26default-tabs%3Dhtml%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io%26embed-version%3D2&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/bffa33794f06f03a152c4f91d4e8ebd8/href">https://medium.com/media/bffa33794f06f03a152c4f91d4e8ebd8/href</a></iframe><p>It passes the entire FCC test suite and links to my actual project — Problem solved, I guess.</p><p>For anyone curious — my suggestions back when I first saw the “automated tests” freeCodeCamp intended to introduce with the new curriculum were:</p><ul><li>Allow a user to opt out of FCC’s automated tests by linking to their own test suite which implements an equivalent or more robust set of tests, or</li><li>Instead of automated tests which test only that some elements are present in the DOM, engineer a process whereby once you have completed a particular project, your project isn’t vetted until you review 5 submissions for others, and at least two people review your project — for reasonable user stories and to check for plagiarism. FCC crowd sources everything else, why not let the users check each others projects. Popup a form that gives a link to a project and asks very specific questions — do you suspect plagiarism, can you see a tribute page at that link, does it have some sort of heading that explains what the page is about, does it have an image, is there some text you can read to learn about the topic, is there a link where you can go to learn more? Make the questions specific and actual user stories — no checking “does it have a div with a particular id” — no “do you like the design” — just does it do what it should do.</li></ul><p>/soapbox</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca092aadf1ea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/p1xts-blog/speedrun-progress-entry-three-ca092aadf1ea">Speedrun progress — entry three</a> was originally published in <a href="https://medium.com/p1xts-blog">P1xt’s Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Speedrun progress — entry two]]></title>
            <link>https://medium.com/p1xts-blog/speedrun-progress-entry-two-ed5e272bc472?source=rss-bf42d244c85------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed5e272bc472</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[speedrun]]></category>
            <dc:creator><![CDATA[P1xt]]></dc:creator>
            <pubDate>Fri, 08 Jun 2018 05:29:05 GMT</pubDate>
            <atom:updated>2018-06-08T05:29:05.691Z</atom:updated>
            <content:encoded><![CDATA[<h4>Unannounced downtime with no warning and no expected duration is bad</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MMXphEAURswLJxxu" /><figcaption>“A pair of glasses on top of a laptop with a phone on one side and a mouse on the other” by <a href="https://unsplash.com/@jesuskiteque?utm_source=medium&amp;utm_medium=referral">Jesus Kiteque</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Sooooooo….</p><p>I continued on with my speedrun this evening. I finished a few more sections and was just completing the section on CSS grid and thinking “almost done with the lessons, I bet I can whip out the 5 projects and get the first cert tonight” …. and …. bam … site shutdown.</p><h3>freeCodeCamp.org on Twitter</h3><p>We are taking https://t.co/tUkJDFZydk down for some quick server maintenance. You can still access https://t.co/oZD9JXlsnB, our Medium publication, and our YouTube channel. Thanks for your patience.</p><p>No advance notice.</p><p>No estimate for when it’ll be back up.</p><p>Downtime happens. Anyone who’s done any sort of professional development knows that — but they also know that communication is key, and a clear sign of competency.</p><p>I guess I’ll go get some sleep and hit the Speedrun again tomorrow — FCC’s been down close to an hour, the chances of it coming up in time for me to crank out some more Speedrun tonight are pretty darn slim.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed5e272bc472" width="1" height="1" alt=""><hr><p><a href="https://medium.com/p1xts-blog/speedrun-progress-entry-two-ed5e272bc472">Speedrun progress — entry two</a> was originally published in <a href="https://medium.com/p1xts-blog">P1xt’s Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Speedrun progress — entry one]]></title>
            <link>https://medium.com/p1xts-blog/speedrun-progress-entry-one-1705895d01b1?source=rss-bf42d244c85------2</link>
            <guid isPermaLink="false">https://medium.com/p/1705895d01b1</guid>
            <category><![CDATA[speedrun]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[challenge]]></category>
            <dc:creator><![CDATA[P1xt]]></dc:creator>
            <pubDate>Fri, 08 Jun 2018 01:46:47 GMT</pubDate>
            <atom:updated>2018-06-08T05:09:01.840Z</atom:updated>
            <content:encoded><![CDATA[<h4>Donation popup spam — is not delightful.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5zf-Oz4Z7zDdd6D0" /><figcaption>“Close-up of a MacBook on a dark surface” by <a href="https://unsplash.com/@schwiet?utm_source=medium&amp;utm_medium=referral">seth schwiet</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Thusfar, I’ve finished “Basic HTML and HTML5” and am halfway through “Basic CSS” and I’ve discovered what I think might be the <strong><em>real reason</em></strong> this shitfest of a release finally saw the light of day.</p><h4>Holy donation popup spam</h4><pre>export const shouldShowDonationSelector = state =&gt; {<br>  const completedChallenges = completedChallengesSelector(state);<br>  const completionCount = completionCountSelector(state);<br>  const currentCompletedLength = completedChallenges.length;<br>  // the user has not completed 9 challenges in total yet<br>  if (currentCompletedLength &lt; 9) {<br>    return false;<br>  }<br>  // this will mean we are on the 10th submission in total for the user<br>  if (completedChallenges.length === 9) {<br>    return true;<br>  }<br>  // this will mean we are on the 3rd submission for this browser session<br>  if (completionCount === 2) {<br>    return true;<br>  }<br>  return false;<br>};</pre><p>Two hours ago — that lovely bit of code got deployed. Did they prioritize making the UI work on mobile? — no. Did they prioritize making the UI look like less of a shitfest? — hell no. Did they fix bugs or add in anything that would improve the release for users? …. you guessed it, again, no.</p><blockquote>The priority — spying on how many lessons you’ve worked on and ensuring that you get a popup asking you for a monthly donation within 3 lessons every single time you login.</blockquote><p>It’s the same donation scheme as in the old system. No way to donate once, they only let you sign up for monthly donations. But now, the new system, which I’ve not seen provide any benefit whatsoever to learners, does let them beancount your engagement at extremely fine grained detail and popup their donations modal over — and over — and over.</p><p>Personally, I’m not going to worry about their donations. Their business model isn’t donations — it’s building social media presence, leveraging their following for affiliate links, and eventually selling off the hard work of countless contributors to the highest bidder, along with all the analytics and private data they’ve engineered the “new release” to collect. Don’t believe me? Double check the Terms/Privacy statement they make you sign — when they sell out, the buyer gets all their (your) data.</p><p>Ok, hopping off my soapbox. If you don’t want to get bugged over and over to sign up to send them money every month, just add the following css to the page using Stylus/Stylish:</p><pre>.donation-modal {<br>    display: none !important;<br>}</pre><p>I did make a Stylus theme, but I’m not going to add that bit into it because it’s sort of a personal choice whether you decide you want to see the popup over and over and it’d be sort of a jerk move for me to publish a CSS override to Stylish for people to download and use completely unaware that donation modals are shutoff.</p><p><strong>Note to self:</strong> Once you complete this speedrun, weed through their new code base and see just how much “analytics” they’re doing. The new platform sure the hell isn’t about a better experience for the user — how much of the new platform is in place to collect data to make FCC more attractive for acquisition?</p><h4>Passwordless Authentication</h4><p>I call <strong><em>bullshit</em></strong> — I don’t need to maintain a password for FCC if I can just “login with github”. Interestingly, the one thing the new passwordless authentication scheme insures is that freeCodeCamp is always assured that they have a legitimate email address for every user. With github, you can configure it to use an obfuscated email so no one gets your real email — not with this passwordless authentication bullshit. I don’t care how many long assed blog posts you cite about security, giving someone who flat out states that when they are bought out they’re giving all their(your) data to whoever buys them a consistently verified “good email” address is doing nothing but giving them the best ****ing marketing list targeting junior developers in the world — to sell when they get bought out.</p><h4>You can’t select text in the last line of the code editor</h4><p>If you run into this issue, just add a blank like as the last line of your code. Then, you’ll be able to select text in the line above that blank line.</p><h4>Quality of the content</h4><p>Thusfar, though I still don’t believe FCC is sufficient to truly prepare someone to productively enter the workforce as a developer, <strong><em>the content changes are — pretty much across the board — vast improvements over the previous content.</em></strong> It is both sad, and a bit infuriating, that all of the hard work contributors put into the content improvements just sat on the shelf for a year and a half until FCC could rebuild the framework to bean-count its users’ every click. The delay can’t be about wanting a framework to better serve user needs, the UI and UX are truly awful — and every lesson I’ve seen thusfar would have worked just fine in the old (crappy but better than this) UI.</p><p>Until tomorrow — I’m off to do more lessons.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1705895d01b1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/p1xts-blog/speedrun-progress-entry-one-1705895d01b1">Speedrun progress — entry one</a> was originally published in <a href="https://medium.com/p1xts-blog">P1xt’s Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Who’s up for a challenge?]]></title>
            <link>https://medium.com/p1xts-blog/whos-up-for-a-challenge-c0ef40637217?source=rss-bf42d244c85------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0ef40637217</guid>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[speedrun]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[challenge]]></category>
            <dc:creator><![CDATA[P1xt]]></dc:creator>
            <pubDate>Thu, 07 Jun 2018 22:46:53 GMT</pubDate>
            <atom:updated>2018-06-07T22:46:53.866Z</atom:updated>
            <content:encoded><![CDATA[<h4>I am. It’s speedrun time!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IPsBE9GvY2niB8CT" /><figcaption>Photo by <a href="https://unsplash.com/@osmanrana?utm_source=medium&amp;utm_medium=referral">Osman Rana</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><a href="https://medium.com/u/8b318225c16a">freeCodeCamp</a> released it’s new curriculum recently. I finally got <a href="https://userstyles.org/styles/161026/fcc-tweaked">my stylus settings</a> to where the new platform isn’t actively annoying. So — I’m going to try the new curriculum out — challenge-style.</p><p>My profile is reset.</p><p>You can find it here: <a href="https://www.freecodecamp.org/p1xt"><strong>P1xt’s Profile</strong></a></p><p>I’ve made my profile public through the weekend even though typically I don’t because FCC is ridiculously awful about privacy.</p><h4>The challenge:</h4><p>How fast can I (or you) finish the new freeCodeCamp curriculum (to a decent standard, with the projects built out with enough quality that you wouldn’t be embarrassed if a potential employer saw them.)</p><h4>The rules:</h4><ul><li>start from a clean slate (reset profile)</li><li>don’t half-ass the projects</li><li>make note of your start and end dates</li><li>do every single lesson, every project, every thing on the map, in order (unless a particular lesson is bugged)</li></ul><p>Start whenever you want. I am starting right this minute (Thursday June 7, 2018 at 5:42 pm local time). I’ll follow up post with progress and do a comprehensive post when I finish. In the meantime, you can see my progress on my profile (linked above).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0ef40637217" width="1" height="1" alt=""><hr><p><a href="https://medium.com/p1xts-blog/whos-up-for-a-challenge-c0ef40637217">Who’s up for a challenge?</a> was originally published in <a href="https://medium.com/p1xts-blog">P1xt’s Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FreeCodeCamp released it’s new curriculum]]></title>
            <link>https://medium.com/p1xts-blog/freecodecamp-released-its-new-curriculum-5f7d733a43e5?source=rss-bf42d244c85------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f7d733a43e5</guid>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[awful-ui]]></category>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[P1xt]]></dc:creator>
            <pubDate>Wed, 06 Jun 2018 17:55:44 GMT</pubDate>
            <atom:updated>2018-06-07T02:58:53.398Z</atom:updated>
            <content:encoded><![CDATA[<h4>And — the UI is awful — but it is in your power to make it look however you want it to</h4><p>My twitter feed was abuzz last week with comments about the new FCC release. It seemed, from what I read on my feed, to be a predominantly negative reception based on the UI redesign which, lets be honest, is truly awful — it’s cluttered, it’s messy, there’s no dark option, there’s scrollbars ****ing everywhere. They took an ugly UI, spent two and a half years revamping it, only to make it a far worse user experience.</p><p><strong>The thing is — it’s in your power to fix the UI to look however you want — using skills you learned from FCC itself.</strong></p><p>For instance, there’s a chrome extension <a href="https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne?hl=en">Stylus</a> that allows you to override the styles on any site you want. There are similar extensions for other browsers, but I use chrome, so I used the chrome one. Using stylus, all you have to do is weed into the styles being used on the page (using inspect element / chrome dev tools) then swap out the styles for whatever the heck you want.</p><p>This is what the FreeCodeCamp UI now looks like to me:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RSrUTg772r8lh1ZLnqWDCg.png" /></figure><h4>This is what I did:</h4><ul><li>I got rid of all the scrollbars.</li><li>I swapped everything to a dark theme with a nice terminal green (which is my personal preference for code).</li><li>I got rid of the campfire green on all the buttons/headers.</li><li>I got rid of the “motivational message” in between lessons.</li><li>I got rid of the search bar — I neither want, nor need it.</li><li>I removed all of the indent and matched bracket coloring in the editor.</li><li>I increased font sizes pretty much across the board.</li></ul><p>In short, I made it look exactly how it should look for me personally to get the UI and all it’s annoyances out of my way so I could actually focus on the important part — the curriculum, the content.</p><h4>My Point:</h4><p>It is in your power to make FreeCodeCamp (or any other site) look however you want it to. Rather than complaining, take this as an opportunity to practice your CSS skills. I used Stylus for Chrome — use whatever is available on your browser of choice — and don’t be constrained by the choices I made, pick whatever looks/works best for you.</p><p>For a quick look at what I changed, to give you ideas about what you might want to target, I’ve packaged my CSS into <a href="https://gist.github.com/P1xt/6e626abb02b6613a04cbfedcd734e1bf">this gist</a>.</p><blockquote>The point is — even without a whole lot of CSS knowledge, you could weed through that CSS there and change the colors to be whatever you want. Make the awful UI into a learning experience.</blockquote><p><strong>Edit:</strong></p><p><em>Modified the CSS to fix a couple places where I’d missed a style for links and to remove the intellisense in the code editor. I really hate having windows pop up and block half my editor trying to guess what I’m trying to type — when I already know what I want to type.</em></p><p><strong>Edit — part 2:</strong></p><p>I uploaded the theme to stylish so that anyone who wants to build off it can easily fork and modify it.</p><p><a href="https://userstyles.org/styles/161026/fcc-tweaked">FCC tweaked</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f7d733a43e5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/p1xts-blog/freecodecamp-released-its-new-curriculum-5f7d733a43e5">FreeCodeCamp released it’s new curriculum</a> was originally published in <a href="https://medium.com/p1xts-blog">P1xt’s Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Programming Speedrun]]></title>
            <link>https://medium.com/p1xts-blog/programming-speedrun-a7b5740c32f5?source=rss-bf42d244c85------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7b5740c32f5</guid>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[p1xt-guides]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[speedrun]]></category>
            <category><![CDATA[challenge]]></category>
            <dc:creator><![CDATA[P1xt]]></dc:creator>
            <pubDate>Wed, 02 May 2018 17:42:55 GMT</pubDate>
            <atom:updated>2018-05-02T17:47:41.517Z</atom:updated>
            <content:encoded><![CDATA[<h4>I’ve supercharged last year’s speedrun template and added more options</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1HOfWtEyzGQ6AaTiaXaGrg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/EOoa3D1N0xc?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Jonatan Pie</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>What should I build?</h3><p>I field that question a lot. When you’re learning to program, sure, you have to spend a fair amount of time reading the docs, hitting some courses, diving into books — but then you get to the point where you know some stuff and the one thing that will really up your game is practice — a lot of practice. You know the syntax, you’ve built a couple tiny things that if you put them on your portfolio will literally scream “I’m a junior dev who’s never built a real thing in my life” at potential employers. The one thing differentiating you from a “real dev” is that they’ve spent hours every day for a good long while building “real things”. So, to answer “what should I build” —</p><blockquote>Do a speedrun of reasonably complex projects that reflect the type of projects you’d like to be hired to do.</blockquote><p>Last year, I kicked off a few beginner speedruns. They were all intended to get folks pushing to wrap up as many projects as possible in a month. I intentionally started with simple stuff (the FreeCodeCamp projects) in order to set up a motivating sequence that people could push through and “finish”.</p><h4>Taking it up a notch</h4><p>This year, I’m taking it up a notch. Yes, the FCC projects are one option. But, I’ve also added options for Game Development, Frontend, Full Stack, React, Vue, Angular, CSS, Open Source Contributions, and Algorithms. These options are harder — the Frontend option, for instance, will push you to create the type of frontend interfaces that you’d reasonably be expected to produce “on the job” because, lets face it, pulling data from one API end point and crapping it onto a barebones HTML page with less than 20 lines of CSS code will get you through a FCC challenge, but it’s not really going to impress a potential employer who needs to hire someone to put a stylish modern frontend together — it’s just not.</p><p>You can still start with the FCC Speedrun. You can do as many of them back-to-back as you want. You can redo the same one several months in a row to gauge your progress over time. You can start your “next” speedrun where your last left off if you only made it partway through the list.</p><p>You can challenge your friends to a friendly competition —</p><blockquote>who can finish the most this month</blockquote><p>You can set aside a month to invest in the kind of heads-down coding practice that will cement everything you’ve learned and convert what you “sorta know” into “what you can do easily.”</p><p>This month, I am personally doing the Game Development Speedrun. If you’d like to join in, or dive into any of the other Speedruns, all you need to do is fork the <a href="https://github.com/P1xt/speedrun-challenge"><strong>Speedrun Repository</strong></a>, make a note in the README showing what Speedrun you’re doing, click into your chosen Speedrun and start at the top, building everything on the list.</p><h4>How many projects can YOU finish in one month?</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7b5740c32f5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/p1xts-blog/programming-speedrun-a7b5740c32f5">Programming Speedrun</a> was originally published in <a href="https://medium.com/p1xts-blog">P1xt’s Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>