<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Brittany Lau on Medium]]></title>
        <description><![CDATA[Stories by Brittany Lau on Medium]]></description>
        <link>https://medium.com/@brittanylau?source=rss-2e4cad8f757d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fXv2OK-8V22fFaOMLSv7iQ.jpeg</url>
            <title>Stories by Brittany Lau on Medium</title>
            <link>https://medium.com/@brittanylau?source=rss-2e4cad8f757d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 22:52:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@brittanylau/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Project Highlight #8: Project READ]]></title>
            <link>https://medium.com/uw-blueprint/project-highlight-8-project-read-2b8a8d9802f?source=rss-2e4cad8f757d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b8a8d9802f</guid>
            <category><![CDATA[nonprofit]]></category>
            <category><![CDATA[university-of-waterloo]]></category>
            <category><![CDATA[social-impact]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Brittany Lau]]></dc:creator>
            <pubDate>Fri, 28 May 2021 21:38:54 GMT</pubDate>
            <atom:updated>2021-08-13T16:32:32.961Z</atom:updated>
            <content:encoded><![CDATA[<h3>Project Spotlight #8: Project READ Literacy Network</h3><p>A web application that streamlines outreach and operational processes for family literacy programs.</p><p>Co-authored by <a href="https://medium.com/u/d4b7b5fc5ae1">Monica Xu</a>, <a href="https://medium.com/u/2e4cad8f757d">Brittany Lau</a> and Blueprint’s W21 Project READ team!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vT5B5o6JaDDb7-Xy-1Hs8w.png" /></figure><h3>Project READ &amp; Get Set Learn 📚</h3><p>Project READ Literacy Network is an umbrella organization that coordinates and runs literacy programs based in the Waterloo-Wellington area. The organization was founded in 1988, and works with the public and their network members to build literacy and essential skills such as reading text, using documents, oral communication, and much more.</p><p>Get Set Learn (GSL) is one of Project READ’s programs. The GSL team focuses on providing literacy training for families with young children, which includes family playtime, circle time, crafts, and opportunities for families to interact. GSL runs several sessions of their program each year, where each session consists of twice-weekly classes for eight weeks, all free of charge.</p><h3>Problem Space 💭</h3><p>GSL is constantly evolving and adapting to the literacy needs of their clients, and in turn, so has the data the team keeps. A few of their key user tasks include:</p><ol><li>Working with families through a multi-step registration process</li><li>Recording families’ attendance and class completion</li><li>Assigning responsibilities to members of the GSL staff</li><li>Querying historical data</li><li>Aggregating data for reporting &amp; metrics tracking</li></ol><p>GSL’s outreach and operations processes rely on a complex ecosystem of Google Forms and Sheets. The lack of structure that comes from shared drives and free-form documents resulted in the following:</p><ol><li>An un-intuitive user experience navigating through file directories</li><li>Inconsistent data formatting across documents</li><li>Inability to efficiently search for data across multiple documents</li></ol><p>This wound up adding friction to a few of GSL’s key workflows, making their tasks manual and time-consuming. <em>There HAD to be a better way!</em></p><h3>Solution: The GSL Hub 💡</h3><p>We’re building the GSL Hub, an internal tool that allows GSL staff to record and aggregate client data &amp; interactions across classes &amp; sessions. Our tool aims to fulfil the following success criteria:</p><ul><li>Make data easy to consolidate for reporting &amp; metrics tracking</li><li>Promote data integrity while allowing flexibility to navigate through organizational changes</li><li>Save users’ time and energy by automating repetitive workflows</li><li>Integrate seamlessly with current workflows and other Project READ initiatives</li><li>Make the lives of the GSL staff easier! 😁</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uFbYYeHZ9S_LpDk3" /><figcaption>Key goals of the GSL Hub</figcaption></figure><p>Building out the GSL Hub is comprised of two main parts:</p><p><strong>Part 1: Migrating client data from Google Sheets to PostgresDB</strong></p><p>Currently, years of client data are stored across Google Sheets files. As GSL scales and works with more clients, the lean, DIY nature of spreadsheets makes it increasingly difficult to work with client data. Our team is working with GSL to migrate data from Sheets to PostgresDB.</p><p>This change improves consistency, durability, and security of data, and ultimately enable more useful, powerful, and faster querying abilities in the GSL Hub.</p><p><strong>Part 2: Implementing components to view and manipulate client data</strong></p><p>The various components of the GSL Hub include:</p><ul><li>The <strong>Main Registration Table</strong> serves as the single source of truth, and displays client data across all sessions.</li><li>The <strong>Session View </strong>displays data about families registered for a given session, enabling staff to track where a given family is in the registration pipeline, tentatively allocate families to classes, and take attendance.</li><li>The <strong>Attendance View</strong> for each class lets facilitators take attendance of registered students.</li><li>The <strong>Family Details Sidebar</strong> displays consolidated data about a family, and can be viewed by clicking a row in the Main Registration Table or the Session View.</li><li>The <strong>Registration Form</strong> is used to register families for GSL, creating entries in the Main Registration table and corresponding Session View</li><li>The <strong>Registration Form Creator</strong> lets admins Client Registration Forms for a given session, as required data changes over time</li></ul><h3>Designs 🎨</h3><p>Our intention building out an internal tool is to put the user first. As such, in the project scoping phase, a lot of time and thought was put into thinking about the questions:</p><ul><li>Who are the stakeholders involved?</li><li>Who are our primary users?</li><li>What are our users’ needs?</li><li>How should we prioritize user needs?</li><li>What are the user journeys involved?</li></ul><p>The following diagram outlines our brainstorming process in identifying the key use cases, opportunities, and paint points of our primary users — GSL staff and facilitators.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3oU0scPqj3BJVgU0" /><figcaption>Anonymized user journey map for clients, facilitators, and admins</figcaption></figure><p>Over the course of work sessions, project scoping meetings, user interviews, and feedback meetings, our designs for the GSL Hub have gone through several iterations. Check out some of our latest mocks below!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OVdsByOxxvD3aWsS" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EYyEH13N7QS3xiHf" /><figcaption>The Main Registration table! Users can click a row to expand the Client Side Panel, which displays detailed information about a family.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/0*hBb2VoZnki9czWhx" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P9gZvB3f-9KYLkVQ" /><figcaption>GSL staff can register new clients through the Registration Form, which is configured through the Registration Form Creator.</figcaption></figure><h3>Meet the Winter 2021 team 👋</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ojMkwnNp-BEskT1u" /><figcaption>The Winter 2021 team, and the frog avatars we drew for one another 🐸</figcaption></figure><blockquote><strong>Why did you join this team?</strong></blockquote><ul><li><strong>Tayef</strong>: I grew up benefiting from literacy programs at my elementary school and public library. Being a developer on Project READ is one way I’m giving back to initiatives aimed at providing literacy education to families in need.</li><li><strong>Emily</strong>: Ever since I was young, I always loved reading, and I understand what it’s like to learn another language. I wanted to join Project READ as a designer to give back and help the organization to empower families with a literacy education.</li><li><strong>Brittany</strong>: I’m passionate about addressing socio-economic barriers that low-literacy populations face, and was really excited about Project READ’s goals and community impact. It’s been inspiring to learn about how GSL has adapted over the years to continually create long-lasting value for the community.</li></ul><blockquote><strong>What excites you about this project?</strong></blockquote><ul><li><strong>Jolene</strong>: I’m a strong believer in ensuring that literacy education is accessible to all, and Project READ is an incredible non-profit that does just that! As a developer, it is really exciting knowing that my efforts are helping drive that mission.</li><li><strong>Daniel: </strong>In the span of four months, our team went from ground zero to a functioning backend. It’s always exciting to see how far our team has come in such a short period of time, and I’m looking forward to fleshing out the project.</li><li><strong>Erin: </strong>I’m really proud of the progress our team has made these past 4 months, from exploring a new problem space all the way to the current implementation. I’m excited that we’re able to help so many people in the Project READ literacy program through the platform we’re building<strong>.</strong></li></ul><blockquote><strong>What is one cool thing you learned from working on this project?</strong></blockquote><ul><li><strong>Monica</strong>: This is my first time managing products in a nonprofit space! I’ve been having a lot of fun learning about how nonprofits operate, as well as how to design and build custom internal tools.</li><li><strong>Prannoy: </strong>This was my first time ever working on a large scale project from scratch. Meeting with clients, being a part of the initial technical scoping and creating database diagrams were all new to me, and it was so rewarding to be a part of that creative process!</li></ul><h3>What’s next 🔍</h3><p>Our project has a two-term (8 month) timeline. Here are our goals as we wrapped up the Winter 2021 term and head into Spring! 🌱</p><p><strong>Winter 2021</strong>: wrapping up scoping, working through core functionality</p><ul><li><strong>Design</strong>: wrapping up first iteration of mocks for the main web pages and components of the GSL Hub</li><li><strong>Development</strong>: backend API design &amp; building out the registration table and family detail views</li></ul><p><strong>Spring 2021</strong>: continuing development, testing, and working toward an August launch date</p><ul><li><strong>Design</strong>: Conducting user testing, iterating on feedback, adapting design to dev implementation requirements</li><li><strong>Development</strong>: building the attendance tracker, registration forms, and admin functionality</li></ul><p>Our team is super proud of the work we’ve accomplished this term. These past few months have not only been a cultivation of scoping, engineering, and design work, but also incredible teamwork and friendships!</p><p>We are absolutely thrilled to continue building out the GSL Hub and helping the amazing staff members at GSL and Project READ. Stay tuned for our launch in a few months 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b8a8d9802f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/uw-blueprint/project-highlight-8-project-read-2b8a8d9802f">Project Highlight #8: Project READ</a> was originally published in <a href="https://medium.com/uw-blueprint">UW Blueprint</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Customer journey mapping with finite state machines and Django REST Framework]]></title>
            <link>https://medium.com/bungalow-garage/customer-journey-mapping-with-finite-state-machines-and-django-rest-framework-eda8d7a9ff81?source=rss-2e4cad8f757d------2</link>
            <guid isPermaLink="false">https://medium.com/p/eda8d7a9ff81</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[finite-state-machine]]></category>
            <category><![CDATA[customer-experience]]></category>
            <category><![CDATA[django-rest-framework]]></category>
            <category><![CDATA[django]]></category>
            <dc:creator><![CDATA[Brittany Lau]]></dc:creator>
            <pubDate>Mon, 02 Mar 2020 15:52:25 GMT</pubDate>
            <atom:updated>2020-03-03T17:05:12.276Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a multi-step customer journey using finite state machines and Django REST Framework</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vQxR5TLZ3z5rF0x53qHNRg.png" /></figure><p><a href="https://bungalow.com/">Bungalow</a> recently launched a <a href="https://medium.com/@Bungalow/helping-great-roommates-come-together-da5bb48f7842">new roommate matching experience</a> to strengthen our foundations in community and personalizing the home-matching experience. In a collaborative effort across our engineering and product teams, we’ve recently shipped a novel experience for incoming Bungalow residents that encompasses the steps from submitting an application to signing the lease for their new home:</p><ol><li>submitting an application</li><li>getting pre-approved</li><li>completing their Bungalow profile</li><li>shopping for a home</li><li>doing a meet &amp; greet with their potential roommates</li><li>signing a lease</li></ol><p>This multi-step customer journey acts as the single source of truth of where the applicant is in their pre-lease process — their status indicates what they’ve already accomplished, and what’s up next to secure their Bungalow home.</p><p>In this article, we’ll discuss how we built this new application flow from a backend perspective, and how we implemented control-flow and traceability for an applicant’s experience.</p><h3>Technical requirements</h3><p>From the customer journey outlined above, each step is dependent on the successful completion of the last.</p><p>For example, Bungalow can’t pre-approve an application if it hasn’t been submitted, and applicants aren’t going to be sent a lease without passed a meet and greet with the roommates in the home.</p><p>To engineering, following this sequence is important because certain screens/views can’t be successfully rendered without valid data that was captured in the previous stage.</p><p>Knowing exactly where leads are in the demand funnel also allows us to provide context for our sales teams to follow up with them, and analyze drop-off points.</p><h4>Basic implementation</h4><p>We want to keep track of an application’s status, and update it whenever we know they&#39;ve completed a stage in our process.</p><p>We implemented a status field on our application model, which is a choice field for each of the possible stages to be completed in our customer journey.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/07c6d5b81387515d58aedc86c7323605/href">https://medium.com/media/07c6d5b81387515d58aedc86c7323605/href</a></iframe><p>A naive solution for making status updates would be to explicitly update the status when a certain button is clicked or API endpoint is hit. This could live in-line in several points in the code. However, this can quickly get messy if we add new statuses and transitions later on.</p><p>We wanted to implement a system that allows for some abstraction, code reuse, and extensibility down the road — a device commonly used in computing for such use cases is a <strong>finite state machine</strong>.</p><h3>Finite state machines</h3><p>A <a href="https://brilliant.org/wiki/finite-state-machines/">finite state machine</a> (FSM) is a device that stores the status of something at any given time and can operate on an input to change it. When the status is changed, it can cause an action to take place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cvbL6d0yQMSbC_VOCtdmlQ.png" /><figcaption>A simple FSM for turning a switch on and off. Our states are ‘off’ and ‘on’, and providing an input of ‘turn off’ or ‘turn on’ triggers a transition.</figcaption></figure><p>An FSM lets us break down a larger flow into independent, smaller flows that are linked by transition events. There are several key benefits:</p><ol><li><strong>Abstracting state/transition logic allows for better code reuse and maintainability<br></strong>Abstracting the transitions to the calling code makes it easy to make changes to our FSM down the line. We’re able to make updates to inputs &amp; outputs in a single place, rather than checking several different classes and functions.</li><li><strong>Defining a finite number of states and transitions brings ease to debugging and extensibility<br></strong>Explicitly defining valid status transitions in one place gives us a single source of truth for state flows (if an incorrect transition happens, we know it’s because the state machine is wrong).</li><li><strong>Side effects from transitions are more easily implemented<br></strong>With a state machine, we can easily trigger actions for a given status change in a couple of lines of code, rather than in-line for every single transition.</li></ol><p>In an FSM, we have a set of inputs that each cause a certain change in state. These inputs are a five-element tuple:</p><ul><li>a set of states (Q)</li><li>an input alphabet (Σ)</li><li>a set of transition functions (δ)</li><li>the starting state (q0)</li><li>a set of accepting states (F)</li></ul><h3>Implementing an FSM for our application flow</h3><h4>Designing the state machine</h4><p><strong>Q: a finite set of states<br></strong>For us, this is each of the possible application statuses (initialized earlier in our models.py file): open, submitted, preapproved, profile_completed, room_selected and approved</p><p><strong>Σ: an input alphabet<br></strong>In a loose way, our inputs are a series of requests from our frontend. As such, our pseudo-alphabet could look something like a set of:</p><ul><li>POST to the submit-application endpoint</li><li>POST to the approve-application endpoint</li><li>PUT to the update-profile endpoint</li></ul><p><strong>δ: the set of transition functions<br></strong>From certain requests in our input alphabet, we’ll update the application’s status and trigger some side effects.</p><p><strong>q₀: the starting state<br></strong>An application always needs to be submitted first, so we’ll start from open.</p><p><strong>F: the set of accepting states<br></strong>This isn’t applicable for us, since not all leads might complete the whole flow. Any state will be a valid ending state, but we’re hoping that it’ll be approved! 🤞</p><h4>Configuring the state machine in a reusable function</h4><p>To maximize reusability and readability, we registered our transitions in a single source of truth that is abstracted from the calling code. So, when an element in our input alphabet is triggered, we can call a function that will determine and execute the transition that needs to happen based on the current status.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/feffd0761cde02cfc0016082a26cbcca/href">https://medium.com/media/feffd0761cde02cfc0016082a26cbcca/href</a></iframe><h4>Hooking in our FSM transitions to our inputs</h4><p>Our input alphabet is a request to our API endpoints. Let’s illustrate this example with an applicant who is selecting a home to enter a meet &amp; greet with the roommates. This is the transition from profile_completed to room_selected.</p><p>We wanted to store a record of when an applicant selects a room, so we created a model that looks a little something like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b29d5d77d6d30ef5ba6b2ba94113b7e5/href">https://medium.com/media/b29d5d77d6d30ef5ba6b2ba94113b7e5/href</a></iframe><p>To make this transition happen from an API endpoint, we implemented a serializer for the RoomSelection where we overrode the behaviour for the create method to call the FSM when a POST request is made.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e8e06ff4bd03a67910172de07b9bc86d/href">https://medium.com/media/e8e06ff4bd03a67910172de07b9bc86d/href</a></iframe><p>Finally, we exposed a POST endpoint to the frontend as an interface to our state machine.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4d45764c09d19617b4a5afacec14d769/href">https://medium.com/media/4d45764c09d19617b4a5afacec14d769/href</a></iframe><p>Now, a request to our room selection endpoint:</p><ol><li>Validates that we’re in a good state (the status is what we expect)</li><li>Creates a record that a room was selected (a RoomSelection object)</li><li>Triggers a transition function: given our status is profile_completed, calling transition(application) references the FSM to update the status to room_selected</li></ol><p>And there we have it! In this example, we’re processing an element in our input alphabet and triggering a pre-defined transition, which switches to a different state.</p><h3>Extensibility of an FSM in our Django app</h3><p>A finite state machine is a great pattern to implement in a Django app given its ease of extensibility for future use cases. We can incorporate a new stage in the customer journey simply by registering new states and transitions.</p><p>Here are a few more things an FSM enables us to do with optimal code reuse:</p><ul><li>Adding features or A/B tests that re-order the customer journey (we’d just need to change some values in the transitions dictionary)</li><li>Deciding to transition between two statuses based on the value of a peripheral piece of data (ex. moving an applicant forward or backward in the flow, based on their meet and greet feedback)</li><li>Performing a side effect on each transition (i.e. writing log messages or sending notifications)</li></ul><h3>Conclusions</h3><p>Using a finite state machine and Django Rest Framework, our engineering team was able to build a web experience that makes the state of an application exceptionally clear to both our applicants and our internal staff.</p><p>Most importantly, the extensibility of this design pattern will allow developers to easily build on the existing experience down the line.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eda8d7a9ff81" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bungalow-garage/customer-journey-mapping-with-finite-state-machines-and-django-rest-framework-eda8d7a9ff81">Customer journey mapping with finite state machines and Django REST Framework</a> was originally published in <a href="https://medium.com/bungalow-garage">Bungalow Garage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>