<?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[Fellow Engineering - Medium]]></title>
        <description><![CDATA[Fellow Engineering - Medium]]></description>
        <link>https://medium.com/fellow-engineering?source=rss----dda47ecdf979---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Fellow Engineering - Medium</title>
            <link>https://medium.com/fellow-engineering?source=rss----dda47ecdf979---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 18:58:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/fellow-engineering" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to run an Engineering Retrospective]]></title>
            <link>https://medium.com/fellow-engineering/how-to-run-an-engineering-retrospective-53d4b788b439?source=rss----dda47ecdf979---4</link>
            <guid isPermaLink="false">https://medium.com/p/53d4b788b439</guid>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[engineering-management]]></category>
            <category><![CDATA[engineering-culture]]></category>
            <category><![CDATA[retrospectives]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Alexandra Sunderland]]></dc:creator>
            <pubDate>Mon, 13 Dec 2021 18:24:48 GMT</pubDate>
            <atom:updated>2021-12-13T18:24:48.781Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*65QNU0ysMEUSG3e7PiaxDQ.png" /></figure><p><em>This article was originally posted on </em><a href="https://fellow.app/blog/meetings/tips-to-run-successful-retrospective-meetings/"><em>the Fellow.app Blog</em></a><em>.</em></p><p>Retrospectives are a type of meeting where you look back over a time period or a project and talk about the things that went well, and the things that could have gone better. They’re a great time to reflect on how to learn and grow, and come up with concrete action items to get you there.</p><p>On the engineering team here at <a href="https://fellow.app/">Fellow</a>, we run retros every 6 months and look back on everything that has happened since then.</p><p>Last year we ran our very first remote retro since we’re all working from home, and we came out of it with so many great insights on how people have been adapting to communicating remotely and working in the new setting.</p><p>Because of the new challenges we’re facing, now is a better time than any to run a retro, and so whether or not this is your first time running one, here are my 5 top tips to make sure that your retros are a success:</p><h3>1. Define the parameters of the retro</h3><p>Retros can mean a lot of different things to people, and so you want to make sure that everyone is on the same page about what they’re expected to talk about, and what the goals of the retro are. It’s important to decide early on whether you want to focus on a particular project, timeline, or process so that everyone knows where to focus their attention. It’s also important to figure out what format you’d like to run the retro in: for example, do you want it to be purely a venting session, do you want it to be a brainstorming session, or do you want everyone to list what they learned.</p><h3>2. Let everyone know at least a week in advance that a retro is going to take place</h3><p>You don’t want to catch anyone off guard here, because it can be hard to come up with ideas of what to say on the spot. Once I’ve decided on a format for the retro, I like to let everyone know over email and in the team meetings that the retro is coming up, and what the format will be. In the last few, we’ve used a format where we have three columns on a board representing things that have gone really well on the team, things that we’re a little worried about, and things that are going to be big issues and need to be addressed right away. We write on post it notes and put those up on the board, and doing that in the first 15 minutes of the retro without having put thought into it before means that you’re likely going to forget about a lot of things you’d otherwise want to bring up.</p><p>I encourage everyone to start a <a href="https://fellow.app/blog/product/ideas-to-optimize-your-workflow-with-fellow-private-streams/">Private Stream in Fellow</a> with the same headings as the retro format we’ve decided on, and start jotting down their ideas as they come to mind over the weeks leading up to the retro. Being able to pull thoughts directly from that makes the retro a lot less stressful and brings up a lot more ideas.</p><h3>3. Show that you want to hear the bad stuff</h3><p>Being a participant in a retro when your manager is in the room can be a little intimidating. You might be only used to talking about the good stuff with them, and you might be worried that pointing out things that aren’t going so well will make them upset. If that’s the atmosphere in the room, then nothing of substance is ever going to be brought up, and the retro won’t work towards improving the team like it’s supposed to.</p><p>When you’re running a retro, before it even starts, you have to make it abundantly clear that <a href="https://fellow.app/blog/management/how-to-get-feedback-that-is-actually-helpful/">you WANT to hear about the bad stuff</a>, or the decisions that were made that people don’t agree with, or the processes people think are ridiculous and get in the way. And once you make that clear, you have to go out of your way to listen to what people say without judging or telling them that they’re wrong. I like to encourage openness around bringing up issues by talking about things that have gone wrong that I’ve contributed to or caused.</p><p>I find that by recognizing my own faults publicly, it makes it clear that I really do want the criticism and that the goal truly is to better the team. And when someone says something that I don’t agree with or is just untrue, I don’t dismiss it, because the fault isn’t on that person — it’s likely on me for communicating something in a way that made them see it that way.</p><h3>4. Make it fun!</h3><p>Sometimes, retros can feel a little bit tense, especially if it’s the first one a team is doing and they’re a bit unsure of what’s going on or just how honest they should be. Our retros run around 3 hours long, and it can be a little tough to stay seated in a board room for that long too.</p><p>When we ran retros in person, I brought cookies and snacks for people to <a href="https://fellow.app/blog/remote/engaging-virtual-meetings/">keep them energized</a>, and we did a lot of standing and sitting and crowding around boards to put stickers on post it notes and group post it notes together, and it was a fun afternoon activity. The last one we ran was remote, so we weren’t able to provide cookies for everyone but we did use an online white-boarding tool called Miro which let us put up virtual sticky notes and vote on them with emojis.</p><p>Each time we run one, we pick a different theme for the columns too: the first one was Boat themed with Wind, Shark, and Spider columns, and the last one was Happy Face themed with Happy, Meh, and Sad face columns.</p><h3>5. Collect feedback</h3><p>At Fellow we’re big fans of feedback, and even though our retrospectives are basically long feedback meetings, that doesn’t stop us from getting feedback on them too! After every retro, I use Fellow’s <a href="https://fellow.app/features/feedback/">Feedback tool</a> to send a request out to everyone who came, and I ask the same set of questions every time to measure how we’re doing on them over time.</p><p>I like to ask things like what they thought of the format, whether they thought it was run well, or whether they’d want to do another one, along with some open-ended questions for specific ideas for improvement. Every time, we get a ton of valuable insights from this, and we incorporate the suggested changes so that the next retro is even better. I also like to aggregate the data and summarize the written questions and post the results into our team meeting note before going over it with everyone thanking them for their honesty, because I believe that by seeing how everyone else has responded and given feedback it encourages everyone even more to be candid with any request they’re filling out.</p><p>Overall, we’ve made retros a core part of the engineering team process here at Fellow and we’ve gotten so many actionable items and valuable insights out of them. If you’re wondering whether you’d like to run a retro, or think that you should wait until your team is back in the office, I’d encourage you to think about doing one remotely like we did. Working remotely brings up a lot of new issues you never knew you had around communication and work from home setup, and getting to air those as a team can be really useful.</p><p>If you’re already running retros, that’s great! I’d love to hear from you about how they’re going and the value you’re getting out of them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53d4b788b439" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fellow-engineering/how-to-run-an-engineering-retrospective-53d4b788b439">How to run an Engineering Retrospective</a> was originally published in <a href="https://medium.com/fellow-engineering">Fellow Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How we Implemented Dark Mode with Capacitor]]></title>
            <link>https://medium.com/fellow-engineering/how-we-implemented-dark-mode-with-capacitor-d59b29e51b7d?source=rss----dda47ecdf979---4</link>
            <guid isPermaLink="false">https://medium.com/p/d59b29e51b7d</guid>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[capacitorjs]]></category>
            <category><![CDATA[dark-theme]]></category>
            <dc:creator><![CDATA[Jake]]></dc:creator>
            <pubDate>Wed, 01 Dec 2021 17:56:39 GMT</pubDate>
            <atom:updated>2021-12-01T17:56:39.443Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GdP_yu4hgrmQ_3d7gZPNHw.png" /></figure><p>Earlier this year, we implemented dark mode for Fellow across all platforms: web, integrations, desktop app, and our mobile apps. The project involved taking a close look at all the colours we were using throughout Fellow in light mode too, and led to changes (such as increased contrast between text and background) to better meet accessibility standards. While it was a fun design exercise, we also ran into some fun technical challenges to work around too — particularly with the mobile apps. We use <a href="https://capacitorjs.com/">Capacitor</a> to build our Android and iOS apps, and today we’re going to talk about how we went about building dark mode using it.</p><p>Dark mode for a Capacitor app involves a few parts:</p><h4>Android Implementation</h4><ol><li>Monitor the system dark theme, handle theme change events, and pass them on to the web context.</li><li><a href="https://en.wikipedia.org/wiki/Splash_screen#:~:text=A%20splash%20screen%20is%20a,introduction%20page%20on%20a%20website.">Splash screen</a>.</li><li>Status bar / Menu bar.</li></ol><h4>iOS Implementation</h4><ol><li>System takes care of passing theme changes to web. Make sure to enable dark mode if disabled.</li><li>Splash screen.</li></ol><h4>Web</h4><ol><li>Use the built-in browser media query to determine if the browser is in dark mode or not, and change colours accordingly.</li></ol><h3>Android Implementation</h3><ol><li><strong>Monitoring system theme change events</strong></li></ol><p>Your app must express the intent to handle uiMode changes, otherwise each theme change will cause it to reload.</p><p>You can tell Android you’ll handle these events by adding uiMode to your android:configChanges property in the main activity.</p><p>android:configChanges=“orientation|keyboardHidden|keyboard|screenSize|locale|uiMode”</p><p>Next up is handling those events by adding the following to our MainActivity.java file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ab1e7fe971efe4f0c36b948cddb91cd6/href">https://medium.com/media/ab1e7fe971efe4f0c36b948cddb91cd6/href</a></iframe><p>In our case we’re going to take two actions, update the status bar and navigation bar theme, and update the Webview theme. Here’s a look at the helper functions being called:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eee97feaaa86cd929505db83fb1f7783/href">https://medium.com/media/eee97feaaa86cd929505db83fb1f7783/href</a></iframe><p>The only thing left to do is make sure that we update the status bar on resume:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/887cd970d32e679ba1c4369128e32897/href">https://medium.com/media/887cd970d32e679ba1c4369128e32897/href</a></iframe><p>2. <strong>Splash Screen</strong></p><p>Adding an Android splash screen is somewhat simple.</p><p>While the design will be an exercise for the user, the implementation involves duplicating your drawable folder with -night- added to it, and a dark mode image inside.</p><figure><img alt="Image showing a drawable folder (drawable-mdpi) with a new folder (drawable-night-hdpi) next to it" src="https://cdn-images-1.medium.com/max/221/1*cVIoIfgmxrlp7Y_R0sA5cQ.png" /></figure><p>3. <strong>Status Bar &amp; Navigation Bar</strong></p><p>While we have the event handling above to change the colours, they need to be set to the correct values initially. This is where the res/values directories come in to play.</p><p>Modify src/main/res/values as follows:</p><ul><li>Add navigation Bar / Icon definitions for light mode.</li><li>Swap the DarkActionBar for the DayNight version.</li><li>Swap the NoActionBar parent theme to DayNight.</li><li>Set the NavigationBarColour.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AMKqo_LCYqMuwsbQyibYAw.png" /><figcaption>This is what it might look like when you’ve changed the above values.</figcaption></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d350744e86b9a2eb9393d392ec144b33/href">https://medium.com/media/d350744e86b9a2eb9393d392ec144b33/href</a></iframe><p>You’ll also want to add night / day versions, for both &gt;= v27 and &lt; v27</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2fd825aa07f1991fc8f669f9aa456cf6/href">https://medium.com/media/2fd825aa07f1991fc8f669f9aa456cf6/href</a></iframe><h3>iOS Implementation</h3><ol><li><strong>Enable dark theme</strong></li></ol><p>If your iOS app is locked to light theme, a property exists in info.plist. To enable dark theme, remove the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c8a88802f1af9b6f98f9d1ac70954ef/href">https://medium.com/media/8c8a88802f1af9b6f98f9d1ac70954ef/href</a></iframe><p>2. <strong>Splash Screen</strong></p><p>In your assets directory select your splash screen. Set the Appearance to Any, Dark and add dark themed splash images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fvCDdsZ3LfY90mps70KxVA.png" /><figcaption>Changing the Appearance for the Splash Screen</figcaption></figure><h3>Web Implementation</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1d67d161edf3db8004aa7e1cf9583d89/href">https://medium.com/media/1d67d161edf3db8004aa7e1cf9583d89/href</a></iframe><p>You can also enable dark mode from pure JavaScript:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fa24a69ed53f81b718fd3fddfc70d3ed/href">https://medium.com/media/fa24a69ed53f81b718fd3fddfc70d3ed/href</a></iframe><p>And that’s it! You’re now all set to use dark mode on your mobile apps. 🎉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d59b29e51b7d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fellow-engineering/how-we-implemented-dark-mode-with-capacitor-d59b29e51b7d">How we Implemented Dark Mode with Capacitor</a> was originally published in <a href="https://medium.com/fellow-engineering">Fellow Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is a Hackathon? (And How We Run Them at Fellow)]]></title>
            <link>https://medium.com/fellow-engineering/what-is-a-hackathon-and-how-we-run-them-at-fellow-5252d54c07e5?source=rss----dda47ecdf979---4</link>
            <guid isPermaLink="false">https://medium.com/p/5252d54c07e5</guid>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[management]]></category>
            <category><![CDATA[hackathon-organizing]]></category>
            <category><![CDATA[presentations]]></category>
            <dc:creator><![CDATA[Alexander Polev]]></dc:creator>
            <pubDate>Fri, 20 Aug 2021 13:29:05 GMT</pubDate>
            <atom:updated>2021-08-20T13:29:05.270Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wv-QdELgT7KTbWAOHXR0hw.png" /></figure><p>This article describes what a hackathon is, how they usually work, and how running these events can benefit your company.</p><h3>What is a hackathon?</h3><p>A hackathon is a friendly tech competition with a relatively short duration, usually 24 hours, with the main idea being “Just do something cool!”. It’s a perfect opportunity to step out of your comfort zone and try something new. Hackathons give you the chance to work together with people from other teams, use new technologies, perform interesting experiments, and showcase your creativity.</p><p>The main goal is to implement a working prototype of a project which can be presented by the end of the event. It takes more than just programmers and designers to build an amazing company and in a similar vein, hackathons are made even more impactful when the entire company gets involved. Project managers can pitch their idea for the next big feature, marketing specialists can explore new and innovative promo campaigns, customer success teams can unearth valuable insights from users, etc. The possibilities are limitless!</p><p>Hackathon projects don’t have to be something that will become the part of the product and be released soon. The spirit of the hackathon is to experiment and research, not just work on day-to-day tasks more intensely. To illustrate, I’ll show some examples of my past hackathon projects in the next section.</p><p>Last, but not least, an important part of any hackathon is lots of pizza and coffee 😄.</p><h3>What do people do at a hackathon?</h3><p>At the beginning of the event, everybody is thinking, discussing, sharing ideas and forming teams. At Fellow, our hackathon teams can range from 1 to 4 people which feels like an ideal size for a 24 hour project.</p><p>Teams are free to discuss ideas, brainstorm, and plan beforehand but the main rule is — <strong>“no coding, designing, or starting on the project until the day of”</strong>. Everything should be implemented during the 24 hour hackathon time period.</p><p>In general the ideas are limited only by your creativity, but for internal company hackathons, the ideas should add some value to the base product or help improve internal workflows at the company. So while training a machine learning model on pictures of your cat to highlight them on your webcam video is a fun project, it may not be the best idea for this type of event. Don’t worry, everyone will still know that your cat is cute and awesome 😺.</p><p>In my personal experience at Fellow, I don’t work with the note editor all that often so the hackathon gave me a chance to learn about and work on a new part of the product. I implemented a small typeahead plugin to insert emojis into a note and the project eventually ended up going live in production! Now, you can type the colon symbol, start typing an emoji name, and you will get a list of relevant emojis:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3ctpJq6POxNQojam" /></figure><p>Once the project is complete, next comes the most important part: presentations and voting. To keep things brief, each team is only given 10 minutes to present. They need to describe their project, highlight advantages, demonstrate functionality (in the case of a prototype), and explain the value to the company. Of course that’s just a generic presentation structure. A hackathon is a highly creative environment, so nobody minds if you make your presentation full of memes and puppies 🐶.</p><p>After all the presentations are complete, everybody casts their votes for the winning projects and prizes are awarded.</p><h3>The benefits of participating in a hackathon</h3><p>The most immediate benefit is the opportunity to have fun and choose what you want to work on. During hackathons, you aren’t solving business problems directly or working on routine tasks. You are working on something you find interesting and organizing your day and workflow based on how you want.</p><p>Hackathons are also a great environment to work on your soft skills. Participants can obtain new management skills such as delegating tasks, planning presentations, and writing more clearly. Since participants are usually working in smaller and unfamiliar teams, it’s also a good opportunity to improve communication skills while getting to know the different parts of the company.</p><p>The greatest benefit of all is the educational experience. You may try using new technologies, work on a new part of the product for the first time, or just challenge yourself to think really big. You might be wondering “Can I really do this in 24 hours? Should I narrow my idea?” but don’t be afraid to take a chance. Hackathons are a space for growth and experimentation so don’t let the fear of failure stop you from making the most of your experience.</p><p>Last, but not least, hackathons are a great way to bolster team camaraderie. At Fellow, one of our main company values is Fellowship. Our recurring hackathons help us realize our values and increase team cohesion.</p><h3>Why managers and leaders should organize hackathons</h3><p>Okay, it seems like hackathons are good time for employees since they get to dedicate 24 hours to fun and education, but how can they help business owners?</p><p>First of all, hackathons are a great source of new ideas and uncommon solutions. Usually, projects guided by senior management and new features are all planned by the same group of people. Hackathon projects are new ideas with basic implementations, and after some polishing, are ready to ship to production. Leaders often find themselves thinking, “That’s actually a great idea I never thought about that. Let’s ship it!”. At Fellow, almost half of all hackathon projects find their way into the product some time soon after the event!</p><p>Secondly, leaders should consider hackathons as a long term investment in their team. Dedicating two whole work days to a hackathon might sound like a poor use of time, but it will payback dividends in multiple ways. Hackathons help introduce new ideas and approaches, they increase collective knowledge of the codebase, and they foster a friendly team-building atmosphere within the company.</p><p>Finally, the unique combination of education and team-building experienced during a hackathon help prevent employee burnout and keep people engaged and fulfilled by their work.</p><h3>Conclusion</h3><p>For us at Fellow, hackathons have become an important part of the development workflow. Of course, they require some planning and organization like choosing the right time for the event to make sure core business operations aren’t negatively impacted. At some companies, it’s not always possible for everyone to stop what they’re doing to devote time to a hackathon. One solution would be to split the company and organize two events at different times, whatever needs to happen to make the hackathon a reality. The benefits become clear when more and more ideas that started off as simple “hacks” turn into business successes.</p><p>I hope this article will motivate you to organize hackathons at your company and embrace a culture of research and experimentation, which will help make your team more productive and lead to greater success for the business as a whole.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5252d54c07e5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fellow-engineering/what-is-a-hackathon-and-how-we-run-them-at-fellow-5252d54c07e5">What is a Hackathon? (And How We Run Them at Fellow)</a> was originally published in <a href="https://medium.com/fellow-engineering">Fellow Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decaffeination: Migrating our CoffeeScript app to TypeScript]]></title>
            <link>https://medium.com/fellow-engineering/decaffeination-migrating-our-coffeescript-app-to-typescript-69f98667f08c?source=rss----dda47ecdf979---4</link>
            <guid isPermaLink="false">https://medium.com/p/69f98667f08c</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[coffeescript]]></category>
            <dc:creator><![CDATA[Alexandra Sunderland]]></dc:creator>
            <pubDate>Fri, 20 Aug 2021 13:28:16 GMT</pubDate>
            <atom:updated>2021-08-20T13:28:16.697Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article was originally posted on </em><a href="https://dev.to/alexandras_dev/decaffeinating-2020-migrating-our-coffeescript-app-to-typescript-4lbo"><em>February 7th, 2020 on Dev.to</em></a><em>.</em></p><p>With the start of the new decade, the engineering team at <a href="https://fellow.app/">Fellow.app</a> decided to take on a new year’s resolution to do something that was holding us back: we decided to convert our <a href="https://coffeescript.org/">CoffeeScript</a> web app to <a href="https://www.typescriptlang.org/">TypeScript</a>. This is the story of how we pulled through as a team to overcome the issues in our way, and how completing this massive migration improved our product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*LtffT6ILTwQX5FYz.png" /></figure><p>From the start, we’ve highly valued the ability to quickly iterate on features based on feedback we get from the teams that use Fellow, and CoffeeScript was part of what enabled that speed. CoffeeScript is a language that compiles to JavaScript and was meant to reduce the space code takes up and improve readability, while also adding new functionality that JavaScript would later adopt (like a <a href="https://coffeescript.org/#classes">clean way of defining classes</a>). With all the developers on the team already knowing Python, CoffeeScript was a natural choice because of the similarities between the two (like a lack of braces and use of whitespace for logical separation) which made context switching from one language to the other easy. Spending less time mentally shifting between two distinct syntaxes and having to write fewer braces and parentheses made us more efficient at building features, and we were able to keep up with our value of fast iteration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*K7J0XE0tzqn3mEEb.png" /><figcaption>CoffeeScript made us sad ☹️</figcaption></figure><p>But suddenly, we didn’t need to keep iterating on features <em>quite</em> so quickly anymore: while we still wanted to be able to ship new features often, we had built a product that we were proud of, and the user base had started to grow at a rapid pace. Our priorities shifted, and we needed to start providing the most stable experience that we could while building new features more methodically. CoffeeScript started to get in the way: the lack of parentheses made code hard to understand, the non-existent debugging tools made fixing bugs a lengthy process, and developers had to learn a whole new syntax when they joined the team. We were also running into completely avoidable bugs centred around types: maybe a function would incorrectly receive a null variable, or a number would be passed as a string and not an integer — and these would all cause runtime errors, only detectable when people would use the app. It was creating a <strong><em>latte</em></strong> extra work.</p><pre>// The following is valid CoffeeScript. Can you easily understand the operation?<br>square = (x) -&gt; x * x<br>add = (x, y=1) -&gt; x + y<br>console.log(add square add 2, add 1) // 17</pre><p>We were starting to lose time dealing with these issues, when we had sought to use CoffeeScript as a way to speed up development.</p><p>On December 13th 2019, exactly 10 years after CoffeeScript came out, we sat down and started to plan our full transition plan off of the language, after having slowly converted some files here and there starting in the summer. We wanted to start using a language that had a strong community, effective debugging tools, IDE support, and would enable us to avoid as many errors as possible. TypeScript fit the bill: <a href="https://www.typescriptlang.org/docs/handbook/functions.html#function-types">type annotations</a> would allow us to reduce runtime errors while acting as mini documentation for our code, the available <a href="https://github.com/Microsoft/TypeScript/wiki/TypeScript-Editor-Support">tooling and editor integrations</a> are endless, and it’s something that we were excited to write code in instead of dreading. Our transition plan? Sit together as a team for an afternoon for “The Decaffeination” and convert tens of thousands of lines of CoffeeScript to TypeScript in parallel before going on break for the holidays, and eventually releasing the conversion to production in one go. <em>And we did it</em>.</p><p>We let the CoffeeScript removal plan <em>brew</em> in our minds for a few days, and then <strong><em>poured</em></strong> our ideas into our shared meeting notes for everyone to see. We compiled the list of files that needed to be converted and added them as action items in the same note, assigning each one to a member of the team so we’d be more or less equal in the task ahead. We decided to create a git branch dedicated to the task, decaffeinate, and all pushed our code there. A week later, on December 20th, we got to work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*99aXipxoRtgZ4Qen9D94wQ.png" /><figcaption>Of course, we used Fellow to keep track of who was doing what!</figcaption></figure><p>But even though we were ultimately successful, the task didn’t come without issues! Sitting all together spread out over couches and cozy chairs drinking tea (anything but coffee) enabled us to work really well together: any issues we ran into were shouted out and everyone would help, and every successfully converted file was celebrated. Some of the hardest parts we had to tackle were a result of our tech stack (we use <a href="https://reactjs.org/">React</a>/<a href="https://relay.dev/">Relay</a>), creating errors that had no results on StackOverflow and new bugs that were difficult to trace.</p><p>We learned a lot by tackling this conversion, and found that there were limited resources on the web about our particular stack — and so we’d like to contribute back to the community and share our struggles. If you’re looking to convert a project to TypeScript, I highly recommend reading <a href="https://www.twilio.com/blog/move-to-typescript">Dominik Kundel’s detailed blog post</a> about how to get started.</p><p>Here are some of the top issues that we encountered during this process:</p><h3>String interpolation</h3><p>We have a lot of strings in the codebase where we insert variables, which looks like this in CoffeeScript:</p><pre>&quot;You have  #{num_1on1s} upcoming 1-on-1s today.&quot;</pre><p>But in TypeScript, the same string interpolation would look like this:</p><pre>`You have ${num_1on1s} upcoming 1-on-1s today.`</pre><p>Since TypeScript detects string interpolation through back-ticks and not quotation marks, we had to be extra careful to check our converted code for strings that would need to be converted manually, because TypeScript would literally output “You have #{num_1on1s} upcoming 1-on-1s today.” if we didn’t update the format to back-ticks and dollar signs.</p><h3>Incorrect types for 3rd party libraries</h3><p>A lot of 3rd party libraries have typed versions, which we believed would decrease the errors we saw in the code even more. Unfortunately, a number of the type interfaces for the libraries we were using weren’t being updated in conjunction with the non-typed versions that we had been using before the translation. This led to a number of extra errors, and we found that sometimes it was better to simply set the accepted types to any and be extra careful about what we were passing around instead of trusting an incorrect version.</p><h3>Typing Higher Order Components</h3><p>In <a href="https://reactjs.org/">React</a>, a <a href="https://reactjs.org/docs/higher-order-components.html">Higher Order Component</a> is a function that takes a component and returns a new component, the goal being to reuse code that modifies components in a similar way (for example, a HOC might accept a component and return a loading spinner instead of the component if some API call hasn’t finished yet, which is a pattern you may want to use for many different areas).<br>Higher Order Components are notoriously difficult to type because of the range of component types that might be passed to them, and all the different props those components have. In our codebase we have one particularly large HOC withNoteStream, which we use to control a lot of the data and rendering logic for the parts of the project that have streams of notes. And we have a lot of notes! Personal notes, meeting notes, 1-on-1 notes, goal notes, … all of these sections have their own components which use withNoteStream, and each has their own unique set of properties that needs to be passed through. We haven’t yet found a great way to work around this issue without casting the types to a generic component, and it’s an ongoing discussion in the React/TypeScript community.</p><h3>GraphQL types are undefined by default</h3><p>We use <a href="https://graphql.org/">GraphQL</a> to pass data between our React frontend and <a href="https://www.djangoproject.com/">Django backend</a>, so when we started converting to TypeScript and found out that GraphQL types are undefined by default, we had to either write all of our TypeScript code to check for the existence of data before using it (if this.props.dataWeKnowExists &amp;&amp; this.props.dataWeKnowExists.value...), or we had to find another solution.<br>We use <a href="https://docs.graphene-python.org/projects/django/en/latest/">Graphene</a> to expose our Django models to GraphQL, and we partially solved the undefined problem by wrapping the list fields in <a href="https://docs.graphene-python.org/en/latest/types/list-and-nonnull/#nonnull">graphene.NonNull()</a> and setting required=True in the node fields.<br>This solution did not work for <a href="https://docs.graphene-python.org/en/latest/relay/connection/">DjangoConnectionFields</a> though, which is a field type that is used to create a paginated list of related objects. Fields with this type were still being considered as possibly undefined in TypeScript, even if we knew with certainty that they would not be. To fix this issue, we created the following class to inherit from, which would set all of the nodes to required=True and all of the edges to graphene.NonNull() so that we could have peace of mind when writing our frontend code:</p><pre>class NonNullConnection(graphene.relay.Connection, abstract=True):  # type: ignore<br>   @classmethod<br>   def __init_subclass_with_meta__(cls, node, edge_name=None, **kwargs):<br>       if not hasattr(cls, &#39;Edge&#39;):<br>           _node = node</pre><pre>           class EdgeBase(graphene.ObjectType):<br>               class Meta:<br>                   name = edge_name or f&#39;{node.__name__}Edge&#39;</pre><pre>               cursor = graphene.String(required=True)<br>               node = graphene.Field(_node, required=True)</pre><pre>           cls.Edge = EdgeBase</pre><pre>       if not hasattr(cls, &#39;edges&#39;):<br>           cls.edges = graphene.List(graphene.NonNull(cls.Edge), required=True)</pre><pre>       super(NonNullConnection, cls).__init_subclass_with_meta__(node=_node, **kwargs)</pre><h3>Typing anything that is passed inexplicit props</h3><p>Writing out {...props} in a component is a nice and easy way to pass props down to a component that you’ve extended, without needing to be explicit about what those props are (maybe because the component you’re writing doesn’t care what they are, and you don’t want to maintain them in multiple spots). In TypeScript though, this caused issues for us, because for every component we did this for, we needed to find all the permutations of the properties that were being passed through and correctly type them. Even though this was a lengthy process, it ended up being well worth the effort because it also provided some refactoring! Refactoring is typically a risky idea when converting code because of the possibility of introducing bugs from both the refactor and the translation (with little to indicate which caused the issue), but we were able to remove props that we found we were no longer using at all, which also reduced the number of types we needed to resolve.</p><p>A few weeks later when we finished converting the last few lines and tested out every last little bit of the product, we merged our decaffeinate pull request into our main branch and waited excitedly to see our error count go down and code readability go up 🎉</p><p>We’re now writing all new features in TypeScript, and even though prototyping features may not be as fast as it was with CoffeeScript, the benefits we’re getting out of using it at our stage of team growth are undeniable:</p><ul><li>New hires and junior developers have an easier time adapting to the codebase because the code is more readable, and we’re using a more common language.</li><li>Type-related errors are being caught as we’re writing code.</li><li>Argument definitions are explicit, which helps the code self-document.</li><li>Developers are happier because of the increase in tooling and ease of debugging.</li></ul><p>Overall, our code is more maintainable, which is enabling us to create a reliable product and keep developers happy. We’re excited that we hit our goal as a team, and looking forward to our coffee-free year!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*5yIUY1jDvqSCsyze.png" /><figcaption>No more coffee!</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69f98667f08c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fellow-engineering/decaffeination-migrating-our-coffeescript-app-to-typescript-69f98667f08c">Decaffeination: Migrating our CoffeeScript app to TypeScript</a> was originally published in <a href="https://medium.com/fellow-engineering">Fellow Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Managing Browser Extension Versions with Gulp]]></title>
            <link>https://medium.com/fellow-engineering/managing-browser-extension-versions-with-gulp-53f72b57df54?source=rss----dda47ecdf979---4</link>
            <guid isPermaLink="false">https://medium.com/p/53f72b57df54</guid>
            <category><![CDATA[chrome-extension]]></category>
            <category><![CDATA[browser-extension]]></category>
            <category><![CDATA[chrome]]></category>
            <category><![CDATA[firefox-extensions]]></category>
            <category><![CDATA[gulp]]></category>
            <dc:creator><![CDATA[Rachel Harrison]]></dc:creator>
            <pubDate>Fri, 20 Aug 2021 13:27:43 GMT</pubDate>
            <atom:updated>2021-08-20T13:27:42.902Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sChEOpa1K7ajimUnbor0uQ.png" /></figure><p><strong>How did we get here?</strong></p><p>While developing the second version of the <a href="https://chrome.google.com/webstore/detail/fellow/nomeamlnnhgiickcddocjalmlhdfknpo?hl=en">Fellow browser extension</a>, we realized that our current solution for managing the extension for our different environments — finding and replacing all relevant variables in the code before uploading packages — was getting to be too much overhead. In the first version of the extension, the only place where we needed a different value for each environment was for the source URL of an iframe, which was easy to switch out manually when needed for local development, our staging environment, and production, as we could do it right before uploading the extension to Chrome or Firefox.</p><p>As we added more features to our extension, the list of places we needed to swap out URLs grew from one to three. Still, we managed this manually as we only had to do it a few times. There were a few developers working on the project, and we all changed the URLs back to match our staging environment when committing code. Then before uploading our extension for approval, we swapped them out for production. We knew this solution was far from ideal, but with only three places to swap out values and only a handful of developers who needed to remember where to swap them, it worked <em>fine</em>.</p><blockquote>Then things got more complicated.</blockquote><p>By the time the bulk of the development was done on the second large iteration of the extension, there were a dozen places that we’d need to swap out values. Additionally, it was no longer just the environment URL that we had to change — we also had a value to get the correct cookies, and another that acted as a flag for functionality that we needed only in our local environments. On top of that, with our extension now being a more robust project that was really taking off, it wasn’t hard to imagine that soon even more developers would need to run the extension locally to contribute to its development. The overhead of documenting all the spots to swap values, and which values to swap them with, would have been hard to maintain and lengthy to execute.</p><p>One half-measure would have been to pull all the values that needed to be swapped out of their files, and instead export them from a global config file. This solves the issue of having to document (or remember) all the places where values need to be swapped, but is still more overhead than we’d like. We’d still need to document somewhere what those values are for each environment, and generating the extension for a new environment would still involve editing a file.</p><p>Then we found a solution that allowed us target a specific environment for the extension with one command. Using Gulp we can run a command like <strong><em>gulp — config STAGING</em></strong> and we’ve generated a directory with a version of our extension targeting the staging environment, ready to upload.</p><p><strong>How does it work?</strong></p><p>In the end, it’s really just a fancy version of the config file solution. All the values for an environment are placed together in a config file, one file for each environment. These are named with the name of the environment like <strong><em>config.STAGING.json</em></strong>. Then, when the gulp command is run and the environment is specified, a version of the extension with the correct values for that environment is generated and dumped into a specified folder.</p><p>The bulk of this process in defined in a file called <strong><em>gulpfile.js</em></strong> at the top level of our extension directory. When gulp is run this file takes the appropriate config file and dumps those values into a file called <strong><em>config.js</em></strong>. This file is where the values are imported from elsewhere in the code. This config file and all the other extension files are copied to a separate folder, ready to be uploaded.</p><p>So how does it do that? It defines four primary functions and executes them in order:</p><ol><li>First it deletes any contents of the target directory, to make space for the newly compiled one.</li><li>Then it makes copies of all extension files, excluding config files, and adds them to the target directory.</li><li>Next, it selects the correct config file, based on the config flag passed when the command is run.</li><li>Finally, it writes the contents of the selected json file to <strong><em>config.js</em></strong> in the target directory. Once these four steps are complete, all the extension source code and a config file with values for the target environment are in a single directory, ready to be uploaded!</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d52a68caba6dd5884425ac310b4cd8a9/href">https://medium.com/media/d52a68caba6dd5884425ac310b4cd8a9/href</a></iframe><p><strong>What else can we do?</strong></p><p>We’ve already extended this basic concept in a few ways. In addition to creating <strong><em>config.&lt;ENV_NAME&gt;.json</em></strong> files for development, staging, and production, we can also create what I’ve been calling “on the fly configs”. These are config files to target rarely used environments, like sandboxes, or environments without consistent URLs, like the environments generated by our CI process. Unlike the other environments’ config files, these ones are not tracked in Git. Instead, they are intended to be short-lived files that are created when necessary and then discarded.</p><p>Another complication that arose surrounds the config file for local development. Every developer at Fellow has a different URL for local development. If I were to commit a config file with my URL in it, that wouldn’t be helpful for the next developer looking to run the extension to point at their local environment. Instead, the config file for local environments is not tracked in Git, but a file called <strong><em>config.template</em></strong> is. This template contains json to be copied to a local environment config file and populated with the correct values for that developer’s local setup.</p><p>There are also other applications for this than just switching environments! For example, we could add a flag like <strong><em>--browser</em></strong> and define different config files for Chrome and Firefox. Currently in our extension, the browsers only differ in one way: the path to use to import images. We’re checking if we’re in Firefox before adding any image so that we can import it in the correct way. Instead, we could define the path to an image for Firefox in one config file and to an image for Chrome in another, then use Gulp to generate the correct version of the extension for upload.</p><p>These are just a few ways we’ve already expanded our use of Gulp, and there are many other possibilities! It’s helped us improve our development workflow and has reduced the amount of things we need to remember. I hope these tips will help you out too, and am excited to hear about any other interesting use cases for Gulp with browser extension management!</p><p><em>For a larger example (including extra features such as watching files for changes, and a sample extension), </em><a href="https://diegogiacomelli.com.br/using-gulp-for-chrome-extension-dev-workflow/"><em>check out this great post</em></a><em>!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53f72b57df54" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fellow-engineering/managing-browser-extension-versions-with-gulp-53f72b57df54">Managing Browser Extension Versions with Gulp</a> was originally published in <a href="https://medium.com/fellow-engineering">Fellow Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hellow World]]></title>
            <link>https://medium.com/fellow-engineering/hellow-world-8a6bbb077aa9?source=rss----dda47ecdf979---4</link>
            <guid isPermaLink="false">https://medium.com/p/8a6bbb077aa9</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[engineering-mangement]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Alexandra Sunderland]]></dc:creator>
            <pubDate>Fri, 20 Aug 2021 13:25:47 GMT</pubDate>
            <atom:updated>2021-08-20T14:19:40.080Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m_X_HFcYAw0fqEqj286Mkg.png" /><figcaption>Fellow Engineering Blog: The technology behind the platform that makes meetings delightful</figcaption></figure><p>No, that’s not a typo. Over the last few years, all of us here have typed the name “Fellow” over and over again — so many times that now every word that ends with “ello” is accidentally followed up with a “w”. Most of the time we catch it, but it’s one of those adorable mistakes that we like to have fun with once in a while, and gives a glimpse into the culture of the team.</p><p>Starting today with this new publication, we’re going to be making that mistake a whole lot more! Many members of the engineering team here have been contributing to tech blogs, giving tech talks, speaking on podcasts, and open-sourcing projects for a while now — because we love helping others learn, sharing the cool things we’re learning ourselves, and giving back to the community. We’re excited to launch this new Fellow Engineering blog as another platform for our team to do just that!</p><p>We don’t quite know what this blog will be just yet, but it will grow with us and evolve over time as we build out new projects and discover cool tech that we want to share with the world. The core of our platform (and the heart &amp; soul of the technology behind Fellow) includes our collaborative notes editor, our calendar, and our integrations. While we may give a peek into how we’ve built those once in a while (<a href="https://fellow.app/careers"><em>join the team to get the full story</em></a>), we want to start off by sharing our learnings about things like how to build a dark mode mobile app, or how to manage browser extension versions when you have multiple environments. We’ll also be writing about tech-adjacent topics too—like how to run engineering retrospectives, or why and how we run <em>the best</em> internal hackathons. And we may even have posts about product &amp; design too!</p><p>As a team of engineers that loves to build and problem solve, we’re all figuring it out together as we go along. And that’s half the fun.</p><p>See you on the blog! 👋</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vgTMorNAwr8h_9NLrO5GKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4I-ZWAMteYXYii8a3iZxMQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a6bbb077aa9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fellow-engineering/hellow-world-8a6bbb077aa9">Hellow World</a> was originally published in <a href="https://medium.com/fellow-engineering">Fellow Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>