<?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 Brandon Mowat on Medium]]></title>
        <description><![CDATA[Stories by Brandon Mowat on Medium]]></description>
        <link>https://medium.com/@irl?source=rss-a5462b237e85------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Mwkpd_3F-Tlgt3RohxmGcQ.jpeg</url>
            <title>Stories by Brandon Mowat on Medium</title>
            <link>https://medium.com/@irl?source=rss-a5462b237e85------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 20:27:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@irl/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[Hacking WORDLE | How does it work and what’s the real best first guess?]]></title>
            <link>https://medium.com/@irl/hacking-wordle-how-does-it-work-and-whats-the-real-best-first-guess-ed6cbc162e1c?source=rss-a5462b237e85------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed6cbc162e1c</guid>
            <category><![CDATA[software]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[wordle]]></category>
            <category><![CDATA[puzzle]]></category>
            <dc:creator><![CDATA[Brandon Mowat]]></dc:creator>
            <pubDate>Tue, 25 Jan 2022 04:03:18 GMT</pubDate>
            <atom:updated>2022-01-25T04:03:18.243Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://blog.brandonmowat.com/article/-Hacking-WORDLE--61e875ed747aca000470e7ff">This article reposted from my blog: blog.brandonmowat.com</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GavZlEmO3Wyk5AGP.png" /></figure><p><a href="https://www.powerlanguage.co.uk/wordle/">WORDLE</a>, a word jumble game, has been rocketing in populartiy amongst young adults on the internet since late 2021 and January of 2022. I was first introduced to the game by a colleague in January and I quickly became hooked. It’s a really fun puzzle game, but what made it even more fun and alluring was that there was only one word to guess every single day.</p><p>My curiosity got the better of me and I decided to go digging to see if I could figure out how the game was implemented. I expected to find obfuscated API calls that hide the solutions from nosey people like me, clues as to some features that may be hidden or that were in progress, a bug or 2 that I could report to the creator to help contribute to the project, but what I found was even more surprising.</p><p>I discovered that the game’s implementation was simple… like really really simple.</p><h3>A quick rundown on how WORDLE is currently implemented</h3><p>Every day, at the stroke of midnight, there’s a new solution to the daily puzzle. “Where does this word come from?”, you might ask. Well, it just comes from the word bank, embedded directly in the game. Looking at the code, there are actually 2 interesting word banks. The first, is the list of valid words. It’s a big list too: there are 10657 valid words that WORDLE will accept. However, the second is the more interesting one. this list is the list of all our puzzle solutions, 2315 words to be exact.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2Bs6tsAiJOQTz0bu.png" /></figure><p>The first thing that I noticed about the list of solutions is that they’re not sorted in alphabetical order like our list of acceptable words. No, the list of solutions looked to be in an intentional order.</p><p>The order, turns out to be the solutions for each game, day by day. To find out our solution for the day, all we need to do is find out how many days have past since the games’ inception (May 19, 2021) and then go to that index in our list of game solutions. The code looks something like this:</p><pre>const list_of_solutions = [...]</pre><pre># May 19, 2021<br>const date_of_inception = new Date(2021, 5, 19, 0, 0, 0, 0)</pre><pre># How many days have past since the day of inception?<br>const days_past_in_utc = new Date().setHours(0,0,0,0) - new Date(date_of_inception).setHours(0, 0, 0, 0)</pre><pre># `864e5` is the number of milliseconds in a day<br>const game_day = Math.round(days_past_in_utc / 864e5)</pre><pre># Voila! our suction for the day:<br>const solution = list_of_solutions[game_day]</pre><p>Surely that can’t be it right? The game saves my score and keeps track of my guesses! Well, yes, but again, it’s trivial. All of your progress is stored in your browsers localstorage, so it lacks any sort of integrity. Modifying your stats is as simple as popping open the console and editing it in place.</p><p>I don’t mean to shit on the guy from Brooklyn that made WORDLE; he didn’t intend for it to get this big as far as I’m aware. I thought about ending my blog post here since after a few minutes of reading through the front end code, I had entirely reverse engineered the game. But I thought that might be boring and instead I’d like to do 2 more things…</p><h3>What’s the actual best starting word?</h3><p>Doing a simple analysis of the letter frequency in the list of puzzle solutions, you get the letter frequency distribution, below. And just like <a href="https://medium.com/@tglaiel/the-mathematically-optimal-first-guess-in-wordle-cbcb03c19b0a">Tyler Glaiel wrote here</a>, the best word to guess to uncover the most frequently used letters (EAROT), would be to guess ROATE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*doWP2SdbB1atCoO5.png" /></figure><p>However, ROATE is currently not in the list of solution words. If we want to guess a word that could appear as a solution, then look no further than the solution for the day 873 puzzle: <strong>LATER</strong>. LATER is the best word to start with to narrow down the most common letters, while also potentially guessing the solution on your first word. That being said, there’s a 1/2315 chance of you guessing correctly on your first try with LATER as your first guess.</p><h3>Here’s how I’d build WORDLE 💭</h3><p>My current issue is not that WORDLE is necessarily built <em>poorly</em>, but that it’s too easy to poke around like I’ve just done. Nosey tech savvy people like myself can cheat or ruin it for ourselves too easily. Building WORDLE with a different perspective could really improve the game for everyone. I would model it after the very popular programming challenge that takes place in December: <a href="https://adventofcode.com/">Advent of Code</a>.</p><h3>1. Make sure all the future solutions are unavailable.</h3><p>Instead of having all the solutions hardcoded into the JS bundle that runs the game, hide them on your server and don’t allow them to be accessed by the client. This way, the mystery for tomorrow and the following days stays alive.</p><h3>2. Don’t load the solution to the client</h3><p>Similar to 1, keep the solution away from the user. The user should make guesses to the server and the server should then respond back with how close you are to the solution. With a model like this, you now don’t have to worry about people manipulating their guesses. In the frontend and you can verify, better, the guesses that each user makes.</p><h3>3. Authenticate your users</h3><p>It doesn’t have to be fancy, but at least you’ll be able to have some sort of integrity this way. Authenticating users creates other opportunities to build leaderboards too, which I’ve thought could be really fun for groups who play together, like families, groups of friends, or in my case, colleagues.</p><h3>In conclusion</h3><p>Since part of the fun is that everyone has the same solution for the day, you can’t really ensure that people aren’t taking others’ solutions. You also can’t make sure that people aren’t going to try to break the game and inadvertently ruin it for themselves… But there’s opportunity to make the game more fun and more competitive.</p><p>Anyways, go play <a href="https://www.powerlanguage.co.uk/wordle/">WORDLE</a> — it’s super fun and wholesome. Remember, it’s just a game so have fun and don’t take it too seriously. And Josh, if you’re looking to build a WORDLE V2, I’d love to collab.</p><p>Thanks for reading and hopefully I see you soon 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed6cbc162e1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Some things I learned in my first month of being a Front End Developer.]]></title>
            <link>https://medium.com/@irl/some-things-i-learned-in-my-first-month-of-being-a-front-end-developer-64d84a3563d?source=rss-a5462b237e85------2</link>
            <guid isPermaLink="false">https://medium.com/p/64d84a3563d</guid>
            <category><![CDATA[agencylife]]></category>
            <category><![CDATA[blogging]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Brandon Mowat]]></dc:creator>
            <pubDate>Sun, 31 May 2015 20:25:12 GMT</pubDate>
            <atom:updated>2015-06-01T12:38:52.967Z</atom:updated>
            <content:encoded><![CDATA[<p>This summer I began interning as a front end developer at <a href="http://maclaren.com/">Maclaren McCann</a>.</p><p>Since I started studying CS I knew I would like to do Agency work like Teehan+Lax and make things to help other people make things. I’ve learned so much within my first month and I’ll share it with you.</p><ol><li>Clients are VERY picky.</li></ol><p>That’s probably an obvious one but if you’re a software dev and you want to venture into the ‘agency’ world, <em>Brace Yourself</em>. It’s not necessarily bad. They are paying for it afterall so it’s only natural that they make sure it’s pixel-perfect. It just gets frustrating when your copy-decks and comp files have conflicting contents and it all needs to be done by the Friday launch.</p><p>2. AODA (accessibility)</p><p>Before this summer it never crossed my mind that I should make my websites accessible to people with disabilities. I understand now that it really makes a huge difference, both for moral reasons and SEO.</p><p>3. Collaboration is key</p><p>People figured this out a while ago but I thought I should list it anyways. Designers HAVE to work with their devs because they may want to do something crazy but with the clients budget or time restrictions, it may not be possible.</p><p><em>An architects dream is a civil engineers nightmare.</em></p><p>4. The dev work environment is pretty chill.</p><p>Sure. We’ve all seen the offices of Google, Facebook and twitter, but it’s really the people who work at these places who make the work environment awesome. Everyone is so encouraging and the amount of skill and information that everyone is willing to share is incredible. It’s a great place to learn.</p><p>5. It’s hard but rewarding.</p><p>Things move fast and you have to juggle a million things at once but at the end of the day you love creating things. Everyone is very encouraging of each other and even though it’s hard, it’s so rewarding.</p><p><em>And we get to have a drink at the end of the day. It’s pretty sweet.</em></p><p>Thanks for reading! ☺</p><p>I’ll keep adding to this post as the summer goes on.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64d84a3563d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The End of an Era.]]></title>
            <link>https://medium.com/@irl/the-end-of-an-era-6c9976eb010c?source=rss-a5462b237e85------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c9976eb010c</guid>
            <dc:creator><![CDATA[Brandon Mowat]]></dc:creator>
            <pubDate>Mon, 26 Jan 2015 01:05:57 GMT</pubDate>
            <atom:updated>2015-01-28T23:27:54.430Z</atom:updated>
            <content:encoded><![CDATA[<p>Teehan+Lax has been an inspiration to many. For those of you who don’t know them; you should, because they helped craft the <strong>site you’re on right now</strong>.</p><p>All my dreams are dead. Maybe that’s a little dramatic to you, but not me. After about a few months of teaching myself design I stumbled upon a <a href="http://www.justinaguilar.com/animations/">CSS animations cheat sheet</a> written by <a href="https://medium.com/@jxtn">@jxtn</a>. I thought it was the greatest thing ever. (Keep in mind I had never experienced open source software before). I then graduated to his website to learn more about Justin.</p><p>I read his bio and found out he worked for some company called “Teehan+Lax”. What a weird name for a company? I went straight to google to do some deeper investigation.</p><p>“Huh.”</p><p>“They are literally right around the corner from me.”</p><p>I browsed their site a little more and read all of their case-studies. They had done a lot of great work. They had huge clients like Bell (a Canadian telecommunications company), The Globe and Mail (a Canadian newspaper), and Medium. I went to this “Medium” site and fell in love instantly. A writing platform that actually does writing, right (a mouthful; I know).</p><p>Teehan+Lax saw things that people had never really thought about before. Sure, design firms try to improve on existing things, but T+L went 100 layers deeper. Taking design to the next level. Some may even say over 9000.</p><p>I had made it my new goal to become a part of their team.</p><p>I switched to computer science and began honing in on my design skills. I did my research and tried to form the same frame of mind as the T+L team. I wanted it so bad.</p><p>About a week ago I finally felt I had enough knowledge to reach out to them and inquire about internship opportunities. I went to their site and I was welcomed with a very unsettling site (pun intended).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F4seLELT63XVkql6pSWrvg.jpeg" /></figure><p>No. No. No. No. No…</p><p>No.</p><p>Nope.</p><p>no.</p><p>I read their message and was deeply saddened. One of my biggest goals in life and I had reached a dead end. No way around it.</p><p>I did, however, understand why they made that decision. They did great things and were being recruited full-time to work on the biggest social network on earth. It would have been so hard to turn down. They made the right choice, however disappointing it may be to me.</p><p>Thank you Teehan+Lax for all of your great work. We’re all very excited to see what comes in the next chapter. It is truly the end of an era.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c9976eb010c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I think they forgot about me.]]></title>
            <link>https://medium.com/@irl/i-think-they-forgot-about-me-6a3810ee44e5?source=rss-a5462b237e85------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a3810ee44e5</guid>
            <dc:creator><![CDATA[Brandon Mowat]]></dc:creator>
            <pubDate>Mon, 15 Sep 2014 19:12:59 GMT</pubDate>
            <atom:updated>2015-01-26T01:18:37.631Z</atom:updated>
            <content:encoded><![CDATA[<p>About a month ago now, I sent @Medium a tweet asking them where I could get a sticker of their logo. I had seen pictures of their employees with them and I wanted to feel as cool as them. They were pretty quick to responding. They told me to email them and they’d ship me some badass merch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zg8kgqDOmetcgrMsLNakXQ.png" /><figcaption>My twitter conversation with medium</figcaption></figure><p>Now, a month later, I check my mail nearly every day waiting on the generous gift that this lovely website promised me. I’m starting to think they forgot about me… Maybe I’ll send them another tweet. Or write about it on Medium… hmm.</p><p>UPDATE: I did eventually receive my package. The shirt is fucking bad-ass and the stickers are dope.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a3810ee44e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Medium is making me depressed…]]></title>
            <link>https://medium.com/@irl/medium-is-making-me-depressed-c9b80f413196?source=rss-a5462b237e85------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9b80f413196</guid>
            <dc:creator><![CDATA[Brandon Mowat]]></dc:creator>
            <pubDate>Mon, 15 Sep 2014 04:14:58 GMT</pubDate>
            <atom:updated>2014-09-15T04:23:39.213Z</atom:updated>
            <content:encoded><![CDATA[<h4>Kind of.</h4><p><em>First, a little background story.</em></p><p>It was February 2013 and I’m in my second semester at Ryerson University studying Aerospace Engineering. It was interesting but I was only there because being able to say, “I’m a Rocket Scientist” is every kids dream. I was procrastinating, as usual, when I stumbled upon a video called “<a href="https://www.youtube.com/watch?v=nKIu9yen5nc">What most schools don’t teach you</a>” and it changed everything. I transferred to the University of Toronto to study Computer Science and live my new dream.</p><p><em>Fast forward to today.</em></p><p>I always crawl the web looking at great web design and I stumbled upon Medium one day. I think I found them through <a href="http://teehanlax.com/">Teehan+Lax</a> but I could be wrong.</p><p>I started reading a few stories and fell in love with the site. Reading about peoples experiences and thoughts was so enjoyable compared to all the bullshit you see on twitter, facebook and instagram. I actually felt inspired to be creative when I was on the site.</p><p>I guess it could have been my own fault, but soon enough most of the stories that came up on my feed were stories about peoples start-ups in Silicon Valley and building these intricate web apps. I felt overwhelmed. How could I ever be as good as these people? I know a little HTML/CSS, some python from school and maybe jQuery; I could build a small website, but an entire web app? I’d like to do something like these people some day but how do I even stand a chance when there’s so much competition? How could I possibly stand out from all of these programmers and engineers? I only started to learn how to code in my late teens. It seemed like everyone had years upon years of experience on me. I felt like I had no chance of “making it”. The intimidation from these types of posts were crippling me. I stopped trying to learn ruby on rails and enjoyed this website less and less. It was sad and I was getting depressed.</p><p>I’m not sure why I’m writing this in the past tense… I still feel this way. Almost hopeless. I’ve considered just dropping out and focusing on web design, which is where my strengths are right now. It wouldn’t be disastrous, but I had goals of working for Google or Square that I probably wouldn’t be able to complete.</p><p>So now, as I write this from my bed, I hope that I’m not the only one who feels this way and maybe to get some encouraging words from the web guru’s on here.</p><p><em>Thanks for reading. I hope you enjoyed the time we spent together☺</em></p><p><em>If you want to see more of me you can go to my </em><a href="http://brandonmowat.com/"><em>website</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9b80f413196" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>