<?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 Mateus Pereira on Medium]]></title>
        <description><![CDATA[Stories by Mateus Pereira on Medium]]></description>
        <link>https://medium.com/@mateusppereira?source=rss-5e3dcf8d94e6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kRJX2bVbem2z8Xkz1TgnUA.jpeg</url>
            <title>Stories by Mateus Pereira on Medium</title>
            <link>https://medium.com/@mateusppereira?source=rss-5e3dcf8d94e6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 00:34:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mateusppereira/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[Other skills that matter ]]></title>
            <link>https://mateusppereira.medium.com/other-skills-that-matter-789089e10dd1?source=rss-5e3dcf8d94e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/789089e10dd1</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[focus]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[management]]></category>
            <dc:creator><![CDATA[Mateus Pereira]]></dc:creator>
            <pubDate>Tue, 08 Aug 2023 11:01:51 GMT</pubDate>
            <atom:updated>2023-08-08T11:04:18.157Z</atom:updated>
            <content:encoded><![CDATA[<p>The best engineers I worked with did know a lot of technical stuff but I’m sure they didn’t get where they are only because of it.</p><p>There are a set skills that we tend to underestimate on the early stage of our careers and we keep neglecting them until we notice that what took us here won’t take us to the next levels.</p><p>At this point you may think that I’m talking about non-technical skills, right?</p><p>Right 😅 And believe me, if you’re not working on another planet, you will need a bunch of these kind of skills to succeed (even more) in your career. It’s not a matter of choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x_XjhJcRYAD8JuCB" /><figcaption>Photo by Etienne Girardet on Unsplash</figcaption></figure><p>In this article I’m going to talk about two things that I’ve invested a couple time and effort to improve myself in the last years.</p><p><em>Ps: It doesn’t mean that I’m a role model on these, it’s just a couple learnings that may help you on getting more </em><strong><em>FOCUSED</em></strong><em> and </em><strong><em>PRODUCTIVE</em></strong><em>.</em></p><h3>FOCUS</h3><p>There’s nothing worse than those days where you have no clue on what you need to do when the day starts and then you finish the day still trying to understand what happened during those ~9 hours that you were “working”.</p><p>This usually means you couldn&#39;t focus on nothing during the day and these couple things may help you on having focus.</p><h4><strong>Organization:</strong></h4><p>There&#39;s no focus without organization. Have an <strong>agenda</strong> and also <strong>your mind </strong>in place. Don&#39;t blame the company, your manager, the customer. It&#39;s on you, organize your demands and have clear what you need to do before starting your day.</p><h4><strong>Prioritization:</strong></h4><p>Have clear not only what you need, but <strong>WHY. </strong>In most cases this will help you on prioritizing things. If it&#39;s not clear, ask help for your pairs or leader so you understand it.</p><h4><strong>Shut up the noise:</strong></h4><p>We are constantly consumed by a lot of noise that don&#39;t help us on anything. <strong>Silence them</strong>. Mute (and leave) channels. Block notifications. Focus is an exercise, practice it and stay tuned to all those things that makes you lose focus on your objectives.</p><h3><strong>PRODUCTIVITY</strong></h3><p>Productivity is about delivering more with less effort or within less time. We all want this and, as you advance in your career, this is something highly expected.</p><p><em>Ps: delivering more doesn&#39;t mean </em><strong><em>more</em></strong><em> </em><strong><em>work</em></strong><em>, most of the times this is not where the actual value is. Always seek for </em><strong><em>high</em></strong><em> </em><strong><em>quality</em></strong><em> deliveries.</em></p><h4><strong>Think before starting:</strong></h4><p>There&#39;s nothing worse than advancing on the wrong direction. So before starting any kind of job have clear in your mind how things will look when you finish. <strong>Ask relevant questions</strong> and, only after this, start working on it.</p><h4><strong>Use the correct tools:</strong></h4><p>This is where a lot of us suffer the most. Don&#39;t accept suboptimal tooling, seek for the best tools. Whenever there&#39;s a tool missing, consider building it ✨</p><h4><strong>Document</strong>:</h4><p>Write your doubts, things you&#39;ve discovered, the reasoning on a design decision, etc. This is not about a complex documentation. Simple notes to yourself forces you <strong>think twice</strong> about what you are doing/thinking, this habit will help on you getting to better decisions and also make your communication better.</p><h4><strong>Ask for help:</strong></h4><p>Senior professionals knows when request help. Don’t get carried away by the ego.</p><h4><strong>Self-Review:</strong></h4><p>Be the first one to <strong>reason about your decisions</strong>. Anticipate the questions you&#39;ll be asked.</p><h3>Conclusion</h3><p>There are a set of practices that we do without noticing that makes us more focused/productive. Not noticing them is not necessarily a good thing since it&#39;s hard to replicate something you don&#39;t actually know you are doing. That&#39;s why I wrote this article, it’s mostly for myself but i really hope it can help others too.</p><p>Focus and productivity are very connected and applying these techniques to your daily work will certainly boost your capacity of delivering value to the environment where you are. Let me know if it works for you!</p><p>See you 👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=789089e10dd1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Start monitoring your service today ‍]]></title>
            <link>https://mateusppereira.medium.com/start-monitoring-your-service-today-fa37e5d0f1e9?source=rss-5e3dcf8d94e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa37e5d0f1e9</guid>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[softare-development]]></category>
            <dc:creator><![CDATA[Mateus Pereira]]></dc:creator>
            <pubDate>Thu, 23 Feb 2023 13:49:20 GMT</pubDate>
            <atom:updated>2023-02-23T13:49:20.209Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are a software engineer in a tech company you probably hear a lot about observability and monitoring, but most of us don’t know how to answer the most basic question like w<em>hat do we need to monitor? How do we start monitoring our system?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0_f2JVfzgChxr-VU.png" /></figure><h3>But first… Definition of observability/monitoring</h3><blockquote><em>An </em><strong><em>observable</em></strong><em> software system provides the ability to understand any issue that arises. Conventionally, the three pillars of observability data are metrics, logs and traces.<br></em><a href="https://www.dynatrace.com/monitoring/platform/observability">https://www.dynatrace.com/monitoring/platform/observability</a></blockquote><blockquote><strong><em>Monitoring</em></strong><em> is tooling or a technical solution that allows teams to watch and understand the state of their systems. Monitoring is based on gathering predefined sets of metrics or logs.</em></blockquote><blockquote><a href="https://cloud.google.com/architecture/devops/devops-measurement-monitoring-and-observability">https://cloud.google.com/architecture/devops/devops-measurement-monitoring-and-observability</a></blockquote><p>Ok… from this we understand that what we want is to add to our systems <strong>the capability of exposing data about itself</strong> in a way ourselves and other engineers can <strong>understand what is happening in the system</strong> without knowing its internals.</p><h3>And why?</h3><p>Now that we know what monitoring is we need to understand why we want this capability.</p><p>To convince you I&#39;ll list down some of the benefits I see:</p><ul><li>Increase productivity while dealing with bugs</li><li>Understand service perfomance behavior over time</li><li>Find places for performance improvements (bottlenecks)</li><li>Prevent wasting resources</li><li>Help defining SLA (<a href="https://www.techtarget.com/searchitchannel/definition/service-level-agreement">Service Level Agreement</a>) and monitor them</li><li>Understand service throughput capacity</li><li>Define alarms</li></ul><p>There might be a couple of other benefits that I didn&#39;t list here but, in order to achieve all this, we need to understand what we should monitor and how to start.</p><h3>What we should monitor?</h3><p>It depends ✨</p><p>Each service has its own capabilities and you need to understand them before creating any metric. But I won&#39;t let you withou any concrete examples 😅</p><p>There are some metrics that will benefit almost any kind of service that you build and here is a list ofsome of them.</p><h4>HTTP communication</h4><p>Considering your service exposes HTTP endpoints and interact with other services via HTTP, you should measure:</p><ul><li>Requests <strong>received</strong>:<br>Count and latency by <em>method, path and status-code</em></li><li>Requests <strong>sent:<br></strong>Count and latency by <em>method, path and status-code</em></li></ul><h4>Resources utilization</h4><p>It’s always interesting to understand how much resources your service needs and its behavior over time. This helps you to identify, for example, memory leaks and unused resources.</p><ul><li>Memory consumption</li><li>CPU consumption</li><li>CPU throttling</li></ul><h4>Database utilization</h4><p>One of the most common system bottlenecks is the Database. There might exist bad queries, indexes missing, pool size limits and many other issues. This will vary according to the DB you use but some simple and valuables metrics are:</p><ul><li>Query execution time (with query identification)</li><li>Pool size monitoring</li></ul><h4>Async process</h4><p>Considering your services makes use of something like a message broker (kafka, rabbitMQ) you could measure:</p><ul><li>Count of messages not processed (lag) <em>by topic</em></li><li>Count of errors while processing messages (deadletters) <em>by topic</em></li><li>Messages consumption throughput <em>by topic</em></li></ul><h4>Exceptions</h4><p>You should also enable your service to provide qualitative data about exceptions and, for that, you can use logs (<a href="https://en.wikipedia.org/wiki/Logging_(computing)">Logging definition</a>). Some of most important logs you should have are:</p><ul><li>Error details on 5xx/4xx HTTP requests (received or sent)</li><li>Error details when processing a message</li></ul><h3>And how do we expose this data?</h3><p>Now that you already have an idea of what you could expose you need to understand how to instrument your application and how to visualize all this data.</p><h4>Instrumenting</h4><p><strong>Quantitative: </strong>the most common way of exposing counter and histogram like metrics is using <a href="https://prometheus.io/docs/introduction/overview/">Prometheus</a>.</p><p><em>Using Prometheus is not that hard but it’s a whole topic for itself and I’ll leave it’s details for future articles</em></p><p><strong>Qualitative: </strong>logs are simple and easy. To start you can just <strong>define a structure</strong> for your Logs and print it to STDOUT.</p><p><em>Things can get incredibly complicated here but we’ll also cover this is another article</em></p><p><strong><em>Ps:</em></strong><em> Instrument you systems in a way it can be easily replicated to other services. Don’t let it became an overhead while developing new features.</em></p><h4>Visualization</h4><p>To create dashboards, alarms and make efficient use of all this data you could use something like Grafana.</p><p><em>Also a whole topic itself, not in this article scope. Sorry.</em></p><h3>Conclusion</h3><p>Give monitoring a try. It will certainly increase your team <strong>productivity</strong>, <strong>confidence</strong> on shipping new features and service <strong>quality</strong>, <strong>efficiency</strong> and <strong>performance</strong>.</p><h4>Appendix</h4><p>Sorry for not going deeper in details about each topic but I don’t want to overfeed you with a bunch of details of implementation here. This is not the goal of this article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa37e5d0f1e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Writing Pull Requests ❤️]]></title>
            <link>https://mateusppereira.medium.com/writing-pull-requests-%EF%B8%8F-254f74500b4?source=rss-5e3dcf8d94e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/254f74500b4</guid>
            <category><![CDATA[code-review]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Mateus Pereira]]></dc:creator>
            <pubDate>Thu, 07 Jul 2022 15:11:08 GMT</pubDate>
            <atom:updated>2022-07-07T15:11:08.238Z</atom:updated>
            <content:encoded><![CDATA[<p>Maybe you think that opening a Pull Request is just about clicking buttons (or writing commands 😉). Although you are right, I’m here to convince you that there’s a lot more you can do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*yGKD8yzKVsHvr7tP135tPw.jpeg" /></figure><p>Probably you’ve already gone through that situation where you Pull Request took weeks to be approved and for every single review there was a bunch of discussions to resolve. At that time you may have gotten disappointed (with yourself or with the reviewers), impatient, unconfident, etc and it’s normal. But have you thought about what <strong>YOU</strong> could have done to prevent all this?</p><p>That’s what I’ll talk about today… How <strong>YOU</strong> can write Pull Requests that tends to be approved faster.</p><h3>7 things you should do before opening Pull Requests</h3><h4><strong>Give context. Brief and detailed.</strong></h4><p>Those who will review your changes may not be aware of your goal with them.</p><p>Having a nice <a href="https://docs.github.com/en/enterprise-server@3.3/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository"><strong>Pull Request Template</strong></a> (and making sure everyone is filling it) is the best way of give a brief context of your changes.</p><p>Besides this, maybe your reviewer want a more detailed explanation. For that you can have a <strong>section on you PR</strong> to link documents with <strong>further details</strong>. Here you can have link to documentation, task description (Jira, Trello, ..), <a href="https://en.wikipedia.org/wiki/Request_for_Comments">RFC</a>, <a href="https://adr.github.io/">ADR</a> and many others.</p><p><strong>Don&#39;t mix brief and detailed infos</strong>. It increase the chance of reviewer read neither of them.</p><h4><strong>Self review your changes.</strong></h4><p>Somewhat obvious.</p><p>This doesn&#39;t need a lot of explanations, right? If you wan&#39;t to learn more about how do better code reviews please refer to this <a href="https://mateusppereira.medium.com/8-coisas-para-talvez-melhorar-o-code-review-do-seu-time-4e5e89b89844">other article [pt-BR]</a> I wrote.</p><h4><strong>Comment your solution.</strong></h4><p>Be the first to comment you Pull Request.</p><p><em>— &quot;I&#39;ve tried X approach but that didn&#39;t work because of Y and Z&quot;</em><br> — <em>&quot;This way we will have a more consistent approach with the solution we implemented on the &lt;other-service&gt;&quot;<br> — &quot;What do you think about doing X this way? Although this is more verbose imo this is much more clear than doing Y way&quot;<br> — &quot;Implemented this based on solution proposed on this article, wdyt?&quot;<br> — &quot;Not so confident that this is the best way to save this data. Is there any other way to do this?&quot;</em></p><h4>Share evidences.</h4><p>Most of the times the reviewer won&#39;t run you code on their local environment (and that doesn&#39;t mean their are doing a bad job).</p><p>You can help them attaching screenshots, logs with the data being sent to another endpoint, curl commands to staging environment, etc… everything that makes you felt confident when submitting that PR can (and should) be shared with the reviewers.</p><h4><strong>Link related job.</strong></h4><p>Your PR may depend on another PR, maybe it&#39;s blocking another PR, maybe you are doing this because of changes that happens on another service, maybe it&#39;s an infrastructure change request by Cloud Team, etc.</p><p>Give your reviewers the chance to know everything you know <em>(not always they will read everything, but if they want you&#39;ve shared)</em></p><h4><strong>Make your tests the documentation</strong></h4><p>Write tests that are <strong>nice to read</strong>.</p><p>It&#39;s not easy but more than write tests that cover the changes you made, write then in a way that they describe your feature behavior.</p><p><em>(Believe me, those strings that we often ignore and have no clear pattern are important for those who are reading your tests)</em></p><h4><strong>Keep the codebase consistent</strong></h4><p>You may want to do something slightly better but different from the rest of codebase is doing. Maybe you shouldn&#39;t.</p><p><strong>Prefer consistency</strong> over this punctual refactors.</p><p>Go further, open another PR considering all places that could be refactored with your suggested change.</p><h3>Conclusion</h3><p>It&#39;s your responsibility make your code changes available on production as soon as possible. You can be tremendous productive writing code, <strong>if this code take weeks to go to production you are still inefficient</strong>.</p><p><strong>Take some time writing your Pull Requests</strong>. Do more than I suggested.</p><p>You will see the results.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=254f74500b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[8 things you should care about when creating brand new software applications]]></title>
            <link>https://mateusppereira.medium.com/8-things-you-should-care-about-when-creating-brand-new-software-applications-4e61940af1bc?source=rss-5e3dcf8d94e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e61940af1bc</guid>
            <category><![CDATA[software-maintenance]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[best-practices]]></category>
            <dc:creator><![CDATA[Mateus Pereira]]></dc:creator>
            <pubDate>Wed, 06 Apr 2022 18:02:46 GMT</pubDate>
            <atom:updated>2022-04-06T18:06:36.137Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>8 things you should care about when creating brand new applications</strong></h3><p>Writing appplications form scratch isn’t easy. It’s the moment that you will take a lot of decision that may have a huge impact in the future. The point is:</p><blockquote>The choices<strong> YOU </strong>made<strong> </strong>will benefit or prejudice the future developers? the customers? the company?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/0*bwvSoVIybYWfgY0D.jpg" /></figure><p>In order to help those who are facing this kind of situation (and even myself) I decided to wrote down 8 things that I consider essential when going throuth a situation like this.</p><h3><strong>Choose the right stack</strong></h3><h4><strong>Are you working for a company?</strong></h4><p><strong>If the answer is YES, </strong>on 95% of the cases the best choice is the language that the company was built upon to. Tooling, guidelines, commom libraries, experienced developers and other things already exists and others teams, for sure, will have good and bad experiences to share lessons learned with you. <strong>Cannonicity has much value.</strong></p><p>But ok… I undertand that there are some cases that you will choose a language out of the company stack. Data pipelines? python, ok. Tech stack outdated? Delphi? COBOL? Lisp? ok, discuss with other engineers and propose new technologies.</p><p><strong>If the answer is NO, </strong>understand you app main goals and then <strong>study</strong> and choose the language you understand is the best. In the worst senario you will have learnt another way to do thigs you were used to. Take this time to <strong>learn</strong>.</p><h3><strong>Use diagrams to share you ideas about architeture and design decisions</strong></h3><p>Document the architeture and design decision that you made with a brief reason why.</p><p>And beleive me, <strong>drawing diagrams make your ideas much more clear </strong>(even for yourself).</p><h3><strong>Dont’t couple your domain logics to any 3rd party solution</strong></h3><p>Sending emails? writing to database? publishing messages? making payments?</p><p>All this is about writing and exchanging data, <strong>your domain does’t need to know about 3rd part implementation details</strong>. Interfaces and dependency injection may help you.</p><h3><strong>Write tests since day one</strong></h3><p>No excuses for not writing tests.</p><p><strong>Make it easy</strong> for anyone <strong>to implement tests</strong>. (unit, integration or whatever kind of test you think is useful)</p><h3><strong>Use linter since day one</strong></h3><p>This will prevent a huge piece of work for future maintainers.</p><p>Set guidelines and <strong>assure they are beign followed</strong> since the begginig. Encourage your team to keep improving the guidelines you have defined.</p><h3><strong>Don’t document every single detail</strong></h3><p>This is the moment where <strong>things are changing a lot</strong> as you and your team understand more about the business and the code you are writing.</p><p>This doesn’t mean you should document nothing, for sure you should. But stay tuned on the level of details this documents will have to prevent stale documents.</p><p>Schedule meetings from time to time to discuss about the existing documents. And , please, make sure to <strong>get rid of stale documents</strong>.</p><h3><strong>Stay very close to domain specialists</strong></h3><p>It’s very important that you and those who will benefit from your app stay on the same page. You must <strong>speak the same language</strong> (<a href="https://martinfowler.com/bliki/UbiquitousLanguage.html">UbiquitousLanguage</a>)</p><p><em>Have you ever read DDD? If not, maybe now is good moment.</em></p><h3><strong>Set a clear development flow</strong></h3><p>Make it easy to setup local evironment to build and run your application, define pull request template with your team, configure CI/CD pipelines, configure staging environment for testing purposes (staging) and <strong>pay attention to the things that prevent your team to be high productive</strong>.</p><h3>Keep dependencies up to date since day one (bonus)</h3><p>Use some tool like <a href="https://github.com/dependabot/dependabot-core#whats-in-this-repo">dependabot</a> to let your team warned about outdated dependencies. Please, don&#39;t let this become an incident or an urgency. This should be a <strong>daily basis activity</strong>.</p><h3>Conclusion</h3><p>A lot of people knows what consists in writing high quality software, but the obvious must be said (and documented) too.</p><p><strong>The <em>&quot;initial commit&quot;</em> is the perfect moment to do this.</strong></p><p>For you… <br>What&#39;s is the main point to care when writing applications from scratch?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e61940af1bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[8 things to keep in mind for a fresh leader]]></title>
            <link>https://mateusppereira.medium.com/8-things-to-keep-in-mind-for-a-fresh-leader-367cbc3ebc36?source=rss-5e3dcf8d94e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/367cbc3ebc36</guid>
            <category><![CDATA[management]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Mateus Pereira]]></dc:creator>
            <pubDate>Wed, 26 Jan 2022 19:34:15 GMT</pubDate>
            <atom:updated>2022-01-27T12:50:44.655Z</atom:updated>
            <content:encoded><![CDATA[<p><em>When I become a manager I was a bit scared about what I need to do and what others would expect from me.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*_K_piGeS9KtlDtT_.jpg" /></figure><p>But at the same time I was very confident on the kind of leader I wanted to be and I would never accept turn my back on this. Today I see that this was one of the best decisions I make. So, in order to never forget these things I consider essential, I decided to write this in order to help me on future and maybe other <strong>fresh leaders</strong></p><h3>Care about your team</h3><p>This is the must have. Look for each person of your team and make the exercise of thinking where <strong>YOU can/should improve</strong> in order to help this person grow on their career. Understand the moment of each one</p><h3>Care about company goals</h3><p>At the end of the day everyone want to be part of a winning team. We want to write a <strong>history of success</strong>. Always bring for your team the company goals and try to make it close to the tasks that they’re doing. Sometimes it’s not easy but this creates the perfect moment to make an exercise with your team to learn how to prioritise the tasks that will have the biggest impact on the company goals</p><h3>Know how to do your team job</h3><p>Be close to your <strong>team daily basis</strong>. Do code reviews, pair programmings, tech talks and write code (whenever you can). I have no doubt that this is one of the best way to teach them and, besides that, this will create an atmosphere of confidence between you and the team</p><h3>Hire Juniors/Interns</h3><p>Trust me, you won’t regret on this<strong>.</strong> Find the junior that you need, <strong>hire and mentor</strong> him. Be the leader that you need when you were on his position (be very careful in your selection)</p><h3>Seek for opportunities (even when it seems there’s not one)</h3><p>Always craft for nice opportunities. <strong>For your squad, for you and for each one on you team</strong>. Bad and unexpected things will happen… you will lost a senior developer, some incident on production environments, a co-worker will be fired, whatever. You can cry or you can try to find opportunities on this to grow</p><p><em>always be honest and, please, never try to hide the bad aspect of what happened</em></p><h3>Be fare. Be transparent</h3><p>You ~should not be~ are not working with kids. The one’s that are working with you are smart adults, don’t try to hide things from them. <strong>The more transparent you are the more confidence you will have</strong></p><h3>Have your team confidence</h3><p>This is a consequence of some of the other things above… if you care about him (personal and professional), you are fare, transparent, put your effort to be part of his growth and support their daily basis activities you will have his confidence, and even more, you will become <strong>friends</strong> (at least work friends)</p><h3>Give “bad” feedbacks ~also~</h3><p>This doesn’t need too much description. Be honest, talk what you feel and listen. Your lead will be very grateful. He <strong>MUST know where he needs to improve</strong></p><h3>Conclusion</h3><p>Never stop studying and care about you leads and company growth.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=367cbc3ebc36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[8 coisas para talvez melhorar o code review do seu time]]></title>
            <link>https://mateusppereira.medium.com/8-coisas-para-talvez-melhorar-o-code-review-do-seu-time-4e5e89b89844?source=rss-5e3dcf8d94e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e5e89b89844</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[code-review]]></category>
            <dc:creator><![CDATA[Mateus Pereira]]></dc:creator>
            <pubDate>Wed, 26 Jan 2022 12:44:05 GMT</pubDate>
            <atom:updated>2022-01-26T12:44:05.537Z</atom:updated>
            <content:encoded><![CDATA[<p>Sou apaixonado por code review.</p><p>No mundo da engenharia de software temos inúmeras cerimônias* que visam tornar o time mais unido, mais capacitado, mais ágil, mais coeso, mais eficiente, mais feliz, etc. Em geral cada uma das cerimônias visam atacar 1 ou 2 desses pontos. Mas tem uma delas que ataca tudo isso e ela chama <strong>Code Review</strong> ❤️</p><p>Porém, fazer code review por uma mera “burocracia” pode até tornar as coisas piores e uma forma de garantir que isso não vai acontecer é <strong>CONVERSAR SOBRE CODE REVIEW</strong>, e é isso que esse artigo quer provocar. Nada do que estiver escrito aqui é lei, regra, o único certo ou verdade absoluta, é só o que funcionou para o nosso time e talvez funcione pra você.</p><h3>Importância</h3><blockquote><em>O code review é o momento onde garantimos que estamos escrevendo um código que </em><strong><em>atende a necessidade do cliente</em></strong><em> e que está de acordo com os </em><strong><em>padrões de design e qualidade</em></strong><em> definidos pelo time.</em></blockquote><p>O código, antes de tudo, deve atender a necessidade do cliente (aqui entenda-se por qualquer cliente… outro dev, outro time da empresa, o cliente final, etc). Se isso não for verdade muito provavelmente não deveríamos ter escrito esse monte de instruções pra máquina.</p><p>Depois disso, é hora de ver se o código que foi escrito cumpre o que foi combinado pelo time em relação ao código escrito em si, mais na frente vamos entrar em mais detalhes.</p><p><em>Se code review fosse só pra achar erro no código de outro programador não precisaríamos dele.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*bhbX5GIJ0TIrVG0ev-yy0A.png" /></figure><h3>Responsáveis</h3><p>Os reviewers do PR são tão responsáveis pelo código que está entrando quanto o autor do PR. Até aqui nenhuma novidade, né? masss…</p><p><strong>Não devia ser necessário ficar implorando review.</strong> O autor não é responsável por ficar te cobrando de fazer review do PR dele. Se sua foto apareceu no Pull Request, se organize, pare e faça.</p><h3>As 8 coisas</h3><h4><strong>O código funciona?</strong></h4><p>Nada é mais importante de ter a certeza que o código funciona. Por isso antes de se preocupar com nome de variável, clean code, tamanho do botão, garanta que o que está escrito funciona. Pra isso veja os <strong>testes automatizados</strong>, <strong>ambiente de homologação</strong> e o que mais for preciso pra garantir que funciona. Fique atento aos <strong>edge cases</strong>. Happy path não é feature funcionando, ta?</p><h4><strong>Entenda o que está sendo resolvido</strong></h4><p>Sem entender o problema que está sendo resolvido, dificilmente você vai entender o design da solução criada e muito menos encontrar possíveis problemas. Caso você não conheça o que está sendo resolvido converse com o autor antes de fazer o review</p><h4><strong>Comece pelas alterações “principais”</strong></h4><p>A partir desse ponto você provavelmente vai chegar em todos outros pontos alterados no PR e será mais fácil de entender o <strong>design da solução</strong></p><h4><strong>Preste atenção no design da solução</strong></h4><p>Veja as classes, módulos, arquivos e métodos que foram criados e <strong>como eles interagem entre si</strong>. Os arquivos foram adicionados no lugar correto? Os métodos criados estão na classe correta?</p><h4><strong>Busque melhoria ao invés de perfeição</strong></h4><p>O código que está entrando melhora o codebase ou piora? Caso ele melhore, é um forte indicativo que o PR está ok para ir para produção. Isso <strong>não quer dizer que você não deve comentar sugestões de melhorias</strong>, elas são sempre bem vindas, mas em alguns casos não devem travar o valor entregue no PR</p><h4><strong>Fatos e dados ao invés de opiniões e preferências pessoais</strong></h4><p>Caso alguma sugestão esteja conflitando entre o autor e o PR é indicado buscar artigos, referências e/ou dados que comprovem uma solução melhor que a outra. Caso nenhuma das 2 se prove melhor, <strong>prevalece a solução do autor</strong></p><h4><strong>Recorra ao autor e outros devs sempre que necessário</strong></h4><p>Está levando muito tempo? Está mandando vários “wtf” na revisão da solução? Chame o autor do PR (ou outro dev) para revisar junto com você e <strong>aproveite o momento</strong> pra aprender sobre o conteúdo</p><h4><strong>Compartilhe conhecimento</strong></h4><p>Por favor, <strong>ensine!</strong> Compartilhe materiais que justifiquem o que você está falando ou que comprovem que o que foi feito está certo. É o momento perfeito pra você ajudar o time a crescer (falo isso por experiência própria, aprendi muitooo com 100 comentários no meu PR kkk)</p><h4><strong>Elogie ❤️</strong></h4><p>Viu algo que resolve algum problema antigo? Alguma solução elegante para um problema complexo? Algum edge case safado coberto nos testes? Manda um ❤️ 👏</p><h3>Como saber se o code review do meu time ta bom?</h3><ol><li>Tem bug indo pra produção? Quanto?</li><li>Quanto tempo demora pra um PR ir para produção?</li><li>O time está satisfeito com a qualidade do codebase? (<a href="https://engineering.atspotify.com/2014/09/16/squad-health-check-model/">squad health check</a> pode ajudar aqui)</li><li>Tem features que só um dev sabe mexer?</li></ol><h3>Conclusão</h3><p>Use o momento do code review pra criar um laço de companheirismo com seu time, <strong>deixe o ego de lado e ajude o time a crescer.</strong></p><p>Ah… o autor do PR pode ajudar na eficiência desse processo também, ta? Mas outro dia falo sobre isso.</p><h3>Bônus: o GitHub pode ajudar</h3><p>Se voce estiver dentro de uma organização (e time) no github essas coisas podem ajudar</p><h3>Code review assignment</h3><p>O GitHub pode marcar os reviewers do PR pra você (e ainda da pra escolher até o algoritimo)</p><p><a href="https://github.com/orgs/"><em>https://github.com/orgs/</em></a><em>&lt;org&gt;/teams/&lt;seu-time&gt;/edit/review_assignment</em></p><h3>PRs do time</h3><p>Vocês usam slack? Ele também pode ficar mandando no canal do seu time todos PRs e quem são os responsáveis (essa exposição funciona, acredite kkk)</p><p><a href="https://github.com/orgs/"><em>https://github.com/orgs/</em></a><em>&lt;org&gt;/teams/&lt;seu-time&gt;/settings/reminders</em></p><ul><li><em>aqui entenda-se por técnicas, processos ou qualquer outro nome que voce queira dar pros costumes que temos em times de engenharia</em></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e5e89b89844" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>