<?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[Octopus Labs London - Medium]]></title>
        <description><![CDATA[We&#39;re the fintech innovation unit of the Octopus Group. We&#39;re building smart financial products and using tech to drive cultural change. Want to join us on the journey? - Medium]]></description>
        <link>https://medium.com/octopus-labs-london?source=rss----87a76509fad---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Octopus Labs London - Medium</title>
            <link>https://medium.com/octopus-labs-london?source=rss----87a76509fad---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 13:53:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/octopus-labs-london" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Documentation Culture]]></title>
            <link>https://medium.com/octopus-labs-london/documentation-culture-f224528c57f3?source=rss----87a76509fad---4</link>
            <guid isPermaLink="false">https://medium.com/p/f224528c57f3</guid>
            <category><![CDATA[team-management]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[markdown]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Oleksii Fomazov]]></dc:creator>
            <pubDate>Fri, 08 Mar 2024 10:15:45 GMT</pubDate>
            <atom:updated>2024-03-08T10:15:45.046Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sSjSuLdq4h3f7T_j" /><figcaption>Photo by <a href="https://unsplash.com/@sample_in_photography?utm_source=medium&amp;utm_medium=referral">Lucia Macedo</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>TL;DR</h3><p>Write your documentation using <a href="https://www.markdownguide.org/getting-started/">Markdown</a> notation for clarity. Track and share your work with colleagues for feedback. Keep documents and presentation decks in the same place as your code for a neat and organized project.</p><h3>Introduction</h3><p>We are all familiar with the term Tech Debt.</p><p>Today I want to introduce a new one — <strong>Chapter Debt.</strong></p><p>As a Chapter, we know about a lot of good practices, and we understand they’re beneficial.</p><p>However, we either don’t use them or only use them a bit.</p><ul><li><strong>01 — DOCUMENTATION CULTURE</strong></li><li>02 — Testing Culture</li><li>03 — Coding Style Culture</li><li>04 — Code Review Culture</li><li>05 — Competence Culture</li><li>06 — Hiring Culture</li></ul><p>This is the first part of a series talking about Chapter Debt: “Documentation Culture”.</p><h3>Background</h3><p>We need a better <strong>technical documentation culture</strong> and the culture should be pervasive.</p><h4>Alone Together</h4><p>In big organisations we work alone and together at the same time, a lot of our findings get lost and go unnoticed, often we in different teams (or squads if you like) do the same thing in different ways or in the same way, but we even don’t realise it.</p><h4>Random Order</h4><p>What’s the issue with the current documentation?</p><p>If exists, located in different places, namely:</p><ul><li>In the <strong>code repositories</strong> (e.g. a large <strong>readme.md</strong> file, which is not readable and contains a lot of different information)</li><li>In the <strong>Confluence-like</strong> document management system in various chaotic sections. It is incomplete and inconsistent, containing fragments of information.</li><li>Documentation can also be found on a <strong>business communications platform</strong> (e.g. <strong>MS Teams</strong>), which adds to the confusion.</li></ul><h4>Definitely Undecided</h4><p>Even if we wrote something well once, there are no rules for updating it if there are changes.</p><p>I believe that the problem of lack of quality documentation is not that we have nowhere to write it, but the lack of common rules and understanding of <strong>why to write it</strong>, <strong>how to write it </strong>and<strong> how to make colleagues aware of these changes</strong>.</p><h3>Framework</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BSCa-2IgtUmAjdNZ9M9LiA.png" /><figcaption>3 clear steps</figcaption></figure><p>Documentation enhances awareness when choosing technology, allowing you to record why a particular choice was made.</p><p>Presenting technology in a workshop ensures that you are convinced it’s the right choice and undergo a review from colleagues.</p><h3>Toolkit</h3><blockquote>This article adds more details to <a href="https://medium.com/octopus-labs-london/chapter-management-model-7d94ad2a9c7b">what we talked about before</a>. It might help you understand the information better.</blockquote><p>Let’s build the examples in our article on top of the <a href="https://azure.microsoft.com/en-us/products/devops">Azure DevOps</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_PcecIGkkA88kK33tcojVg.png" /></figure><h4>Squad Project</h4><p>The refinement phase in the <strong>Squad</strong> project identifies the documentation work that needs to be done. After creating the <strong>Dependent Task</strong> with a relationship link from the original <strong>User Story</strong>, it must be added to the <strong>Chapter</strong> project.</p><h4>Chapter Project</h4><p>The primary objective of the <strong>chapter</strong> is knowledge sharing. This project serves as a centralized “knowledge-sharing factory”, focusing on collaborative work on documentation and presentations.</p><p>The “<strong>Documentation</strong>” board functions as a tool to track and measure knowledge sharing within the chapter. Its purpose is to provide a constant overview of ongoing documentation efforts. The board emphasizes consistency and transparency, grouping projects using swimlanes and employing the “<strong>Dependent Task</strong>” type as the Product Backlog Item (PBI).</p><h4>Workflow</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_nEf5IsvtVdOnbYy9N10ig.png" /></figure><p>On the board the ticket goes through <strong>five stages</strong>:</p><ol><li><strong>New</strong></li><li><strong>Wiki</strong></li><li><strong>Collaborative session</strong> [ Workshop / Chapter Catch Up / Engineering Meeting]</li><li><strong>Public article</strong> (optional)</li><li><strong>Done</strong></li></ol><p>Each of the <strong>middle three columns</strong> contains two states:</p><ul><li><strong>Doing</strong></li><li><strong>Done</strong></li></ul><p>However, a <strong>Dependent Task</strong> type has 3 states:</p><ul><li><strong>New</strong></li><li><strong>In Development</strong></li><li><strong>Done</strong></li></ul><blockquote>In this workflow, completion of the wiki writing does not mark the ticket as finished — it remains “In Development” until the corresponding workshop is conducted. Even after the workshop, the status remains “In Development” as the decision on whether to create a public article is pending. If the decision favors writing the article, the ticket transitions to the “Public Article” stage. Otherwise, it is solved, moving to the “Done” state.</blockquote><p>The board is unidirectional. <strong>Always from left to right</strong>:</p><ul><li>Conduct a workshop only after completing the writing of pages in the wiki.</li><li>Write a public article only if it is based on the company’s practical experience.</li></ul><p>Now let’s break down each of the <strong>5 states</strong> separately.</p><ol><li><strong>New</strong></li></ol><p>Always consult with the business first.</p><p>Do not raise any matter without discussing it with the PM and the team.</p><p>Avoid elaborating on the task since the ultimate result will be documentation. Instead, utilize a template:</p><p><strong>Type of wiki:</strong></p><ul><li>New</li><li>Rewrite existing documentation</li><li>Transfer of an existing feature to a new technique</li><li>Spike</li></ul><p><strong>Type of presentation:</strong></p><ul><li>Workshop</li><li>Chapter Catch Up</li><li>Engineering Meeting</li></ul><p><strong>Links:</strong></p><ul><li>Wiki (required)</li><li>Presentation (required)</li><li>Public article (optional)</li></ul><p>2. <strong>Wiki</strong></p><p>This represents the implementation of the <strong>LEARN</strong> direction. The article should be written using <a href="https://www.markdownguide.org/getting-started/">Markdown</a> notation. Each wiki page is required to include a link to a ticket where subsequent comments can be appended, along with acknowledgment of the author. Work on an article begins in a feature branch. After the article is ready, the person responsible for the article ticket (author) creates a pull request, mentioning individuals or teams for whom this information is essential. Once approved, this article is merged into the repository following the team’s approved process.</p><p>3. <strong>Collaborative session</strong></p><p>This represents the implementation of the <strong>SYNC</strong> direction, comprising three distinct types: <strong>Workshop</strong>, <strong>Chapter Catch Up</strong>, and <strong>Engineering Meeting</strong>. These types are differentiated based on their intended audience coverage.</p><p><strong>Workshop</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UCxWugws7zaIp2Eq3Tti0A.png" /></figure><ul><li><strong>Frequency</strong>: when necessary.</li><li>R<strong>esponsible</strong>: The ticket assignee is responsible for organizing the workshop.</li></ul><p><strong>Chapter Catch Up</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Avn3e35tUQ8l6mC0SSG8rg.png" /></figure><ul><li><strong>Frequency</strong>: bi-weekly.</li><li><strong>Responsible</strong>: The chapter lead is responsible for organizing the chapter catch-up.</li></ul><p><strong>Engineering Meeting</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HZDymOh9kVgwdH4M3k5sew.png" /></figure><ul><li><strong>Frequency</strong>: once a month</li><li><strong>Responsible</strong>: The Chief Technology Officer (CTO) is responsible for organising the engineering meeting.</li></ul><p>The presentation for <strong>Collaborative session</strong>, it is a summary of the article. There is no need to invent anything: write the <strong>wiki article</strong> first, then create a <strong>presentation</strong> based on it and refer to the wiki article.</p><blockquote>The idea that everything is generated automatically following the principle of <strong>presentation as code</strong> without extra efforts.</blockquote><p>The session is recorded using B<strong>usiness Communication Platform</strong> (e.g. <a href="https://www.microsoft.com/en-us/microsoft-teams/group-chat-software">Microsoft Teams</a>), then the responsible person disables auto-delete and includes it in the wiki documentation.</p><p>The outcome of your presentation will be a page in the meeting notes section of wiki with the following structure:</p><ul><li>Date of the presentation</li><li>Link to the wiki</li><li>Presentation (in markdown format, named <strong>deck.md</strong>)</li><li>Embedded video recording</li></ul><p>4. <strong>Public article</strong></p><p>This represents the implementation of the <strong>HIRE</strong> direction.</p><p>Prospective candidates frequently conduct research on the company prior to job interviews.</p><p>This scenario exemplifies a win-win situation. A personal account serves as an individual brand. Publishing an article on platforms like <strong>Medium</strong> not only enhances the personal brand but also contributes to the public image of the company.</p><blockquote><strong>IMPORTANT: Sensitive information must not be disclosed.</strong></blockquote><blockquote>Therefore, articles undergo an editorial review to ensure compliance with this policy.</blockquote><p>Write an article only if it is relevant to internal work, as articles should always be grounded in internal projects. If the content pertains to something else, it is more suitable for personal publication rather than the group associated with the company.</p><p>5. <strong>Definitions of Done</strong>:</p><ol><li>Wiki article is written.</li><li>Wiki article is submitted to the repository.</li><li>Article is available in the Backstage (about this a little later).</li><li>A collaborative session has been conducted.</li><li>The presence of the article in a public blog is an optional consideration.</li></ol><h3>Single Point of Access</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wtWXIwhiNtZVl4po1aj37g.png" /></figure><p>The solution puts this plan into action. The <a href="https://backstage.io/">Backstage Portal</a> is like an aggregator, kind of like a super organized list. Think of it as a really detailed phone book. Basically, it’s a reliable source that keeps everything in order, giving you both the big picture and all the tiny details.</p><p>You can also see it as a way to answer two main questions: “<strong>what</strong>?” and “<strong>how?</strong>” In simple terms, it gathers all the needed info from the chapter and squad places and shows it in one portal.</p><pre>Team-FrontEnd git repository:<br>catalog-info.yaml file &gt; to register the Team-FrontEnd in Backstage<br>mkdocs.yml file &gt; to index the Team-FrontEnd documentation<br>docs folder &gt; with N md files for the Team-FrontEnd documentation<br>e.g.<br>AUTH UI<br>ERP UI<br>CRM UI<br><br>Team-ERP git repository<br>catalog-info.yaml file &gt; to register the Squad in Backstage<br>mkdocs.yml file &gt; to index the Squad documentation<br>docs folder &gt; with N md files for the Squad documentation<br>e.g.<br>Ways of working<br>Strategy<br>Meeting notes</pre><p>Another option is to utilize <a href="https://learn.microsoft.com/en-us/azure/devops/project/wiki/publish-repo-to-wiki?view=azure-devops&amp;tabs=browser">Azure DevOps Wiki</a> or <a href="https://docusaurus.io/">Docusaurus</a> for deploying a UI layout for your documentation, built on top of your markdown files.</p><h3>Tips</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V632hSX3LNWwAI8TZKT7TA.jpeg" /><figcaption>Image created by <a href="https://www.bing.com/images/create/an-illustration-with-octopus-on-it-octopus-is-fri/1-65e5836559174e7ab87101fa6b4b13a0?id=V632hSX3LNWwAI8TZKT7TA%3d%3d&amp;view=detailv2&amp;idpp=genimg&amp;idpclose=1&amp;thId=OIG1.ndKvqhUzAwwRgWzRcqXe&amp;frame=sydedg&amp;FORM=SYDBIC">Author</a> using DALL·E 3</figcaption></figure><ul><li>Consider the feelings and experiences of the developers who will be using your solution. Put yourself in their shoes and try to understand their needs, challenges, and perspectives. This empathy can guide you in creating a more user-friendly and effective solution, enhancing the overall experience for your fellow developers.</li><li>Be precise in your naming and expressions. If you are referring to component libraries, include “Components” in the name.</li><li>When creating documentation for the UI interface, explicitly add “UI” to the title. This is important because it’s related to the UI, and someone looking for backend information won’t find it here. However, be empathetic: include a link to the backend documentation or ask a colleague to create it if it’s missing.</li><li>When you’re working on something, tell others about it quickly. In big teams, someone might have already done it, or they might be working on it too, but you don’t know! Sharing helps you find out if a similar solution exists and keeps everyone updated on your work.</li><li>Instead of having lots of calls, just share a link. This way, you can easily send a link to your documentation or a workshop video whenever someone needs it.</li><li>If you’re short on time, keep it brief. Capture the essentials now, the details can come later.</li><li>Remember, what you’re doing and documenting is not about the past; it’s about future!</li></ul><p>Thanks for checking out this article!</p><p>If you enjoyed it, please clap, subscribe, and stay tuned for more related content.</p><p><strong>See you soon!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f224528c57f3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/octopus-labs-london/documentation-culture-f224528c57f3">Documentation Culture</a> was originally published in <a href="https://medium.com/octopus-labs-london">Octopus Labs London</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chapter Management Model]]></title>
            <link>https://medium.com/octopus-labs-london/chapter-management-model-7d94ad2a9c7b?source=rss----87a76509fad---4</link>
            <guid isPermaLink="false">https://medium.com/p/7d94ad2a9c7b</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[monorepo]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[team-management]]></category>
            <dc:creator><![CDATA[Oleksii Fomazov]]></dc:creator>
            <pubDate>Thu, 25 Jan 2024 15:09:16 GMT</pubDate>
            <atom:updated>2024-01-25T15:24:13.882Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Inspiring image of a wall displaying the text ‘Start Your Own Chapter,’ encouraging individuals to initiate their own collaborative groups within a specific field." src="https://cdn-images-1.medium.com/max/1024/0*J4MrJltdDCVrcDZb" /><figcaption>Photo by <a href="https://unsplash.com/@tricell1991?utm_source=medium&amp;utm_medium=referral">Waranont (Joe)</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>TL;DR</h3><p>This article gives a recipe for how to unify a company’s technical stack and always get up-to-date technical documentation that contains information about projects from different teams.</p><h3>What is a Chapter?</h3><p>Chapters are groups of organisation members working within a particular field. They have the same functional or technical skills.</p><p>These teams do not have specific responsibilities for delivering business value, but they do assist in building standard tools, methods, and ways of working.</p><figure><img alt="Visual representation of organizational collaboration — Chapters formed by members with shared functional or technical expertise working together within a specific field." src="https://cdn-images-1.medium.com/max/1024/1*DtYIEgGNPW55hX0Y05a6vg.png" /><figcaption>The FE chapter is highlighted in green. The number of software engineers is represented in the circles.</figcaption></figure><blockquote><strong>“FE” STANDS FOR FRONT END, CLIENT-SIDE OF THE APPLICATION</strong></blockquote><blockquote>This refers to the part of a software application or website that the user interacts with directly. It includes the graphical user interface, as well as any other elements that are visible to the user, such as buttons, menus, and forms.</blockquote><blockquote>Please note, I am not going to describe the Spotify model in detail, you can read it yourself based on <a href="https://www.atlassian.com/agile/agile-at-scale/spotify">this article</a> from Atlassian as well as the original source —<a href="https://blog.crisp.se/wp-content/uploads/2012/11/SpotifyScaling.pdf"> this whitepaper</a>. It is worth noting that the Spotify model is <a href="https://blog.crisp.se/2015/06/07/henrikkniberg/no-i-didnt-invent-the-spotify-model">not a framework</a>, but rather an attempt to structure the departments within a company. Then the personal tailoring of the solution, according to the problems of a particular organisation, begins.</blockquote><h3>Initial Problems List</h3><p>Squads frequently make independent decisions regarding the technical stack, often doing so in isolation and during distinct time periods. As a result, the overall scenario might appear as follows:</p><figure><img alt="Visual breakdown showcasing the decomposition based on the technologies used in the previous illustration of chapters and collaborative efforts within a specific field." src="https://cdn-images-1.medium.com/max/1024/1*0TCHB3YAAmmkjXc3RJmbrg.png" /><figcaption>Decomposition based on the chapter technologies used from the previous illustration.</figcaption></figure><p>Although everyone uses the same programming language (in this case JavaScript), teams or specific managers may choose different frameworks, libraries, <a href="https://en.wikipedia.org/wiki/Distributed_version_control">DVCS</a> providers, etc.).</p><p>As mentioned in <a href="https://medium.com/octopus-labs-london/ux-ui-redesign-case-study-bf7d34ed00fb">one of our articles</a>,</p><blockquote>“The greatest challenge to any thinker is stating the problem in a way that will allow a solution.” — Bertrand Russell.</blockquote><p>so let’s do that:</p><ul><li>Teams are divided, and developers may not know each other. Or even if they do, they don’t communicate.</li><li>Developers from different teams (squads) do not have a basic understanding of how neighboring squads organise their projects, so there is no way to request a code review when needed​.</li><li>The technical stack and documentation are not standardised.</li><li>No platform for developers to interact with the design / arch / QA / DevOps / etc. department​.</li><li>No audit of technical debt, accumulation of obsolescence.​</li><li>There is a lack of insight into the qualifications of chapter participants and their aspirations to learn.​</li><li>Non-chapter members (e.g. non-frontenders) were interviewing front-end candidates. But anyway, there are no materials based on projects for job-interviews.​</li></ul><p>If your organisation is facing similar problems or some of them, perhaps this guide will help you review the situation.</p><h3>Solution</h3><p>To make it easier to manage, let’s divide the problem-solving tasks into <strong>three circuits</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3uGkE_9JQBYUzbRpcRDgzg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nXRfOvirLyVVhesEMNzoOQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wrjz_tdzwvV2-Z7ZQ5Q8Ow.png" /></figure><ul><li><strong>LEARN</strong> will cover topics like “A promising technical stack for creating a new project or adapting existing ones”. This direction improves the developer experience (DX), delivery speed, but also impacts non-functional requirements (NFR), whether it’s security, performance or maintainability.</li><li>The goal of <strong>SYNC</strong> is to solve the problem of team disconnection and create a <strong><em>single source of truth</em></strong>. <strong>SYNC</strong> focuses on documentation and workshops based on existing documentation and it’s goal — <strong><em>integrating knowledge into a coherent system</em></strong>.</li><li>The example of <strong>HIRE</strong> will be a list of job-interview questions based on real organisation projects/issues and community awareness of our organisation activities.</li></ul><p>Now knowing the directions, let’s identify <strong>6 main tools </strong>that will help to interact within those directions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GlHwFUd62EXkK2E_9W1uKQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qnVcpUGwRMPbGA_APvdJhQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ynLBQt5qSLDoHmlFe4tudA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CHJR0N6fEYJXh1rczHxHVg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FTEVJM0dOr0BFfq6HSVHAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OgvxMl-Nfc6OWhxLHav8jQ.png" /></figure><blockquote>I highly recommend using tools that are already in use in your company.</blockquote><blockquote>The path of unification will help you reduce costs, improve the ease and efficiency of your teams’ work!</blockquote><h3>Main concept</h3><p>As you may have noticed, the<strong> “Stable chapter wiki”</strong> is the core tool — there’s a reason why I’ve highlighted it in a different colour than the other tools.</p><p>The idea is to create a documentation portal that always contains up-to-date information.</p><p>However, this will obviously require preparation.</p><p>There are 2 major impediments at this stage: <strong>the lack of unification in the technical stack</strong> and<em> </em><strong>the absence of a workflow that includes keeping the documentation up to date</strong>.</p><p>It is not enough just to create an alternative documentation system. It must be incorporated into the routine process of the squads at management level.</p><h4>01 — Projects</h4><p>Let’s deal with the unification of the technical stack:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0TCHB3YAAmmkjXc3RJmbrg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eD2KM92W2YGFQ4C80phaQw.png" /><figcaption>Adapting projects to a single stack will enable common conventions to be applied and allow developers to unite around a universal technology.</figcaption></figure><figure><img alt="Visual representing the concept of adapting projects to a single stack, fostering the application of common conventions and encouraging developers to unite around a universal technology." src="https://cdn-images-1.medium.com/max/1024/1*V650iSoHpcANs_xv_uIgvw.png" /><figcaption>It’s getting much better, but it’s still not perfect. Projects are located in different places.</figcaption></figure><figure><img alt="Noteworthy image illustrating the accessibility enhancement brought by the monorepo, allowing seamless codebase access for all chapter members." src="https://cdn-images-1.medium.com/max/1024/1*S168byADJcnl6CVcT2ZldA.png" /><figcaption>The <a href="https://monorepo.tools/">monorepo</a> made it easier for all chapter members access to the codebase.</figcaption></figure><figure><img alt="Significant improvement highlighted: the ability to unify UI through the creation of a design system and a reusable component library, enabling consistent visual elements across projects." src="https://cdn-images-1.medium.com/max/1024/1*PZmYwwWrNU11dmzRjvhimA.png" /><figcaption>It should also be noted that we can now also unify our UI by creating a design system and a reusable component library based on it.</figcaption></figure><h4>02 — Docs</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vFOl-S3goGDtmyliEX0bMw.png" /><figcaption>Documentation is also part of the monorepo. All content is created in markdown format.</figcaption></figure><h4>03 — Monthly Meetings</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rF3FCH-HBRJtIYDaIKJAIg.png" /><figcaption>The monthly meeting includes a review of documentation changes for each project by Git pull request submitters.</figcaption></figure><p><strong>What is a Monthly Meeting?</strong></p><ul><li>Scheduled on the last Thursday of each month (or the following Thursday if necessary).</li><li>Highly recommended for all FE chapter participants.</li></ul><blockquote><em>Note:</em> While the meeting is primarily tailored for front-end developers, it is open to a broader audience, including team leaders, tech leaders, invited guests from other chapters, product managers, designers, and professionals with a keen interest in front-end development.</blockquote><p><strong>Purpose of the Monthly Meeting:</strong></p><ul><li>Accumulation and sharing of knowledge within the stable chapter wiki.</li><li>Keeping knowledge up-to-date with the latest industry trends.</li><li>Synchronization among teams for better collaboration.</li></ul><p><strong>Agenda:</strong></p><ul><li>Updates from one representative of each team, highlighting significant changes in projects from the past month. This may include new features, updates to existing features, and whether these changes necessitate additions to documentation.</li><li><strong>Presentation of Pull Requests with documentation or Spikes, showcasing the progress made in the last month.</strong></li><li>Backlog refinement: ensuring the chapter backlog is well-maintained and up-to-date.</li><li>Planning commitments for the upcoming month.</li></ul><h4><strong>04 — Stable chapter wiki</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zT9LKVTm7sfn4O6I3tEHgA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MaWudtE4X0W5sUSStsSzyg.png" /></figure><blockquote>Why do we need a separate portal when we already have operational corporate wiki (e.g. Confluence or Notion)?</blockquote><blockquote>The operational corporate wiki lacks a pull request mechanism. It is desired that every member of the chapter actively participates in reviewing the added materials and stays informed about them. In corporate wiki, a page can be added without anyone being aware of it. Although it can be mentioned, a tool that mandates action from the participant is preferred.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZP2NelbB79ps-PAR5KQYcw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PME4-6Yp8avYSmuiXUhYXw.png" /></figure><h3>What is the intended long-term outcome?</h3><ol><li>All chapter members possess a basic understanding of all front-end projects and can assist in conducting code reviews when a colleague is unavailable (due to vacation or illness) <strong>[SYNC circuit]</strong>.</li><li>Chapter members experience reduced stress when transitioning between squads/projects, thanks to consistent updates provided during monthly meetings and access to up-to-date documentation <strong>[SYNC circuit]</strong>.</li><li>Each participant contributes a short presentation based on their work, occasionally crafting public blog posts <strong>[SYNC, STUDY and HIRE circuits]</strong>.</li><li>Integration of project-related questions into the knowledge base for use in job interviews. Development of a comprehensive job-interview question list derived from our actual projects, ensuring the ability to hire qualified and relevant developers whenever the need arises in the future <strong>[HIRE circuit]</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0qSwO0gQR4tBs5rc" /><figcaption>Photo by <a href="https://unsplash.com/@zekedrone?utm_source=medium&amp;utm_medium=referral">Martin Sanchez</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Thank you for your interest in this article!</p><p>Please clap, subscribe and stay tuned for upcoming related content that will delve deeper into today’s topic.</p><p><strong>See you soon!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d94ad2a9c7b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/octopus-labs-london/chapter-management-model-7d94ad2a9c7b">Chapter Management Model</a> was originally published in <a href="https://medium.com/octopus-labs-london">Octopus Labs London</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cancelling XHRs with Next.js 14 and RTK 2]]></title>
            <link>https://medium.com/octopus-labs-london/cancelling-xhrs-with-next-js-14-and-rtk-2-9474d98a87c9?source=rss----87a76509fad---4</link>
            <guid isPermaLink="false">https://medium.com/p/9474d98a87c9</guid>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[abortcontroller]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Oleksii Fomazov]]></dc:creator>
            <pubDate>Thu, 21 Dec 2023 16:03:44 GMT</pubDate>
            <atom:updated>2024-01-08T15:31:19.455Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="This image is a vibrant and detailed illustration of various sea creatures and underwater elements, intricately intertwined. The artwork features a diverse array of marine life including an octopus, fish, coral, seashells, and starfish. The color palette is rich with blues, oranges, and greens creating a lively and dynamic visual experience." src="https://cdn-images-1.medium.com/max/1024/1*aoInshoskJGn7l71nfk5YQ.png" /><figcaption>Image created by <a href="https://www.bing.com/images/create/a-magazine-style-illustration-of-marine-creatures-/1-657caff367484319a8462ae22379f39e?id=lWph2fImN5hoys8IymSDhw%3D%3D&amp;view=detailv2&amp;idpp=genimg&amp;noidpclose=1&amp;form=SYDBIC">Author</a> using DALL·E 3</figcaption></figure><h3>TL;DR</h3><p>This article describes the principle of cancelling <a href="https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest">XHR</a> requests on the example of <a href="https://nextjs.org/">Next.js</a> 14 application with <a href="https://redux-toolkit.js.org/">RTK</a> 2. You can see the finished demo project at <a href="https://marine-creatures.vercel.app/">this link</a>, and its source code <a href="https://github.com/fomazov/marine-creatures">here</a>.</p><h3>Introduction</h3><p>If you’ve been involved in SPA application development you’ve probably had to deal with sending asynchronous requests. This is a fairly trivial task, send a request and get a response from the server, then render the content or handle an error if there is one. However, there are situations when in your project several pages send their requests and the user quickly switching between pages risks getting old data (e.g. if the previous lost request arrives later than the new one, it will overwrite its data). At the same time it is important that the server will suffer from an increased waste of resources to process essentially redundant operations.</p><p>With this article I am killing two birds with one stone, sharing this information with you, but also exploring the possibility for adapting features of an existing application whose tech stack is outdated to a new platform. Since the existing project is fully implemented on <a href="https://redux-toolkit.js.org/">RTK</a> and <a href="https://react.dev/">React</a>, my goal was to connect Redux to <a href="https://nextjs.org/">Next.js</a> 14 using a <a href="https://nextjs.org/docs/app">App Router</a> which is stable nowadays. I see Next.js as an abstraction layer above React that provides the latest changes from the developers of React, transparent conventions, different rendering options and can act as a single platform for all front-end developers within an organisation.</p><h3>Demo application</h3><h4>Step 01 — Define the requirements</h4><p>Let’s build something abstract and minimalistic to demonstrate this concept at work. But first, define the requirements:</p><p>AC 1 We need at least 2 pages with separate routes.</p><p>AC 1.1 The first one will be the start page, where we will place a random illustration.</p><p>AC 1.2 The second one will be a list of elements that we get from the fake API.</p><p>AC 1.2.1 We need this list to load <em>slowly</em>, so that we can return to the main page and the stuck request must be cancelled.</p><p>AC 1.2.2 During loading, the indication should be rendered using the skeleton technique.</p><p>AC 1.2.3 Also, if the information has already been fetched once, we don’t want the request to be sent again and cache it.</p><p>AC 2 As a bonus, the application should be able to switch between a dark and light mode. The system mode should be applied by default.</p><h4>Step 02 — Define the technical stack</h4><ul><li>Language: <a href="https://www.typescriptlang.org/">TypeScript: 5.3.2</a></li><li>Framework: <a href="https://nextjs.org/">Next.js 14.0.3</a></li><li>State Management: <a href="https://redux-toolkit.js.org/">Redux Toolkit 2.0.1</a></li><li>Styling: <a href="https://talwindcss.com/">Tailwind CSS 3.3.6</a></li><li>UI Components: <a href="https://ui.shadcn.com/">shadcn/ui</a> &amp; <a href="https://www.radix-ui.com/">Radix UI</a></li><li>Deployment: <a href="https://vercel.com/">Vercel</a></li></ul><h4>Step 03 — Develop the prototype</h4><p>I chose an ocean theme for the content and colour palette, so the idea is to create a list with randomly generated fake marine creatures.</p><p>Let’s perform the initial <strong>framework</strong> setup</p><pre>// Create a new Next.js app<br>npx create-next-app@latest margine-creatures --typescript --tailwind --eslint</pre><p>and UI Components core,</p><pre>// Add a collection of re-usable UI components<br>npx shadcn-ui@latest init</pre><p>after that, install through CLI the components that we are going to use in our project:</p><pre>npx shadcn-ui@latest add button<br>npx shadcn-ui@latest add card<br>npx shadcn-ui@latest add hover-card<br>npx shadcn-ui@latest add navigation-menu<br>npx shadcn-ui@latest add skeleton<br>npx shadcn-ui@latest add toast</pre><p>Eventually, implementing dark mode <strong>(AC2)</strong> using <a href="https://ui.shadcn.com/docs/dark-mode/next">this doc</a>.</p><p>Given that we have <strong>Next.js</strong>, it is possible to create an <strong>API endpoint</strong> as part of our project using <a href="https://nextjs.org/docs/app/building-your-application/routing/route-handlers">Route Handlers</a> and resolve <strong>AC 1.2</strong>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/646873065c783ed77eb5d207486c2a35/href">https://medium.com/media/646873065c783ed77eb5d207486c2a35/href</a></iframe><p>As specified in <strong>AC 1.2.1</strong>, we intentionally set the delay in <strong>L9</strong>.</p><figure><img alt="Project’s folder structure" src="https://cdn-images-1.medium.com/max/192/1*hAP23hnjzaLgzFlS8sUBhQ.png" /><figcaption>The following file structure was created to meet the requirements of <strong>AC 1.1</strong>, <strong>AC 1.2</strong> and <strong>AC 1.2.2</strong></figcaption></figure><p>Regarding RTK configuration, <a href="https://redux-toolkit.js.org/usage/nextjs">“Redux Toolkit Setup with Next.js”</a> documentation page helped me a lot. In the official Next.js repository you will find an example of how to use it, I leave the link below.</p><p><a href="https://github.com/vercel/next.js/tree/canary/examples/with-redux">next.js/examples/with-redux at canary · vercel/next.js</a></p><p>Also if you migrating from existing application, consider <a href="https://redux.js.org/usage/migrations/migrating-rtk-2">this manual</a>.</p><h4>Step 04 — Fetching and cancelling data</h4><p>I recommend to use <a href="https://redux-toolkit.js.org/rtk-query/overview">RTK Query</a> in real projects, but for now, to keep the codebase uncomplicated let’s do a wrapper around a standard <a href="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API">Fetch API</a>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b644cc271d003de2389dc596f0f6699d/href">https://medium.com/media/b644cc271d003de2389dc596f0f6699d/href</a></iframe><p>As you can see, this code provides a simple utility class Http for making HTTP GET requests with error handling, specifically redirecting to a 404 page if the response status is not OK.</p><blockquote>In the provided code, the signal parameter is part of a mechanism called the <a href="https://developer.mozilla.org/en-US/docs/Web/API/AbortController">AbortController</a>. This mechanism allows the code to associate an &quot;abort signal&quot; with an asynchronous operation, such as an HTTP request. The purpose of this signal is to provide a way to cancel or abort the ongoing operation.</blockquote><blockquote>Here’s why it matters:</blockquote><blockquote>Let’s say a user initiates an action that triggers an HTTP request, but before the request completes, the user decides to navigate away from the current page or cancel the operation. The signal parameter allows the code to gracefully handle this situation. If the associated signal is aborted (meaning the user has canceled the operation), the ongoing HTTP request is canceled as well. In practical terms, this helps improve the overall user experience by preventing unnecessary network requests and ensuring that resources are not wasted on operations that the user is no longer interested in.</blockquote><p>The AbortController is generally <a href="https://caniuse.com/abortcontroller">well-supported across modern browsers</a>.</p><p>So, let’s utilise the API endpoint and the Http utility class in Redux Toolkit Async Thunk</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e550d550441b2da49d03c9c4c85705c5/href">https://medium.com/media/e550d550441b2da49d03c9c4c85705c5/href</a></iframe><p>and use it on the list page (<strong>AC 1.2</strong>):</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/67af3309c8dc4940163a23ff33688627/href">https://medium.com/media/67af3309c8dc4940163a23ff33688627/href</a></iframe><p>As soon as the user leaves this page, unmounting will take place (<strong>L28–30</strong>) and a cancel signal will be sent to the pending request. The user will see a notification:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*7C2dzAYfsnsCiSTtemAFzA.png" /><figcaption><a href="https://github.com/fomazov/marine-creatures/blob/main/components/ui/Toaster.tsx">https://github.com/fomazov/marine-creatures/blob/main/components/ui/Toaster.tsx</a></figcaption></figure><h4>Step 05 — Prevent extra fetching</h4><p>In terms of <strong>AC 1.2.3</strong>, we can set a <a href="https://redux-toolkit.js.org/api/createAsyncThunk#options">validation condition</a> and if our repository already contains data, ignore creating a new fetch request.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/12b32ed8f27c508702444cbf32cabcd4/href">https://medium.com/media/12b32ed8f27c508702444cbf32cabcd4/href</a></iframe><p>The user will also be informed by a notification:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*yAIxJK9W1HpbhdM_wSQhpg.png" /><figcaption><a href="https://github.com/fomazov/marine-creatures/blob/main/components/ui/Toaster.tsx">https://github.com/fomazov/marine-creatures/blob/main/components/ui/Toaster.tsx</a></figcaption></figure><h3>Try it on you own</h3><blockquote><em>This application requires </em><a href="https://nodejs.org/en"><em>Node.js</em></a><em> v18.18+</em></blockquote><ol><li>Clone <a href="https://github.com/fomazov/marine-creatures">the repository</a>:</li></ol><pre>git clone https://github.com/fomazov/marine-creatures.git</pre><p>2. Install dependencies:</p><pre>npm install</pre><p>3. Run the development server using the command:</p><pre>npm run dev</pre><p>4. Open <a href="http://localhost:3000/">http://localhost:3000</a> with your browser to see the result.</p><p>That’s it. Thank you for reading and happy developing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9474d98a87c9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/octopus-labs-london/cancelling-xhrs-with-next-js-14-and-rtk-2-9474d98a87c9">Cancelling XHRs with Next.js 14 and RTK 2</a> was originally published in <a href="https://medium.com/octopus-labs-london">Octopus Labs London</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4 front end web podcasts hosted by people of colour]]></title>
            <link>https://medium.com/octopus-labs-london/4-front-end-web-podcasts-hosted-by-people-of-colour-56e2104e3a?source=rss----87a76509fad---4</link>
            <guid isPermaLink="false">https://medium.com/p/56e2104e3a</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[podcast]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[people-of-color]]></category>
            <dc:creator><![CDATA[Richard Oliver Bray]]></dc:creator>
            <pubDate>Mon, 16 Nov 2020 10:26:41 GMT</pubDate>
            <atom:updated>2020-11-16T10:26:41.510Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XGgl5yt1R_-H0wsa" /><figcaption>Photo by <a href="https://unsplash.com/@soundtrap?utm_source=medium&amp;utm_medium=referral">Soundtrap</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I’m a bit unusual in the sense that I listen to podcasts only when I work. I like the sound of people talking to me in the background, it’s kind of soothing. I tend to listen to mainly game industry and tech, front end related podcast. This year many horrific events affecting predominantly black people in the US most notably the horrific public murder of <a href="https://en.wikipedia.org/wiki/George_Floyd">George Floyd</a> have brought to light the injustices people of colour around the world have faced for years. To make moves to correct some of this injustice more exposure has been given to content creators of colour, and it’s been great to finally see these creators get the recognition they deserve. I’ve been introduced to people like <a href="https://www.youtube.com/channel/UCSFaGqQHt8liD5oPm0w09Nw">Parris Lilly</a> from Gamer Tag radio, <a href="https://www.twitch.tv/zombaekillz">ZombaeKillz</a> a twitch streamer and popular tech Youtuber <a href="https://www.youtube.com/user/marquesbrownlee">Marques Brownlee</a> all have been creating great content for a long time. However, none of those creators focus on front end web development which is the other type of podcast I usually listen to. This got me thinking, ‘what web shows or podcasts are hosted by people of colour?’ And to be honest, I couldn’t think of any off the top of my head. So I reached out to Twitter.</p><h3></h3><p>As much as I love listening to @ShopTalkShow, @syntaxfm and @ReactPodcast I&#39;d be interested to know if there are any #webdev #frontend related podcasts hosted by people of colour? I&#39;m open to suggestions.</p><p>That tweet was probably one of my most popular ones and I’m overwhelmed with the amount responses, likes and retweets I got. So in no particular order here are the 4 web podcasts hosted by people or at least one person of colour.</p><h3>1. Front End Happy Hour</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UYReStcFhSIQUpxccQOVVg.png" /></figure><p><a href="https://frontendhappyhour.com/">Such a great podcast</a> hosted by a lot of Netflix but usually Ryan and Jem. I started listening to this a while ago but stopped because the audio quality of their early shows wasn’t that good. But it has massively improved now which is great. Also although they drink in each episode you don’t have to, unless you really want to.</p><h3>2. Jamstack Radio</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cdka6BluoenEhGmJP4lgRQ.png" /></figure><p><a href="https://www.heavybit.com/library/podcasts/jamstack-radio/">This show</a> is completely new to me and I’m glad Twitter made me aware of it. With over 66 episodes and great guests like Scott Tolinski, Shawn Wang and Kent C Dodds, it’s a show I’ll definitely be adding to my list. Even though I’ve actually never developed a jam stack app before shhhhh!! 🤫</p><h3>3. JS Party</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DohFkt_3limYYOuwQc-PyQ.png" /></figure><p><a href="https://changelog.com/jsparty">Another show</a> I’ve never listened to before but I have heard of and I’m surprised I didn’t get on board earlier. It’s a bit like front end happy hour as there are loads of different hosts here who don’t host every show, it’s called a party for a reason right? Also, you can listen to the hosts record it live which is a bonus.</p><h3>4. Toolsday</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QltY3uh-dUkS38fMmYLbBQ.png" /></figure><p><a href="https://spec.fm/podcasts/toolsday">This is one show</a> that I’ve actually listened to quite regularly back in the day but stopped when it became less regular, but looks like it’s back now and I have a long list of episodes to catch up on. The hosts, Una and Chris have such a great dynamic and talk about things that actually relate to my day-to-day. They don’t do many interviews but their conversations are more than enough to carry an episode. Also, Una sings a different intro for each one. Let’s see how long she’ll keep that up for. :)</p><h3>Honourable mentions</h3><p>These are podcasts that aren’t exactly front end or even web related but do talk about programming in some form.</p><h3>Revision path</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SXOg9X1shhEMIqN9jEsWCw.jpeg" /></figure><p>Honestly can’t believe I’d never heard of <a href="https://revisionpath.com/">this podcast</a> before I mean it has over 370 episodes!!! 370. It’s great to see a show that interviews so many accomplished black designers, developers, and digital creatives. A great source of inspiration for me and people who look like me around the world.</p><h3>Base CS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bd_QJa0KCRE1a4z1occxzw.png" /></figure><p>Imposter syndrome is very common in the tech industry and one reason is there are plenty of programmers who don’t have a computer science degree therefore don’t have an understanding of core programming fundamentals. <a href="https://www.codenewbie.org/basecs">This show</a> bridges that gap and it’s great to see that it’s two women of colour who are leading that charge. I’ve honestly learnt so much from this show and I’m excited to learn more.</p><h3>Two Black Nerds</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rrk7gImZH9aF7u3HD8RjtA.png" /></figure><p><a href="https://twoblacknerds.com/">Again, another show</a> that I’d never heard of before reaching out to Twitter. A podcast about two black engineers and their stories about the world of work they are in tech predictions, and tools they are trying out. I’d be interested to see how much I resonate with what they say considering they’re based in the US and I’m in the UK.</p><p>There’s a lot here to listen to and I wouldn’t recommend listening to them all regularly unless you have loads of time but I’d recommend trying them all out and picking a handful to listen to regularly. Anyway, I hope you found this article useful and if you want to support me, please check out my <a href="https://www.youtube.com/c/RichardBray">Youtube channel</a> where I make videos about programming, mainly games development but web dev too.</p><p>Also, we’re hiring at <a href="https://octopusinvestments.com/">Octopus Investments</a>, the place where I work, so if you’re an engineer looking for a new challenge check out our <a href="https://octopusgroup.com/careers/">careers page</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56e2104e3a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/octopus-labs-london/4-front-end-web-podcasts-hosted-by-people-of-colour-56e2104e3a">4 front end web podcasts hosted by people of colour</a> was originally published in <a href="https://medium.com/octopus-labs-london">Octopus Labs London</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to structure files in large React projects]]></title>
            <link>https://medium.com/octopus-labs-london/how-to-structure-files-in-large-react-projects-48ee3dc424ed?source=rss----87a76509fad---4</link>
            <guid isPermaLink="false">https://medium.com/p/48ee3dc424ed</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[file-structure]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Richard Oliver Bray]]></dc:creator>
            <pubDate>Fri, 19 Jun 2020 13:00:01 GMT</pubDate>
            <atom:updated>2020-06-19T13:00:01.776Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kIFauKLD0DJYai23" /><figcaption>Photo by <a href="https://unsplash.com/@imandrewpons?utm_source=medium&amp;utm_medium=referral">Andrew Pons</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>React is a very open component library and there’s no specific way to layout files. This can be a good thing for small projects but a bad thing (kind of) for very large projects.</p><p>I’ve come up with what I think is a decent way to structure files for large projects, not just react ones but all kinds of front end projects. This is something that I am suggesting for my specific use case but this might not be suitable for everyone. If you agree with it great, if not that’s also fine, I’m very open to feedback so feel free to add a comment below or contact me on <a href="https://twitter.com/ceiga">Twitter</a>.</p><p>If you’re into learning through videos then you’re in luck because that’s where the bulk of this article is. If you’re not into videos then I’m truly sorry, however, you can look at the TL:DR below to get an idea of what I believe is the ideal file structure for a large front end project and jump to the video if you want a deeper explanation.</p><h4>TL:DR</h4><pre>public/<br>package.json<br>index.ts<br>src/<br>│<br>├── components/<br>│   ├── Button/<br>│   │   ├── Button.tsx<br>│   │   ├── Button.tests.tsx<br>│   │   └── Button.css<br>│   ├── Dropdown/<br>│   ├── Toaster/<br>│   ├── Header/<br>│   └── Footer/<br>│ <br>├── layouts/<br>│   └── StoreLayout/<br>│       ├── components/<br>│       │   ├── SearchDropdown/<br>│       └── StoreLayout.tsx<br>│ <br>└── pages/<br>    ├── StoreProductPage/<br>    │   ├── components/<br>    │   │   ├── Carousel/<br>    │   │   └── ProductCard/<br>    │   └── StoreProductPage.tsx<br>    │<br>    └── StoreCheckoutPage/<br>        ├── components/<br>        │   └── ProductCheckoutCard/<br>        └── StoreCheckoutPage.tsx</pre><h3>Video explanation</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1uQ9j8ynQlM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1uQ9j8ynQlM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F1uQ9j8ynQlM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4fa129d502a8c8bd87090a4bd5d070c3/href">https://medium.com/media/4fa129d502a8c8bd87090a4bd5d070c3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48ee3dc424ed" width="1" height="1" alt=""><hr><p><a href="https://medium.com/octopus-labs-london/how-to-structure-files-in-large-react-projects-48ee3dc424ed">How to structure files in large React projects</a> was originally published in <a href="https://medium.com/octopus-labs-london">Octopus Labs London</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unit Testing tips with modern React and Enzyme]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/octopus-labs-london/unit-testing-tips-with-modern-react-and-enzyme-ecf668145226?source=rss----87a76509fad---4"><img src="https://cdn-images-1.medium.com/max/2600/0*eKiy8z2mgm0JdqQX" width="12000"></a></p><p class="medium-feed-snippet">Hooks, context, redux, these are a few of the things frontend developers who use React know of quite well. They&#x2019;re tools we use to make&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/octopus-labs-london/unit-testing-tips-with-modern-react-and-enzyme-ecf668145226?source=rss----87a76509fad---4">Continue reading on Octopus Labs London »</a></p></div>]]></description>
            <link>https://medium.com/octopus-labs-london/unit-testing-tips-with-modern-react-and-enzyme-ecf668145226?source=rss----87a76509fad---4</link>
            <guid isPermaLink="false">https://medium.com/p/ecf668145226</guid>
            <category><![CDATA[unit-test-tools]]></category>
            <category><![CDATA[enzyme]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Richard Oliver Bray]]></dc:creator>
            <pubDate>Tue, 07 Apr 2020 14:03:27 GMT</pubDate>
            <atom:updated>2020-04-07T14:03:27.138Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to access a redux component’s methods with createRef()]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/octopus-labs-london/how-to-access-a-redux-components-methods-with-createref-ca28a96efd59?source=rss----87a76509fad---4"><img src="https://cdn-images-1.medium.com/max/2600/0*emRVDc7PxVfKp4uU" width="6000"></a></p><p class="medium-feed-snippet">If you do a quick Google search for &#x2018;share methods between react components&#x2019;, it won&#x2019;t take you long to stumble upon a stack overflow&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/octopus-labs-london/how-to-access-a-redux-components-methods-with-createref-ca28a96efd59?source=rss----87a76509fad---4">Continue reading on Octopus Labs London »</a></p></div>]]></description>
            <link>https://medium.com/octopus-labs-london/how-to-access-a-redux-components-methods-with-createref-ca28a96efd59?source=rss----87a76509fad---4</link>
            <guid isPermaLink="false">https://medium.com/p/ca28a96efd59</guid>
            <category><![CDATA[components]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[createref]]></category>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Richard Oliver Bray]]></dc:creator>
            <pubDate>Mon, 05 Aug 2019 17:03:22 GMT</pubDate>
            <atom:updated>2019-08-05T17:03:22.376Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Replacing Redux with react hooks and context (part 1)]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/octopus-labs-london/replacing-redux-with-react-hooks-and-context-part-1-11b72ffdb533?source=rss----87a76509fad---4"><img src="https://cdn-images-1.medium.com/max/2250/1*m1sn3MvjwKI6vN--pXVGQw.jpeg" width="2250"></a></p><p class="medium-feed-snippet">If you&#x2019;ve been in the React world for a decent amount of time you would have heard about Redux. Redux is cool, it&#x2019;s a way of getting&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/octopus-labs-london/replacing-redux-with-react-hooks-and-context-part-1-11b72ffdb533?source=rss----87a76509fad---4">Continue reading on Octopus Labs London »</a></p></div>]]></description>
            <link>https://medium.com/octopus-labs-london/replacing-redux-with-react-hooks-and-context-part-1-11b72ffdb533?source=rss----87a76509fad---4</link>
            <guid isPermaLink="false">https://medium.com/p/11b72ffdb533</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[context]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[redux]]></category>
            <dc:creator><![CDATA[Richard Oliver Bray]]></dc:creator>
            <pubDate>Thu, 28 Feb 2019 12:13:46 GMT</pubDate>
            <atom:updated>2019-04-23T07:25:31.349Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Replacing redux with react hooks and context (part 2)]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/octopus-labs-london/replacing-redux-with-react-hooks-and-context-part-2-838fd20e6739?source=rss----87a76509fad---4"><img src="https://cdn-images-1.medium.com/max/2250/1*UprdoJC3uGzZ-utlnkt16g.jpeg" width="2250"></a></p><p class="medium-feed-snippet">This post is a continuation of a previous one if you&#x2019;re coming here without going to the first post I highly recommend you check that one&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/octopus-labs-london/replacing-redux-with-react-hooks-and-context-part-2-838fd20e6739?source=rss----87a76509fad---4">Continue reading on Octopus Labs London »</a></p></div>]]></description>
            <link>https://medium.com/octopus-labs-london/replacing-redux-with-react-hooks-and-context-part-2-838fd20e6739?source=rss----87a76509fad---4</link>
            <guid isPermaLink="false">https://medium.com/p/838fd20e6739</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[context]]></category>
            <dc:creator><![CDATA[Richard Oliver Bray]]></dc:creator>
            <pubDate>Thu, 28 Feb 2019 12:12:47 GMT</pubDate>
            <atom:updated>2019-02-28T12:13:12.742Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to build a REST api in Python with Tornado (part 2)]]></title>
            <link>https://medium.com/octopus-labs-london/how-to-build-a-rest-api-in-python-with-tornado-part-2-8ebc423bd4fa?source=rss----87a76509fad---4</link>
            <guid isPermaLink="false">https://medium.com/p/8ebc423bd4fa</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[tornado]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[backend]]></category>
            <dc:creator><![CDATA[Richard Oliver Bray]]></dc:creator>
            <pubDate>Thu, 29 Nov 2018 11:10:32 GMT</pubDate>
            <atom:updated>2018-11-29T11:10:57.184Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2mIiZzCWasaKqC9P" /><figcaption>“boat on sea under white clouds” by <a href="https://unsplash.com/@tulen?utm_source=medium&amp;utm_medium=referral">Tulen Travel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>How to build a REST API in Python with Tornado (part 2)</h3><p>This is a continuation of a tutorial that was started over <a href="https://medium.com/@richbray/how-to-build-a-rest-api-in-python-with-tornado-fc717c33824a">here</a>. I highly recommend you go through that tutorial before coming here or none of it will make sense. With that out of the way let’s continue creating our REST API.</p><h3>A slightly better server</h3><p>By default whenever we make a change we have to close and restart our server which isn’t great for development so we’ll change that now.</p><p>1. Our code thus far should look like this.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/782da5896f9f729ab83e266374debc72/href">https://medium.com/media/782da5896f9f729ab83e266374debc72/href</a></iframe><p>2. Amend the code on line 10 to look like this:</p><pre>return Application(urls, <em>debug</em>=True)</pre><p>3. Now close and start the server, if all went well you shouldn’t need to stop and start as often.</p><h3>Changing Hello to Todo</h3><p>Our todo list will be a list(array in JS), populated with dicts. Let’s start off by creating that main array.</p><p>1. Below all the imports add.</p><pre>items = []</pre><p>2. Change the class name <strong>HelloHandler</strong> to <strong>TodoItems</strong> and inside the make_app() function.</p><p>3. Now amend the dict in self.write to this:</p><pre>self.write({&#39;items&#39;: items})</pre><p>4. Check the response in Postman and you should get this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*rs73wJpAUl6X6ZYHeg0qHQ.png" /></figure><h3>Adding a Todo item</h3><p>1. Let’s add a new class below TodoItems but above make_app called <strong>TodoItem</strong> that inherits RequestHandler.</p><p>2. Inside TodoItem create a post method with an argument of <strong><em>self</em></strong> and add this line:</p><pre>self.write({&#39;message&#39;: self.request.body})</pre><p>3. Now let’s add a new endpoint to our server. Expand the urls list in make_app and add a new line to it:</p><pre>(&quot;/api/item/&quot;, TodoItem)</pre><p>4. Your code should now look like this.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1eb353123893737a6fdc573683d9df94/href">https://medium.com/media/1eb353123893737a6fdc573683d9df94/href</a></iframe><p>5. Go into Postman, click on the plus to create a new tab, change the GET dropdown to <strong>POST</strong> and add this url</p><pre>http://localhost:3000/api/item/</pre><p>If we had a frontend we will send some JSON data from it to the endpoint, but as we don’t we can use Postman to simulate that.</p><p>6. Click on the <strong>Body</strong> tab beneath the url. Click on the raw radio button and change the dropdown on the right to <strong><em>JSON(application/json)</em></strong>.</p><p>7. Add this code to the body:</p><pre>{<br>  <em>&quot;id&quot;</em>:1,<br>  <em>&quot;name&quot;</em>: &quot;test44&quot;<br>}</pre><p>and press Send.</p><p>8. You should get this response:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*0GgQgQKZVt8SGjmMWHp9cA.png" /></figure><p>9. You’ll notice the message looks a bit funky, that’s because Python by default doesn’t automatically convert a string to a dict, so let’s import a library to do so.</p><p>10. Add this below the two imports:</p><pre>import json</pre><p>11. Now change the `post` method to this</p><pre>self.write({&#39;message&#39;: json.loads(self.request.body)})</pre><p>And click Send in Postman again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*MpJZEcEf8mXipFd4ap7u8A.png" /></figure><p>Nice.</p><p>12. Don’t forget to save your request in postman as <strong><em>/item</em></strong>.</p><p>13. Now let’s tweak the code to actually add the dict to items. Ammend the post method to look like this.</p><pre><em>def</em> post(<em>self</em>):<br>  items.append(json.loads(self.request.body))<br>  self.write({&#39;message&#39;: &#39;new item added&#39;})</pre><p>14. Now add an item with Postman, then go back to the items request and see you’re newly added item.</p><h3>Deleting a todo</h3><p>The way the delete method will work is by creating a <strong>new_items</strong> list which will iterate though the list and exclude the item matches the id. We will pass the item id in the URL this time instead of the Body like with did with the post request.</p><p>1. First, let’s change the item url in make_app so that it can read id’s using regex:</p><pre>(<em>r</em>&quot;/api/item/([^/]+)?&quot;, TodoItem)</pre><p>2. Create a new method in TodoItem called <strong>delete</strong> with a <strong>self</strong> and <strong>id</strong> attribute:</p><pre><em>def</em> delete(<em>self</em>, <em>id</em>):<br>  self.write({&#39;message&#39;: id})</pre><p>3. Jump to Postman and create a DELETE request with this url <strong><em>http://localhost:3000/api/item/342</em></strong>, the usual headers and press send.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*dedEIQs2i25nPkkUCp99bA.png" /></figure><p>I’m guessing you can figure out what’s going here. By default the first argument of a method is self and the second argument is anything that will be after the `/` in the url. Currently were just showing a message for any id we place in the url, let’s change the method so it can actually delete an item.</p><p>4. Make this the first line in the delete method:</p><pre>new_items = [item for item in items if item[&#39;id&#39;] is not <em>int</em>(id)]</pre><p>This is an example of ‘list comprehension’ in Python. In Javascript the above line would be written with an array filter method like so:</p><pre><em>const</em> new_items = items.filter(<em>item</em> <em>=&gt;</em> item.id !== +id)</pre><p>And the same thing can be done in Python using Lambda a function:</p><pre>new_items = filter(<em>lambda</em> <em>item</em>: item[&#39;id&#39;] != <em>int</em>(id), items)</pre><p>Which you’re welcome to put in your actual code, but the first line of code is more readable and more Pythonic (the Python way of coding), so that’s why I would recommend doing it that way. You’re welcome to put some prints in the code to see how it works before moving on.</p><p>5. Now let&#39;s assign new items to items, and give a message telling developers what item has been deleted. Add these two pines to the bottom of the new_item variable.</p><pre>items = new_items<br>self.write({&#39;message&#39;: &#39;Item with id %s was deleted&#39; % id})</pre><p>6. Unlike Javascript in Python if you want to change a global variable inside a function/method we need to use the keyword <strong>global</strong> and then the variable name we want to use in the method/function or it will give you an error. Place this code above the new_items variable since it references items.</p><pre>global items</pre><p>7. One more tweak is required. Because our /api/item/ url has been rewritten to expect another argument the post method will no longer work since we’re just passing in self and nothing else, to fix that you can amend it like so:</p><pre><em>def</em> post(<em>self</em>, <em>_</em>):</pre><p>And with that done you’ve created your first API with Python and Tornado. This is what your finished code should look like:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5d531f4629a2086cf9f65a6654019dbe/href">https://medium.com/media/5d531f4629a2086cf9f65a6654019dbe/href</a></iframe><p>Nice work! From here on out there are a few things you can do on your own:</p><ul><li>Add a <strong>put</strong> method to edit a Todo item</li><li>Prevent multiple items with the same id to be added</li><li>Create a <strong>get</strong> method to show the details of a single item</li><li>Or if you’re a front-end dev you could create a little todo list that makes calls to your API</li></ul><p>If you get a bit stuck I have the finished code here on <a href="https://github.com/RichardBray/todo-list-api/tree/master">Github</a> (apart from the frontend).</p><p>As you’ve noticed if you restart the server you will lose all the todo items in your list which is not ideal. The way to fix that is to save your todo items in a database of some sort which is something I’m looking to write at some point in the future time permitting. But until then, I hope this has been a helpful introduction to Tornado and REST API’s in general.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ebc423bd4fa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/octopus-labs-london/how-to-build-a-rest-api-in-python-with-tornado-part-2-8ebc423bd4fa">How to build a REST api in Python with Tornado (part 2)</a> was originally published in <a href="https://medium.com/octopus-labs-london">Octopus Labs London</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>