<?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 Kim Beaudin on Medium]]></title>
        <description><![CDATA[Stories by Kim Beaudin on Medium]]></description>
        <link>https://medium.com/@kimbeaudin?source=rss-f7dc74f9c634------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rdurzlIXs3s3Kl--VAEzBg.jpeg</url>
            <title>Stories by Kim Beaudin on Medium</title>
            <link>https://medium.com/@kimbeaudin?source=rss-f7dc74f9c634------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 05:40:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kimbeaudin/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[Better together — Introducing pair programming to your team]]></title>
            <link>https://medium.com/@kimbeaudin/better-together-introducing-pair-programming-to-your-team-16182d2a36d2?source=rss-f7dc74f9c634------2</link>
            <guid isPermaLink="false">https://medium.com/p/16182d2a36d2</guid>
            <dc:creator><![CDATA[Kim Beaudin]]></dc:creator>
            <pubDate>Tue, 25 Apr 2023 14:48:57 GMT</pubDate>
            <atom:updated>2023-04-25T14:48:57.084Z</atom:updated>
            <content:encoded><![CDATA[<h3>Better together — Introducing pair programming to your team</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jKsa8hZd0feO5KC8wtB7MA.jpeg" /><figcaption>Photo from Jopwell</figcaption></figure><p>Pair programming, the idea of sitting down with another human to walk through or develop a piece of code together, is often one of those “time for that” ideas that sounds really great but is rarely executed in practice. At League, we are lucky enough to have some really passionate folks to take ownership and drive initiatives they feel strongly about.</p><p>Cue Sam, a Sr. Web Engineer at League, who initiated a monthly scheduled, randomly selected, rotation of pair programming partners to our web team. I decided to sit down with Sam to get more insight on pair programming as a whole, as well as an idea of how he went about establishing this practice.</p><p><strong>What do you enjoy the most about pair programming?</strong></p><p>So many things! I love pair programming. It’s something that frequently gets talked about as a great way to improve your skills as an engineer, but before League I didn’t have a huge amount of experience with it. League has a large contingent of talented web engineers, and I wanted to find more opportunities to connect and learn with the broader team. Pairing more felt like the perfect way to get to know the wider web team and help everyone skill up, especially as we have a tendency to end up in work silos on our respective feature teams.</p><p>Pairing is a great way to improve your technical skills — you get insight into how other people work and how you can make improvements for your own code. It is also an excellent way to develop your technical communication skills. That is sometimes under-appreciated — we can often solve a problem in our own head, but to develop the skills to be able to explain that to another person is a key skill. And pairing really helps foster that.</p><p><strong>Can you describe the pair-programming initiative you started?</strong></p><p>We have a Web Pair Programming Slack channel that team members can join, and if you are part of the channel, then once a month there is an integration that will randomly pair up 2 to 3 people. Then you can schedule a meeting with the person or people you are paired with for about an hour. There is some social time to get to know each other, then work through a programming problem together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6_djCQiZvxT1veTk" /></figure><p>It is very free-form so the structure can vary from session to session, but typically one person is in the driver’s seat and one person in the passenger seat. In terms of picking a problem, it is encouraged that folks bring an idea of something to work on and then they can decide in the meeting what to work on together. Some examples would be a UI component that is self-contained on a fresh ticket, or an interesting challenge that is small enough to get through some of it within the hour.</p><p><strong>What advice would you give to others to make the most effective use of time?</strong></p><p>I think a lot of folks coming into a pairing session for the first time don’t really know what to expect. It can be a challenge if people view it as “oh, another meeting in my day”. Having clear expectations around how the hour will be broken out and bringing a clear problem you want to solve can help you get the most of your session. Most of the sessions are very satisfying as you identify problems and start sharing knowledge — people start getting really into it. Taking the time to prepare and coming in with a defined problem or something you would like to learn more about adds a lot of value.</p><p>Also, try to show up with a sense of openness. It can be easy to show up and feel like you know how to solve the problem, but it’s really a collaborative exercise. There might be a solution in your mind that totally works, but there are typically many ways to solve a problem. So, being open to hearing how others might approach it will really help you. The main goal here is to learn, both from each other and with each other.</p><p><strong>Where do you see the balance between having deadlines and meetings with making sure that there is space pair programming?</strong></p><p>It’s an interesting and challenging problem to solve — time is a resource we never have enough of. Pair programming <em>is</em> a block in a calendar, but it is focused and engaging. It is a special hour you take. You’re not sitting in a meeting with dozens of other people hearing something described to you. Rather, it is very active and energizing. It gets me more motivated and more excited. I always come out feeling good after getting to know my coworkers and improving how I work.</p><p>When we were setting up the integration we discussed the frequency — biweekly came up but we landed on once a month. This cadence allows us to have regular sessions, but is not so frequent that it becomes a chore.</p><p><strong>What kind of feedback have you received as a result of the initiative?</strong></p><p>I sent out a small survey and so far everyone gave it a 5/5. Largely folks enjoyed seeing how other people worked, the exchange of experience and domains, and loved the social and learning aspects. Especially in a remote environment it created more “water cooler” moments.</p><p>More anecdotally, some of our junior developers said it was one of the most valuable things for them at League. It gave them an opportunity to work with other developers and the experience of having to walk through something outside of their comfort zone.</p><p>Pair programming is dedicating an hour to ask questions, learn about something new, and explore ideas in code. It can be hard to post a technical question in a large team channel where 100+ people are going to see it. Having a dedicated hour of one-on-one time creates a safe space where people can feel comfortable and truly connect in a remote environment.</p><p>—</p><p>Working together on a problem can improve team connections, upskill both technical and communication skills, and knowledge share across domains. We’re thankful to our team members like Sam who take ownership of an idea and can inspire others to collaborate on problems together. In the end, it didn’t have to be a huge time sink to accomplish the goals! It started simply with a Slack integration and a once-a-month meeting, and has made a tremendous impact on the team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16182d2a36d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#anonymous-dev-confessions: Putting humour in humility]]></title>
            <link>https://medium.com/@kimbeaudin/anonymous-dev-confessions-putting-humour-in-humility-ab1fc9b7f57e?source=rss-f7dc74f9c634------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab1fc9b7f57e</guid>
            <category><![CDATA[mistakes]]></category>
            <category><![CDATA[company-culture]]></category>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Kim Beaudin]]></dc:creator>
            <pubDate>Mon, 25 Jul 2022 16:52:14 GMT</pubDate>
            <atom:updated>2022-07-25T16:52:14.130Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YZAOVpb6E2-v9ZXbg6zVcQ.jpeg" /></figure><p>In February of this year, I created a new Slack channel. While we already have about 2,000 other channels, this one felt like a fun yet important addition. After a book club conversation on Adam Grant’s <a href="https://adamgrant.net/book/think-again/">Think Again</a>, the ever wise <a href="https://kristen-spencer.medium.com/">Kristen Spencer</a> noted that it would be nice if we could find ways to, “Inject more humility in the way we speak about what it means to be a senior.”</p><p>We spit-balled a few different ideas — should we host a panel conversation? A form to collect experiences or questions? A thread that focused on “a time I broke production…?” And after a quick question in the engineering channel, we landed on simply creating a Slack channel.</p><p>I created the channel and included an anonymous bot that allows folks to submit some of their past mistakes or learnings as a developer without any identification. I tested the bot with one of my own classic blunders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/0*NlFTP7ZIsGr7tPSw" /></figure><p>And from there — it took off.</p><p>In a short time after sharing the creation of this channel, we had some of our most senior engineers happily sharing their gaffes — without the bot. In fact, a large majority of the posts continue to be shared without anonymity. We even had our very own CTO share a mistake from his past.</p><p>Though it isn’t a super active channel, every now and again someone will post a story that brings a smile to my day. I’ve seen folks share woes in other channels only to be tagged #anonymous-dev-confessions in the thread to re-share.</p><h3>How does this help?</h3><p>Sometimes the most senior developers on the team appear as magicians. They are so been-there-done-that, which for new developers on the team can often be intimidating. It’s helpful to help our whole team to realize that these senior developers were very much once (and often still are) in similar shoes. Imposter syndrome is very real.</p><p>To highlight and bring forward these experiences, we wanted to demonstrate that everyone makes errors, everyone is always learning and there is value in our mistakes. When I first posed the question to the engineering team, Rodrigo Saling captured the sentiment behind it best:</p><blockquote>I will always vote yes for:</blockquote><blockquote>things that show that I am not the only one failing at “doing stuff”;</blockquote><blockquote>things that show the process of “doing stuff”.</blockquote><p>Furthermore, to show and demonstrate errors is one thing, but to be accepted without judgment by your peers is another. Scanning through the channel, not only are most of the posts done by the person and not the bot, but the emoji reactions are filled with hearts and joy. Folks have genuinely appreciated and enjoyed hearing from each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/0*2hp6sWQLshgiU9uv" /></figure><p>To post non-anonymously in a channel meant to be anonymous really highlights the supportive and collaborative engineering culture that League has fostered. We are all able to see the mistakes for what they are — a mistake. And the best part is that our blunders make for a story that we can share a laugh about and maybe help someone feel a little less like an imposter at the end of the day.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab1fc9b7f57e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Life beyond code — the value of a mentorship]]></title>
            <link>https://medium.com/@kimbeaudin/life-beyond-code-the-value-of-a-mentorship-267b1d027290?source=rss-f7dc74f9c634------2</link>
            <guid isPermaLink="false">https://medium.com/p/267b1d027290</guid>
            <category><![CDATA[mentoring]]></category>
            <category><![CDATA[mentorship]]></category>
            <dc:creator><![CDATA[Kim Beaudin]]></dc:creator>
            <pubDate>Mon, 24 Jan 2022 15:19:44 GMT</pubDate>
            <atom:updated>2022-01-24T15:19:44.015Z</atom:updated>
            <content:encoded><![CDATA[<h3>Life beyond code — the value of a mentorship</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4mi1CDw6jqtsxG1MK-eyVA.jpeg" /><figcaption>Photo by Gary Barnes from Pexels</figcaption></figure><p>It’s the boat that everyone is told to get aboard — it’s the Mentor Ship.</p><p>Puns aside, “find a mentor” is a phrase that is frequently thrown around engineering circles. There have been countless <a href="https://www.evidencebasedmentoring.org/new-study-highlights-the-benefits-of-serving-as-a-mentor/">studies</a> and <a href="https://www.guider-ai.com/blog/mentoring-benefits">articles</a> written about the topic of mentorship and the benefits it provides, especially to those in STEMM (science, technology, engineering, mathematics and medicine) studies and careers. But how does one go about finding a mentor, and what do you even <em>do</em> once you have one of these elusive mentors?</p><p>At League, we’ve at least solved part of the problem through a mentor/mentee matching program that we’ve dubbed the Major League Mentorship (MLM) program — the only MLM I’ve ever wanted to join. The matches are based on mutual topics of interest and so far, of the hundreds of pairs we’ve connected, 75% of them are still meeting on a regular basis after 6 months.</p><p>For those that don’t have an internal mentorship program at their organization, here are <a href="https://www.npr.org/2019/10/25/773158390/how-to-find-a-mentor-and-make-it-work">some tips</a> on finding a mentor and a <a href="https://www.growthmentor.com/blog/online-mentoring-platforms-software/">list of online mentoring platforms</a>.</p><h3>Exploring a mentorship</h3><p>As for what mentors and mentees discuss, I’ve connected directly with mentor Frances (back-end developer) and mentee Mikaela (front-end developer) who have been paired up since September 2021.</p><p><strong>What are your meetings like?</strong></p><p><strong>Frances (F)</strong>: There’s not a specific format or anything. Sometimes it’s stuff that Mikaela has had happen in the last week or two, stuff where she wants to see changes or stuff that has gone well. We’ve actually had full on conversations about where Mikaela grew up. Getting to know each other. But mainly is there something she needs advice on, and if not, just general chit-chat.</p><p><strong>What topics most frequently come up? (e.g. technical vs. leadership)?</strong></p><p><strong>F</strong>: Mikaela is a front-end developer and I am a back-end developer, so the technical stuff doesn’t really jive. I’ve mentored somebody on our team in the past and then the conversations are different. Then it’s more like “this is the style we do things in” or the conventions we use. [With Mikaela] we don’t have commonality in terms of code. It’s more “am I doing the right kind of work to progress my career”; “am I engaged and interested in the work being assigned”; “if the work being assigned is not exactly what I want, how do I ask in a positive way for more cool and challenging stuff”.</p><p><strong>Mikaela (M):</strong> I think [Frances is] really good with promotion and self-reflection and guiding me through how to submit that, or how to take note of what I am working on and using it in a way to progress my career. A lot of my questions, or where I think I feel like I need the most help, are around the League way of doing things, how to manage internal discussions with my team and further my own career growth.</p><p>I started at League during work from home (COVID-19) and one of the best things that came out of MLM for me was that Frances kind of became a “forced” friend. Questions that you feel like you might not want to ask your manager or don’t want to ask on Slack, it’s like, “okay where do I want to ask this?”. It’s been a really good way to have a conversation with someone at League and have it be very open.</p><p><strong>How have your meetings changed from when you were first paired? How did you build up trust to where you can ask anything?</strong></p><p><strong>M: </strong>We started with our history and background. I usually work from home by myself, so sometimes our chats really derail away from work but it’s almost like, “I haven’t talked to anyone all day!” It happens really naturally. It started with discussions about where we both came from and what we’re doing at League and naturally evolved from there.</p><p><strong>How has the mentor/mentee relationship helped you grow as an engineer?</strong></p><p><strong>F: </strong>For me, I think it’s taking note of stuff that I’ve had challenges with and knowing that if it comes up with somebody else it’s something I can talk about. Early in my career, something I struggled with was growth in terms of salary — being nervous to ask.</p><p>For example, I had a manager give me a bump one year and he was like “you should have asked for this already,” and I appreciated that so much. Nobody was going to do this for me, he was just like “this is what should be happening at this point. You need to do this stuff.”</p><p>So keeping note of those things — what might somebody be too scared to ask? It feels like you can’t ask but you still want to know. It’s okay to ask for more money and it’s okay to inquire about how to get to that next bump. You know practical life skills that you’re worried about. Being aware of things that would have been really nice [for past me] to know, I am definitely going to share with somebody else if it pops up.</p><p>It’s always nice to have these little back-pocket tricks — it’s going to be different for you, but this has been my experience with these kinds of things.</p><p><strong>M</strong>: Being new, [getting to the next level] is not on my radar yet, but it will be. And I think talking to Frances has put it more on my radar. She’s always stressed “don’t just do the work, do the work and document it.” Take note of it because in a year (or whenever) you’re going to want to look back on it and have it. So focusing on life at League beyond code.</p><p><strong>What advice would you give to others to get the most out of a mentor/mentee relationship?</strong></p><p><strong>F:</strong> Get together even if there is no agenda — even if it’s 10 minutes. Stuff always pops up. It doesn’t have to be “I have a chat with my manager coming up and I need to prepare”. It’s worthwhile to get together and chat. It’s nice to have someone outside your team to chat with. It’s never a waste.</p><p><strong>M:</strong> Be comfortable to ask whatever you want to ask. Ask questions that you maybe wouldn’t ask someone else or you feel nervous or shy to ask because you are new — just asking them is the best way to get what you want from the relationship.</p><p>No matter the style of the chat, there is always a take-away, a good time and lessons learned.</p><p>– — — –</p><p>As they both have highlighted throughout the conversation — the value of this mentorship was not about levelling up Mikaela’s coding skills, but instead a focus on “life outside of code”. A place where she could be vulnerable and open to ask any and all questions; having a person at work to confide in and share experiences with. This isn’t to say that a mentorship about code or a particular topic is not a good mentorship. Merely that a good mentorship is about building a foundation of trust and placing it with another person.</p><p>In the end, it doesn’t really matter what you talk to a mentor about, as long as you are both working to build the relationship so that when the critical things do come up, the trust has been established and the space is available to talk about it.</p><p><em>Big thanks to Frances and Mikaela for letting me pick their brains and sharing their insights. Visit League’s</em><a href="https://league.com/ca/careers/"><em> careers page</em></a><em> to view our open roles.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=267b1d027290" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Defining your Debugging Process]]></title>
            <link>https://medium.com/@kimbeaudin/defining-your-debugging-process-b4edb38f63a5?source=rss-f7dc74f9c634------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4edb38f63a5</guid>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[skills-development]]></category>
            <dc:creator><![CDATA[Kim Beaudin]]></dc:creator>
            <pubDate>Mon, 07 Jan 2019 18:55:04 GMT</pubDate>
            <atom:updated>2019-01-07T20:22:18.352Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*Ngy8bmKl5kz6OyKCmI2jmg.png" /><figcaption>Photo by <a href="https://unsplash.com/photos/Hcfwew744z4?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Christin Hume</a> on <a href="https://unsplash.com/search/photos/laptop?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>One of the most frustrating (at times), yet important, aspects of being a developer is debugging. Those moments when you’ve been coding for some time, flip to the browser to test and it just works perfectly are… rare. Surprising even. More often than not, most of the job is hunting down and dissecting issues rather than the actual programming. No one writes perfect code. So it’s a bit of a surprise to me when I ask in interviews, “what is your debugging process?” that almost all the answers are along the lines of “I just use print statements.”</p><p>That is a tactic sure, but there are so many other pieces and possibilities in the process than that! So I figured I’d write this blog post to hopefully help provide some tips (or at least help some of you better answer that interview question in in the future).</p><h3>Reproduce the issue</h3><p>This may be an obvious one, but no one actually ever mentions it!</p><p>This is a super important part of beginning the debugging process. If you can’t reproduce the problem, you’re going to have heck of a time trying to figure out how to solve it. I recommend both making sure you can reproduce on the environment (and browser) it was reported on, and then on your local machine (and other browsers).</p><p>Once you can define reproducible steps, not only will it help your QA team in testing, but it will give you some clues for where to start looking.</p><h4>“Works on my machine”</h4><p>These can be frustrating to solve as there’s no obvious reason it wouldn’t be working — works perfectly for you! May as well just close as “can’t reproduce”.</p><p>That happens. Sometimes. Compare the environment settings or grab a clone of the database to use on your local setup (where it makes sense). If your local environment is very out of date or inconsistent from the content on the live environment, it might be a challenge to debug what a client is seeing.</p><p>If you really can’t reproduce it on the same or any environment, before you hastily retreat to close the ticket, jump on a screen call or sit next to the person who found it and watch them. These situations can sometimes highlight simply a poor description in a bug report or you discover your users are using the software in an unexpected way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*BER5-oF8FXOiU7QyoVU2gw.png" /></figure><h3>Go hunting</h3><p>Once you’ve been able to reproduce the next question is — but why? It’s time to go hunting!</p><h4>Stack traces are your friend</h4><p>If you are lucky enough to have a stack trace or an error message, this is a great clue for where to start! It’s the first question I’ll ask someone if they ask for my help debugging — “is there anything in the logs?”</p><p>Typically most modern programming languages will provide insight to what is going on, and you can likely narrow it down to a specific function or component. That being said, error messages are varied, ranging from pointing out the exact issue on the exact line to, being a vague cryptic message that even the Davinci Code guy couldn’t solve (apologies for my very dated reference).</p><p>This is where your favourite search engine comes in handy. Likely someone has encountered this issue before and you might come across the very answer you are looking for, or at least a place to start looking. People tend to shy away from saying “I Google it”, but don’t. We all do! Being able to Google (or equivalent search engine verb) well is a skill in itself. Filtering, narrowing down, and understanding search results is an important investigative skill in debugging.</p><p>Even if the research you’ve found doesn’t solve the issue fully it can potentially help narrow it down or even change the issue you are looking at. It can be a positive sign when you get a <em>different</em> error message — progress!</p><p>However..</p><h4>Don’t just copy and paste</h4><p>StackOverflow is a fantastic resource for developers — I am thankful to the people who post questions and those who respond with solutions. But one of the things I’ve witnessed is blind copying and pasting. What I mean by this is copying a chunk of code and plopping it in and just hoping it works. This is also called guessing-and-testing.</p><p>Don’t do this.</p><p>I full heartedly encourage the use of Google (or your preferred search engine) and StackOverflow, but if you don’t understand why this solved the problem, you will not grow as a developer. I can’t emphasize it enough — make sure you understand why the solution works! Even if you need to have someone else explain to you why it works, do not just paste it in and call it a day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*SRxK2yoJSEktifJz6F2x_g.png" /><figcaption>Image from Google Images</figcaption></figure><h4>Make no assumptions</h4><p>I can’t remember where I first read it, but it is something I hold true when debugging today. Make no assumptions about how something is working. Obviously, something is not working correctly and so you should not assume anything is working as it should. We need to re-verify the steps leading up to the issue.</p><p>To ensure I am not making assumptions about how something *should* be working, it typically involves me digging into everything that might interact with the component/feature. Walk back from what should be working, how you may have missed something in setup (see below:rtfm), ensure namespaces are correct, environment variables are set, API keys are correct, so on and so forth. It typically doesn’t take very long and will rule out some pretty basic gotchas.</p><h4>When did it break?</h4><p>If the feature was working two weeks ago, then after the deployment to production we now have a ticket that gives you pretty good insight into when something changed. This can be helpful for tracking issues down as if you can narrow down to a feature or component, then you can see what changed in that release. A simple code review in digging through your commit history may highlight an issue you didn’t notice before.</p><p>Alternatively if a new library/plugin/module was added in the release — it might be a good test to disable and see if your issue changes. Then at least you can narrow down that the interaction between the two does not play nicely.</p><h4>RTFM or Read the Docs</h4><p>I am guilty of this often. I just want to dive in and figure it out — but then will spend too long trying to debug a weird issue. Had I just read the README or the online API documentation a little more thoroughly, it would have highlighted exactly what I was missing. Oops.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/0*w1bx7H5KhE7s9B3o.png" /><figcaption><a href="https://xkcd.com/293/">https://xkcd.com/293/</a></figcaption></figure><h4>Use the tools!</h4><p>Much like stack traces, debuggers are your friends! If you are running an application where you can use a debugger, I cannot stress enough how valuable these things are! They are far more effective in letting you know what’s going on than just printing “here” a dozen times throughout your function.</p><p>Most modern browsers these days come with tools built-in to help you debug. I am not going to go over the specifics of how to use them, but encourage you to do a quick search on the browser of your choice and their developer tools to learn more.</p><h4>Rubber ducky debugging (aka asking for a second pair of eyes)</h4><p>The idea is that by just explaining the problem to someone else, you often come up with the solution in the process. It’s called rubber ducky debugging, as you can even use an inanimate object to do so — like a rubber duck. You might be surprised how often this works. Too often we get a bit myopic on what we are working on, but as soon as we have to explain the larger picture to someone else — whoila — a light bulb moment occurs!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*qdwmiRfdeanXY1Rx7p3OYg.png" /><figcaption>Photo by <a href="https://unsplash.com/photos/NLIjl3lYRYs?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">DESIGNECOLOGIST</a> on <a href="https://unsplash.com/search/photos/rubber-duck?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4>Ask for help and ask questions</h4><p>When all else fails — ask for help. A good development team is one that supports each other. If you have someone who may have worked on part of the problem, or understands the technology with greater depth, it might be faster to ask them to take a look. Use the people around you and learn from them.</p><p>If the person you asks is able to help or can solve the problem, have them point out how they came to that conclusion, ask them where you went wrong, watch them work, or even have them pair program with you. In essence, ask them questions. Sometimes it’s about meeting a deadline, but you want to ensure you are leveling up your skills in the process. If you are just given answers, it won’t help you improve your debugging skills; you want to make sure you understand why the solution works.</p><h3>In conclusion…</h3><p>This is not a complete list of strategies by any means, but the idea is to start thinking a bit more in-depth about how you approach debugging problems. It is a common interview question, so try to answer a bit beyond, “I just use print statements”. And don’t get me wrong, seeing what is being output is often a very handy tool especially if you are dumping the values of variables, but try to expand your repertoire of debugging tools and processes. You might be surprised!</p><p>If you have any other debugging tips you use and recommend share below in the comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4edb38f63a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building better production deployments]]></title>
            <link>https://medium.com/@kimbeaudin/building-better-production-deployments-fc8080cb867b?source=rss-f7dc74f9c634------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc8080cb867b</guid>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[deployment]]></category>
            <dc:creator><![CDATA[Kim Beaudin]]></dc:creator>
            <pubDate>Fri, 23 Nov 2018 00:51:34 GMT</pubDate>
            <atom:updated>2018-11-23T00:51:34.207Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*AkGPW6xIXEJMZSzA4K_WHQ.png" /></figure><p>Break out the bourbon — it’s time to push to production!</p><p>Most people in tech have had one: a launch that’s gone awry. It’s 2am and you’re still trying to figure out why your file syncing is no longer working, SSL is not being enforced, or you’re getting a multitude of stack traces that make nearly no sense. Any number of things has gone wrong, and you’re scrambling behind the scenes to make it right. You might push a hotfix, you might rollback. You might tableflip and disappear into the night.</p><p>Production deployments are traditionally <strong>stressful</strong> for the team. Especially so, depending on the magnitude of the changes rolling out and the level of risk should the site or product go down completely (albeit temporarily). There is nothing quite as panic inducing for a developer as a live site or application being broken, having project managers breathing heavily down their neck waiting for a fix, and clients spamming the team across all communication channels asking for updates, all while they’re trying to debug. Yikes.</p><p>So what can you do? Like most stressful things in life, the more you can prepare, the better. Take the time to build a process that works — make a deployment plan/checklist, schedule it, communicate it, and automate it where possible. We love checklists and we love automation!</p><h3>Workflow &amp; Automation</h3><p>This is a big one, and it might not be something you can easily roll out — but if you consistently have regressions, bad deployments, or other general chaos in your deployments, it’s probably time you took a hard look at your systems and workflow.</p><p>We utilize a <a href="https://www.atlassian.com/git/tutorials/comparing-workflows/feature-branch-workflow">feature branch</a> style of development. By using feature branches we can push only what we truly intend to across to each environment, and have mandatory code reviews on pull requests at certain stages of the process. We have far more control, an audit trail, and generally speaking, more accountability from developers. We’ve also limited who can actually touch the servers and instead have an automated build process.</p><p>Now a days, many people are using some form of continuous integration to manage their deployments across multiple environments. If you aren’t, this is a great place to start. By automating you’ll reduce human error by scripting common or repeatable tasks and can add in additional checks or automated tests directly to a build. We use Jenkins and git webhooks on branches to automatically deploy code and run required scripts across environments. We’ve also been able to add an automatic roll-back system so that if a deployment truly takes down an environment, it will automatically roll-back to the last stable build.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*y0Uo8gwxMRo6OpVzyFllDA.png" /><figcaption>Example of automated rollback messages with Jenkins</figcaption></figure><h3>Checklists</h3><p>We’ve taken a page (or several) out of the <a href="http://atulgawande.com/book/the-checklist-manifesto/">Checklist Manifesto</a> by Atul Gawande and created a checklist for everything that we should have already been happening during a production deployment and just putting it in a simple checklist format. We’ve now required our project teams to provide a checklist to get past our final gate keeping to allow their code to move across environments. It has increased both our confidence and success in deployments, allowing us to push to production way more often than we previously were able. Pushing smaller and more frequently makes for simpler, smoother deployments.</p><p>The components of our checklist effectively just represent our workflow, communication, and planning. We have it broken into a few main sections with sub bullets under each. For instance:</p><p><strong>Has the work been completed</strong></p><p>You might be surprised to know that sometimes deployments used to get scheduled before the work was done. We really want to avoid this scenario. Deployments should really only be scheduled when the work is complete. If you’re trying to squish in three sprints worth of work into the last few nights because your deployment is already planned, you are definitely going to be introducing bugs and defects, regressions, and poorly built and tested features. Lacking a few features in an otherwise well-built system is typically better than producing a bunch of poor quality last-minute features.</p><p>This section of our checklist includes a basic review of our development workflow (eg. has the work been pushed to dev), code reviews, and any expected actions a developer needs to take prior to considering a feature done.</p><p><strong>Has the work been tested and approved</strong></p><p>Much like actually doing the work, we want to ensure the work has been tested. This again, should (hopefully) be an obvious step that is already happening prior to scheduling a deployment.</p><p>This section includes testing from both our internal QA team, release note generation, and approval from our clients for final sign-off.</p><p><strong>Are all aware of when the deployment needs to happen</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*VJds7maisJw5urCJGN5wpA.png" /><figcaption>Section of checklist for communication</figcaption></figure><p>Communication is key! I cannot stress it enough — make sure the team knows ahead of time. Even better, have the team work together to come up with a deployment date that works for everyone (including the client). People do have lives outside of the office (and hopefully you are encouraging that), so springing a deployment, even a minor one, can cause extra stress to the team.</p><p>Sometimes we do have strict deadlines and this can be tricky to manage — it might have to actually be at 9pm at night because that’s when the press release goes out. Again, the key here is communication early. If people have notice in advance they can plan their lives around it, and flex the time later.</p><p>This section includes coordinating with team and client, adding a calendar invite, and the classic deployment rule of “deployment date is NOT on a Friday (or holiday, or day before a long weekend)”.</p><p><strong>Post deployment</strong></p><p>We have a series of tasks that occur once a deployment is complete. We have some basic smoke testing, testing of new features, and of course informing the client that new features are ready and live (preferably with release notes and a list of known issues)!</p><h3>When a deployment fails</h3><p>Things can and still do go wrong on occasion. When a deployment fails we need to make sure that we take appropriate steps to control the situation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*iU1cq9s3Lxofj7SjPPiZqw.png" /><figcaption>Checklist for a failed deployment</figcaption></figure><p>First and foremost, we need to inform the client. As a project or account manager, you need to be the face to the client when things go wrong. It’s never a nice place to be when the sky is falling and you are always the scapegoat; but even so, when the team is heads-down debugging, try to limit the interruptions as much as possible. Set expectations with the client on a cadence that you will update them on, even if the message continues to be “still investigating”.</p><p>As a developer, the first thing to do is to stop the bleeding. Whether that is a hot-fix, a rollback, or some other quick solution, it’s typically best to reduce the impact to end users (and reduce client rage). Once a quick bandage is in place, it’s important to dig into the root-cause of what went wrong. We don’t want our work to be a series of duct-tape solutions, we want to ensure we are building quality products.</p><p>Typically we ask our team when a deployment fails to hold a retrospective. Was there anything we could have done differently? How did we react to the situation? Anything we can learn from failure is a good opportunity. We use that to either update our checklist, our testing, or add additional cards to our backlog.</p><p>All-in-all we can plan and automate to the best of our ability, but sometimes things just go wrong. Sometimes, we inevitably just are in for a long night. When that happens, all we can do is support the team through the situation and then figure out how to move forward from there.</p><p><em>This is an older post I’ve written and revamped, originally posted on @YellowPencilweb’s account.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc8080cb867b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How we migrated our Drupal 8 sites to use Composer (in 8 steps)]]></title>
            <link>https://medium.com/@kimbeaudin/how-we-migrated-our-drupal-8-sites-to-use-composer-in-8-steps-3b70b8087cd?source=rss-f7dc74f9c634------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b70b8087cd</guid>
            <category><![CDATA[composer]]></category>
            <category><![CDATA[drupal-development]]></category>
            <category><![CDATA[drupal-8]]></category>
            <category><![CDATA[drupal]]></category>
            <dc:creator><![CDATA[Kim Beaudin]]></dc:creator>
            <pubDate>Wed, 20 Jun 2018 20:56:45 GMT</pubDate>
            <atom:updated>2018-06-20T22:53:57.915Z</atom:updated>
            <content:encoded><![CDATA[<p>Composer is a bit of a Drupal buzzword these days, yet for you long-time PHP developers it’s old-hat. For most Drupalers, it’s a brand-new and foreign concept. We’ve fully embraced the challenge of this new landscape and a few weeks ago we’ve successfully made the jump to migrate our old existing Drupal 8 sites to being fully managed by composer (and have a new workflow for starting new Drupal projects).</p><p>This is our experience in getting there — it’s not an argument for why you should make the jump or what Composer is for, but merely how we (here at Yellow Pencil) accomplished it. I’m sure there are some better ways to do what we’ve done so feel free to add your own tips and tricks in comments, but this is what worked for us!</p><h4>Starting at the beginning</h4><p>In April of this year (2018),<a href="https://www.instagram.com/p/BhYAyFMgByd/?taken-by=yellowpencilweb"> myself and a few members</a> of our development team were lucky enough to attend<a href="https://events.drupal.org/nashville2018"> Drupalcon</a>. One of the many sessions I saw was<a href="https://www.youtube.com/watch?v=GlkvEn3MjTI"> Composer 101 by Mike Miles</a>. It was a informative session which helped validate my understanding of what it was all about and how to use it — highly recommend giving it a watch if Composer is totally new to you.</p><p>Since getting back from Drupalcon, myself and our Director of Managed Application Services, started talking about the future state of where we’d like to see our processes and workflows. One of the main ones was getting Drupal core out of our git repositories. Our repos had just about everything — core, contrib modules, patches, themes, etc. The main things we ensured were *not* in our repos were vendor files, uploaded files (eg. sites/default/files), and of course settings.php or any files containing passwords or keys.</p><p>So after<a href="https://www.drupal.org/docs/develop/using-composer"> researching</a> and<a href="https://www.lullabot.com/articles/drupal-8-composer-best-practices"> reading</a><a href="https://github.com/drupal-composer/drupal-project"> how to integrate composer</a>, we were ready to go. To keep our deployments and workflow consistent across projects we felt it would be best to migrate our existing (and live) projects to this new structure as opposed for just new projects going forward. We decided that this was a pretty big undertaking, and since it would affect both project in-progress and in-post-launch-support, it was hard to execute during the work day. We opted to have a volunteer weekend “hackathon”. Thankfully, we have an amazing team and several people volunteered and spent the entire day discovering and working through the process.</p><h4>The process</h4><ol><li>On your existing project, checkout the master branch and create a feature branch off of it.</li></ol><pre>&gt; git checkout master</pre><pre>&gt; git pull origin master</pre><pre>&gt; git checkout -b restructure</pre><p>This is simply so that once we move our .git folder it will be on a new branch to track alllllll of the changes that are made.</p><p>Navigate to where you keep your sites on your local machine. Eg.</p><pre>&gt; cd ~/Sites</pre><p><strong>2</strong>. We opted to use the<a href="https://github.com/drupal-composer"> drupal-composer</a>’s<a href="http://v/"> drupal-project</a> going forward (someone else did the heavy-lifting already — wahoo!).</p><p>So very simply run: **</p><pre>&gt; composer create-project drupal-composer/drupal-project:8.x-dev <strong>new-project </strong>--stability dev --no-interaction</pre><p>** If you run into memory errors, make sure that your composer version is &gt;= 1.4.2 and you are running PHP 7.</p><p>Where new-project is the name of the folder you want your project to live in. This will create the folder and the new structure that we are aiming to achieve.</p><p><strong>3.</strong> Edit the composer.json file in new-project and update the Drupal core version to the version of the site you want it to be (if you are up to date with the latest core you can just leave the default). Compare the old composer.json to the new-project composer.json and ensure all require’s from the old are in the new (if any).</p><p><strong>4. </strong>You’ll want to add all the modules on your old-project to the new one. To see a list of all the modules enabled (and not core) on your site you can run a drush command.</p><pre>&gt; drush pm-list --status=enabled --no-core</pre><p>This will generate a list that looks something like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/0*MKxVsU4ooXGzjI4w" /></figure><p>Which allows you to see what modules you have installed and their versions. From there (it’s a bit tedious) you can add each contrib module to composer. If you are up to date or don’t require a specific version you can leave that out.</p><pre>&gt; composer require drupal/modulename:version</pre><p>Eg. more explicitly (and yes, you can chain them in one command):</p><pre>&gt; composer require drupal/admin_toolbar:1.23 drupal/ctools:3.0</pre><p><strong>5. </strong>Now between your existing project (henceforth referred to as old-project) and new-project copy the sites/ and themes/ (we typically only have custom themes) folders from the old-project to the new web/ folder in the new-project. Additionally any custom modules you have from modules/custom to web/modules/custom (so on and so-forth with themes or libraries).</p><p>Additionally move the .git .gitattributes any automated testing tools config or other tools to the root of the new-project.</p><p><strong>6.</strong> Inside of new-project, update your composer.lock files and run composer install.</p><pre>&gt; rm composer.lock</pre><pre>&gt; composer install</pre><p><strong>7.</strong> In your new-project update git to remove the old files from the repo and add the new ones:</p><pre>&gt; git rm -r modules/ themes/ core/ profiles/ sites/ libraries/</pre><pre>&gt; git rm index.php update.php autoload.php robots.txt .csslintrc .editorconfig .eslintignore .eslintrc.json LICENSE.txt README.txt</pre><pre>&gt; git add web/ .gitignore composer.* drush/ scripts/ load.environment.php</pre><pre>&gt; git commit -m “restructuring to use composer”</pre><pre>&gt; git push origin restructure</pre><p><strong>8.</strong> Update your local Apache or MAMP settings (or however you run a local web server) to point to your new-project/web directory. Check your local to make sure all things are working!</p><h4>The end!</h4><p>At this point you have now restructured your Drupal project and can manage core, contrib modules, libraries, and patches all through Composer! This makes your pull requests cleaner (we don’t need to peer review community modules), and much easier to manage.</p><p>For a new project build you can simply follow steps 1 to 4 and use the drupal-project to quickly generate and build a basic Drupal site through Composer.</p><p>In the end, jumping to managing Drupal sites through Composer wasn’t nearly as daunting as it may have once seemed, so I hope this will inspire and hopefully help others in a similar boat. Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b70b8087cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>