<?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 Danilo Assis on Medium]]></title>
        <description><![CDATA[Stories by Danilo Assis on Medium]]></description>
        <link>https://medium.com/@daniloab?source=rss-45e9f0b9dde------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*XwnbUM_1r_Ehyt9UV3JZoA.png</url>
            <title>Stories by Danilo Assis on Medium</title>
            <link>https://medium.com/@daniloab?source=rss-45e9f0b9dde------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:47:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@daniloab/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[7 Maneiras de Evoluir Como Líder Para Sua Equipe]]></title>
            <link>https://daniloab.medium.com/7-maneiras-de-evoluir-como-l%C3%ADder-para-sua-equipe-63b5c5d32108?source=rss-45e9f0b9dde------2</link>
            <guid isPermaLink="false">https://medium.com/p/63b5c5d32108</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[it]]></category>
            <category><![CDATA[management]]></category>
            <category><![CDATA[manager]]></category>
            <dc:creator><![CDATA[Danilo Assis]]></dc:creator>
            <pubDate>Fri, 31 Mar 2023 13:14:11 GMT</pubDate>
            <atom:updated>2023-03-31T17:33:45.924Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WbyV1PlzhqoB_Tx90JQjug.jpeg" /></figure><p>Como líder, é importante evoluir e desenvolver constantemente suas habilidades para melhor servir sua equipe. Aqui estão sete dicas para começar:</p><h3>1. Busque Feedback</h3><p>Uma das melhores maneiras de melhorar como líder é buscar feedback ativamente de membros da equipe, superiores e colegas. Esteja aberto a críticas construtivas e use-as para identificar áreas de melhoria.</p><p>Pergunte a seus membros da equipe o que eles pensam sobre seu estilo de liderança e como você pode apoiá-los melhor. Busque feedback de seus superiores sobre como você pode melhorar seu desempenho e peça conselhos a seus colegas sobre como eles desenvolveram suas próprias habilidades de liderança.</p><h3>2. Desenvolva Autoconsciência</h3><p>Para ser um líder eficaz, é importante ter uma compreensão clara de suas próprias forças, fraquezas e pontos cegos. Isso ajudará você a identificar áreas de melhoria e desenvolver um plano para abordá-las.</p><p>Tome um tempo para refletir sobre seu estilo de liderança e pense em como você pode aproveitar suas forças para melhor servir sua equipe. Identifique áreas em que você precisa melhorar e crie um plano para abordá-las. Isso pode incluir buscar treinamento adicional ou mentoria, ou simplesmente ser mais consciente de seu comportamento em determinadas situações.</p><h3>3. Lidere Pelo Exemplo</h3><p>Como líder, é importante modelar o comportamento que você espera de sua equipe. Se você quer que sua equipe trabalhe duro, mostre que você está disposto a se esforçar também.</p><p>Seja um modelo para sua equipe demonstrando uma forte ética de trabalho, atitude positiva e compromisso com a excelência. Celebre os sucessos de sua equipe e assuma a responsabilidade por seus erros. Isso ajudará a criar uma cultura de responsabilidade e inspirar sua equipe a fazer seu melhor trabalho.</p><h3>4. Invista em Sua Equipe</h3><p>Para ser um líder eficaz, você precisa investir em sua equipe. Isso significa fornecer a eles o treinamento e os recursos de que precisam para ter sucesso.</p><p>Identifique as habilidades e conhecimentos que sua equipe precisa desenvolver e forneça as ferramentas e o suporte de que precisam para melhorar. Isso pode incluir sessões de treinamento, oportunidades de mentoria ou acesso a ferramentas ou software especializados. Ao investir em sua equipe, você criará uma cultura de aprendizado e desenvolvimento contínuo.</p><h3>5. Comunique-se de Maneira Eficaz</h3><p>A comunicação eficaz é fundamental para construir uma equipe forte. Mantenha sua equipe informada sobre o que está acontecendo e seja transparente sobre seu processo de tomada de decisão. Incentive a comunicação aberta e ouça ativamente o feedback de seus membros da equipe.</p><p>Comunique-se de maneira clara e eficaz e certifique-se de que sua equipe entenda suas expectativas. Esteja aberto ao feedback e faça ajustes conforme necessário. Ao fomentar uma cultura de comunicação aberta, você construirá confiança e criará um ambiente de trabalho mais colaborativo.</p><h3>6. Abrace a Diversidade</h3><p>Reconhecer e apreciar as perspectivas e experiências únicas dos membros de sua equipe é a chave para construir uma equipe de sucesso. Abrace a diversidade e crie uma cultura de inclusão.</p><p>Esteja ciente de seus próprios preconceitos e trabalhe para superá-los. Incentive os membros de sua equipe a compartilhar suas perspectivas e ideias e crie oportunidades para que diversas vozes sejam ouvidas. Ao abraçar a diversidade, você criará uma equipe mais criativa e inovadora.</p><h3>7. Aprenda e melhore continuamente</h3><p>Para ser um líder eficaz, você precisa aprender e melhorar continuamente. Participe de sessões de treinamento, leia livros sobre liderança e procure oportunidades de orientação.</p><p>Esteja disposto a experimentar coisas novas e adaptar seu estilo de liderança conforme necessário. Reflita sobre seus sucessos e fracassos e use essas experiências para informar suas ações futuras. Ao aprender e melhorar continuamente, você se tornará um líder mais eficaz e criará uma equipe mais bem-sucedida.</p><p>Concluindo, seguindo essas dicas, você pode evoluir como líder e evoluir sua equipe consigo mesmo.</p><p>Sigam-me no <a href="https://www.twitter.com/daniloab_">Twitter</a></p><p>Se gosta e quer apoiar o meu trabalho <a href="https://www.patreon.com/daniloab">seja meu patreon</a></p><p>Veja mais em <a href="https://daniloassis.dev/">daniloassis.dev</a></p><p>Foto de <a href="https://unsplash.com/@brett_jordan?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Brett Jordan</a> na <a href="https://unsplash.com/pt-br/fotografias/w7sIj-M5Xyc?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63b5c5d32108" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Como Criar um Bot do Discord para Buscar Todas as Issues de um Repositório do GitHub]]></title>
            <link>https://daniloab.medium.com/como-criar-um-bot-do-discord-para-buscar-todas-as-issues-de-um-reposit%C3%B3rio-do-github-5601e7374995?source=rss-45e9f0b9dde------2</link>
            <guid isPermaLink="false">https://medium.com/p/5601e7374995</guid>
            <category><![CDATA[discord]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Danilo Assis]]></dc:creator>
            <pubDate>Wed, 29 Mar 2023 12:07:51 GMT</pubDate>
            <atom:updated>2023-03-29T12:07:51.267Z</atom:updated>
            <content:encoded><![CDATA[<p>O Discord é uma plataforma popular para comunicação entre equipes e comunidades e também fornece APIs para construir chatbots que podem automatizar várias tarefas. Neste tutorial, criaremos um bot do Discord usando Node.js que pode recuperar todas as issues de um repositório do GitHub usando a lib Octokit REST.</p><h3>Pré-requisitos</h3><p>Para seguir este tutorial, você deve ter o seguinte:</p><ul><li>Uma conta no Discord e um servidor do Discord onde você tenha permissão para criar um bot e adicioná-lo ao servidor.</li><li>Uma conta no GitHub e um token de acesso pessoal que tenha permissões para acessar o repositório do qual você deseja buscar problemas.</li><li>Node.js e npm instalados em sua máquina.</li></ul><h3>Criando o Bot do Discord</h3><p>Primeiro, precisamos criar um novo aplicativo de bot do Discord e obter seu token. Você pode fazer isso acessando o Portal do Desenvolvedor do Discord, criando um novo aplicativo, adicionando um bot ao aplicativo e copiando seu token.</p><p>Em seguida, precisamos instalar as dependências necessárias usando o npm. Você precisará dos seguintes pacotes: discord.js para interagir com a API do Discord, octokit/rest para fazer chamadas à API do GitHub e dotenv para gerenciar variáveis de ambiente. Você pode instalar esses pacotes executando o seguinte comando em seu terminal:</p><pre>npm install discord.js octokit/rest dotenv</pre><p>Em seguida, crie um novo arquivo JavaScript e exija os módulos necessários no topo do arquivo:</p><pre>const Discord = require(&#39;discord.js&#39;);<br>const { Octokit } = require(&#39;@octokit/rest&#39;);<br>require(&#39;dotenv&#39;).config();</pre><p>Depois que o cliente fizer login, ouça as mensagens e responda aos comandos. Neste caso, queremos ouvir um comando específico (por exemplo, !get-issues) e responder buscando todas as issues no repositório GitHub especificado:</p><pre>client.on(&#39;message&#39;, async (message) =&gt; {<br>  if (message.content === &#39;!get-issues&#39;) {<br>    const octokit = new Octokit({ auth: process.env.GITHUB_PERSONAL_ACCESS_TOKEN });<br>    const issues = await octokit.issues.listForRepo({<br>      owner: &#39;owner-name&#39;,<br>      repo: &#39;repository-name&#39;,<br>    });<br>    message.channel.send(`Found ${issues.data.length} issues in the repository.`);  }<br>});</pre><p>Este código cria uma nova instância Octokit usando um token de acesso pessoal para autenticação do GitHub, busca todos os problemas do repositório especificado e envia uma mensagem de volta para o canal do Discord com o número de issues encontradas.</p><p>Finalmente, inicie o bot executando o arquivo JavaScript usando o Node.js:</p><pre>node discord-bot.js</pre><h3>Conclusão</h3><p>Neste tutorial, aprendemos como criar um bot do Discord usando Node.js que pode recuperar todas as issues de um repositório do GitHub usando a biblioteca Octokit REST. Com esse conhecimento, você pode construir bots mais complexos que podem automatizar várias tarefas e tornar o fluxo de trabalho de sua equipe mais eficiente.</p><p>Veja a versão em inglês <a href="https://dev.to/daniloab/how-to-create-a-discord-bot-to-get-github-repository-issues-2646">aqui</a></p><p>Sigam-me no <a href="https://www.twitter.com/daniloab_">Twitter</a></p><p>Se gosta e quer apoiar o meu trabalho <a href="https://www.patreon.com/daniloab">seja meu patreon</a></p><p>Veja mais em <a href="https://daniloassis.dev/">daniloassis.dev</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5601e7374995" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tech Lead: Como mentorar desenvolvedores junior]]></title>
            <link>https://daniloab.medium.com/tech-lead-como-mentorar-desenvolvedores-junior-aac03a8f25f6?source=rss-45e9f0b9dde------2</link>
            <guid isPermaLink="false">https://medium.com/p/aac03a8f25f6</guid>
            <category><![CDATA[management]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[mentoring]]></category>
            <category><![CDATA[tech-lead]]></category>
            <category><![CDATA[mentor]]></category>
            <dc:creator><![CDATA[Danilo Assis]]></dc:creator>
            <pubDate>Mon, 06 Mar 2023 12:19:29 GMT</pubDate>
            <atom:updated>2023-03-06T14:42:52.211Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6HX6WQbXSakx8GlX3N08ZA.jpeg" /></figure><p>Como líder de tecnologia, tech lead, uma de suas responsabilidades mais importantes é ajudar a desenvolver os talentos da sua equipe. Isso inclui os desenvolvedores juniors que trabalham sob sua supervisão. Com o tempo, você descobrirá que há muitas maneiras diferentes de apoiar e mentorar esses membros da equipe em seu crescimento e desenvolvimento.</p><p>Neste artigo, discutiremos algumas das melhores práticas e dicas para ser um líder eficaz em tecnologia, ajudando a desenvolver os talentos da equipe de desenvolvimento júnior.</p><ol><li><strong>Comece com um plano claro</strong></li></ol><p>Antes de começar a mentorar um desenvolvedor júnior, você precisa ter um plano claro do que deseja alcançar com o processo. Isso significa definir metas claras e específicas para o desenvolvedor e estabelecer uma estrutura clara para o processo de mentoria.</p><p>Ao definir metas claras e específicas, você pode ajudar o desenvolvedor júnior a entender o que é esperado deles e como eles podem trabalhar para alcançar essas metas. Isso pode incluir coisas como aprender uma nova linguagem de programação ou aprimorar suas habilidades de solução de problemas.</p><p><strong>2. Conheça as necessidades individuais</strong></p><p>Cada desenvolvedor júnior tem necessidades e objetivos diferentes. Por isso, é importante conhecê-los individualmente para poder oferecer orientações personalizadas que atendam às suas necessidades.</p><p>Ao trabalhar com um desenvolvedor júnior, descubra quais são suas necessidades e objetivos de desenvolvimento, e use essas informações para criar um plano de mentoria personalizado que atenda às suas necessidades.</p><p><strong>3. Forneça feedback regularmente</strong></p><p>O feedback é uma das ferramentas mais importantes para o desenvolvimento de qualquer desenvolvedor. É através do feedback que eles podem entender onde estão acertando e onde precisam melhorar.</p><p>Certifique-se de fornecer feedback regularmente aos desenvolvedores juniors. Isso pode incluir elogios sobre seu trabalho ou conselhos sobre como eles podem melhorar.</p><p><strong>4. Compartilhe sua experiência</strong></p><p>Como líder de tecnologia, você tem uma vasta experiência no setor que pode ser valiosa para os desenvolvedores júnior que trabalham sob sua supervisão. Compartilhe sua experiência com eles para ajudá-los a aprender e crescer.</p><p>Além disso, também é importante fornecer recursos e informações valiosas que possam ajudá-los a aprimorar suas habilidades e conhecimentos.</p><p><strong>5. Dê espaço para o desenvolvedor júnior crescer</strong></p><p>Embora a mentoria seja importante para o crescimento e desenvolvimento dos desenvolvedores juniors, também é importante dar espaço para que eles cresçam e desenvolvam suas habilidades por conta própria.</p><p>Isso significa que você deve permitir que eles trabalhem em projetos por conta própria, dar-lhes espaço para experimentar e cometer erros, e permitir que eles assumam a liderança em projetos que estejam capacitados a fazer.</p><p><strong>Conclusão</strong></p><p>Ser um líder de tecnologia não se trata apenas de liderar uma equipe, mas também de ajudar a desenvolver os talentos individuais de seus membros. Ao mentorar desenvolvedores juniors, você pode ajudá-los a crescer e desenvolver suas</p><p>Sigam-me no <a href="https://www.twitter.com/daniloab_">Twitter</a></p><p>Se gosta e quer apoiar o meu trabalho <a href="https://www.patreon.com/daniloab">seja meu patreon</a></p><p>Veja mais em <a href="https://daniloassis.dev/">daniloassis.dev</a></p><p>Photo by <a href="https://unsplash.com/@johnschno?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">John Schnobrich</a> na <a href="https://unsplash.com/pt-br/fotografias/FlPc9_VocJ4?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aac03a8f25f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Não peça desculpas]]></title>
            <link>https://daniloab.medium.com/n%C3%A3o-pe%C3%A7a-desculpas-47c3df200f4b?source=rss-45e9f0b9dde------2</link>
            <guid isPermaLink="false">https://medium.com/p/47c3df200f4b</guid>
            <category><![CDATA[mind]]></category>
            <dc:creator><![CDATA[Danilo Assis]]></dc:creator>
            <pubDate>Wed, 25 Jan 2023 14:50:54 GMT</pubDate>
            <atom:updated>2023-02-02T19:02:40.787Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*c3OhsQTTSohTcFJT.jpeg" /><figcaption>Imagem com im sorry escrito em pedaços de quadrados feitos de madeira</figcaption></figure><p>Não peça desculpa por trabalhar, tentar aprender coisas novas, ou ir atrás daquilo em que acredita.</p><p>Pedir desculpa nessas situações é uma atitude geralmente encontrada entre pessoas juniors, mas pode estender-se aos seniors e em todos os cenários da nossa vida.</p><p><strong>Trabalho</strong></p><p>Não faz sentido pedir desculpa quando você precisa de confirmar um requisito ou uma característica, porque faz parte do seu trabalho.</p><p>Você não está pedindo um favor, está trabalhando, o que é normal nesse processo. Como eu disse, faz parte do seu trabalho e faz parte dele pedir ajuda.</p><p>Se você trabalha numa empresa onde precisa pedir desculpa por pedir ajuda, talvez seja a hora de encontrar outro lugar.</p><p>O melhor é trabalhar numa equipe onde se sinta como se estivesse entre amigos, claro, sem esquecer que ainda é um espaço profissional.</p><p>Trabalhar com paz de espírito e com um bom processo estabilizado é o melhor que uma empresa pode lhe oferecer.</p><p><strong>Vida</strong></p><p>Seja honesto com o que precisa. Corte as desculpas e tente ser claro e direto.</p><p><a href="https://dontasktoask.com/">https://dontasktoask.com/</a></p><p>Substitua “desculpa, posso perguntar uma coisa?” por “Olá, preciso de ajuda em X coisa. Acho que você pode me ajudar”.</p><p>Sigam-me no <a href="https://www.twitter.com/daniloab_">Twitter</a></p><p>Se gosta e quer apoiar o meu trabalho <a href="https://www.patreon.com/daniloab">seja meu patreon</a></p><p>Veja mais em <a href="https://linktr.ee/daniloab">https://linktr.ee/daniloab</a></p><p>Foto de <a href="https://unsplash.com/@stevedimatteo?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText)%20em%20[Unsplash](https://unsplash.com/s/photos/apologize?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Steve DiMatteo</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47c3df200f4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Como se preparar para uma entrevista]]></title>
            <link>https://daniloab.medium.com/como-se-preparar-para-uma-entrevista-5e5e0e591c89?source=rss-45e9f0b9dde------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e5e0e591c89</guid>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Danilo Assis]]></dc:creator>
            <pubDate>Wed, 25 Jan 2023 14:04:20 GMT</pubDate>
            <atom:updated>2023-02-02T19:03:12.735Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dUy-56p2CcOcyQ_djKpW-A.jpeg" /></figure><p>Depois de perguntar para vários desenvolvedores como eles se preparam para uma entrevista, percebi vários pontos em comum nas respostas deles, e neste texto, eu vou compartihar as práticas que eu acredito serem as melhores para que você esteja bem-preparado para uma entrevista.</p><p><strong>Preparando-se</strong></p><ul><li>Sua preparação deve iniciar antes da entrevista. A entrevista é, basicamente, uma reunião de negócios na qual você deve convencer o outro lado, a empresa, porque eles deveriam acreditar em você e no seu trabalho. Para isso, ter uma narrativa e um <em>Pitch</em> claros são essenciais.</li><li>Escreva uma carta de apresentação: Escreva sobre a sua história, suas habilidades, seu processo de aprendizagem em programação, design, liderança, etc.</li><li>Afie sua narrativa: Utilize recursos narrativos para transformar sua jornada pessoal em uma história interessante que seja fácil de se entender de agradável de se ouvir;</li><li>Utilize tópicos: Use tópicos para mostrar de forma concisa onde suas habilidades podem ser úteis para o entrevistador e a relevância delas.</li></ul><p><strong>Estude a Empresa</strong></p><p>Cada empresa, por existência, tem um problema principal que ela quer resolver.</p><p>Pequise o problema que a empresa busca resolver e tente responder estas perguntas:</p><ul><li>Qual a maneira que a empresa quer resolver esse problema?</li><li>Como a vaga que você está aplicando participa nesse processo de resolução?</li><li>Como suas habilidades são úteis nesse processo?</li></ul><p>Todas essas perguntas revelam a grande pergunta que deve ser respondida:</p><p>De que maneira você é compatível com a vaga que a empresa esta buscando?</p><p><strong>Comunicação</strong></p><p>Boas habilidades de comunicação são indispensáveis para demonstrar claramente a sua mensagem e engajar as pessoas dentro do dialogo. Quanto mais forte sua comunicação for nesses dois aspectos, mais fácil a entrevista se torna. Não seja lacônico ou prolixo. Você deve manter um equilíbrio entre detalhes e ritmo para que o entrevistador não fique confuso ou entediado. Tente criar um bom relacionamento com o entrevistador e mantenha a conversa agradável.</p><p><strong>Ansiedade</strong></p><p>A coisa que mais me perguntam é: “Como eu evito a ansiedade na hora da entrevista?” Sentir-se ansioso numa entrevista é normal, e quanto mais entrevistas você faz menos ansioso você vai ficar, mas a sensação de frio na barriga nunca vai embora. Se sua ansiedade te faz cancelar entrevistas entre outras coisas do tipo, a ajuda de um psicólogo pode ser bem-vinda. Ele pode tentar te ajudar a se entender e a colocar a sua ansiedade sobre controle. A ansiedade é uma resposta física do seu organismo em antecipação à uma situação desconhecida, entender isso pode te ajudar a tomar a rédea da situação.</p><p>Vamos fazer um exercício, você se sente preparado para a entrevista mas algumas perguntas começam a invadir sua mente:</p><ul><li>&quot;Ei, eu sei ‘x’?&quot;</li><li>&quot;Será que serei contratado?&quot;</li></ul><p>A maneira mais simples de você se livrar desses pensamentos invasivos é tentar respondê-lo calmamente e racionalmente. A resposta da primeira pergunta pode ser simples: Como você adquire conhecimento sobre determinado assunto? Praticando, escrevendo sobre, ensinando outros, procurando pela resposta.</p><p>Não se esqueça que o meu servidor do Discord pode te ajudar a responder essas perguntas. Lá você pode pedir ajuda para outras pessoas, praticar, ensinar outros, etc. Ainda temos um canal chamado &quot;mind&quot; em que você pode compartilhar qualquer coisa que você quiser, se isso te fizer se sentir melhor. Se você se interessou, você pode ler esse <a href="https://dev.to/daniloab/welcome-to-community-my-discord-server-4cfe">blogpost sobre o mesmo</a> para se inteirar mais do assunto.</p><p><strong>Praticando</strong></p><p>A maneira que eu mais indico se você quiser se tornar melhor em algo é praticar. Seja essa coisa programar, exercitar-se, correr, fazer drinks, não importa. Você deve praticar, você tem que aplicar o seu conhecimento no mundo real, pois essa é uma das maneiras mais eficientes de melhorar em algo. Eu escrevi sobre como aprender mais rápido com o <strong>Cone de Aprendizagem</strong> nesse <a href="https://dev.to/daniloab/learning-faster-with-cone-of-learning-16hm">link</a>.</p><p><strong>E o que mais?</strong></p><p>Uma entrevista é como <em>dar match com alguém no Tinder.</em> Você pode se preparar o máximo que conseguir, mas no final, o entrevistador e o entrevistado devem indentificar <em>matches</em> um no outro.</p><p>O não também é um feedback importante. Nós temos a tendência de ver o não como algo negativo e ruim, mas se você não conseguiu o trabalho naquela oportunidade, provavelmente você não ia se sentir feliz trabalhando naquela empresa. Tente entender o que pode ter dado errado e melhorar nesses pontos, e lembre-se que no momento certo você conseguirá sua vaga.</p><p>Sigam-me no <a href="https://www.twitter.com/daniloab_">Twitter</a></p><p>Se gosta e quer apoiar o meu trabalho <a href="https://www.patreon.com/daniloab">seja meu patreon</a></p><p>Veja mais em <a href="https://linktr.ee/daniloab">https://linktr.ee/daniloab</a></p><p>Foto de <a href="https://unsplash.com/@wocintechchat?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText&quot;">Christina</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e5e0e591c89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Arch Linux — Learnings While Installing]]></title>
            <link>https://daniloab.medium.com/arch-linux-learnings-while-installing-c1e7380e379d?source=rss-45e9f0b9dde------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1e7380e379d</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[arch-linux]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[how-to]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Danilo Assis]]></dc:creator>
            <pubDate>Wed, 21 Apr 2021 17:34:23 GMT</pubDate>
            <atom:updated>2021-04-22T04:18:54.281Z</atom:updated>
            <content:encoded><![CDATA[<h3>Arch Linux — Learnings While Installing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SSO8yw_GEEgOz_5u__JrkA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@hlcasan?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Hugo L. Casanova</a> on <a href="https://unsplash.com/s/photos/arch?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p><strong>TL;DR</strong></p><p>Learning that I got while installing Arch Linux.</p><ul><li>what isdev/sdx</li><li>fdisk andcfdisk</li><li>mbr vs gpt drives</li><li>useful commands</li></ul><p><strong>Please, note this: </strong>If you are looking for a tutorial to help into the installation process, go with the <a href="https://wiki.archlinux.org/index.php/installation_guide">official docs</a> of <a href="https://archlinux.org/">ArchWiki</a>. And, if needs a help feel free to call me on <a href="http://twitter.com/daniloab_">Twitter</a> or on my <a href="https://discord.com/invite/X9RAf8cUEd">discord</a>.</p><p><strong>Let’s go</strong></p><p>I made an upgrade on my computer and add a new SSD to be dedicated only to Linux. Since I was going to have to format the current HD with a partition for Ubuntu 20.04, I soon decided to migrate to Arch Linux.</p><p>Arch is a more robust version that brings in its installation the minimum necessary to run the system in a terminal. At the end of the installation process if you want a GUI you can choose one of your own and move on.</p><p>During this post that I write to you, it was my second installation of Arch Linux. Just like the first one, I went through some very simple bullshit that could have been avoided.</p><p>Therefore, the idea of this post is to explain things that I understood during the process and that can help you.</p><p><strong>Scenario</strong></p><p>Just for context, my hardware schema looks like this:</p><ul><li>SSD 120GB with Win10</li><li>HD 1TB for Wn10 file storage like games, whatever</li><li>SSD 480GB for Linux only</li></ul><p><strong>dev/sdc</strong></p><p>Right off the bat, something important whether on Ubuntu or Arch, interesting to understand is the dev/sdc. These are our storage disks.</p><p>sd originates from SCSI disk and for each disk on your machine, there will be a representation for that.</p><p>Following the scenario before mentioned, it is right to expect three dev/sdx for each disk. Normally, each is represented as a letter.</p><p>An easy to check this is running the lsblk . After run into my terminal, I got the following result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/54/1*cJ2dzek-FI-_wjftL6TiPA.png" /><figcaption>$ lsblk</figcaption></figure><ul><li>sda: HD 1TB</li><li>sdb: SSD with windows</li><li>sdc: new SSD for Linux</li></ul><p><strong>fdisk and cfdisk</strong></p><p><a href="https://guialinux.uniriotec.br/fdisk/"><strong>fdisk</strong></a><strong> </strong>is the command used to manage our partitions. With it, we can select the <strong>sd </strong>that we want to work on and create the partitions needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*XNYKTFH6Fm9rnZUkTtn7Fw.png" /></figure><p>The <a href="https://www.linuxforce.com.br/comandos-linux/comandos-linux-comando-cfdisk/"><strong>cfdisk</strong></a> performs the same functions in addition to providing a graphical interface:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/0*bYusUszCy_ZaF_71.png" /></figure><p><strong>MBR vs GPT</strong></p><p>During the installation of your partitions, you can find acronyms such as <strong>MBR</strong> and <strong>GPT</strong>.</p><p><strong>MBR</strong> is the acronym for “<strong>MASTER REBOOT RECORD</strong>” and is found on older devices, usually used up to windows 8. Being suitable for installation on older devices.</p><p><strong>GPT</strong> is the acronym for “<strong>GUID Partition Table</strong>” and is the most recent being inserted from windows 10. New devices like SSD already have this technology and it is the most suitable for use since the number of partitions has a greater capacity to be created.</p><p>Both indicate the way in which data will be written to your devices.</p><p><strong>Useful Commands</strong></p><p>Some simple commands that I found interesting to use and that also helped me during the process.</p><ul><li><strong>fatlabel</strong> -&gt; used to set a label for FAT type partitions</li><li><strong>e2label</strong> -&gt; used to set a label for ext type partitions</li></ul><p><strong>Installing</strong></p><p>The installation of Arch Linux is a bit more verbose and more laborious since you need to make all the necessary configurations via terminal. However, it is still steps that with good attention you can get through them easily</p><ul><li>configure the keyboard, language, and timezone</li><li>prepare the partitions</li><li>mount</li><li>access arch-chroot and mount / mnt by installing the minimum necessary.</li></ul><p>By last, following a tutorial according to your need, you can configure dual boot and its interface.</p><p>For the <strong>dual boot</strong>, I choose <strong>GRUB. </strong>Looking for an interface I chose <a href="https://wiki.archlinux.org/index.php/SDDM"><strong>SDDM</strong></a> and <a href="https://wiki.archlinux.org/index.php/KDE#:~:text=KDE%20is%20a%20software%20project,a%20well%20maintained%20UserBase%20wiki."><strong>KDE Plasma</strong></a></p><p>My final configs:</p><ul><li><strong>terminal</strong>: guake</li><li><strong>search</strong>: krunner</li><li><strong>text editor</strong>: notepadqq</li><li><strong>ide</strong>: webstorm</li><li><strong>db</strong>: mongodb</li><li><strong>nvm, node e yarn</strong></li><li><strong>jdk 15.</strong></li></ul><p><strong>Nex text for Arch Linux</strong>:</p><ul><li>how to install mongodb into arch linux</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1e7380e379d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Arch Linux — Aprendizados que me ajudaram]]></title>
            <link>https://daniloab.medium.com/arch-linux-aprendizados-que-me-ajudaram-8bb98c294917?source=rss-45e9f0b9dde------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bb98c294917</guid>
            <category><![CDATA[sistema-operacional]]></category>
            <category><![CDATA[ajuda]]></category>
            <category><![CDATA[arch]]></category>
            <category><![CDATA[instalação]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Danilo Assis]]></dc:creator>
            <pubDate>Tue, 20 Apr 2021 13:17:53 GMT</pubDate>
            <atom:updated>2021-04-20T13:17:53.821Z</atom:updated>
            <content:encoded><![CDATA[<h3>Arch Linux — Aprendizados que me ajudaram</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SSO8yw_GEEgOz_5u__JrkA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@hlcasan?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Hugo L. Casanova</a> on <a href="https://unsplash.com/s/photos/arch?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p><strong>TL;DR</strong></p><p>Compilação de aprendizados que me ajudaram durante a instalação do Arch Linux.</p><ul><li>o que são os dev/sdx</li><li>fdisk e cfdisk</li><li>mbr vs gpt drives</li><li>useful commands</li></ul><p><strong>Atenção: </strong>Se você busca um tutorial que te ajude no processo de instalação indico a <a href="https://wiki.archlinux.org/index.php/Installation_guide_(Portugu%C3%AAs)">doc oficial </a>da <a href="https://archlinux.org/"><strong>ArchWiki</strong></a>. Se quiser ajuda durante o mesmo pode me chamar no <a href="http://twitter.com/daniloab">twitter</a> ou entrar no meu <a href="https://discord.gg/X9RAf8cUEd">discord</a> e me pingar por lá.</p><p><strong>Bora lá</strong></p><p>Fiz um upgrade no meu computador e adicionei um ssd para ficar dedicado apenas ao Linux. Já que iria ter que formatar o hd atual com uma partição para o Ubuntu 20.04, decidi logo migrar para o Arch Linux.</p><p>O Arch é uma versão mais robusta e que traz em sua instalação o mínimo necessário para rodar o sistema em um terminal. Caso queira uma GUI, ao final do processo de instalação você pode estar escolhendo uma do seu gosto e seguir em frente.</p><p>Durante esse post que vos escrevo, foi minha segunda instalação do Arch Linux. Assim como na primeira passei por umas tretas muito simples que poderiam ter sido evitadas.</p><p>Portanto, a ideia desse post é explicar coisas que entendi durante o processo e que podem lhe ajudar.</p><p><strong>Cenário</strong></p><p>Para contextualizar meu hardware se encontrava desta forma</p><ul><li>SSD 120GB com uma instalação do Windows</li><li>HD 1TB para storage dos arquivos do Windows</li><li>SSD 480GB adicionado para se dedicar ao Linux</li></ul><p><strong>dev/sdc</strong></p><p>Logo de cara algo importante seja no Ubuntu ou Arch, interessante de entender são os dev/sdx . Esses seriam nossos discos de armazenamento.</p><p>sd se origina de scsi disk e pra cada disco que houver na sua máquina haverá uma representação para tal.</p><p>Seguindo a listagem do cenário acima, o esperado é que os meus discos estejam separados em 3. Normalmente, cada um é respresetado por uma letra.</p><p>Um comando fácil de identificar isto é o <a href="https://man7.org/linux/man-pages/man8/lsblk.8.html#:~:text=lsblk%20lists%20information%20about%20all,types%20from%20the%20block%20device.">lsblk</a> . Ao rodar na minha máquina note que ele retorna 3 dev/sd com suas respectivas letras: a, b, c.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/54/1*cJ2dzek-FI-_wjftL6TiPA.png" /><figcaption>$ lsblk</figcaption></figure><ul><li>sda: hd 1tb</li><li>sdb: ssd com o windows</li><li>sdc: novo ssd em que o Linux foi instalado.</li></ul><p><strong>FDISK e CFDISK</strong></p><p><a href="https://guialinux.uniriotec.br/fdisk/"><strong>fdisk</strong></a> é comando utilizado para gerenciar as partições. Com ele podemos selecionar o sd que desejamos trabalhar e criar as partições da forma que quisermos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*XNYKTFH6Fm9rnZUkTtn7Fw.png" /></figure><p>Já o <a href="https://www.linuxforce.com.br/comandos-linux/comandos-linux-comando-cfdisk/"><strong>cfdisk</strong></a> realiza as mesmas funções além de disponibilizar uma interface gráfica:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/0*bYusUszCy_ZaF_71.png" /></figure><p><strong>MBR vs GPT</strong></p><p>Durante a instalação das suas partições você poderá se encontrar siglas como <strong>MBR</strong> e <strong>GPT</strong>.</p><p><strong>MBR</strong> é a sigla para “MASTER REBOOT RECORD” e é encontrada em dispositivos mais antigos, normalmente utilizados até o windows 8. Sendo indicada para instalação em dispositivos mais antigos.</p><p><strong>GPT</strong> é a sigla para “<strong>GUID Partition Table”</strong> e é a mais recente sendo inserida a partir do windows 10. Novos dispositivos como SSD ja possuem essa tecnologia e é a mais indicada para uso já que o número de partições possui uma capacidade maior para serem criadas.</p><p>Ambas indicam a forma em que os dados serão gravados em seus dispositivos.</p><p><strong>Comandos</strong></p><p>Alguns comandos simples que achei interessante utilizar e que também me ajudaram durante o processo.</p><ul><li><strong>fatlabel</strong> -&gt; utilizado setar um label para partições do tipo FAT</li><li><strong>e2label</strong> -&gt; utilizado setar um label para partições do tipo ext</li></ul><p><strong>Instalação</strong></p><p>A instalação do Arch Linux é um pouco mais verbosa e mais trabalhosa uma vez que você precisa fazer todas as configurações necessárias via terminal. Porém, não deixa de ser steps que com uma boa atenção você consegue passar pelos mesmos facilmente</p><ul><li>configurar o teclado,idioma, hora</li><li>preparar suas particoes</li><li>montam</li><li>acessa o arch-chroot e monta a <strong>/mnt </strong>instalando o minimo necessário.</li></ul><p>Logo após, seguindo um tutorial de acordo com sua necessidade, pode configurar o dual boot e sua interface.</p><p>Para dual boot utilizei o <a href="https://www.gnu.org/software/grub/"><strong>GRUB</strong></a><strong> </strong>e para interface visual prossegui com o <a href="https://kde.org/pt-br/plasma-desktop/"><strong>kde plasma</strong></a><strong>.</strong></p><p>O legal de todo esse processo é aprender algumas habilidades interessantes que podem vir a ser necessárias no dia.</p><p>Algumas configs finais:</p><ul><li><strong>terminal</strong>: guake</li><li><strong>search</strong>: krunner</li><li><strong>text editor</strong>: notepadqq</li><li><strong>ide</strong>: webstorm</li><li><strong>db</strong>: mongodb</li><li><strong>nvm, node e yarn</strong></li><li><strong>jdk 15.</strong></li></ul><p>Próximo texto para Arch Linux:</p><ul><li>como instalar o MongoDB no Arch Linux</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bb98c294917" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ways to put the learning in public in practice]]></title>
            <link>https://daniloab.medium.com/ways-to-put-the-learning-in-public-in-practice-3ac98f0f1a6a?source=rss-45e9f0b9dde------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ac98f0f1a6a</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[public]]></category>
            <category><![CDATA[dev]]></category>
            <category><![CDATA[practice]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Danilo Assis]]></dc:creator>
            <pubDate>Wed, 14 Apr 2021 23:16:32 GMT</pubDate>
            <atom:updated>2021-04-15T12:17:59.280Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DmUf9smSja1BOTHOTtIFew.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@craftedbygc?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Green Chameleon</a> on <a href="https://unsplash.com/s/photos/studying?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Learning in Public is a powerful tool to improve your soft and hard skills.</p><p>In this tiny text, I will relate how I like to put into practice my learn in public. Feel free to tell me your ways to do it.</p><p><strong>Share</strong></p><p>Every solution you have found should be shared. A blog post, a video, study group, whatever. If you were with a problem and this thing helped you to fix it or find a way to go forward remember that today or in the future it will have people in your place. When sharing, you can make their life easier.</p><p><strong>Give Back</strong></p><p>For all those things above, give back to it the way you can. What do I want to say with this?</p><ul><li>It is a blog post, you can give back by leaving a comment thanking the author</li><li>Give a clap if it is a medium blog post, or like if is Facebook, Twitter, etc.</li><li>Being a video you can do more, you can share it on other social media besides doing the other things already said. Throw it forward to reach more people.</li><li>Subscribe or follow the channel where you find your solution</li></ul><p><strong>Get over your fears</strong></p><p>After I introduce the learning in public for someone, the most common is this person start to share their fears.</p><ul><li>talking in public</li><li>talking with strangers on the internet</li><li>what people will say about my solution?</li></ul><p>I’m sharing something that helped me, that I think is useful, and I can still learn better ways of doing the same thing.</p><p>If what I’ve shared is “wrong”, I will learn the correct or better way to solve my problem</p><p><strong>How this helps me</strong></p><p>We can do the learning in public normally in our days. But, one thing that helped me was to be aware of what it is and how it could improve.</p><p>After that, my network flow improved so much. I start to be more able to talk with people, make new connections. Also on business.</p><p><strong>Communication</strong></p><p>Communication is one of the most important things in our life and career.</p><p>Now how to speak can help you on both sides. Being an interview or a discussion about some theme.</p><p><strong>Finding solutions more easily</strong></p><p>Finding the solution to problems started to become a common and easier practice. The paths become known, as well as the ways to find new ones or create them.</p><p><strong>Start to teach</strong></p><p>Teach is a good way to learn too. To teach, with intelligence and knowing something you need to study twice or more times. Need to put in practice, make a POC that their idea works. And, when will teach these to someone it will be like a review from it.</p><p>Start putting these little things into practice, a little at a time. Learn from others, improve your ideas, share, and soon you will have your learning in public in practice as something normal in everyday life.</p><p>Follow me on twitter.com/daniloab_</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ac98f0f1a6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Starting to understand Multitenancy]]></title>
            <link>https://daniloab.medium.com/starting-to-understand-multitenancy-fd562cf3add9?source=rss-45e9f0b9dde------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd562cf3add9</guid>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[tenants]]></category>
            <category><![CDATA[bds]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Danilo Assis]]></dc:creator>
            <pubDate>Tue, 30 Mar 2021 14:30:01 GMT</pubDate>
            <atom:updated>2021-03-30T14:30:01.546Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*DocKzs1Oi_915uGS_PUP8A.jpeg" /><figcaption>The image was taken on a trip of mine to Uruguay — 2018.</figcaption></figure><p>If you already know or work with multitenancy, Pay It Forward (read through to understand). If you don’t know, maybe you are already working with it and just don’t know it yet (just like me in the near past).</p><p><strong>TL;DR</strong></p><p>The multitenancy architecture consists of working with applications that will have multiple users sharing the same database, however, having access only to the data that belongs to them.</p><p>It is widely adopted in software as a service (SaaS) applications, as many customers often use it. These same becoming the tenants of this application.<br>Sometimes some software uses architecture to attack deeper situations, as it was in our case.</p><p><strong>SCENARIO</strong></p><p>We are developing an application where our tenant will work with more than one user to access the platform. However, in the beginning, it was designed for just one login to control it. That is, our tenant would have more residents with him using the same rent.</p><p>Then, we decided to stop (we were already starting development on the front end), go back, and reshape our entire database from the beginning.</p><p><strong>HOW TO IMPLEMENT?</strong></p><p>Before we get there, let’s look at some ways in which we can apply the architecture in various models to what is being used in RBAF Manager.</p><ul><li><strong>One database for each customer</strong></li></ul><p>When accessing the software, it is responsible for directing the application to the cluster responsible for that user’s collections.</p><ul><li><strong>One collection for each customer</strong></li></ul><p>Each user would have a collection of their documents. Something that becomes unworkable for an application that is just starting for several reasons. One key is the cost of maintaining something at this level in the future with a very large user base.</p><ul><li><strong>One database for all tenants</strong></li></ul><p>Preferred by many companies is that it is easy to implement at the beginning of development (it is understood that the model concept is easy), distributing tenants in only one bank becomes the most common path.</p><p>And that’s why we decided to work. Our admin user may own other users and these users need to be “tied” to the company they belong to.</p><p><strong>IMPLEMENTATION</strong></p><p>It was then decided that our tenant would be called Team since the platform is geared towards sports teams and to control access to the data of this tenant would require that each model of our system had its id.</p><ul><li>Our basic tenant:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5a37d8dad6825b995eb9d715471d9a7f/href">https://medium.com/media/5a37d8dad6825b995eb9d715471d9a7f/href</a></iframe><ul><li>The other models followed the pattern below made for `Player`</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/76c963a2703952d62ab76d90ccf7e859/href">https://medium.com/media/76c963a2703952d62ab76d90ccf7e859/href</a></iframe><p>The id of the team is referenced in the model and this becomes its owner.</p><p><strong>HOW DO I KNOW THE USER IS LOGGED AND WHICH TENANT BELONGS TO?</strong></p><p>Using GraphQL we can work with only one endpoint for all requests. This way, when a call is placed on it, we check if the <strong>Authorization</strong> header is present:</p><p>const { user } = await getUser(req.header.authorization);</p><p>You can function called getUser passing the token created at login.</p><p>Passing through it, the token is decoded and we now have access to this user ID.</p><p>With the id we consult the User collection and from it, we can access the tenant that he is part of. In this case, the team he belongs to. The team was added at the time of creation, following the same model as the player collection.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/95ccc14b3952035b7d71c39a07e51b45/href">https://medium.com/media/95ccc14b3952035b7d71c39a07e51b45/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a0d514b7c7860656c2d3790c6c33b0fc/href">https://medium.com/media/a0d514b7c7860656c2d3790c6c33b0fc/href</a></iframe><p>As soon as the user is returned, it is set in the context of our GraphQL API (line 7).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3ff104b343d695480e92f20ad822e789/href">https://medium.com/media/3ff104b343d695480e92f20ad822e789/href</a></iframe><p>And just pass it as a parameter in the resolution of a query or mutation, to have access to only that user’s information.</p><p>An example is a query me, which is used as a form of authentication to find out if there are any users logged in and authorized to access our API data.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/31a49c873e28c0520ed48edc37f85668/href">https://medium.com/media/31a49c873e28c0520ed48edc37f85668/href</a></iframe><p><strong>Pay It Forward</strong><br>GraphQL combined with MongoDB is a really powerful stack and starting to use it has allowed us to build some really cool stuff and it’s just the beginning.</p><p>With that, the idea of ​​this text is to share a little of what we are building / learning and to receive feedbacks whatever it may be: improvements, corrections, new implementations, etc.</p><p>This idea was fueled by the message of the movie: <strong>Pay It Forward</strong>. In it, Trevor, who is in the seventh grade tries to get a great message across the film about a theory that is based on:</p><p>- When you are helped by one person, you must make up for it by helping three other people. Thus creating a Chain of Good.</p><p>This is our current, sharing, learning, evolving with the community. Combined with one of our principles, <a href="https://daniloab.medium.com/learn-in-public-9a2c32699321">Learning in Public</a>.</p><blockquote>Thanks to Sibelius Seraphini who has been helping us in a fantastic way and introduced me to the idea of Pay It Forward applied in IT.</blockquote><p>Please, if you want to leave tips, opinions in the comments, call me, we will all learn in public. Follow me on T<a href="http://twitter.com/daniloab_">witter</a> too.</p><p><a href="https://medium.com/sejakino/desmitificando-multitenancy-parte-1-introducao-e0e0f2169649">Desmitificando Multitenancy — Parte 1: Introdução</a></p><p><a href="https://community.ibm.com/community/user/legacy?lang=en">https://medium.com/r/?url=https%3A%2F%2Fwww.ibm.com%2Fdeveloperworks%2Fcommunity%2Fblogs%2Fctaurion%2Fentry%2Fentendendo_o_modelo_multi-tenancy%3Flang%3Den</a></p><p><a href="https://web.archive.org/web/20140812091703/http://support.mongohq.com/use-cases/multi-tenant.html">https://medium.com/r/?url=https%3A%2F%2Fweb.archive.org%2Fweb%2F20140812091703%2Fhttp%3A%2F%2Fsupport.mongohq.com%2Fuse-cases%2Fmulti-tenant.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd562cf3add9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why getting frustrated is too boring]]></title>
            <link>https://daniloab.medium.com/why-getting-frustrated-is-too-boring-1d62fab2fdb0?source=rss-45e9f0b9dde------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d62fab2fdb0</guid>
            <category><![CDATA[moments]]></category>
            <category><![CDATA[believe-in-yourself]]></category>
            <category><![CDATA[self]]></category>
            <category><![CDATA[mind]]></category>
            <category><![CDATA[boring]]></category>
            <dc:creator><![CDATA[Danilo Assis]]></dc:creator>
            <pubDate>Tue, 23 Mar 2021 18:04:57 GMT</pubDate>
            <atom:updated>2021-03-23T18:04:57.850Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QHovxDe89JjiM8oBlVXp8w.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@skenb?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Sebastian Knoll</a> on <a href="https://medium.com/s/photos/think?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Daily we will face wars of ego, fr able, discouragement. However, we cannot let that win us over. Close to bedtime, I was doing something when the frustration trigger suddenly went off. But, I remembered the very agreement I made with myself to go through moments like this.</p><p>To perhaps make you understand a little more about this agreement, let’s go back a few steps.</p><p>There are moments when life gives us the impression that we are stagnant and that we are unable to evolve. And, if we are not careful, it is at this moment that our mind begins to create nightmares in ourselves, blocks, etc. I found myself trapped in this type of situation every day. I didn’t feel complete in what to do, I wanted to look for more, I wanted to improve, but I didn’t know-how. I decided to sit down and understand what I could eliminate concerning what hindered me, before trying to add what could help. And because of this elimination, I ended up, on a shorter path, seeing what I needed most.</p><p>After that, seeking the common maximum of everything, what stood out among all was the practice. If I want to be more focused, I need to start creating ways to work on my focus. If I want to be smarter, I need to train my intelligence. If I want to drive better, soon I will need to train, improve.</p><p>Descending from the main idea to be the practice, we have to start thinking then about the ways that we can create to apply sustainably. If you have in mind that you need to be more focused, then you need to find a way to apply this. For example, whenever I am in the middle of an activity and I feel like doing anything else that is not related, I take a paper and write it down: check if that movie on Netflix is ​​still available. So, in a free moment, I take and zero that list. Silly thing but that works for me.</p><p>However, it is important to stress that everything here needs to be built in a way that works for you and not for others. This is a pleasant way of working on my focus. But that may be for you it may not be.</p><p>Don’t skip steps, or take steps bigger than legs, grow evolutionarily.</p><p>These were some of the ideas that I traced and woke up with myself to work on points in my person that I sought to improve. But all of them have a common goal: to share and help people who may be in the same limbo as I have been. That is, apply the golden rule (gold for me in this case), Learn in Public.</p><p>The focus is more technological, but I wanted to try to introduce the idea by clarifying that thought. If it was clear? I don’t know, I will change in the future too.</p><p>I have already prepared a text to follow this one, so click on the link up there. If you got here it costs nothing to read, but only if you want too =]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d62fab2fdb0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>