<?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 Emmanuel Sibanda on Medium]]></title>
        <description><![CDATA[Stories by Emmanuel Sibanda on Medium]]></description>
        <link>https://medium.com/@emmanuelsibanda?source=rss-6f1090ee7861------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*BuF0FIW2pncTz-XEkHn3-Q.jpeg</url>
            <title>Stories by Emmanuel Sibanda on Medium</title>
            <link>https://medium.com/@emmanuelsibanda?source=rss-6f1090ee7861------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 08:04:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@emmanuelsibanda/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[Growth Through Discomfort: My Journey From a breakup to Fluid Social Intelligence]]></title>
            <link>https://medium.com/@emmanuelsibanda/growth-through-discomfort-my-journey-from-a-breakup-to-fluid-social-intelligence-6478f5656576?source=rss-6f1090ee7861------2</link>
            <guid isPermaLink="false">https://medium.com/p/6478f5656576</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[social-intelligence]]></category>
            <category><![CDATA[personal-growth]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[Emmanuel Sibanda]]></dc:creator>
            <pubDate>Tue, 18 Nov 2025 22:03:04 GMT</pubDate>
            <atom:updated>2025-11-19T13:54:37.062Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SD8zNVvZQ5VJE4fB" /><figcaption>Photo by <a href="https://unsplash.com/@billjelen?utm_source=medium&amp;utm_medium=referral">Bill Jelen</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>7 weeks ago, my wife told me she had fallen out of love with me and asked for a divorce. This came after a conversation where I cited our differences and offered two paths ways; marriage counseling and a clean divorce.</p><p>Even though I felt this coming and could sense her drifting away for a few years, it was a hard pill to swallow. I believe that a couple that struggles together builds a lasting relationship. We had endured enormous growth and struggle. I believed we had the recipe to build something amazing.</p><h3>Context</h3><p>I am not an outgoing person, I shared everything with my wife — especially after relocating to the US, for this reason, while I can logically see a breakup as a divergence of life visions, it inherently felt like a deep rejection.</p><p>Given my attributes, in theory, this experience should be causing me to shut down, to recline back in my shell. This is how the younger version of me may have responded. However, I have learned to lean towards what is supposed to give you discomfort. This is how you grow.</p><h3>Intuition</h3><p>When my father passed away, I learned that the best way to deal with real pain is acceptance. You don’t fight it. In the process of acceptance, I gain mental clarity and bandwidth that helps me see myself in a new light.</p><p>I realized I’ve spent years leveraging intensity, audacity and persistence to build my goals. This has helped me to get to where I am currently. While I am proud of this growth, I have a bigger mission. To accomplish this, I must grow into the version of myself that can take this vision to the finish line and beyond.</p><p>It hit me as one of those epiphanies that reveal something you’ve always known; that what is missing is full integration of self in the social realm. I spent years “grinding” closing my eyes to the social world. My creative playfulness was something I saved exclusively for my intimate relationship. I realized that integrating this into my social world was the missing formula in building my fluid social intelligence.</p><h3>Why is this important?</h3><p>Intensity can only get you so far, fluid social intelligence is what helps you build the connectors to amplify your potential. This means building better working relationships, a stronger ability to communicate my vision through emotion and not pure logic and generally a stronger ability to build better relationships in general.</p><p><strong>The “battlefield”</strong></p><p>I needed a platform to sharpen this skill, not build it from scratch. I started off by trying improv classes, but they didn’t challenge me, there are no stakes. Speed dating carried real emotional load, which made it the right arena.</p><p><strong>Enter Speed Dating</strong></p><p>I instead opted for speed dating. As someone who just faced a deep rejection for a period of time with my demeanor, this is the environment that would most likely trigger whatever insecurities I have. It felt like improv with far higher stakes.</p><p>This is an environment where I will be judged in every interaction and only have 3–10 minutes to make a positive impression. This mirrors reality, people anchor to the first impression you imprint on them in the first 5 minutes.</p><p>Women tend to make faster emotional assessments, it’s one of their evolutionary advantages. That makes speed dating the perfect crucible: every interaction is an immediate calibration test.</p><p>This would therefore be an ideal platform to hone this ability. This would allow me to emotionally attune to different people while improvising conversations, oftentimes with women who are jaded of being asked the same questions over and over.</p><h3>The Journey</h3><p>The goal is simple; attend 10 speed dating events. I space these over a few months based on my schedule. I have attended the first 4 events, in the process learning a lot about myself</p><h3>The learnings</h3><h3>Calmness</h3><p>I have a naturally calm demeanor. That calmness was always there, even as a kid. I just didn’t know how to wield it. Years of pushing through discomfort refined it into an actual skill, not avoidance or passivity, but grounded presence.</p><p>I’ve trained calmness for years, through long fasts, cold exposure, breathwork and hypoxic swims. Those practices strengthened a mental stillness that now shows up in unexpected places.</p><p>In speed dating this has translated to minimal overthinking. I found myself having conversations without my internal analysis running in the background - overthinking was my default.</p><p>I was able to maintain this calmness in an event I went while going through the last 2 hours of a 24hour intermittent fast.</p><h3>Leading conversations</h3><p>I am not a loud person, I do not have to ‘peacock’ confidence, but it is deep and quiet. I know it is deep because when life hits me, I get up almost instantly with even more ambition and self-belief. I’ve seen this several times. This has given me a grounded self-esteem that runs deeper than the Mariana trench. It has shown itself in how I interact.</p><p>I find myself leading conversations. 2 of the events I went to were group speed dating events. One stands out; there was a ratio of 4 men to 2 women. One person pointed out how this will naturally breed competition. I complimented his tattoos because I found them interesting. I spoke to everyone. I didn’t fixate on the “speed dating” aspect or even selling myself. This happened in each table I was in, on both events.</p><p>I am learning that I can lead without being loud, by just being myself.</p><h3>Emotional Attunement</h3><p>I never saw myself as emotionally attuned, that was a self-limiting belief, I found myself easily differentiating between the quiet shy guy in the group and the quiet guy hiding depth. I found myself picking up micro cues. My quiet calmness allows me to read people deeply.</p><p>I have been both and never liked how group interactions often ignored the quieter person. Since I found myself leading conversations, I directed questions at the shy quiet guy. I hyped him up when he answered, showing genuine curiosity. I probed the quiet deep guy a lot. I knew he didn’t need to be hyped up, I instead showed curiosity, even getting one of the girls really interested in him.</p><p>A lot of guys use scripts and brag to impress. I am generally understated. I am a curious person. I believed that curiosity was exclusive to books and code, but when I widen the aperture of my laser focused vision, the curiosity opens up. I can see small things about people; the way they move, act and talk, creating endless openings for casual conversations, jokes, teasing and general banter. I never knew this about myself</p><h3>Directness</h3><p>I am honing my directness. In the past, I have missed opportunities career wise because of not asking for what I wanted in the last mile. I would do the work, make the presentation, but in that last moment I would undersell myself or shy away. I see this happening in speed dating. How straight men approach women they like indicates how they approach opportunities in general.</p><ul><li>Too cautious = you are probably too timid in other areas</li><li>Too aggressive =. you reek of desperation and the world can sense this</li><li>Charming but chasing women endlessly = you have limited restraint and discipline</li></ul><p>I realized very quickly that my trepidation does not come from a fear of rejection, it comes from not fully accepting myself. I can be very decisive and audacious. I pull back in the last moment to be more “palatable”. This comes from growing up in an environment where being palatable and agreeable was more rewarded than individually asserting what you want. I am finding myself unlearning this at light speed.</p><p>Cuban salsa has been teaching me another layer of directness but that deserves its own post.</p><h3>Just vibing</h3><p>I show up with one objective: vibe and build the skill. Because of this, I don’t feel like I’m competing for anything. I speak to and tease the guys the same as I do the women. Ironically, I found people actually approaching me. I didn’t fill in the forms to “write my matches”, people who I thought I clicked with, approached me themselves.</p><p>Detaching from outcomes unlocked a lighter energy. I am not performing, just expressing. Ironically, that’s what seems to make some people gravitate toward me.</p><h3>Real world Output</h3><p>This lighter energy is reshaping how I talk to colleagues, managers and potential co-founders.</p><p>In the past, business calls for me were purely about business. I can now weave in lighter talk, without it feeling like mundane small talk. I am currently launching the <a href="https://youtu.be/KpXaQZAAV4Y?si=RlcTitea9gz6zuW8">first virtual apprenticeship</a> for my <a href="https://youtu.be/ZejZOOy1f9c?si=EETtdYawgDDEaWyi">AI School</a> <a href="https://www.fundawithai.com/">FundaAI</a>, talking to potential co-founders, talking to me more people and re-learning and honing attributes I didn’t fully appreciate within myself.</p><p>I’m not “bouncing back.” I’m integrating a side of myself I ignored for years; the social, playful, intuitively attuned part. It’s not that I ignored it, I was in a different headspace with a different priority. This isn’t about dating. It’s about becoming the version of myself capable of building the vision I’ve been carrying for years. I owe it to myself to not fall apart when life knocks me down.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6478f5656576" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Embracing Growth: The Journey Unveiled]]></title>
            <link>https://medium.com/@emmanuelsibanda/embracing-growth-the-journey-unveiled-7b494c79c4ff?source=rss-6f1090ee7861------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b494c79c4ff</guid>
            <category><![CDATA[personal-growth]]></category>
            <category><![CDATA[self-awareness]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[Emmanuel Sibanda]]></dc:creator>
            <pubDate>Sat, 23 Dec 2023 09:18:26 GMT</pubDate>
            <atom:updated>2023-12-23T14:27:51.211Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*un38xanKi2o-nhHith2RQg.jpeg" /></figure><p>With growth comes wisdom. What they don’t tell you is that this wisdom stems from learning through painful and often uncomfortable experiences. This is a story about how some of the lessons I have learnt through pain</p><p><strong>The beginning of exploration</strong></p><p>In my late teens to early 20s, I would read a lot of books on philosophy. I wanted to learn insights about life, about success and living a happy life. I learnt that to transcend oneself, one must establish a purpose greater than oneself. Developing an understanding that happiness is transient and the need to pursue something deeper.</p><p>I learnt to never blame your misfortunes on external factors, avoiding the victim mentality regarding life’s unfairness, to maintain focus on the one thing you can control and change — yourself. Most importantly, I learnt that growth comes through discomfort.</p><p><strong>Experiential Learning: When theory meets the physical world</strong></p><p>It was not through reading books, or growing up that enabled me to internalize these lessons, it was through practice. Growing up as a scrawny and very sickly kid who was easy to pick on, going to the gym, getting strong and suddenly being seen as more desirable by women, taught me that pain is to be embraced, specifically, if it is pain you seek out in order to grow.</p><p>I learnt that negative emotions can be a very powerful fuel. My desire to not feel like an ‘easy target’ was initially my biggest motivator. The beauty and danger with this fuel, is that, because it is based on an insecurity, whatever you do, it is never enough.</p><p>I embraced the pain of pushing myself to lift heavier, more efficiently, or under more strenuous conditions. I learnt to fall in love with the process and keep track of the outcomes. Gaining more muscle or losing more body fat meant monitoring my calories like KPIs, working out more intentionally and building sustainability through stretching and practices focused on helping my body recover.</p><p><strong>Appreciation: Learning through failure</strong></p><p>Building 2 startups taught me about a particular kind of failure — one where the responsibility lies solely with oneself. With my second startup, I learnt about, not only failing yourself, but failing people you had hired. I learnt that you have to make tough decisions as quickly as possible. You don’t slowly peel off the bandage, you rip it off and trust that you are strong enough to pick up the pieces and deal with the pain. Sometimes you are the bandage that needs to be ripped off.</p><p>I learnt about navigating expectations - those of investors, paying users, potential users, employees and myself. I learnt that leadership is not about exercising power, it is about taking ultimate accountability and focusing on setting your team up for success. You work with people who you believe are smarter than you because you understand your limitations and you create a structure to enable them to do what they do best, in line with your overall vision.</p><p><strong>Pain is the ultimate teacher</strong></p><p>Boxing taught me how to cope with mental and physical pain and making quick decisions under stressful conditions. Boxing is physically taxing. When you are in the ring, you have to be physically fit enough to move around and throw punches, while either getting punched or trying to evade getting hit. You have to think logically about punch placement, how it fits into your overall strategy, study your opponents patterns of movements to figure out what they might do next and very quickly think of a counter strategy to their next attack. It feels like playing bullet chess, but with someone punching you every few seconds.</p><p>In this sport, I learnt that the mental burden of worry far surpasses the impact of the actual concern. If I am sparring and worried about getting hit, I’m guaranteed to get hit a lot, feel exhausted and likely end up getting hurt. Through this, I learnt freeing oneself from worry involves experiencing what one fears. Get punched in the face or solar plexus metaphorically. Most importantly, I learnt that pain is not a sign to stop, it is a sign to keep going. If you are still standing, keep fighting. If you are knocked down, if you can stand up on time, that means you aren’t out, you take time to recover mentally and physically, re-strategize and fight back harder and smarter.</p><p>It was through getting on a plane from the US to Zimbabwe, excited to see my dad recovering from cancer, only to watch him die the moment I arrived after 3 years of not seeing him that I learnt the hardest lesson yet; letting go.</p><p>“Death is the great equalizer”, watching it reminds you of your own mortality. I will either live long enough to watch more of my loved ones die and re-experience the pain of grieving and die or I myself will die. When I die, I will leave the same way I came, alone and with nothing. Whether I worry about this or not, it is inevitable and in many ways freeing. It freed me of a lot of my prior anxieties. You learn to let go of fears, your ego, control and people. Life is too short to hold on to things that suck your energy and aren’t good for you. If I can let go of the man whose “I am proud of you” and acceptance holds more weight than any other man. One of two people to ever love me unconditionally and give the world to me, I can certainly let go of smaller things.</p><p>You re-discover the preciousness of life. Amidst the daily stresses, my own stresses serve as a reminder that the spotlight of life is on me. One day that light will dim and turn off completely. I learnt the meaning of, “Memento mori” — remember that you will die. If I am not actively living or pursuing a life that I want to live, how will I face my own death with pride and satisfaction? How will I say “I lived” and let go? You learn to accept harsh realities. The world is indifferent and that’s fine. When you accept that you aren’t entitled to care or empathy as everyone has their own problems, you learn to live honestly. To be true to yourself and to accept ultimate responsibility and accountability to yourself.</p><p>It was through this lesson that this year I finally conquered what was probably my biggest fear, my fear of swimming. It goes without saying that this journey is far from over. If I can swim, why shouldn’t I be comfortable enough to swim in open ocean water?</p><p>I don’t know what life will bring going forward, to be honest, I don’t really care. I know what I want to do, I know what brings me lasting joy and I trust myself to make decisions that are wise. Whether misfortune or victory, the spotlight is on me. I will dance, act, play, cry, smile and aim to enjoy the show while it lasts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b494c79c4ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Synchronizing States Between Two Clients Enabling Users To Share Code Editor]]></title>
            <link>https://medium.com/codingsquad/synchronizing-states-between-two-clients-enabling-users-to-share-code-editor-94a0f9875bbd?source=rss-6f1090ee7861------2</link>
            <guid isPermaLink="false">https://medium.com/p/94a0f9875bbd</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[edtech]]></category>
            <category><![CDATA[websocket]]></category>
            <dc:creator><![CDATA[Emmanuel Sibanda]]></dc:creator>
            <pubDate>Mon, 31 Oct 2022 20:15:26 GMT</pubDate>
            <atom:updated>2022-10-31T23:04:32.189Z</atom:updated>
            <content:encoded><![CDATA[<h3>Synchronizing States between two clients enabling users to share code editor</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*X9098-Y1M5aWi3kC" /></figure><p>Over the last few months I have been building a pair programming platform. This is designed to help self learners get better at taking technical interviews through pair programming. Users collaboratively solved a timed programming challenge over an audio call, building communication and problem solving skills.</p><p>In this blog I will detail one of the features I recently built. To enable a pair programming session to occur, there needs to be a way to synchronize states between both users in a given pair programming session. Let’s break this down a little. This ensures that if one user types code into the code editor, whatever the user types appears in the other user’s code editor.</p><p><strong>THE LOGIC</strong></p><p><strong>Driver — Observer</strong></p><p>The pair programming sessions in this platform follow a driver-observer format. This means that there is a driver, who controls the code editor. The driver types code into the code editor, while the observer reviews each line of code as it is typed in and often focuses more on walking the driver through the logic of the code being typed in. Before each pair programming session commences, I sort the two matched users alphabetically, if the hour is divisible by 2, I select the user who appears first, if not, I sort these two users in reverse order returning the first user in this list.</p><p>The user who is the driver has read and write access to the code editor, while the observer has read only access.</p><p><strong>Synchronizing states using Websockets</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k6-dXdVRWLr5TbIjxBD0tA.png" /><figcaption>The logic used to synchronized states between two users</figcaption></figure><p>The picture I included, more or less explains the process I follow. When a pair programming session commences and both users navigate to the pair programming page, a driver is selected, both users have access to a code editor, they receive a programming challenge and a Twilio call commences. For the purposes of this blog, I will focus on the actions relevant to the process of synchronizing states. Firstly, the user connects to a websocket. Upon connecting to the websocket, the user is subscribed to a group named after their user id. If you want to send messages to a specific user, the <a href="https://channels.readthedocs.io/en/stable/">Django Channels</a> documentation recommends sending messages to groups, hence the need to subscribe each user to a group.</p><p>To ensure that I am not triggering this function every single time a character is typed into the code editor, I use <a href="https://blog.bitsrc.io/what-is-debounce-in-javascript-a2b8e6157a5a#:~:text=Debouncing%20is%20a%20programming%20pattern,API%20calls%20and%20improve%20performance.">debouncing</a> and <a href="https://skilled.dev/course/throttle">throttling</a>. I included some links with more detailed breakdowns of what these concepts mean. In a nutshell, I delay calling the onChange function and keep delaying calling this function until the user stops typing for a second and a half. In essence, I only trigger the onChange function after the user has stopped typing for X seconds.</p><p>When onChange is triggered the data is then sent through the websocket to the server. Since I send both the code that is typed and the observer’s name, in the server-end I query the database for the observer’s user id and then send the message to the group named after the observer’s user id.</p><p>This is then received through an event listener in the frontend conditionally updating the value shown in the code editor for the observer.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F765838676%3Fh%3Dd9f72a829f%26app_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F765838676%2Fd9f72a829f&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1537863031-c28aabd9806aad73703ee894563bae2f79cdec1e0cc853b4359c42c98f757597-d_1280&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1280" height="720" frameborder="0" scrolling="no"><a href="https://medium.com/media/49eb258c34a143867eca91e472b49b57/href">https://medium.com/media/49eb258c34a143867eca91e472b49b57/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94a0f9875bbd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codingsquad/synchronizing-states-between-two-clients-enabling-users-to-share-code-editor-94a0f9875bbd">Synchronizing States Between Two Clients Enabling Users To Share Code Editor</a> was originally published in <a href="https://medium.com/codingsquad">CodingSquad</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pair Programming Platform: Redirecting matched pairs of users]]></title>
            <link>https://medium.com/codingsquad/pair-programming-platform-redirecting-matched-pairs-of-users-7517add184d3?source=rss-6f1090ee7861------2</link>
            <guid isPermaLink="false">https://medium.com/p/7517add184d3</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[edtech]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Emmanuel Sibanda]]></dc:creator>
            <pubDate>Fri, 30 Sep 2022 23:12:33 GMT</pubDate>
            <atom:updated>2022-09-30T23:38:20.492Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*TSS7N_FG9FKkYEPrsfa8ig.jpeg" /></figure><p>As a follow up to a previous <a href="https://medium.com/codingsquad/a-pair-programming-platform-to-help-you-get-better-at-technical-interviews-building-out-the-14c03762ebf4">blog post</a>, over the last few months I have been building a platform to help people prepare for technical interviews through pair programming. In a lot of technical interviews you are given Leetcode style programming challenges and expected to solve them while explaining your logic to the interviewer.</p><p>This platform helps users prepare for technical interviews by matching you with similarly skilled peers to collaboratively solve timed programming challenges over an audio call. Over the last few weeks I worked on a few features for this platform. In this blog, I will specifically focus on the matching process and the rationale behind some decisions I made.</p><p><strong>Context<br></strong>Through manually facilitating pair programming sessions I learnt quite a lot. When prepping for technical interviews it would be ideal to be matched with a similarly skilled peer. However, in the early stages of launching the MVP there wouldn’t be any reliable way to gauge someone’s skillsets. I instead opted to match users at random, primarily because this decision was most aligned with my overall objective to keep things simple with the MVP, prioritize deploying as quickly as possible and then optimizing/building more features based on user activity and I will be limiting my target audience to first time job seekers in the Software Engineering space, limiting to some degree, the need to assess skill levels before matching users.</p><p><strong>High Level<br></strong>Key to this phase was addressing a few points;<br>- keeping track of all users who are online and available to be matched<br>- matching users randomly<br>- redirecting users to their respective pair programming sessions</p><p>The process for this entails users logging into their profiles. Upon authentication users have access to their dashboard where they have the option to edit their profile and navigate to the waiting room. The waiting room is where the magic happens. Think of the waiting room as a lobby users wait in before they are matched and automatically redirected to their pair programming sessions.</p><p><strong>Keeping track of all users looking to get matched<br></strong>I opted to create a field in one of the tables storing user data. This field holds boolean values with True indicating that the user is in the waiting room, while False denotes the inverse. I use this to keep track of which users can be matched. Let’s call this field in_waiting_room</p><p>When a user clicks the button navigating to the waiting room, I trigger a PATCH request converting this field to True. Upon the changes being made in the server, I proceed to trigger a function in the frontend that retrieves all users where the field in_waiting_room evaluates to true. I post these users to a Redis cache. I specifically opted to store this data in a cache for quicker retrieval as opposed to retrieving data from the database. I would be retrieving this data in other components to match users, keep track of who has been matched and update that list once users have been matched.</p><blockquote><a href="https://aws.amazon.com/redis/#:~:text=Redis%20Use%20Cases-,Caching,or%20NoSQL%20database%20and%20application.">All Redis data resides in memory, which enables low latency and high throughput data access. Unlike traditional databases, In-memory data stores don’t require a trip to disk, reducing engine latency to microseconds. Because of this, in-memory data stores can support an order of magnitude more operations and faster response times. The result is blazing-fast performance with average read and write operations taking less than a millisecond and support for millions of operations per second</a>.</blockquote><p>There’s a few parts to this. Firstly, there needs to be a Redis instance. I opted to run Redis from a Docker container, primarily because of the simplicity of this process. I needed a way to programmatically append, delete and retrieve data from Redis from the server and exposing this to the frontend through a RESTful API.</p><pre>@api_view([&#39;GET&#39;, &#39;POST&#39;])</pre><pre>def manage_items(request, *args, **kwargs):<br>    if request.method == &#39;GET&#39;:<br>        items = []<br>        count = 0<br>        for elem in redis_instance.smembers(&quot;pairs&quot;):<br>            items.append(elem.decode(&quot;utf-8&quot;))<br>            count += 1<br>        response = {<br>            &#39;elements&#39;: items<br>        }<br>        return Response(response, status=200)<br>    elif request.method == &#39;POST&#39;:<br>        new_users = request.body.decode(&quot;utf-8&quot;).split(&quot;,&quot;)<br>        for i in range(0, len(new_users)):<br>            redis_instance.sadd(&#39;pairs&#39;, re.sub(&quot;[\&quot;\&#39;]&quot;, &quot;&quot;, new_users[i]).strip(&#39;[]&#39;))<br>        response = {<br>            &#39;msg&#39;: f&#39;set contains: {new_users}&#39;<br>        }<br>return Response(response, 201)</pre><p>Since I am storing what is essentially a list of usernames, I save this data as a set in Redis using the <a href="https://redis.io/commands/">commands used</a> to interact with a Redis cache. You can technically create multiple sets and dictionaries if you choose in a single Redis instance. However, a lot of the research I carried out seemed to indicate that using multiple databases in a single instance wasn’t advisable primarily because using a single database in a single redis instance lets you take advantage of multiple cores, improving overall performance. In later parts of this blog posts this will partially explain why I have more than one Redis instance running for this platform. The set I created in this instance is at a key named ‘pairs’.</p><p>Upon sending this data to Redis and before the user navigates from the profile dashboard to the waiting room, I want to retrieve the list of all users who can be matched from Redis and store that data in state. I then use this to find a match for the user. I opted to use useRef to update state with this list. The useRef hook is similar to theuseState hook, in the sense that they both preserve data during render cycles and UI updates. However, I specifically opted for hook because unlike useState, it is a synchronous hook that updates the state immediately. I need the state to be updated immediately because I first check whether the state has been updated with a list of users from Redis before redirecting the user to the waiting room ie.</p><pre>if(availableOnlineUsers.current.length){<br>    history.push(&#39;/rooms&#39;);<br>   }</pre><p>The rationale here is that, when the user navigates to the waiting room inside a useEffect I match the user with a random user. This creates a bit of a dependency. I can’t match the user with anyone if I have not updated the state with all users and don’t want the user to navigate to the waiting room if we haven’t received the data from Redis, which doesn’t happen immediately.</p><p><strong>What happens in the waiting room<br></strong>Thus concludes the simple part. Once users land in the waiting room, I want to randomly match each user to another user and then redirect both users to their respective pair programming session.</p><p>There are a few moving parts here, but this is more or less the logic I followed. I get two user names; the current user and the matched user. I need to some how communicate between these two browsers to navigate them to their respective pair programming sessions automatically. To facilitate this process I opted to use a websocket.</p><p><strong>Why websockets?: </strong>Frontend states are not shared between users therefore I needed a way to keep track of who was matched with who for this data to persist and to navigate both users based on this data. Instead of implementing some logic that would require me to communicate with the server to keep track of who has been matched with who and redirect each user, I used websockets to create an ‘open line of communication between the client and the server’.</p><blockquote><a href="https://www.geeksforgeeks.org/what-is-web-socket-and-how-it-is-different-from-the-http/">A WebSocket is bidirectional, a full-duplex protocol that is used in the same scenario of client-server communication, unlike HTTP it starts from <strong>ws://</strong> or <strong>wss://</strong>. It is a stateful protocol, which means the connection between client and server will keep alive until it is terminated by either party (client or server). After closing the connection by either of the client and server, the connection is terminated from both ends</a>.</blockquote><p>This line remains open until it is terminated, allowing for quick communication between the client and server. I can segment the process I followed into three parts; <br>i.) the client side class where I define methods to; connect, send and receive data and disconnect from the websocket, <br>ii.) the server side class handling the connection, sending and receiving of data and disconnecting the client from the websocket. I specifically used Django Channels to facilitate this process on the server end <br>and iii.) triggering the class methods in the client.</p><p>To use Django Channels I had to set up another Redis instance for the channels layer.</p><blockquote><a href="https://channels.readthedocs.io/en/stable/topics/channel_layers.html">channels_redis is the only official Django-maintained channel layer supported for production use. The layer uses Redis as its backing store, and it supports both a single-server and sharded configurations as well as group support</a>.</blockquote><p>Upon connecting to the websocket, I add the access token sent to the user upon successful authentication as a query string to the URL. Before the server connects the user, I wrote custom middleware that takes the token, checks whether it is valid, decodes the token to get the username associated with this token and adds the username to scope.</p><p><a href="https://channels.readthedocs.io/en/stable/topics/consumers.html#:~:text=In%20general%2C%20the%20scope%20is,middleware%20adds%20things%20to%20request%20).">When a user connects the consumer receives the connection scope that contains a lot of information that you would typically find on the request object in a Django view</a>. You can access the user object from scope. However, I have a somewhat custom authentication process hence the need to build custom middleware to add the username, not necessarily the user object in my case, to scope.</p><pre>class JwtAuthMiddleware(BaseMiddleware):<br>    def __init__(self, inner):<br>        self.inner = inner<br>    <br>    async def __call__(self, scope, receive, send):<br>        close_old_connections()<br>        token = scope[&quot;query_string&quot;].decode(&quot;utf8&quot;)<br>        jwt_options = {<br>            &#39;verify_signature&#39;: True,<br>            &#39;verify_exp&#39;: True,<br>            &#39;verify_nbf&#39;: False,<br>            &#39;verify_iat&#39;: True,<br>            &#39;verify_aud&#39;: False<br>        }<br>        token_extracted = jwt.decode(jwt=token,<br>             key=settings.SECRET_KEY,algorithms=[&#39;HS256&#39;],<br>             options=jwt_options)<br>        scope[&quot;user&quot;] = await get_user(validated_token=token_extracted)</pre><pre>def JwtAuthMiddlewareStack(inner):<br>    return JwtAuthMiddleware(AuthMiddlewareStack(inner))</pre><p>Once this is done, I get the username from scope in my <a href="https://channels.readthedocs.io/en/stable/topics/consumers.html">consumer</a>. I retrieve from the database the user_id associated with this username and subscribe the user to a group.</p><p><strong>Why is the user being subscribed to a group upon connecting to a websocket?: </strong>From the documentation it appeared as though one of the recommended ways to send a message to another user through Django Channels was through <a href="https://channels.readthedocs.io/en/latest/topics/channel_layers.html#groups">groups</a>. In this case, this involves subscribing each user to their own group upon connection, and then when I want to send something I can send a message to the group associated with the user I want to send a message to.</p><p>For more specificity, assuming UserA is matched with UserB, I want UserA to tell UserB’s client what room they will be navigating to and vice versa.</p><p>After the user connects, in the same useEffect, I trigger the send method. The send method is responsible for sending some data to the server through the websocket. I am specifically sending the matchedUser’s username. When this is received in the server, I get the user_id associated with this user and use that together with the current user’s user id to create a room ID. This could present some problems. We want the roomID to be unique to this pair of users and for the same roomID to be sent to both users. Now imagine a scenario where UserA has the user_id 5 and UserB has the user_id 27. Since I am concatenating both user_id’s to create the roomID, this means UserA would send ‘527’ as the roomID to UserB, while UserB would send ‘275’ to UserA as the roomID.</p><p>To alleviate this potential issue, I restructure the roomID such that the smallest number appears first and the largest last ie. the roomID using the example I gave would be ‘527’.</p><p><a href="https://channels.readthedocs.io/en/stable/topics/channel_layers.html">In Django Channels when you send a message to a group, it is first received by the consumer listening to the group or channel on the other end. This means you send high level events over the channel layer and then have the consumers define a handling function to receive said events and turn them into WebSocket frames</a>.</p><p>Once this is sent to the client, I use an <a href="https://docs.w3cub.com/dom/websocket/onmessage">event listener</a> that awaits to receive a signal from the server while the WebSocket remains connected. This is all nested in the same method that sends data to the server.</p><pre>async sendData(data){<br>    if(this.socketRef.readyState !== WebSocket.OPEN) {<br>    console.log(&#39;we are still waiting&#39;)<br>    this.socketRef.onopen = () =&gt; this.socketRef.send(data);<br>    const socketResp = await new Promise((resolve, reject) =&gt; {<br>        this.socketRef.onmessage = e =&gt; {<br>            resolve(e.data)<br>        }<br>    })<br>    return socketResp;<br> }<br>};</pre><p>Even though this method is theoretically triggered after the user connects to the websocket, sometimes the handshake to connect the websocket might not have been completed. I therefore use the readyState property of the websocket to check whether or not the websocket is connected. If it is not, I open the connection, send data and the event listener waits to receive a response from the server and resolves the promise upon receiving something from the server.</p><p>Once this promise is received, I pass the response into a function that redirects the user to the roomID received. This part initially caused a few issues. To explain here’s a scenario; Assume the platform only has two users. Since I like UserA and UserB so much, I will use these two as my two users in this example.</p><p>UserA navigates to the waitingRoom, connects to the websocket and subscribes to their group. UserA technically can’t send anything and even if they can, it will not be sent to anyone because there is no other user connected to the websocket.</p><p>UserB then navigates to the waitingRoom, connects to the websocket and subscribes to their group. UserB has now been matched with UserA and sends a message to UserA with the roomID. Since the send method is triggered inside a useEffect, I added a dependency array so that all the code in the useEffect is initially triggered upon the component rendering and upon the change of a state. This state is only updated when a signal is received from the websocket.</p><p>This means UserA would send a message back to UserB with the roomID. Sounds great right? Well not necessarily. With the logic I have, the redirect is done in the frontend. When a user receives a message, I initially redirected the user immediately, meaning UserA would receive the message and then get redirected. This happened before UserA sent the roomID back to UserB, leaving UserB alone and lonely in the waiting room.</p><p>To alleviate this issue, I created a counter as a global variable. This global variable is incremented if there is some data that has been received through the websocket. The user is then only redirected when the counter is equal to or greater than 2.</p><p><strong>Why 2 in particular?: </strong>2 is my lucky number. In all seriousness, when UserA receives the roomID, their counter is incremented to 1, which triggers the send method, sending the data back to UserB. This happens again, ensuring that both users are redirected at a point where they have both definitively received some data from the websocket.</p><p>This is understandable a bit hacky, but something I intend to refactor once the platform is deployed.</p><p>Here’s a preview of how this work. What’s happening here is that one user navigates to the waiting room. The second user navigates to the waiting room. They are both matched together and then redirected to their respective pair programming session.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F755792129%3Fh%3D8b065cfac8%26app_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F755792129%2F8b065cfac8&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1518161196-0b9362aa4c5f2c293bde17b9728f325d086bacaaa3d305683747819e718dbfe7-d_1280&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1280" height="720" frameborder="0" scrolling="no"><a href="https://medium.com/media/8d7c1377e0e596bfce3ad6b952544fd5/href">https://medium.com/media/8d7c1377e0e596bfce3ad6b952544fd5/href</a></iframe><p>In upcoming weeks I will be giving you more updates on features pertaining to the look and feel of the code editor in the pair programming session room, how the conference call commences, how it is terminated and future updates regarding user activity once the platform is launched. Subscribe to this blog or <a href="https://emmanuelsibanda.substack.com/">my newsletter</a> to stay up to date with progress regarding this platform and to be part of the private beta test user once the MVP is deployed.</p><p>Until next time Pip pip Cheerio!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7517add184d3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codingsquad/pair-programming-platform-redirecting-matched-pairs-of-users-7517add184d3">Pair Programming Platform: Redirecting matched pairs of users</a> was originally published in <a href="https://medium.com/codingsquad">CodingSquad</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A pair programming platform to help you get better at technical interviews: building out the…]]></title>
            <link>https://medium.com/codingsquad/a-pair-programming-platform-to-help-you-get-better-at-technical-interviews-building-out-the-14c03762ebf4?source=rss-6f1090ee7861------2</link>
            <guid isPermaLink="false">https://medium.com/p/14c03762ebf4</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[full-stack-development]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Emmanuel Sibanda]]></dc:creator>
            <pubDate>Mon, 29 Aug 2022 16:11:12 GMT</pubDate>
            <atom:updated>2022-08-29T22:47:34.464Z</atom:updated>
            <content:encoded><![CDATA[<h3>A pair programming platform to help you get better at technical interviews: building out the platform</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ws1GOyb7tYr8vM4kU43-fA.jpeg" /></figure><p>Over the last few months I’ve engaged in a lot of pair programming, primarily in preparation of technical interviews. I found that getting on an audio call and pair programming with peers of different skill levels helped me better communicate my logic as I was problem solving, made the whole process of ‘grinding leetcode’ a lot more fun/tolerable and helped me get better at collaborating with others. I decided to build out a platform to facilitate this process for other people currently going through the mental and spiritual warfare of technical interviews. One could liken some technical interviews to walking into a battlefield with a plastic knife and getting one of your fingers cut off.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FgYNlJQ-dIuY&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DgYNlJQ-dIuY&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FgYNlJQ-dIuY%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/c98fea9168b4a7062c1248f8069b41e3/href">https://medium.com/media/c98fea9168b4a7062c1248f8069b41e3/href</a></iframe><p>How the platform works is relatively straightforward. People sign up, join a waiting room, get matched with another peer and start an hour-long pair programming session. This session would be carried out over a conference call between two parties with a shared code editor and access to hundreds of pair programming questions typically asked in interviews.</p><p>I am going to be writing a series of blog posts detailing features built into the MVP and beyond. In this blog post I will be detailing the process I followed to build out the code editor and hook it to Twilio to trigger an audio conference call when two parties join. For my tech stack I opted to use Django for the backend and React for the frontend.</p><p><strong>High Level Design</strong></p><p>To set the picture, imagine a page with a code editor, and two sidebars; one containing the question rendered and another rendering the output of the code written. The side bar on the left would have two tabs; one containing the actual question and giving users the option to skip/change the question shown and the other showing users what they should be doing. From having carried out multiple pair programming sessions, structure is very important to the overall experience. I boiled down the ideal structure of a pair programming session to involve;</p><p><em>i. </em><strong><em>an introduction </em></strong><em>: where users would introduce themselves. This is important in creating initial rapport.<br>ii. </em><strong><em>pseudocode</em></strong><em>: a phase where users would read the question and pseudocode the potential logic required to solve said problem. If you can imagine a tech interview, this would be important in helping users practice laying out their logic before implementing a solution. It’s far easier solving a problem once you fully lay out the logic you would need to solve a problem, plus this presumably makes it easier for the interviewer to see that you understand what you are doing and give you more helpful hints along the way.<br>iii. </em><strong><em>code</em></strong><em>: a phase to implement the logic laid out in the pseudocode phase<br>iv. review and rebuild: reviewing and optimizing the solution. Alternatively, if a solution cannot be found, finding pre-existing solutions, discussing them and trying to rebuild them. I found in my pair programming sessions that past a certain point, struggling to find a solution becomes counter-productive. You ideally try solving the problem for 20–30 minutes, if you cannot find a solution, search for a pre-existing solution and try to rebuild it. This helps avoid getting burnt out wasting time on one problem</em></p><p><strong>The Build<br></strong>There were a few components involved in this:</p><p><em>i. I needed to build the actual code editor. <br>ii. Find a way to get programming challenges either through pre-existing APIs or by enabling users to submit their own set of questions based on what they encountered in interviews. For the MVP, I opted to draw questions from the CodeWars API.<br>iii. Create a drop in audio conference call. Twilio offered very rich documentation and multiple tutorials. For this reason I opted to use Twilio’s API<br>iv. A timer to keep track of the amount of time that had passed. The length of time would be conditional based on the phase of the programming session<br>v. A code execution system that would be responsible for running the code and returning the correct output based on the code run and enabling users to run code for multiple languages<br>vi. A section in the sidebar to indicate to the user what session of the programming section they are currently in.</em></p><p><strong>Building the code editor<br></strong>To build out the code editor I opted to use <a href="https://github.com/securingsincity/react-ace/blob/master/docs/Ace.md">react-ace</a> as my package of choice. I chose this because there were over 340,000 weekly downloads, the package appeared to be relatively simple to use, with decent documentation to support building this out.</p><p><strong>Timer and peer programming phases<br></strong>Within the same file, I included a timer. I used <a href="https://www.npmjs.com/package/react-countdown-circle-timer">React Countdown Circle</a> Timer to set this up. Again my reasoning came primarily from the number of weekly downloads, ease of use and clearly laid out documentation. To factor in my customized use case (i.e. the countdown counts from a different a time for each phase of the programming session).</p><p>To set this up, I created a variable holding an array of values, representing the duration in which the clock would run for each phase. I did this in the parent component (the clock being the child of the CodeEditor) so I could use the timer to indicate the section of the programming session the users are currently in. For example if the clock runs through two elements in the timer array, the sidebar would indicate that the user has completed the introductory and pseudocode sections.</p><pre>const array = [10,11,12,13];<br>const [key, setKey] = useState(1);<br>const [index, setIndex] = useState(1);<br>const [timer, setTimer] = useState(array[0]);<br><br>//event handler to change clock timer based on index<br>const handleComplete = () =&gt; {<br>    setIndex(index + 1);<br>    setTimer(array[index]);<br>    setKey(key+1)<br>}<br>...<br>return (<br>&lt;&gt;<br>&lt;div className=&quot;row&quot;&gt;<br>    &lt;ClockCounter timer={timer} key={key} handleComplete={handleComplete} index={index} Result={Result} Button={Button} /&gt;<br>...</pre><p>For the timer I defined a function that would increment the state of the index, key and timer to increment each time the clock ran to zero. Moving back to the clock, I added a ternary to conditionally run the clock with the duration set as a dynamic value, represented by the element in the array of values representing the duration of the clock. The ternary would run the clock while our index remained under 4 (because there are only 4 phases) alternatively returning a ‘session complete’ message if this condition is no longer applicable.</p><pre>const ClockCounter = ({ key, index, timer, handleComplete, Result, Button }) =&gt; {<br>  return (<br>    &lt;div className=&quot;App&quot;&gt;<br>      &lt;div className=&quot;timer-wrapper&quot;&gt;<br>        {  index &lt; 4 ?<br>        &lt;CountdownCircleTimer<br>          ...<br>          key={index}<br>          duration={ timer }<br>          ...<br>          onComplete={handleComplete}<br>          ...<br>        &gt;<br>          {renderTime}<br>        &lt;/CountdownCircleTimer&gt;<br>        :<br>        &lt;Result<br>            status=&quot;success&quot;</pre><p>I opted to pass down the index as a prop to the component containing the peer programming session phases. I opted to use the Steps from <a href="https://ant.design/components/steps/">Ant Design</a> to design the outline of look and feel of the programming phases on the sidebar.</p><p><strong>Programming Challenges<br></strong>To retrieve programming challenges, I opted to use the <a href="https://dev.codewars.com/#introduction">CodeWars API</a>. Eventually, I would like users to be able to upload programming challenges based on interview questions they encountered. In the interim this would give the first few users an initial set of questions to work with. For this I used <a href="https://reactjs.org/docs/context.html">Context API</a> to pass down the value retrieved from the axios request interacting with the CodeWars API down to the component containing the programming challenge. This was done with the assumption that the programming challenge may need to be passed down to multiple components. Since I was only looking to avoid drilling down props to multiple components, Context API seemed more useful and quicker to set up than Redux.</p><p><strong>Linking the code editor to a code execution system<br></strong>In order to render the code written out in my code editor, I would need to send the code written in my code editor to another platform that would execute the code and return the correct output. You can think of the the entire coding process as writing code, the code gets compiled and the file runs, the running of the file specifically relates to the execution of the code.</p><p>I opted to use Judge0 to execute my code. This was one of the only free, open source, well documented options I found, with a discord channel where the lead engineers were very responsive.</p><p>I started off by using the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByC">document interface method documet.getElementsByClassName</a> to retrieve the code typed into the code editor, passing that, along with the language used, mapped from the number representing each programming language supported by Judge0, into a function that would post to the baseURL (you can get this from <a href="https://rapidapi.com/judge0-official/api/judge0-ce/pricing">RapidAPI</a>).</p><p>Once the code is posted to Judge0 a token is received. If the token represents a valid request, we do aGET request to the same url with the token appended proceeding a forward slash. Because there might be a lag between getting a response from with initial POST and doing the GET request, I used setTimeout to wait for a few seconds, wrapped in a promise. There are some APIs that expect success and/or failure callbacks to be passed, one such example being the setTimeout() function. I wrapped setTimeout in a promise to ensure that once the wait time is over, the resolved method passed down to the promise would be executed. I read that the best practice to deal with problematic functions like setTimeout. For example if it’s used in another function, in my case my GET request, if it fails or contains a programming error, nothing would catch it, is to wrap <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises">them at their lowest possible level and never call them directly again</a>.</p><p>The GET request would return a JSON which would importantly contain stdout — “<em>the standard output stream, which is a source of output from the program”</em> and stderr — <em>“standard error, the default file descriptor where a process can write error messages”. </em>I would use the latter to show any errors rendered as a result of the code written and the former to show the user the output of the code rendered.</p><pre>const threeSecondWait = () =&gt; {<br>        return new Promise(resolve =&gt; setTimeout(() =&gt; resolve(&quot;result&quot;),3000));<br>};<br>...<br>const sendCodeJudge0 = (requestBody) =&gt; {<br>    axios.post(`${baseURL}`, requestBody, {<br>        headers<br>        })<br>        .then((res)=&gt; {<br>            threeSecondWait().then(()=&gt;{<br>                axios.get(`${baseURL}/${res.data.token}`, {<br>                    headers<br>                })<br>                .then((res)=&gt; {<br>                    setSpinnerOn(false)<br>                    !res.data.stdout ? setResp(res.data.stderr)<br>                        : setResp(res.data.stdout)<br>                })<br>                .catch((err)=&gt; {<br>                    console.log(&#39;err&#39;,err)<br>                })<br>            })<br>        })<br>}</pre><p><strong>Creating the conference call<br></strong>To ensure a conference call is triggered when two users are redirected to the component containing the code editor, I set up a Twilio Conference call. To layout the process I am going to explain this in terms of the flow the user would follow and what happens at each step.</p><p>The user initially starts off in their profile dashboard. At this point they can then click a button ‘Join Waiting Room’ that would take them to a waiting room where they would remain until they are matched with a peer and redirected to their pair session. When the user clicks the Join Waiting Room button, a function runs that sends the user’s username to a RESTful API.</p><p>Within the RESTful API, I start off by instantiating a <a href="https://www.twilio.com/docs/iam/access-tokens">VoiceGrant</a>, which is responsible for creating an access token for voice. For my use case, the VoiceGrant, takes a few parameters, an outgoing_application_sid taking in an environment variable containing the TWIML_APPLICATION_SID. This is SID that Twilio will look to when making outgoing calls and is required for using Twilio Voice. The access token is rendered as a JSON Web Token before it is returned to the client:</p><pre>class TokenView(View):<br>    def get(self, request, username, *args, **kwargs):<br>        voice_grant = grants.VoiceGrant(<br>            outgoing_application_sid=settings.TWIML_APPLICATION_SID,<br>            incoming_allow=True,<br>        )<br>        access_token = AccessToken(<br>            settings.TWILIO_ACCOUNT_SID,<br>            settings.TWILIO_API_KEY,<br>            settings.TWILIO_API_SECRET,<br>            identity=username<br>        )<br>        access_token.add_grant(voice_grant)<br>        jwt_token = access_token.to_jwt()<br>        full_data = { &#39;token&#39;: jwt_token.decode()}<br>        # print(type(jwt_token))<br>        return JsonResponse(json.dumps(full_data), content_type=&quot;application/json&quot;, safe=False)</pre><p>Moving back to what the user sees, once we have created a token for the specific user we initialize a <a href="https://www.twilio.com/docs/voice/sdks/javascript/overview-1x-deprecated/device">device instance</a> in the frontend using the token retrieved, updating it with a few attributes to help handle connectivity for lower bandwidth networks, control the bandwidth my VoIP application will use and the maximum duration of time the device will spend attempting to reconnect in the event of connectivity loss.</p><pre>const setupTwilio = (nickname) =&gt; {<br>        fetch(`http://127.0.0.1:8000/voice_chat/token/${nickname}`)<br>        .then(response =&gt; response.json())<br>        .then(data =&gt; {<br>            // setup device<br>            const twilioToken = JSON.parse(data).token;<br>            const device = new Device(twilioToken);<br>            device.updateOptions(twilioToken, {<br>                codecPreferences: [&#39;opus&#39;, &#39;pcmu&#39;],<br>                fakeLocalDTMF: true,<br>                maxAverageBitrate: 16000,<br>                maxCallSignalingTimeoutMs: 30000<br>            });<br>            device.on(&#39;error&#39;, (device) =&gt; {<br>                console.log(&quot;error: &quot;, device)<br>            });<br>            setState({... state, device, twilioToken, nickname})<br>        })<br>        .catch((error) =&gt; {<br>            console.log(error)<br>        })<br>    };</pre><p>The user is then redirected to the waiting room. In future blogs I will detail how the matching works within the waiting room and the rationale behind each step. However, in the interim, to summarize, a function wrapped inside a useEffect takes in the usernames of both matched user and sets a room name and participant Label. I opted to concatenate both usernames for both these values. We need both these attributes to create a Twilio conference, with the participantLabel</p><pre>def post(self, request, *args, **kwargs):<br>    request_body = json.loads(request.body)<br>    room_name = request_body.get(&quot;roomName&quot;)<br>    participant_label = request_body[&quot;participantLabel&quot;]<br>    curr_username = request_body.get(&#39;currUser&#39;)<br>    matched_user = request_body.get(&#39;matchedUser&#39;)<br>    print(&#39;username&#39;, curr_username)<br>    current_user_id = User.objects.get(<br>                                        username=curr_username).pk<br>    matched_user_id = User.objects.get(<br>                                        username=matched_user).pk<br>    response = VoiceResponse()<br>    dial = Dial()<br>    dial.conference(<br>        name=room_name,<br>        participant_label=participant_label,<br>        start_conference_on_enter=True,<br>    )<br>    print(dial)<br>    response.append(dial)<br>    return HttpResponse(response.to_xml(), content_type=&quot;text/xml&quot;)</pre><p>This instructs Twilio to connect the caller to join a conference with the room name I created. The users are then redirected to their respective rooms (<em>the component containing the code editor</em>) where a new connection is attempted <em>“</em><a href="https://www.twilio.com/docs/voice/sdks/javascript/twiliodevice#deviceconnectconnectoptions"><em>to the Twilio application associated with the access token used when instantiating the device instance</em></a><em>”, </em>taking in the room name and participant label passed down to this component from a global state.</p><p>In future blogs I will expand more on other steps followed in this process, specifically using websockets to redirect both users to their respective rooms, storing all ‘matchable users’ in a Redis cache and conditionally ending the conference call when the programming session ends.</p><p><strong>Creating a global state <br></strong>An integral part of passing down different states required in the creation of a Twilio Conference involved setting up a hook to update a global state. I created a context provider that I wrapped around the components that would require states dealing with the creation of a Twilio Conference call. I used createContext to create a context object, with the default value argument set as null and then used useContext to create the common states data that could be easily accessed throughout all the components wrapped under this context provider.</p><pre>...<br>const RoomContext = createContext(null);<br><br>export const RoomContextProvider = ({ children }) =&gt; {<br>    const[state, setState] = useState(initialState);<br>    return (<br>        &lt;RoomContext.Provider value={[state, setState]}&gt;{children}&lt;/RoomContext.Provider&gt;<br>    )<br>};<br><br>export const useGlobalState = () =&gt; {<br>    const value = useContext(RoomContext)<br>    if(value === undefined) throw new Error(&#39;Please add RoomContextProvider&#39;);<br>    return value;<br>}</pre><p>Here again, since I was primarily using this to pass down props I opted to use the useContext hook over Redux primarily because I wouldn’t need to do much state management here.</p><p>While I continue building this out, if you are keen to pair program to get a feel of how the platform will work, feel free to book a session through my <a href="https://calendly.com/peerprogramming/1hr">Calendly</a>. If you are keen to subscribe to my newsletter to stay up to date with this platform’s development and pre-sign up, <a href="https://emmanuelsibanda.substack.com/">follow this link</a>. Or as the YouTubers would say; ‘smash that like and subscribe button’.</p><p>Until next time au revoir.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14c03762ebf4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codingsquad/a-pair-programming-platform-to-help-you-get-better-at-technical-interviews-building-out-the-14c03762ebf4">A pair programming platform to help you get better at technical interviews: building out the…</a> was originally published in <a href="https://medium.com/codingsquad">CodingSquad</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Helping people learn through peer to peer learning: part 1]]></title>
            <link>https://medium.com/@emmanuelsibanda/helping-people-learn-through-peer-to-peer-learning-part-1-a2aab31fae86?source=rss-6f1090ee7861------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2aab31fae86</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Emmanuel Sibanda]]></dc:creator>
            <pubDate>Sat, 05 Mar 2022 17:43:18 GMT</pubDate>
            <atom:updated>2022-03-05T17:43:34.235Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Qb3E61WC0PhQK1-PSFZdPw.jpeg" /></figure><p>Regardless of what you think of them, programming challenges are used by some interviewers to gauge your ‘ability to code and problem solve’. It goes without saying that coding challenges (think LeetCode and CodeWars) would lead to better interview performance in such scenarios and probably help improve your problem solving skills.</p><p><strong>The Rationale behind a platform facilitating peer to peer programming</strong></p><p>Over the last few months I started practicing coding challenges more seriously and accidentally had a few sessions where I had to collaborate with a few peers. Compared to working on my own, I found having a peer to collaborate with to both made the process more enjoyable and enriching. We shared ideas, I learnt something new and so did my peers. This made me wonder; what if there was a platform where people would be randomly matched based on skill, receive a random timed programming challenge and collaborate to find a solution. If I found this useful, surely there is a subset of people who would equally find this useful. This would both get you coding more regularly and expose you to other thoughts/perspectives potentially accelerating both your learning and ability to explain your logic to someone else. I have had phases where I enjoyed writing about things I read and learnt about, one thing I have learnt is that the process of explaining your logic/thoughts not only highlights inconsistencies in your own thinking, making you a little more self-aware while also helping you become a clearer thinking.</p><p>The same logic applies in this scenario. If you collaboratively solve a problem, explaining your logic at each step you will gradually become better at both explaining your logic, helping you ask better and more concise questions and spotting inconsistencies in your own thinking. In addition to this, you hone your ability to collaborate.</p><p><strong>Why am I doing this?</strong></p><p>When I immigrated to the US in 2020, which happened to translate to New York a week before the lockdown and got married a few months later) I launched a bootcamp, raising a little under $50k in angel funding. My goal was to train Data Science talent in Africa at little cost. This started off with a variation of the now typical, learn now and pay later (in this instance, the idea learn now and we get paid through a recruitment fee of getting you hired), transforming multiple along the way eventually to a marketplace of live, practical courses (ie. a live course based on building a data pipeline, led by an experienced mentor). The assumption here being that a live course, adds a layer of interactivity that both makes it easier for you to ask questions and get quicker feedback and stay more engaged in the process. Throughout this process, seeing other people learn and actually get jobs (we trained a little over 150 people and got some people hired in Data Analytics and DBA and other analytical positions) is not only fulfilling (FYI: don’t get it twisted, I do not believe in doing this as a non-profit), but actually changes people’s live. But beyond me trying to hijack your ability to assess the flaws of my logic through emotional appeal, I learnt the power of collaboration in helping people learn.</p><p><strong>Testing my assumptions</strong></p><p>Now to the fun part, what is an assumption if it has not been validated by real world data? To test my assumption over the last several weeks, I have been reaching out to people of varying skillsets to schedule peer to peer programming sessions to test my assumptions. Ultimately, I see testing assumptions as a pre-cursor to building a platform better facilitating this process and to ultimately answer the most important question: Can this help people who enjoy collaborating and are looking to code more frequently write code more often and would this process lead to a marked improvement in both their coding and problem solving skills.</p><p>The test is simple;</p><p>i.) The programming challenge must be timed. Ensuring that we are not only learning how to solve a problem, but within a specified time frame, prioritizing speed.</p><p>ii.) The session is broken down into phases a 5 minute introductory phase (get to know who you are going to be collaborating with to build some initial rapport) followed by a 15 minute phase to discuss the challenge given, pseudo-code potential solutions and try to imagine potential issues with the solutions we come up with, 45 minutes to code out the solution together and finally 15 minutes to find more efficient solutions, break these down and discuss how they work and why they are more efficient that what we came up with.</p><p>I scheduled 28 sessions over the span about 20 or so days. There were quite a number of no-shows, but I would guesstimate that at-least 75% of people either showed up or postponed to a later date. Here is a short clip of some of the sessions.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fn_OT7bHZ-ls%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dn_OT7bHZ-ls&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fn_OT7bHZ-ls%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/c0cbc048a0656b57c5869b4afb9e7864/href">https://medium.com/media/c0cbc048a0656b57c5869b4afb9e7864/href</a></iframe><p>If you would like to reach out to either schedule a peer programming session and leave some valuable feedback to help me in building this out or alternatively collaborate in actually building the project out reach out to me at emmanuelsibanda21@gmail.com/emmanuels@thegradientboost.com Or schedule a session with me on <a href="https://calendly.com/peerprogramming/1hr">Calendly</a>.</p><p>Till next time au revior.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2aab31fae86" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The journey to build and upskill African tech talent]]></title>
            <link>https://medium.com/@emmanuelsibanda/the-journey-to-build-and-upskill-african-tech-talent-8c2290dc39c9?source=rss-6f1090ee7861------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c2290dc39c9</guid>
            <category><![CDATA[edtech]]></category>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Emmanuel Sibanda]]></dc:creator>
            <pubDate>Tue, 14 Sep 2021 21:10:06 GMT</pubDate>
            <atom:updated>2021-09-16T16:42:39.313Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*ztCxuZhgYXdp82oSmDzfww.jpeg" /></figure><p>It’s almost trite to say building a startup is difficult. You either inherently understand this from having built/tried to build one, you read about it and understand this from a somewhat superficial perspective or you don’t know.<br>Over the last year we have been on a mission to build tech talent across Africa. How we went about doing this changed more than once, with each iteration we were convinced we had figured it out. I could ‘feel it’ and see positive indicators validating these assumptions. This hasn’t been true, however, with each iteration we learnt something to better guide our trajectory.</p><p>We learnt that our bootcamp model was not sustainable primarily because I hired too quickly, increasing our spend instead of slowing down our growth. We looked to increase access by offering a deferred payment model (ie. student learns for free after being interviewed and vetted and we only get paid a recruitment fee after they get hired) potentially creating cash flow issues. We also learnt that this model would probably not work if we focused purely on a data science program primarily because the market we were focused on and probably most of Africa was not very eager to hire junior data scientists. In cases where they were, they leaned more towards credentialed candidates or data analyst internship roles. Companies aren’t too eager to pay a recruitment fee to hire an intern or very entry level untested talent and in many cases the pay they earn isn’t enough to reasonably expect to adopt an income sharing model (we tried this with one intern).</p><p>From the firms we spoke to we got the sense that relying on a model that would require an extensive amount of funding would be a very unsafe bet.</p><p>Through this and other failed iterations we started to more deeply understand the contrast between bootcamps and MOOC marketplaces. The greatest value of going through a typical bootcamp isn’t necessarily the content, but access to either a live instructor or mentor. Having gone through the self-learning journey myself nothing bores me more than watching pre-recorded tutorials. At some point, probably when I became an adult, I lost the ability to learn passively. Having a live instructor/mentor makes the learning process more engaging by enabling you to directly interact with someone who can in turn instantly give me personalized feedback. We can liken the bootcamp process to learning on the job; you have a manager who acts as the instructor, giving you some work to do and feedback to help you self-correct and grow, you collaborate with other team members easing your work load and adding an element of peer to peer learning by leveraging your peers strengths to better understand how to do your job more effectively and there is the inherent practicality of working on real world problems.</p><p>We took these learnings, <a href="https://thegradientboost.com/">building a creator driven marketplace of live, cohort based courses training and upskilling tech talent</a>. Instead of creating our own courses we found it more practical to have courses created by a combination of experienced talent and companies to build courses that are more practical while retaining the personalization of a bootcamp and substantially lowering costs for learners to increase access.</p><p>Four tenets are key to our model; i.) live courses with live tutorials to increase engagement and accountability, ii.) collaboration facilitated by splitting learners who enroll into random study groups with a group lead setting up regular check-ins to increase accountability and get learners collaborating on projects more regularly, iii.) practicality, iv.) optionality to increase accessibility.</p><p>Through a combination of our prior and current model we have trained close to 100 learners (with numbers increasing with our new model). We have pre-signed 40 instructors working across Africa in Data Science, Data Engineering, DevOps, Software Engineering, Product Management and No Code. We understand that there are still infrastructural barriers limiting the proliferation of EdTech in Africa, the need to create more structured learning paths for our learners and other problems we are still trying to resolve.</p><p>By now it has become obvious that the learnings and failings are by no means over. However, each failure gets us one step closer to more effectively fulfilling our mission to train tech talent and build the tech ecosystem in Africa. There is no progress, no unicorns and no innovation without the availability of well trained talent.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c2290dc39c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Gradient Boost: Our Journey, The Narrative, Our Learnings]]></title>
            <link>https://medium.com/gradientboost/the-gradient-boost-our-journey-the-narrative-our-learnings-50a51c05f00d?source=rss-6f1090ee7861------2</link>
            <guid isPermaLink="false">https://medium.com/p/50a51c05f00d</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[recruitment]]></category>
            <dc:creator><![CDATA[Emmanuel Sibanda]]></dc:creator>
            <pubDate>Fri, 11 Jun 2021 12:04:18 GMT</pubDate>
            <atom:updated>2021-06-11T12:04:18.581Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lzcLwhLzlJYAcZURy6154Q.png" /></figure><p>I have probably written multiple versions of this blog at different times, each time developing a clearer and sometimes changing picture of what we are doing, why we are doing it and who we are doing it for. Each blog has given more clarity and helped us engage with people who align with what we are trying to build.</p><p>For anyone who is not acquainted with The Gradient Boost, we have been building a talent acquisition platform intelligently matching recruiters and global companies to data science and data engineering talent curated across Africa. The phrase ‘intelligently matching’ carries a lot of ambiguity and could mean anything from keyword matching to a more complex model. This term also says nothing about our value to our users. Intelligent matching does not tell you anything about how our platform helps alleviate challenges you would encounter sourcing, evaluating and hiring data talent.</p><p><strong>What does intelligent matching mean</strong></p><p>Before getting into the how, let’s get into the why. We believe sourcing, evaluating and shortlisting talent for an interview should be a quick/instantaneous process. Meaning, instead of posting on a job board, waiting for candidates to come to you through whatever source you use or cold reaching desired candidates, you should be able to get a list of candidates that are both available and best matched to what you are looking for. Picture a platform where you can simply input the skills you require, key duties you expect the candidate to work on, the level of experience you are looking for and immediately receiving a list of available candidates. Sounds a lot like LinkedIn? Well, lend me your eyes and mind for a few more minutes.</p><p><strong>Relevance</strong></p><p>Beyond immediacy comes the question of the relevance of the candidates you are matched with. Relevance in this context refers to how closely matched they are to your actual requirements. To put it frankly, this is a problem we are constantly working on. We don’t match you to talent based purely on keyword matching because this system can easily be gamed and having a particular keyword on your profile says absolutely nothing about your level of competence. For example I may have they skills ‘Python, React, Vue, JavaScript and SQL’ on my profile and even have work experience were I purportedly used these skills but this says absolutely nothing about the complexity of the work I have completed and my level of competence. Sure, you can look at years of experience worked in a particular role but <a href="https://towardsdatascience.com/the-danger-of-title-play-in-data-analytics-b94e92c49c53">data science titles are often nebulous</a> and don’t always give you an accurate picture of what the job involved. We look beyond these proxies by having both our technical recruiter(s) and technical team (data scientist(s)) evaluate each profile accepted on our platform.</p><p>This involves evaluating projects they include in their profile, where possible their GitHub repos and an in-depth project interview our talent has with our technical recruiter when signing up. We use these evaluations to score our candidates on multiple parameters and use these scores to match you to talent both with the skills and that have done similar tasks to what you require. When talent is matched to you, not only will you see how closely matched they are to your role, but commentary from both our technical recruiters and technical team on the candidate’s profile along with the candidate’s work history, a breakdown of their portfolio and recorded project presentations. We want to give you a quick and accurate way to gauge someone’s technical competence and presentation skills to help you make quicker and better hiring decisions.</p><p>From this point you can select the candidates you would like to interview and only pay for a successful hire.</p><p><strong>Some things we have learned</strong></p><p>Over the last few months we have been interacting with companies and recruiters in South Africa, Nigeria, Canada, Kenya and the USA, getting both companies and recruiters signed up on our platform. Starting off by matching talent to opportunities manually to build more intuition behind how the matching process can occur and making mistakes along they way.</p><p>Initially our thinking centered around a peer to peer matching model. Each candidate that creates a profile must also include a breakdown of projects they have worked on. Once a profile is accepted, each of these projects is then reviewed and scored by talent with equivalent or more experience on multiple parameters. The assumption being the more people review a project the more the scores given will give us a more objective picture of a candidate’s technical competence. A key assumption to this is getting enough information to enable people to actually rate a project. This ideally includes; a recorded presentation with the candidate walking through the project starting with:</p><ul><li>explaining how the problem statement was formulated</li><li>the magnitude of the problem</li><li>the acquisition of the data where applicable</li><li>the structure of the data</li><li>the solution itself</li><li>key assumptions made/challenges encountered</li><li>the rationale behind certain decisions that were made (ie. for an ML project key considerations made in the selection of the model(s) used)</li><li>the results in terms of business or real/hypothetical impact (ie. what decisions were/can be made as a result of this and why is this important)</li></ul><p>the code for the project and a written summary of the project. We quickly learnt that this lengthened the signup process, increasing the percentage of talent dropping off before completing our signup. We also found inconsistency in the recorded presentations submitted by talent. On one spectrum we would get a 2 minute walk through that is scant on detail and on the side a 1 hour long project walk through which while detailed doesn’t really show brevity and probably wouldn’t be reviewed by a company/recruiter hiring. Through these learnings we decided to streamline the application process and require all talent applying who meet our minimum criteria to go through a phone call talking to our technical recruiter in detail about interesting projects they have worked on to both create more consistent project presentations recordings to add to each candidate’s profile and to get a better gauge of our talent and get to know them better. Ironically, this has also added more rigor in our selection process.</p><p>Our vision remains the same, we are on a mission to build a talent acquisition platform giving you an immediate shortlist of candidates matched to your requirements while giving you a clearer picture of the candidates technical competence to help you make quicker and better hiring decisions. If this is a value proposition that resonates with you, <a href="https://thegradientboost.com/">visit our platform</a> and start hiring today, alternatively reach out to me at emmanuels@thegradientboost.com if you would like us to give you a demo of what our platform does.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50a51c05f00d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gradientboost/the-gradient-boost-our-journey-the-narrative-our-learnings-50a51c05f00d">The Gradient Boost: Our Journey, The Narrative, Our Learnings</a> was originally published in <a href="https://medium.com/gradientboost">TheGradientBoost</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a standard for the evaluation of technical competence for data science talent recruitment]]></title>
            <link>https://medium.com/gradientboost/building-a-standard-for-the-evaluation-of-technical-competence-for-data-science-talent-recruitment-1dd85eb72713?source=rss-6f1090ee7861------2</link>
            <guid isPermaLink="false">https://medium.com/p/1dd85eb72713</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[recruitment]]></category>
            <dc:creator><![CDATA[Emmanuel Sibanda]]></dc:creator>
            <pubDate>Fri, 09 Apr 2021 09:11:11 GMT</pubDate>
            <atom:updated>2021-04-09T09:11:11.355Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fMHIYh4tAkYcafGr.jpg" /></figure><p>Over the weeks we have been working on building a platform to more intelligently match companies to curated data science, analytics and data engineering talent, with the end goal of saving companies time when hiring talent and creating a standard to enable non technical hiring executives to more easily and objectively evaluate a candidate’s technical competence.</p><p>The intelligence refers to collecting data points enabling us to use machine learning to show companies hiring a candidate’s likely fit based on a detailed breakdown of the company’s job requirements.</p><p><strong>Evaluating Technical Competence</strong></p><p>One major problem we believe companies often encounter is evaluating technical competence (and team fit). In the race for talent and ensuring you hire the right person for the right role, this is a problem that can cost high growth startups a lot of resources both in terms of time, team momentum and money. The frustration equally applies to talent. As part of the process of getting to this stage we have been evaluating different ways to assess data science/engineering/analytics talent. From the companies we have spoken to this typically boils down to 3 methods;</p><p><em>Technical interview: </em>A technical interview with a more senior analytical lead. Depending on the specific role this may involve having the candidate walk the interviewer through a project they have worked on, giving the interviewer an opportunity to ask more probing questions to gauge how well the candidate understands the techniques they used and to get an understanding of the candidate’s logic and problem solving skills.</p><p><em>Automated Testing Platforms</em>: In other cases technical competence is evaluated through a technical test/case study given to the candidate simulating the type of work they are being hired to do. There are different variations of this; in some scenarios companies leverage automated testing platforms such as HackerRank sending through a test to for example, assess how well a data engineer understands the process of building a data pipeline or their general querying or programming skills. For more data science oriented roles, concerns are typically raised by more experienced talent that data science isn’t about how well you can code but a combination of statistical thinking, coupled with software engineering/programming principles along with the problem solving and critical thinking skills to apply the right solution to the right problem (or as some would call it, ‘business context’).</p><p><em>Case Studies: </em>This brings us to another variant of case studies. This is where the company provides sample data and ask the candidate to solve a problem they would expect the candidate to work on during the course of their employment (assuming they were to be hired). Companies typically give a candidate a week or longer to work on this and give the candidate the leeway to reach out to ask any questions to clarify any ambiguities. This entire process gives the company a clearer picture of how the candidate would solve problems/interact with the team testing not only their programming and statistics/mathematical skills but ability to problem solve. Another version of this applies more to ‘core data science’ roles. In this scenario the company would typically give the candidate a machine learning problem and only interview candidates who achieve an accuracy score (through whatever metric is being used to assess how well the model performs) past a certain threshold.</p><p>From our interactions, the typical interview process entails a combination of 2 of these methods, in some cases just 1 (technical interview), followed by interviews to test for team (sometimes with a peer in the same position) and culture fit.</p><p><strong>Peer to peer evaluation</strong></p><p>We believe in the idea of building in public, the process of writing our ideas out helps us apply more thought in what we are doing, evaluate our assumptions from a more objective perspective and more importantly get more market feedback and reach out to companies that are enthusiastic about what we are doing. To establish a quick way for companies to evaluate a candidate’s technical competence on our platform we have adopted the following assumptions;</p><p>i. The best person to evaluate another person’s technical competence based on projects they have worked on is someone with equal or more experience in a similar job. We believe this falls apart in e-learning because of misaligned incentives. We believe that being able to rate your peers is a skill on its own. To a certain extent, this reveals a capability to be very self-aware and objective. This particularly applies to candidates who have some work experience and an understanding of the difference between a ‘cool project’ and something requiring deep problem solving, an ability to use the right techniques for the right problem, to focus on efficiency over complexity and solve a real world problem.</p><p>ii. Human behavior is influenced by incentives. The wrong incentives encourage the wrong behavior. In line with this we are tying our peer to peer evaluation scores with a ‘leadership score’ reflecting how accurately one is able to assess another candidate. We measure accuracy by proximity to the mean score given. We believe this coupled with anonymity would give companies a more objective overview of a candidate’s technical competence.</p><p>From the companies we have spoken to we believe that the majority of stakeholders likely to use our platform to find candidates are non-technical talent acquisition specialists/HR generalists. We have built up an evaluation models asking candidates to anonymously rate other candidates’ projects. Each project listed by a candidate on their profile (anonymized) will have information around their code (where this will not infringe any NDAs signed), a detailed summary of their project, results, techniques used, rationale and impact and a video/audio walkthrough addressing points on a checklist to capture the candidate’s logic, how they went about solving challenges they encountered and impact to name a few parameters. We have been testing this with our entry level talent to better optimize our rubric with the ultimate objective of collecting more data to facilitate the intelligent matching in the future.</p><p>While we are still in the process of making final changes to our platform, we now enable companies to signup, create a profile and find talent. We are already helping a few companies hire talent while in beta. We would be more than excited to help your company with your hiring needs and take in feedback to help us optimize our platform to be more valuable to you. You can <a href="https://app.thegradientboost.com/">sign up today</a> to create your free company profile and join companies like Aerobotics, Babban Gona, Kobo360 and Renmoney to name a few on our platform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1dd85eb72713" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gradientboost/building-a-standard-for-the-evaluation-of-technical-competence-for-data-science-talent-recruitment-1dd85eb72713">Building a standard for the evaluation of technical competence for data science talent recruitment</a> was originally published in <a href="https://medium.com/gradientboost">TheGradientBoost</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Launching our 6 Month Fellowship]]></title>
            <link>https://medium.com/gradientboost/launching-our-6-month-fellowship-1818317320e3?source=rss-6f1090ee7861------2</link>
            <guid isPermaLink="false">https://medium.com/p/1818317320e3</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[e-learning-platform]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[edtech]]></category>
            <dc:creator><![CDATA[Emmanuel Sibanda]]></dc:creator>
            <pubDate>Mon, 18 Jan 2021 11:56:04 GMT</pubDate>
            <atom:updated>2021-01-18T11:56:04.612Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZR-l0lQCvSjH9HNUgHg52w.png" /></figure><p>Over the last year, <a href="http://thegradientboost.com/">The Gradient Boost</a> ran 4 Introduction to Data Science cohorts growing from taking on 5 students to 18 students in a single cohort with some of our students getting hired by companies such as Nedbank, Investec, Sparkle and Space Pen spanning across Namibia, Nigeria and South Africa. At inception the idea behind running these cohorts was to both gain more traction and a deeper understanding what our target market need with the objective of building high quality data science talent in Africa for global opportunities. This culminated in re-positioning our vision and looking to build an end to end platform training, upskilling and matching data science talent in Africa to global opportunities.. We decided to start off by focusing solely on Nigerian talent given the strong engineering culture and resilience of the population.</p><p>To paraphrase one of our investors, Nigeria is one of hardest places to do business in Africa because of its size and the inherent challenges that everyday people face. However, we are firms believers that tough times and environments create tough people with a lot of drive and a lot to prove, evidenced by how successful the diaspora fairs in the more developed economies.</p><p>Throughout the year we learnt two essential things to better optimize our training; firstly, learning happens best through collaboration. This builds both motivation to take on difficult projects and aides in building essential soft skills including project management, leadership and presentation skills. Secondly, we learnt that it was essential to make our training better resemble the real world. With these insights we have decided to phase out our Introduction to Data Science program and replace this will a full time online 6 month data science training program that is free for learners in Nigeria selected for the program.</p><p><strong>Draft Day</strong></p><p>We believe that the best way to build talent is through building a highly competitive meritocratic system. This starts off with a simple application open to anyone looking to learn data science. There are no limitations and no requirements at this stage. This is followed by a short, relatively basic, technical challenge and an interview. From these three stages we pick the top ‘recruits’ based on a rubric assessing candidates on multiple parameters including whether the applicant fits into the culture we aspire to build into our program. This is a culture of collaboration, willingness to help your peers, to accurately self-assess both your technical and character flaws, the honesty to admit them to yourself and those looking to help you grow, the commitment to work on them, the willingness to challenge yourself, the curiosity to continuously learn and develop yourself and the persistence to stay committed to your goals while remaining adaptable.</p><p><strong>Guided self-learning phase</strong></p><p>After this initial selection we get into the self learning phase of the program, starting off with a 2 week window period focused purely on Introductory Python. During this phase students have access to tutorial content from The Gradient Boost and daily Teaching Assistant sessions. These will be open, interactive live sessions where our Teaching Assistants will be available either for discussion or in certain cases walking students through different programming problem statements. At the end of this phase, students will be sent a Python test, students who score below a certain threshold will be removed from the program. These steps will be repeated for Statistics and SQL (3 weeks for each of these). Through this we will remain with the core that either proven that they have a solid foundation or a lot of drive and learning ability, ‘the marines’.</p><p><strong>Format of the program</strong></p><p>The program kicks off into full gear after the self-learning phase. The program will proceed in phases. The work week will start on Monday all the way through Friday with some sessions on select Saturdays, these weekend sessions will be communicated to students in advance and run for no longer than 3 hours.</p><p>The program will have three types of types; tutorial days, practical days, and workshop days (reserved for the weekend).</p><p><strong>Tutorial Days: </strong>these will start off with a morning standup/check-in led by our Teaching Assistants (TAs). During these sessions TAs and students will chat about the previous days work (tutorials and practicals) in groups. TAs will support students with any issues they are struggling with. After this, students will have a practical session led by their TAs on the topics covered in the previous tutorial and a high level discussion about the tutorial to be covered later during the day. In certain days these sessions will be replaced with career oriented sessions and mock interviews. The day will end with a 2 hour mentor guided tutorial. These mentors are data scientists with real world experience. The schedule of the content to be covered will in each tutorial will be shared with the students in advance.</p><p><strong>Practical Days: </strong>these will start off with morning standup/check-in session ending off with the TAs giving students a few case studies that they will be working on in groups over the course of the day. Students will proceed to work on these case studies over the course of the day with TAs available to assist where required. The groups will be required to present the output of their work in the following tutorial day, depending on the amount of time given to work on these case studies. Each person in a group will be expected to present a portion of the work and group leads will be regularly shuffled to ensure that everyone has a chance to lead a group and manage a project. The work given to students in these days will alternative between case studies and projects.</p><p><strong>Workshop Days: </strong>lastly, workshop days will only consist of a single workshop or hackathon.</p><p>The program will proceed in phases; starting off with the Data Acquisition phase covering tutorials related to acquiring data (web scraping and pulling data from APIs). The next phase relates to data cleaning and the EDA process, including workshops on PowerBI and Tableau for data visualization. From this we proceed to Machine Learning with a heavy emphasis on case studies. We then transition to data engineering focused on understanding fundamental database concepts related to data modeling and data management, working with databases, building custom ETL data pipelines and data pipeline deployment. We will cap off the training with more projects and real world case studies.</p><p>As mentioned before at each phase of the program students will regularly present their insights to their TAs, each week we will be scoring students based on these presentations and students who do not show a strong enough commitment or growth will be removed from the program. Student who reach the last phase of our training, the ‘delta-force’, will get to work on internal and external projects. A significant percentage of students who completed our Introduction to Data Science program received internships and in some cases job offers, we believe an extra level of rigor will better equip our students.</p><p>Applications are open, if you are interesting in applying, accelerating your data science journey, working on real world projects and case studies and getting hired at no cost, fill in the form below and let the journey begin. If you show commitment, we will invest in you, we will be your cheerleaders and support your journey to the best of our ability. We have in the past bought a laptop and offered internet data to our top students.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FuhLImPnPePo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DuhLImPnPePo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FuhLImPnPePo%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/5ca6a2345f81a9e49a3f3f6991abcc3c/href">https://medium.com/media/5ca6a2345f81a9e49a3f3f6991abcc3c/href</a></iframe><p><a href="https://forms.gle/mtmdWWPfnknC3PZGA"><strong>Click to Apply Today</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1818317320e3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gradientboost/launching-our-6-month-fellowship-1818317320e3">Launching our 6 Month Fellowship</a> was originally published in <a href="https://medium.com/gradientboost">TheGradientBoost</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>