<?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[iClubs - Medium]]></title>
        <description><![CDATA[A plataforma de loyalty para você transformar clientes em fãs. - Medium]]></description>
        <link>https://medium.com/iclubs?source=rss----f492d174491d---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>iClubs - Medium</title>
            <link>https://medium.com/iclubs?source=rss----f492d174491d---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 22:55:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/iclubs" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Monitorando as atividades dos seus usuários usando o Microsoft Clarity em aplicações React]]></title>
            <link>https://medium.com/iclubs/monitorando-as-atividades-dos-seus-usuarios-usando-o-microsoft-clarity-em-aplicacoes-react-4eb376eef727?source=rss----f492d174491d---4</link>
            <guid isPermaLink="false">https://medium.com/p/4eb376eef727</guid>
            <category><![CDATA[dados]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[monitoramento]]></category>
            <category><![CDATA[clarity]]></category>
            <dc:creator><![CDATA[Vinnicius Gomes]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 14:00:14 GMT</pubDate>
            <atom:updated>2022-12-15T13:25:31.531Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HDpYsSxV3SGffs5q69iIxQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@tobiastu?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Tobias Tullius</a> on <a href="https://unsplash.com/s/photos/watching?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Começarei esse post com uma frase do Satya Nadella:</p><blockquote>Em um mundo onde o poder da computação é quase ilimitado, a atenção humana é realmente um commodity cada vez mais escassa.</blockquote><blockquote><strong>Satya Nadella, CEO da Microsoft</strong></blockquote><p>Como disse o Satya Nadella, manter a atenção e o engajamento do usuário é uma commodity extremamente valiosa, e como fazer isso? Um dos principais pontos é entender qual é o comportamento do seu usuário!</p><p>Coletar dados de como o usuário está se comportando dentro da sua aplicação é uma ferramenta poderosa para decisões de experiência do usuário e marketing.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FFkkSI8MGqfjT9dmnQ9%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FFkkSI8MGqfjT9dmnQ9%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FFkkSI8MGqfjT9dmnQ9%2F200.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="286" frameborder="0" scrolling="no"><a href="https://medium.com/media/868852d5d3cce2d2f5ad08a8f1fef618/href">https://medium.com/media/868852d5d3cce2d2f5ad08a8f1fef618/href</a></iframe><p>Ferramentas como a <a href="https://www.hotjar.com/">Hotjar</a> que facilitam esse trabalho são caras. Então hoje venho trazer uma alternativa para esse problema!</p><p>A Microsoft, aquela pequena empresa que vale mais de <strong>US$ 2,45 trilhões</strong> de dólares, está engajada na criação de ferramentas Open-Source, para a nossa alegria!</p><p>E uma dessas ferramentas, criadas por eles disponível gratuitamente, é o <a href="https://clarity.microsoft.com/">Clarity</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0BIzdsgQqMO2Pb-G.png" /><figcaption><a href="https://clarity.microsoft.com/">https://clarity.microsoft.com/</a></figcaption></figure><p>O Clarity é uma ferramenta fácil de usar que captura como pessoas reais realmente usam seu site. A configuração é fácil e você começará a receber dados em minutos.</p><h3>Quais ferramentas o Clarity oferece?</h3><h4>Mapas de calor (Heatmap)</h4><p>Essa é uma ótima funcionalidade para entender qual parte da sua aplicação gera mais engajamento dos seus usuários no site.</p><p>Os mapas de calor mostram os locais de maior e menor interação do usuário com a página, em uma escala de cores. Quanto mais “quente” (vermelho), maior é o número de visitantes que interagem com aquela área do site.</p><p>Temos 3 tipos de interação:</p><p><strong>Click — </strong>Mostra as áreas mais clicadas da página.<br><strong>Scroll — </strong>Mostra até onde o usuário rolou a página.<br><strong>Area — </strong>Mostrar o total de cliques em qualquer área que você escolher.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oBZJmhq0xyv8NkP1.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lFvrWeM9gCsb3I_6uqTtWw.gif" /><figcaption>Fonte: https://clarity.microsoft.com/heatmaps</figcaption></figure><p>A partir desses dados, você pode tomar uma melhor decisão sobre onde posicionar um elemento importante do seu site e perceber áreas que estão sendo mais valorizadas ou ignoradas.</p><p>Leia mais sobre os <strong>Mapas de calor </strong>aqui:<br><a href="https://clarity.microsoft.com/heatmaps">https://clarity.microsoft.com/heatmaps</a></p><h4>Gravações de sessão (Session Recordings)</h4><p>Observar como os usuários navegam em seu site e quando você os perde é algo poderoso, ter esses dados de uma forma extremamente rápida se torna um verdadeiro aliado para as tomadas de decisões.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i9o1THYmzhd9Tipl.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9tX-nOvr54Xty3xLtzYzEg.gif" /><figcaption>Fonte: <a href="https://clarity.microsoft.com/session-recordings">https://clarity.microsoft.com/session-recordings</a></figcaption></figure><p>Leia mais sobre o <strong>Gravações de sessão</strong> aqui:<br><a href="https://clarity.microsoft.com/session-recordings">https://clarity.microsoft.com/session-recordings</a></p><h4>Insights</h4><p>O Clarity oferece um dashboard com insights importantes, com eles você consegue descobrir rapidamente onde os usuários se frustram e transforme esses problemas em oportunidades.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v6sLfhb-yvx0iB3j.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sKiBSH2mp_kj6CpjPve2LA.gif" /><figcaption>Fonte: <a href="https://clarity.microsoft.com/insights">https://clarity.microsoft.com/insights</a></figcaption></figure><p>Leia mais sobre os <strong>Insights</strong> aqui:<br><a href="https://clarity.microsoft.com/insights">https://clarity.microsoft.com/insights</a></p><h4>Google Analytics</h4><p>Você consegue conectar sua conta do Google Analytics e ter todos os seus dados em um só lugar!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*k-ItI7aeehGmvdI5.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T0Z94RrSUhmpTO9NEZI_hw.gif" /><figcaption>Fonte: <a href="https://clarity.microsoft.com/google-analytics">https://clarity.microsoft.com/google-analytics</a></figcaption></figure><p>Leia mais sobre o <strong>Google Analytics + Clarity</strong> aqui:<br><a href="https://clarity.microsoft.com/google-analytics">https://clarity.microsoft.com/google-analytics</a></p><h3>Agora vamos ao que importa, como fazer a instalação na aplicação React</h3><p>A configuração é extremamente simples:</p><h4>1º Passo: Criar uma conta</h4><p>O primeiro passo é criar uma conta acessando esse link:<br><a href="https://clarity.microsoft.com/">https://clarity.microsoft.com/</a></p><h4>2º Passo: Criar um projeto</h4><p>Para criar um projeto, basta informar algumas informações como <strong>Nome </strong>e <strong>URL </strong>do site:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*osOp1Hlcqr7xV5lJHBWphg.png" /></figure><h4>3º Passo: Fazer a instalação do Script</h4><p>Para isso basta selecionar a opção <strong>Instalar manualmente (Install manually):</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VQ0GwSOah1ylumdw.png" /></figure><h4>4º Passo: Copiar o código gerado</h4><p>Copie o código JavaScript gerado:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1TM3GF835iZB4AjY.png" /></figure><h4>5º Passo: Fazer a instalação na aplicação</h4><p>Para fazer a instalação basta colar o código que copiamos no passo anterior no arquivo <strong>index.html, </strong>ou <strong>_document.tsx, </strong>caso esteja usando o NextJS:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>  &lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot; /&gt;<br>    &lt;link rel=&quot;icon&quot; type=&quot;image/svg+xml&quot; href=&quot;/vite.svg&quot; /&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;<br>    &lt;title&gt;React + Clarity&lt;/title&gt;<br><br>    &lt;script type=&quot;text/javascript&quot;&gt;<br>      (function(c,l,a,r,i,t,y){<br>          c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};<br>          t=l.createElement(r);t.async=1;t.src=&quot;https://www.clarity.ms/tag/&quot;+i;<br>          y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);<br>      })(window, document, &quot;clarity&quot;, &quot;script&quot;, &quot;$your_clarity_id&quot;);<br>  &lt;/script&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;div id=&quot;root&quot;&gt;&lt;/div&gt;<br>    &lt;script type=&quot;module&quot; src=&quot;/src/main.tsx&quot;&gt;&lt;/script&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><p>Pronto, é isso!</p><p>Agora sua aplicação já está enviando dados para o Clarity, simples né?!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FxUPGcEw56dJj3fJFJe%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FxUPGcEw56dJj3fJFJe%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FxUPGcEw56dJj3fJFJe%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/bd5bdfe6ed2ca8745f01d733ebb3723c/href">https://medium.com/media/bd5bdfe6ed2ca8745f01d733ebb3723c/href</a></iframe><p>Coloquei o código de exemplo nesse repositório do GitHub, qualquer dúvida você pode consultar por lá!</p><p><a href="https://github.com/vinniciusgomes/blog/tree/master/react-clarity">blog/react-clarity at master · vinniciusgomes/blog</a></p><p>⚠️ Ah, um ponto bem importante! Lembre-se de colocar um aviso na sua política de cookies avisando os usuários sobre a coleta dos dados!</p><p>Bom, é isso, espero que tenha gostado! E se tiver alguma sugestão deixe aí nos comentários 💬</p><p>Se gostou, dê 1 ou 50 claps 👏</p><p><strong>Obrigado pela leitura!</strong></p><p><em>Me acompanhe por aí! </em>😜</p><ul><li>Portfólio: <a href="https://vinniciusgomes.com/">vinniciusgomes.com</a></li><li>GitHub: <a href="https://github.com/vinniciusgomes">@vinniciusgomes</a></li><li>LinkedIn: <a href="https://www.linkedin.com/in/vinniciusgomes">@vinniciusgomes</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4eb376eef727" width="1" height="1" alt=""><hr><p><a href="https://medium.com/iclubs/monitorando-as-atividades-dos-seus-usuarios-usando-o-microsoft-clarity-em-aplicacoes-react-4eb376eef727">Monitorando as atividades dos seus usuários usando o Microsoft Clarity em aplicações React</a> was originally published in <a href="https://medium.com/iclubs">iClubs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Entendendo closures em JS com exemplos]]></title>
            <link>https://medium.com/iclubs/entendendo-closures-em-js-com-exemplos-56eaffaeeb4f?source=rss----f492d174491d---4</link>
            <guid isPermaLink="false">https://medium.com/p/56eaffaeeb4f</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[closure]]></category>
            <category><![CDATA[module-pattern]]></category>
            <category><![CDATA[currying]]></category>
            <dc:creator><![CDATA[Rafael Medeiros Ribeiro]]></dc:creator>
            <pubDate>Wed, 14 Sep 2022 12:13:13 GMT</pubDate>
            <atom:updated>2022-09-14T12:13:13.614Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*atFxa_W7llQ37t8s" /><figcaption>Photo by <a href="https://unsplash.com/@anotherleaf?utm_source=medium&amp;utm_medium=referral">Chris Arthur-Collins</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Se você for como eu, é provável que já tenha tentando entender o conceito de <em>closure </em>em algum momento em seus estudos de Javascript. E, novamente, se você é como eu, teve que retornar ao conceito várias vezes porque já havia esquecido tudo. Isso é completamente normal, visto que o conceito de <em>closure </em>é bastante abstrato e requer um pouco de esforço mental para alcançarmos um nível de compreensão adequada. Neste pequeno artigo, vou usar alguns exemplos bem básicos para ilustrar como funciona o efeito de <em>closure</em>. Além disso vou mostrar porque ele é importante quando escrevemos código em Javascript.</p><p>A maior parte do que vou escrever aqui pode ser ainda melhor compreendida lendo o segundo livro da série <a href="https://github.com/getify/You-Dont-Know-JS">You Don’t Know JS</a> (Scope and Closures) de <strong>Kyle Simpson</strong>. É um material fantástico e você deveria tê-lo como companheiro em seus estudos.</p><p>Outro detalhe importante é que vou optar por alguns termos em inglês, dado que é mais comum ouví-los sendo usados entre desenvolvedores. Ex: <em>clousure</em> ao invés de <strong>clausura</strong>.</p><h3>O que é closure?</h3><p>Para começar, vamos partir de uma definição precisa de <em>clousure</em>.</p><blockquote>O efeito de closure é observado quando uma função usa variáveis de um escopo externo, ainda que essa função esteja sendo executada em um escopo que normalmente não teria acesso a essa variável</blockquote><p>Os principais pontos de atenção dessa definição são:</p><ul><li>deve haver uma função envolvida</li><li>deve referenciar ao menos uma variável de um escopo externo</li><li>deve ser invocada de um ramo diferente da cadeia de escopo da variável que sofre o <em>closure</em></li></ul><p>Vamos analisar nosso primeiro exemplo, o mais clássico de todos.</p><h3>O exemplo clássico</h3><p>Observe o código abaixo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*FgncSmxDZI85lZdU-phCog.png" /></figure><p>No caso acima, dizemos que a função some10com() possui <em>closure</em> a variável num1. A variável num1, pertence ao escopo da função geradorDeSoma(). A função anônima retornada por geradorDeSoma(), usa em seu escopo interno a variável num1. Quando associamos uma referência dessa função anônima a variável some10com, estamos na verdade criando uma instância dessa função, que por sua vez, guarda na memória a referência a variável num1. Na última linha, quando invocamos essa instância, ela normalmente não teria acesso a variável num1, dada a sua posição léxica, visto que num1 está um nível abaixo na cadeia de escopos. No entanto, via <em>closure</em>, a função permanece com esse acesso. Além disso, num1 é mantido na memória e não passa por <strong>GB</strong> (<em>garbage collection</em>) enquanto for útil para alguma invocação.</p><p>Esse efeito é muito poderoso e é o que permite a implementação de várias práticas na <strong>programação funciona</strong>l e alguns <strong>design patterns</strong>.</p><blockquote>É importante lembrar que com o closure, a função guarda a referência da variável e não de seu valor. Se em algum cenário, essa variável sofrer alteração no seu valor, a função usará o novo valor.</blockquote><h3>Closures em callbacks</h3><p>O efeito de <em>closure</em> é amplamente utilizado para <em>callbacks</em>. Vejamos o exemplo abaixo de uma chamada <strong>Ajax</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*dKfUA_BcjyYaili7FMUHdQ.png" /></figure><p>A função ajax(), quando receber uma resposta, irá invocar a função declarada como segundo argumento e passará essa resposta como argumento (no parâmetro registro). No momento que registros()é chamada, a função buscarRegistroDoAluno() já terminou sua execução. Ainda assim, registros() continua tendo acesso a variável idDoAluno, via <em>closure</em>.</p><h3>Manipuladores de evento</h3><p><em>Closures </em>também são comumente encontradas em <em>event handlers</em>. Vamos analisar o código abaixo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xbIdBBDZpJOPwxhEHFTA0w.png" /></figure><p>Nesse caso, a função aguardandoCliques() adiciona um <em>listener</em> de eventos do tipo ‘<em>click</em>’ ao botaoComprar e passa uma <em>callback</em> como segundo argumento. A função aoClicar() faz referência a variável nomeDoBotao e, quando é chamada, mesmo depois do encerramento da execução de agurandandoCliques(), permanece com acesso a essa variável. Mais uma vez, algo que não seria normalmente possível. Como é possível? <em>Closure</em>.</p><p>Como você deve ter percebido, o efeito do <em>closure</em> altera o fluxo normal de cilco de vida das variáveis no momento de execução. Escopos que são criados na execução de funções, normalmente são encerrados e <em>garbage collected</em> após a interpretação de um return ou }, por exemplo. Com <em>closure</em>, essas variáveis permanecem na memória. Uma consequência disso é que devemos nos ater a esse detalhe quando escrevemos nosso código, principalmente quando a variável que sofre <em>closure</em> guarda a referência de uma estrutura de dados grande (como uma <em>array</em> longa). Portanto, no momento em que definimos um <em>closure</em> desse tipo, por boa prática, deveríamos cuidar para que essa referência fosse limpa assim que não fosse mais necessária. Assim, evitamos <strong>desperdício de recurso</strong> e <strong>exposição inadvertida de dados</strong>.</p><p>Vamos ver um exemplo de como lidar com esse tipo de cenário:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FLBQgZjX4AqjXKmklAWQJg.png" /></figure><p>No exemplo acima, a variável manipuladoresDeCliquenão será descartada por conta do <em>closure</em>. Porém, será uma <em>array</em> vazia, e qualquer valor que ela possuía antes, por maior que fosse, será <em>garbage collected</em>.</p><h3>Currying</h3><p>Outra aplicação recorrente do efeito <em>closure</em> é o <em>currying </em>e a aplicação parcial, muito usados na <strong>programação funcional</strong>. Observe o exemplo abaixo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*byCBrPWsyxwZ94a_B8MKCw.png" /></figure><p>O que observamos acima é que definirManipulador() é uma aplicação parcial que cria as referências urlDoRequest e dadosDoRequest necessárias para a chamada <strong>ajax</strong>. Assim, podemos criar <em>manipuladores</em> com a segunda função mais facilmente, passando apenas um argumento, melhorando a legibilidade do código. Quando o evento for disparado, o que é passado como argumento para a <em>callback</em> manipulador() é o próprio evento do clique (que não é usado). Ainda assim, essa callback guarda as referência da URL e dos dados a serem utilizados para a chamar a função ajax() . Isso é possível, graças ao efeito de <em>closure</em>.</p><h3>Conclusão</h3><p>Chegamos ao fim do nosso artigo. Se você ainda se sente confuso, não se preocupe. Nem todos conceitos de programação são fáceis ou rapidamente compreendidos. Tome seu tempo. Releeia. Escreva o código na sua IDE favorita e execute-o em ‘<em>debug mode’</em>. Não apresse seu aprendizado. Esses fundamentos serão importantes para sua jornada como desenvolvedor. Construa uma base sólida e retorne ao básico sempre que sentir a estrutura do seu conhecimento fragilizada. Seja paciente e respeite seu ritmo.</p><p>Agora, se após essa leitura, você acha que finalmente entendeu o conceito de <em>closure</em>, parabéns! Esse efeito é importantíssimo e amplamante utilizado para construir códigos mais eficientes, reaproveitáveis e legíveis.</p><p>Se você identificou algum ponto falho na minha explicação, por favor, deixe um comentário. Caso tenha sido uma leitura proveitosa, deixe seu agradecimento.</p><p>Bons estudos.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56eaffaeeb4f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/iclubs/entendendo-closures-em-js-com-exemplos-56eaffaeeb4f">Entendendo closures em JS com exemplos</a> was originally published in <a href="https://medium.com/iclubs">iClubs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Improvisar, adaptar, superar]]></title>
            <link>https://medium.com/iclubs/improvisar-adaptar-superar-9322b3ad01f5?source=rss----f492d174491d---4</link>
            <guid isPermaLink="false">https://medium.com/p/9322b3ad01f5</guid>
            <category><![CDATA[saúde-mental]]></category>
            <category><![CDATA[bem-estar]]></category>
            <category><![CDATA[superação]]></category>
            <category><![CDATA[sucesso]]></category>
            <dc:creator><![CDATA[Rafael Medeiros Ribeiro]]></dc:creator>
            <pubDate>Thu, 01 Sep 2022 14:05:46 GMT</pubDate>
            <atom:updated>2022-09-01T14:05:46.883Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_rv9BiTuxvv1sobp" /><figcaption>Photo by <a href="https://unsplash.com/@jannerboy62?utm_source=medium&amp;utm_medium=referral">Nick Fewings</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>English version <a href="https://medium.com/@rafaelmedrib/improvise-adapt-overcome-207cc0216acb">here</a></blockquote><p>Se você é como a maioria das pessoas, seus dias estão repletos de desafios. Você enfrenta ansiedade no trabalho, dificuldades familiares em casa e problemas de saúde no meio do caminho. Com tantas coisas competindo por sua atenção, parece impossível fazer qualquer tipo de progresso. Como podemos esperar permanecer concentrados e não desistir?</p><p>Existe um <em>slogan</em> sub-oficial entre os fuzileiros navais dos EUA que se refere ao processo de seguir em frente a despeito das dificuldades inesperadas: <strong>improvisar</strong>, <strong>adaptar</strong>, <strong>superar</strong>. Muitas empresas e indivíduos bem sucedidos adotaram uma abordagem semelhante para lidar com os desafios e alcançar o sucesso. E é disso que se trata esse artigo.</p><h3>Improvise</h3><p>O Presidente Eisenhower dos EUA disse certa vez: “<em>Planos são inúteis, mas planejamento é tudo</em>”. O mesmo é verdade para nossas vidas. Se nos fixamos demais em um plano, corremos o risco de perder oportunidades que venham em nosso caminho.</p><p>Ser habilidoso no exercício de premeditar resultados e avaliar nossas alternativas nos dá uma grande vantagem quando somos confrontados com decisões importantes. Mas esse exercício só tem valor se nos mantivermos flexíveis e responsivos quando as coisas não correm conforme o planejado.</p><p>Algumas pessoas se apegam demais ao ponto de se recusarem a desviar-se do plano, mesmo quando uma idéia melhor se apresenta. Se você é o tipo de pessoa que gosta de ter cada passo de seu dia premeditado, então eu tenho uma má notícia para você:</p><blockquote>As coisas não acontecerão do jeito que você espera.</blockquote><p>A vida é muito mais complexa do que qualquer pessoa possa compreender plenamente. Às vezes, você tem que ser capaz de se adaptar e mudar de rumo quando as circunstâncias assim o exigem. E isso acontece o tempo todo. As pessoas que conseguem lidar melhor com a incerteza estão mais bem equipadas para lidar com contratempos e a conquistar seus objetivos.</p><p>O primeiro passo é começar a acreditar mais em si mesmo. Você sobreviveu a 100% dos seus erros até agora. As chances são muito boas de você sobreviver ao próximo também. Saber que você é uma pessoa hábil, que pode lidar com qualquer coisa que a vida lance sobre ti, o ajudará a estar mais relaxado diante das adversidades.</p><p>Agora você precisa adotar a mentalidade de improvisação. Para isso, é melhor começar com coisas pequenas. Pense nas coisas sem importância que você está acostumado a planejar e quebre esse ciclo. Mude sua rota para o trabalho, sente-se em uma cadeira diferente na mesa, altere um pouco suas rotinas diárias. Veja como sua mente reage a essas mudanças. Observe como seu cérebro entra em um estado criativo para lidar com estas pequenas surpresas. Este exercício lhe dará uma visão de si mesmo e de como você pensa. Ele também o ajudará a se preparar para desafios maiores no futuro.</p><h3>Adapte</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jbi1pggOjW-Qnk_4" /><figcaption>Photo by <a href="https://unsplash.com/@scw1217?utm_source=medium&amp;utm_medium=referral">Suzanne D. Williams</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>“O universo é transformação, a vida é opinião” — Marcos Aurélio</blockquote><p>Você provavelmente já ouviu dizer que só há uma coisa constante na vida: a mudança. E isso é verdade. Tudo neste mundo está sempre mudando… sempre se adaptando às novas condições com o fim de sobreviver. Este é o caminho da natureza. Grandes mentes como Charles Darwin e Herbert Spencer entenderam isso muito bem. Eles entenderam que a adaptabilidade é a chave para a sobrevivência.</p><p>Este mesmo conceito, tão essencial para a perpetuação das espécies, também pode ser aplicado a nossas próprias vidas. Mas como devemos aplicar este princípio fundamental e como isso nos ajuda a sermos mais produtivos e bem-sucedidos?</p><p>Em uma de suas entrevistas mais famosas, Bruce Lee disse certa vez: “<em>Seja água, meu amigo</em>”. Ele estava tentando nos ensinar que precisamos nos adaptar ao nosso ambiente para ter sucesso em nossas vidas. Ser como a água, moldável, sem forma definida, significa deixar de lado nossos preconceitos sobre nós mesmos e o que pensamos saber sobre o mundo. Em outras palavras, para sermos como a água e para nos misturarmos completamente com o momento presente, devemos nos desprender do ego. O que quer que tenha feito você chegar onde está na vida agora, não o levará aonde você precisa ir em seguida.</p><p>Paulinho da Viola, um famoso músico brasileiro canta em uma de suas canções mais memoráveis, Timoneiro — “<em>Não sou eu quem me navega; quem me navega é o mar</em>”. O mar como uma metáfora da própria vida e nós como o timoneiro que conduz o barco. Para nos tornarmos um bom marinheiro, devemos estar constantemente aprendendo com as marés e as correntes do mar. Devemos nos render às ondas da vida à medida que elas passam por nós e aceitar seus ensinamentos.</p><h3>Supere</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8huX81Xo9Yu8J5ll" /><figcaption>Photo by <a href="https://unsplash.com/@alessandroerbetta?utm_source=medium&amp;utm_medium=referral">Alessandro Erbetta</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>“O obstáculo se torna o caminho” — Marcos Aurélio</blockquote><p>A adversidade pode ser vista como a força motriz que alimenta o progresso. A própria natureza evolui e avança através da luta, do conflito e da resistência. A humanidade é muito parecida. Nós avançamos superando obstáculos e desafios. A única maneira de vencer a adversidade é desafiá-la de frente.</p><p>Vamos refletir sobre as diferenças entre as civilizações pré-colombianas da América do Sul e do Oriente Médio. Durante o século XVI, as civilizações do Oriente Médio eram das mais avançadas do mundo, enquanto os índios sul-americanos viviam nas selvas de forma completamente diferente. A abundância de recursos como água, clima propício ao cultivo e diversidade de caça e pesca tornaram a vida dos sul-americanos muito mais fácil do que o ecossistema mais rigoroso do Oriente Médio. Mas foram estas condições adversas que forçaram os médio-orientais a desenvolver tecnologias para estocar a produção agrícola por períodos mais longos de tempo. Por outro lado, as selvas sul-americanas ofereciam muitos riscos à saúde, especialmente quando se tratava de insetos portadores de doenças, como os mosquitos, por exemplo. Esta ameaça fez com que os povos indígenas deste período desenvolvessem poções complexas para curar estas doenças. E ainda estão sendo estudadas e bioprospectadas por empresas farmacêuticas até hoje.</p><p>Meu ponto é que cada desafio que enfrentamos em nossas vidas pode ser usado como uma oportunidade para aprender e crescer como pessoa. Na verdade, a maneira como lidamos com nossos desafios que determina nosso sucesso. É por isso que Seneca escreveu — “<em>Nenhum homem é mais infeliz do que aquele que nunca enfrenta a adversidade. Pois não lhe é permitido provar a si mesmo</em>”.</p><p>Quando confrontado pela adversidade, lembre-se de que nosso próprio estilo de vida foi construído em cima das dificuldades e esforços dos nossos antepassados. Quando escolhemos continuar seguindo em frente, apesar das dificuldades, estamos cumprindo nosso dever como seres humanos. É parte de ser uma criatura viva neste universo. Portanto, mantenha-se forte, mantenha sua cabeça erguida e supere suas lutas agora e todos os dias!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9322b3ad01f5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/iclubs/improvisar-adaptar-superar-9322b3ad01f5">Improvisar, adaptar, superar</a> was originally published in <a href="https://medium.com/iclubs">iClubs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Improvise, adapt, overcome]]></title>
            <link>https://medium.com/iclubs/improvise-adapt-overcome-207cc0216acb?source=rss----f492d174491d---4</link>
            <guid isPermaLink="false">https://medium.com/p/207cc0216acb</guid>
            <category><![CDATA[success]]></category>
            <category><![CDATA[positive-thinking]]></category>
            <category><![CDATA[mental-health]]></category>
            <dc:creator><![CDATA[Rafael Medeiros Ribeiro]]></dc:creator>
            <pubDate>Thu, 01 Sep 2022 14:05:26 GMT</pubDate>
            <atom:updated>2022-09-01T14:05:26.859Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*043SpOtwZJ0IBzGu" /><figcaption>Photo by <a href="https://unsplash.com/@jannerboy62?utm_source=medium&amp;utm_medium=referral">Nick Fewings</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>Versão em português <a href="https://medium.com/@rafaelmedrib/improvisar-adaptar-superar-9322b3ad01f5">aqui</a></blockquote><p>If you’re like most people, your days are filled with challenges. You face anxiety at work, family problems at home and health issues on the go. With so many things competing for your attention, it can be tough to make progress. So how can we expect to stay focused and not give up?</p><p>There is a unofficial slogan among the Marines that refers to the process of adapting to new situations: improvise, adapt, overcome. Many companies and successful individuals have adopted a similar approach in dealing with challenges and achieving success. And that’s what this article is all about.</p><h3>Improvise</h3><p>US President Eisenhower once said “<em>Plans are worthless, but planning is everything</em>”. The same is true for our lives. If we get too fixated on a plan, we run the risk of missing opportunities that come our way.</p><p>Being capable in the exercise of premeditating outcomes and evaluating our alternatives gives us a great advantage when we are faced with important decisions. But this exercise has value only if we remain flexible and responsive when things don’t go according to plan.</p><p>Some people get too attached to the point where they refuse to deviate from the plan, even when a better idea presents itself. If you are the kind of person who likes to have every step of your day premeditated, then I have bad news for you. Things won’t happen the way you expected. Life is much more complex than any person can fully comprehend. Sometimes you have to be able to adapt and change course when the circumstances demand it. And this happens all the time. People who can deal better with uncertainty are better equipped to deal with unexpected setbacks and achieve more in life.</p><p>The first step is to start believing more in yourself. You survived 100% of your mistakes so far. Odds are pretty good that you’ll survive the next one too. Knowing that you are a skillful person that can deal with whatever life throws at you will help you to be more relaxed in the face of adversity.</p><p>Now you need to adopt the improvisation mindset. It is better to start with small things. Think about the uninportant things you are used to plan and break the cycle. Change your route to work, seat in a different chair at the table, shuffle your daily routines a little. See how your mind reacts to these changes. Notice how your brain enters a creative state to deal with these small surprises. This exercise will give you a lot of insight about yourself and how you think. It will also help you prepare for the bigger challenges ahead.</p><h3>Adapt</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KcQXRXI-9VsYu0YF" /><figcaption>Photo by <a href="https://unsplash.com/es/@scw1217?utm_source=medium&amp;utm_medium=referral">Suzanne D. Williams</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>“The universe is transformation, life is an opinion” — Marcus Aurelius</blockquote><p>You probably heard that there is only one thing constant in life: change. And this is true. Everything in this world is always changing… always adapting to new conditions in order to survive. This is the way of nature. Great minds like Charles Darwin and Herbert Spencer understood this very well. They understood that adaptability is the key to survival.</p><p>This same concept, so essential to the perpetuation of our species, can also be applied to our own lives. But how should we apply this fundamental principle? And how does this help us become more productive and successful?</p><p>In one of his most famous interviews, Bruce Lee once said: “<em>Be water, my friend</em>”. He was trying to teach us that we must adapt to our surroundings in order to succeed in our lives. To be like water, formless, shapeless means to let go of our preconceptions about ouserlves and what we think we know about the world. In other words, to become like water and to completely blend with the present moment, we must let go of ego. Whatever made you get where you are in life now will not get you where you need to go next.</p><p>Paulinho da Viola, a famous brazillian musician sings in one of his most memorable song, Timoneiro — “<em>I am not the one who navigates me; The sea navigates me</em>”. The sea as a metaphor for life itself and us like the helmsman who steers the ship. In order to become a good sailor we must be constantly learning from the ebb and flow of the seas. We must surrender to the current of life as it flows past us and accept its teachings.</p><h3>Overcome</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SNiX92IGk_b6kMXa" /><figcaption>Photo by <a href="https://unsplash.com/@alessandroerbetta?utm_source=medium&amp;utm_medium=referral">Alessandro Erbetta</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>“What stands in the way becomes the way” — Marcus Aurelius</blockquote><p>Adversity can be thought as the moving power that fuels progress. Nature itself evolves and advances through struggle, conflict and resistance. Mankind is much the same. We advance by overcoming obstacles and challenges. The only way to overcome adversity is to challenge it head on.</p><p>Let’s reflect on the differences between civilizations from the pre-colombian south america and middle-east. During the 1500’s, middle eastern civilization was the most advanced on Earth while the south american indians were living completely different lives in the jungles. The abundance of resources like water, year long growing seasons and plenty supply of game made life much easier for the south americans than the harsher climates and living conditions of the middle east. But it was these harsh conditions that forced the middle easterns to develop technologies to stock crop production for longer periods of time. In the other hand, south american jungles offered many risks to health, specially when it came to disease carrying insects like mosquitos for example. This adversity made the indigenous people from this period to develop complex potions to cure these diseases and are still being studied and bioprospected by pharm companies to this day.</p><p>My point is, every challenge we face in our lives can be used as an opportunity to learn and grow as a person. In fact, it is how we handle our challenges that determines our success. That’s why Seneca wrote — “<em>No man is more unhappy than he who never faces adversity. For he is not permitted to prove himself</em>”.</p><p>When faced by adversity, remember that our very lifestyle was built on top of the struggles of our past ancestors. When we choose to keep pushing foward, despite the difficulties, we are doing our duties as human beings. It’s part of being a living creature in this universe. So stay strong, keep your head up and overcome your struggles now and every day!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=207cc0216acb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/iclubs/improvise-adapt-overcome-207cc0216acb">Improvise, adapt, overcome</a> was originally published in <a href="https://medium.com/iclubs">iClubs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building automated API and UI tests with Cucumber, PactumJS, Puppeteer and Chai]]></title>
            <link>https://medium.com/iclubs/building-automated-api-and-ui-tests-with-cucumber-pactumjs-puppeteer-and-chai-b34a7341e53e?source=rss----f492d174491d---4</link>
            <guid isPermaLink="false">https://medium.com/p/b34a7341e53e</guid>
            <category><![CDATA[cucumber]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <dc:creator><![CDATA[Rafael Medeiros Ribeiro]]></dc:creator>
            <pubDate>Wed, 24 Aug 2022 15:00:03 GMT</pubDate>
            <atom:updated>2022-09-13T17:59:25.768Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KKgAUHr09bJUuKQN" /><figcaption>Photo by <a href="https://unsplash.com/@joshua_j_woroniecki?utm_source=medium&amp;utm_medium=referral">Joshua Woroniecki</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Why automated tests?</h3><p>Companies have been investing more and more in software testing. Incorporating tests in SDLC has helped businesses to save a lot of time and money, reducing defects, support costs, downtime and refactoring efforts. In the long run, tests have become one of the most important parts of building a successful product.</p><p>For many cases, there is no substitute to manual testing. Humans test software in a exploratory way, looking not only for bugs but also for usability issues, user interface design and different workflows. In other words, things that a software robot cannot do. However, doing manual testing can be time-consuming, expensive and error-prone. There are definitely cases where automation makes sense.</p><p>Automated tests are specially useful for regression testing and can be used to automatically verify the results of changes made to the code, without the need to go through the same steps manually every time.</p><h3>What are we going to build?</h3><p>In this brief tutorial, we will build a project to test a REST API and some simple UI validations, using the following tools: <a href="https://cucumber.io/">Cucumber</a>, <a href="https://pactumjs.github.io/">PactumJS</a>, <a href="https://pptr.dev/">Puppeteer</a> and <a href="https://www.chaijs.com/">Chai</a>. Let’s start with the pre-requirements. I will be using:</p><ul><li>Javascript (nothing fancy)</li><li>NodeJS</li><li>npm</li><li>VSCode</li></ul><p>If you already meet them you can jump straight to the tutorial on how to set up the environment and start building the project. Otherwise, it’s better if you get a little confortable with these basic technologies before moving on to the setup of our project.</p><h3>Setting up the environment</h3><p>Create a new folder and setup npm with :</p><pre>npm init -y</pre><p>Install our dependencies:</p><pre>npm i -D @cucumber/cucumber pactum puppeteer chai</pre><p>And that’s it. We now have all the tools we need to start coding.</p><h3>Cucumber</h3><p>The first step when working with cucumber is to write the scenarios we want to test. These scenarios are written in the Gherkin language. For this tutorial, I won’t focus on explaining Gherkin syntax in detail; you can find more information <a href="https://cucumber.io/docs/gherkin/reference/">here</a>. With this said, let’s create our first .feature file in the features folder:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2d4368c66b5ae3375c81ed9a167ae3e6/href">https://medium.com/media/2d4368c66b5ae3375c81ed9a167ae3e6/href</a></iframe><p>In our package.json file, let’s add cucumber as our standard test manager:</p><pre>&quot;scripts&quot;: {<br>  &quot;test&quot;: &quot;cucumber-js&quot;,<br>}</pre><p>Now, we run cucumber for the first time using:</p><pre>npm test</pre><p>Since we still don’t have our step definitions, cucumber will alert us. And more than that, it will output some code snippets that can help us speed up our work.</p><p>So, let’s create our step definitions in features/step_definitions/pokemonAPI.js</p><p>Copy the snippets cucumber generated and import the required methods, like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e8d94a6c088b2fe2d017a3b274ae833f/href">https://medium.com/media/e8d94a6c088b2fe2d017a3b274ae833f/href</a></iframe><p>At this point, if you run your test again, you will notice we’ve made some progress. The output will show that the steps are not undefined anymore, but pending. Now is time to introduce our next library, PactumJS.</p><h3>PactumJS</h3><p>This library will help us orchestrate our tests by combining Cucumber and Chai into a powerful test runner for JavaScript applications. Let’s write our code to turn each step into concrete actions.</p><p>First, lets initialize a pactum instance.</p><pre>const { spec } = require(“pactum”);<br>let _spec = spec();</pre><p>We reference this instance in the file scope, so we can share it between the steps. This can also be achieved by using the keyword this. In this case, this will point to cucumber’s World global object, which is avaible for all the steps. Let’s give it a try…</p><pre>Given(&#39;I want to retrieve info about {string}&#39;, function (pokemon) {<br>  this.pokemon = pokemon<br>});</pre><p>For the next step, we are going to use pactum’s method get to make a http request to the Pokemon API that we passed via docstring.</p><p>First, we deconstruct the docstring</p><pre>When(&#39;I make a request to the Pokemon API&#39;, async function (docString) {<br>  const { url } = JSON.parse(docString);</pre><p>Then we use the method get to setup our request.</p><pre>_spec.get(url + this.pokemon);</pre><p>Finally, we use the toss method to actually make the request. Since it is an asynchronous method, we will use ES6 async/await synthax. Also, we’re going to store the response into cucumber’s World object so we can run our assertions in the last step.</p><pre>this.response = await _spec.toss()</pre><p>To make our assertions we could use Pactum own methods or instantiate Chai should function.</p><pre>const chai = require(&quot;chai&quot;);<br>let should = chai.should();</pre><p>In this tutorial we’re going to deconstruct the JSON body of the response and then use should assertion to check if it has the information we want.</p><pre>Then(&#39;I should retrieve the pokemon info, such as it\&#39;s {string}&#39;, function (expectedInfo) {<br>  const { json } = this.response;<br>  json.should.have.property(expectedInfo);<br>});</pre><p>The file should look like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2c2f4b17921d79ad3b44d5a042da7258/href">https://medium.com/media/2c2f4b17921d79ad3b44d5a042da7258/href</a></iframe><p>And that’s it! Our test is ready and - if you’ve followed this tutorial - now you have a passing result when running npm test.</p><h3>Puppeteer</h3><p>Puppeteer is a framework for automating browser interactions from Node.js and other Node-based environments. It can be used to control Chrome or any other Chromium-based browser, speeding up UI testing.</p><p>First, we need to create a new scenario. Add the following code to features/calculatorUI.feature</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd3b34b61c002a7f8b9b9d37078aff1f/href">https://medium.com/media/dd3b34b61c002a7f8b9b9d37078aff1f/href</a></iframe><p>Also, let’s refactor our previous scenario, adding a tag to it, so we can run each test separately.</p><pre>@pokemon_api<br>Scenario: Pokemon info retrieved successfully</pre><p>We’ve added a tag for our calculator test too.</p><p>Finally, we update our package.json file:</p><pre>&quot;scripts&quot;: {<br>  &quot;test&quot;: &quot;cucumber-js&quot;,<br>  &quot;test:pokemonAPI&quot;: &quot;cucumber-js --tags @pokemon_api&quot;,<br>  &quot;test:calculatorUI&quot;: &quot;cucumber-js --tags @calculator_ui&quot;<br>}</pre><p>Run cucumber again (npm run test:calculatorUI) and copy the snippets from the output into features/step_definitions/calculatorUI.js</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/221386e24bd31fd22d8a4dac73eaf483/href">https://medium.com/media/221386e24bd31fd22d8a4dac73eaf483/href</a></iframe><p>Moving on, let’s create a puppeteer page instance. For this, we’re going to use the beforeAll cucumber hook. It will be called, as the name suggests, before the other steps.</p><pre>const puppeteer = require(&quot;puppeteer&quot;);</pre><pre>let page;<br>let browser;</pre><pre>BeforeAll(async function() {<br>  browser = await puppeteer.launch({ headless: false });<br>  page = await browser.newPage();<br>})</pre><p>The first step is the easyest one. Just tell the page to navigate to the url and wait until the newtwork is idle.</p><pre>Given(&#39;I access the website {string}&#39;, async function (url) {<br>  await page.goto(url, { waitUntil: &quot;networkidle2&quot; });<br>});</pre><p>Next, we emulate keyboard events:</p><pre>When(&#39;I use the calculator to multiply {string} times {string}&#39;, async function (num1, num2) {<br>  await page.keyboard.press(num1);<br>  await page.keyboard.press(&quot;*&quot;);<br>  await page.keyboard.press(num2);<br>});</pre><p>Then, for the third step, we will store the selectors for the calculator output element and the equal button in a different file, to keep our step definitions clean. In shared/selectors.js:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/88622a21764505c0de1f19c0ad299ea5/href">https://medium.com/media/88622a21764505c0de1f19c0ad299ea5/href</a></iframe><p>We will use these selectors to emulate a mouse click on the equal button and then validate if the answer displayed in the output element is the correct one.</p><pre>const { equalButton, calculatorOutput } = require(&quot;../../shared/selectors.js&quot;)</pre><pre>When(&#39;I press the equal button&#39;, async function () {<br>  await page.click(equalButton);<br>});</pre><pre>Then(&#39;I should get the answer {string}&#39;, async function (expectedResult) {<br> <br>  const actualResult = await page.$eval(calculatorOutput, el =&gt;        el.innerText);</pre><pre>  actualResult.should.include(expectedResult);<br>});</pre><p>Don’t forget to add an AfterAll hook at the end to close the browser. Your step definition file should look like this at the end:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0d5b562297b16895e7116a18abb083d8/href">https://medium.com/media/0d5b562297b16895e7116a18abb083d8/href</a></iframe><p>We are done! Now run the tests and compare them with the original values. If you have followed the tutorial you should have a Pass result in your test run. Congratulations! 👏</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x3GZYTde0HirM2Ij" /><figcaption>Photo by <a href="https://unsplash.com/@krakenimages?utm_source=medium&amp;utm_medium=referral">krakenimages</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>What can you do next?</h3><p>Test automation is a whole universe on itself and once you’ve grasped the basic concept you can go deeper and deeper exploring other techniques to build comprehensive tests and verify your code. We’ve just scratched the surface here but now that you’ve been introduced to this new world you can feel free to explore it by yourself.</p><p>For begginers, I suggest learning how to create better scenarios with decoupled steps, learn more about the cucumber synthax, interception of requests/responses and manipulating them.</p><p>I hope you enjoyed learning the basics of automated testing and I hope this code helps you to understand it better. If you liked, leave some claps, please. This motivates me to continue writing tutorials for you.😄</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b34a7341e53e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/iclubs/building-automated-api-and-ui-tests-with-cucumber-pactumjs-puppeteer-and-chai-b34a7341e53e">Building automated API and UI tests with Cucumber, PactumJS, Puppeteer and Chai</a> was originally published in <a href="https://medium.com/iclubs">iClubs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Como a Cultura Organizacional certa pode melhorar sua saúde mental e alavancar sua carreira]]></title>
            <link>https://medium.com/iclubs/como-a-cultura-organizacional-certa-pode-melhorar-sua-sa%C3%BAde-mental-e-alavancar-sua-carreira-9371f34d286c?source=rss----f492d174491d---4</link>
            <guid isPermaLink="false">https://medium.com/p/9371f34d286c</guid>
            <category><![CDATA[carreira]]></category>
            <category><![CDATA[cultura-organizacional]]></category>
            <category><![CDATA[saúde-mental]]></category>
            <category><![CDATA[burnout]]></category>
            <dc:creator><![CDATA[Rafael Medeiros Ribeiro]]></dc:creator>
            <pubDate>Wed, 10 Aug 2022 19:19:57 GMT</pubDate>
            <atom:updated>2022-08-10T19:19:57.549Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JbK7iUd85n25MIhw" /><figcaption>Photo by <a href="https://unsplash.com/@windows?utm_source=medium&amp;utm_medium=referral">Windows</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>English version <a href="https://medium.com/@rafaelmedrib/how-the-right-type-of-organizational-culture-can-improve-your-mental-health-and-boost-your-carrer-4e3723010068">here</a></blockquote><p>Se você esteve no LinkedIn recentemente, você provavelmente percebeu que o recrutamento está cada vez mais parecido com o <a href="https://www.techtarget.com/searchhrsoftware/definition/recruitment-marketing#:~:text=Recruitment%20marketing%20is%20the%20combination,brand%20to%20attract%20appropriate%20candidates.">marketing</a>. Neste contexto, a <strong>cultura organizacional </strong>é apenas outro fator que as empresas podem usar para competir. Ela ajudará a atrair os melhores talentos e reter seus melhores funcionários.<br>Mas o que é cultura organizacional? Que tipos de culturas são comuns no local de trabalho? Como nós somos afetados como indivíduos?</p><h3>Cultura Organizacional?</h3><p>Para começar, vamos deixar claro que toda empresa tem uma cultura organizacional de algum tipo ou de outro. Em alguns locais de trabalho, ela se desenvolve de forma não planejada ao longo do tempo e, em outros, é cuidadosamente cultivada pela liderança da empresa para garantir que ela permaneça alinhada com os valores da organização.<br>A cultura organizacional é, simplesmente, o ambiente ou o clima de uma organização. Uma soma de suas normas, valores, costumes, hábitos, cerimônias, crenças e muito mais. Como cada local de trabalho é único, seus valores também serão únicos. Um valor central em uma empresa pode ser algo completamente estranho a outra. Por exemplo, as empresas de tecnologia, que fomentam uma cultura inovadora, muitas vezes têm um código de vestuário mais flexível do que as <a href="https://www.buzzfeednews.com/article/sapna/abercrombies-preppy-police-enforce-cuffs-sleeves-internal-do">empresas mais tradicionais</a>.</p><h3>Quais são os impactos da Cultura Organizacional?</h3><p>Estudos mostram que uma cultura organizacional saudável leva ao <a href="https://psycnet.apa.org/record/2012-22425-035">aumento da produtividade</a> e à melhoria da satisfação dos funcionários. Os funcionários ficam mais motivados a fazer um bom trabalho quando estão em um ambiente onde são tratados com cuidado e apoio.<br>Há até mesmo alguns efeitos inesperados. Uma <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5695304/#:~:text=We%20found%20that%20overall,%20positive%20organisational%20and%20workplace%20cultures%20were">pesquisa</a> realizada em instituições de saúde mostrou que a evolução do paciente pode ser afetada pelo ambiente de trabalho da equipe médica. Enfermeiras e médicos bem cuidados se traduz em menos complicações para os pacientes e taxas de recuperação maiores.</p><h3>Burnout e outras doenças mentais ligadas ao trabalho</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KENqASlI0avic_7m" /><figcaption>Photo by <a href="https://unsplash.com/@elisa_ventur?utm_source=medium&amp;utm_medium=referral">Elisa Ventur</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A menos que você esteja vivendo escondido em algum lugar na floresta, você provavelmente vem ouvindo falar bastante sobre <strong>burnout </strong>ultimamente. E por um bom motivo!<br>As estatísticas sobre burnout no local de trabalho estão aumentando, levando a uma grave crise de saúde mental e física na população trabalhadora. Medicamentos para ansiedade como <strong>aprazolam </strong>e <strong>sertralina </strong>são alguns dos medicamentos <a href="https://edition.cnn.com/2020/04/16/health/anti-anxiety-medication-us-demand-coronavirus/index.html#:~:text=(CNN)%20More%20Americans%20are%20turning,Cigna%2Downed%20pharmacy%20benefit%20manager.">mais prescritos</a> atualmente nos EUA. Isso é mais do que todas as prescrições combinadas para qualquer outra doença mental. No Google, buscas sobre maneiras de lidar com o estresse no trabalho também dispararam nos últimos anos.</p><h3>O que é uma boa Cultura Organizacional?</h3><p>A resposta decepcionante para esta pergunta é: “depende”. Como dissemos anteriormente, empresas diferentes têm necessidades diferentes que levam a culturas organizacionais diferentes. Por outro lado, podemos dar alguns exemplos que são aplicáveis à maioria dos ambientes de trabalho e estão relacionados a uma melhor produtividade e bem-estar dos funcionários:</p><ul><li>Permitir que os funcionários trabalhem em casa, quando necessário</li><li>Proporcionar horários de trabalho flexíveis</li><li>Encorajar a comunicação aberta entre os funcionários</li><li>Oferecer oportunidades de desenvolvimento profissional e treinamentos patrocinados pela empresa</li><li>Organização de atividades sociais</li><li>Incentivar o exercício físico entre os funcionários</li></ul><p>Estes são apenas alguns exemplos de como as empresas podem desenvolver uma cultura organizacional positiva que beneficia tanto os empregados quanto os empregadores. Além do bem-estar dos funcionários, uma cultura organizacional saudável também pode contribuir para melhorar a retenção dos funcionários e aumentar a satisfação no trabalho.</p><h3>Conclusão</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oh2ZLvxsSAKnRDNd" /><figcaption>Photo by <a href="https://unsplash.com/@jasongoodman_youxventures?utm_source=medium&amp;utm_medium=referral">Jason Goodman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Trabalhar em um lugar em que os valores e crenças se ajustam aos nossos é fundamental para a felicidade e o sucesso na vida. As empresas que promovem o bem-estar dos funcionários e facilitam o crescimento na carreira, certamente terão colaboradores mais saudáveis e motivados.</p><p>Aqui na <a href="https://www.iclubs.tech/">iClubs</a>, acreditamos que uma empresa bem sucedida é aquela que oferece oportunidades de desenvolvimento pessoal e profissional. É por isso que nossas equipes se reúnem freqüentemente para reforçar nossos valores — <strong>liberdade</strong>, <strong>transparência </strong>e <strong>feedback</strong>. Nosso pessoal é encorajado a fazer suas próprias horas, viajar (usando nosso <a href="https://ferias.co/">benefício de viagem</a>), cuidar de sua mente e corpo (usando <a href="https://www.gympass.com/">gympass</a>), estudar (patrocinando com voucher e certificação) e desenvolver um bom relacionamento uns com os outros com muitas atividades como happy-hour, palestras, aulas de alongamento e muito mais.</p><p>Espero que este artigo tenha mostrado a importância de uma cultura organizacional bem planejada e como ela pode ser alcançada mesmo em startups como a iClubs. Cinco trabalhadores bem cuidados valem mais deo que quinze trabalhadores esgotados, portanto, cuide de sua empresa e mostre a seus funcionários que você realmente se importa!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9371f34d286c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/iclubs/como-a-cultura-organizacional-certa-pode-melhorar-sua-sa%C3%BAde-mental-e-alavancar-sua-carreira-9371f34d286c">Como a Cultura Organizacional certa pode melhorar sua saúde mental e alavancar sua carreira</a> was originally published in <a href="https://medium.com/iclubs">iClubs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How the right type of organizational culture can improve your mental health and boost your carrer]]></title>
            <link>https://medium.com/iclubs/how-the-right-type-of-organizational-culture-can-improve-your-mental-health-and-boost-your-carrer-4e3723010068?source=rss----f492d174491d---4</link>
            <guid isPermaLink="false">https://medium.com/p/4e3723010068</guid>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[burnout]]></category>
            <category><![CDATA[organizational-culture]]></category>
            <category><![CDATA[mental-health]]></category>
            <dc:creator><![CDATA[Rafael Medeiros Ribeiro]]></dc:creator>
            <pubDate>Wed, 10 Aug 2022 19:19:43 GMT</pubDate>
            <atom:updated>2022-08-10T21:07:50.092Z</atom:updated>
            <content:encoded><![CDATA[<h3>How the right type of organizational culture can improve your mental health and boost your career</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TU8y_iLWyUBSxS2m" /><figcaption>Photo by <a href="https://unsplash.com/@windows?utm_source=medium&amp;utm_medium=referral">Windows</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>Versão em português <a href="https://medium.com/@rafaelmedrib/como-a-cultura-organizacional-certa-pode-melhorar-sua-sa%C3%BAde-mental-e-alavancar-sua-carreira-9371f34d286c">aqui</a></blockquote><p>If you have been on LinkedIn recently, you have probably noticed that recruiting has become more and more similar to <a href="https://www.techtarget.com/searchhrsoftware/definition/recruitment-marketing#:~:text=Recruitment%20marketing%20is%20the%20combination,brand%20to%20attract%20appropriate%20candidates.">marketing</a>. In this context, organizational culture is just another factor that companies can compete for; it will help them attract the best talent and retain their best employees.</p><p>But what is organizational culture? What kinds of cultures are common in the workplace, and how do they affect us as individuals?</p><h3>What is organizational culture anyways?</h3><p>Let me start by saying that every company has an organizational culture of some kind or another. In some workplaces, it develops in a unplanned manner over time, and in others it is carefully cultivated by company leadership to make sure that it remains aligned with the values of the organization.</p><p>Organizational culture is, simply put, the environment or climate of an organization. A sum of it’s norms, values, customs, habits, ceremonies, beliefs and more. As every workplace is unique, so are their values. A core value in one company could be something completely foreign to another. For example, technology companies that foster an innovative culture often have a <a href="https://www.buzzfeednews.com/article/sapna/abercrombies-preppy-police-enforce-cuffs-sleeves-internal-do">more flexible</a> dress code than more traditional businesses would.</p><h3>What are the impacts of organizational culture?</h3><p>Studies show that a healthy organizational culture leads to <a href="https://psycnet.apa.org/record/2012-22425-035">increased productivity</a> and improved employee satisfaction. Employees are more motivated to do good work when they are working in a caring environment and they are supported in their efforts to do so.</p><p>There are even some unexpected effects. A <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5695304/#:~:text=We%20found%20that%20overall,%20positive%20organisational%20and%20workplace%20cultures%20were">research</a> conducted in health institutions showed that the patient outcome could be affected by the workplace atmosphere. Well cared nurses and doctors translates to less patient complications and faster recovery rates.</p><h3>Burnout and other work-related mental health issues</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*K-RKyGysnqq_srSs" /><figcaption>Photo by <a href="https://unsplash.com/@elisa_ventur?utm_source=medium&amp;utm_medium=referral">Elisa Ventur</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Unless you are living off the grid hidden in the woods somewhere, you probably heard a lot about burnout lately. And for good reason!</p><p>Statistics about burnout in the workplace are on the rise, leading to a serious mental and physical health crisis in the working population. Medications for anxiety like <strong>aprazolam</strong> and <strong>sertraline</strong> are some of the <a href="https://edition.cnn.com/2020/04/16/health/anti-anxiety-medication-us-demand-coronavirus/index.html#:~:text=(CNN)%20More%20Americans%20are%20turning,Cigna%2Downed%20pharmacy%20benefit%20manager.">most prescribed</a> drugs in America today. That’s more than all prescriptions combined for any other condition. Google searches for ways to cope up with work stress have also skyrocketed in recent years.</p><h3>How does a well planned, wellbeing focused organizational culture looks like?</h3><p>The boring answer to this question is “it depends”. Like we said before, different companies have different needs that leads to different organizational cultures. By the other hand, we can give some examples that are applicable to most work environments and are related to better productivity and employee wellbeing:</p><ul><li>Allowing employees to work from home when needed</li><li>Providing flexible work hours</li><li>Encouraging open communication among employees</li><li>Offering company-sponsored professional development opportunities and trainings</li><li>Organizing social activities</li><li>Encouraging physical exercise amongst employees</li></ul><p>These are just some examples on how companies can develop a positive organizational culture that benefits both employees and employers. In addition to employee wellbeing, a healthy organizational culture can also contribute to improved employee retention and increased job satisfaction.</p><h3>Conclusion</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FlRrZxDJSR3Jyhj6" /><figcaption>Photo by <a href="https://unsplash.com/@jasongoodman_youxventures?utm_source=medium&amp;utm_medium=referral">Jason Goodman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Working in a place with the right fit of core values and beliefs is critical to overall happiness and success in life. Companies that promote employee wellbeing and facilitate carrer growth are likely to have healthier and more motivated workers.</p><p>Here at <a href="https://www.iclubs.tech/">iClubs</a>, we believe that a successful workplace is one that offers opportunities for personal and professional development. Thats why our teams are frequently meeting to reinforce our values — <strong>liberty</strong>, <strong>transparency </strong>and <strong>feedback</strong>. Our staff is encouraged to make their own hours, travel (using our <a href="https://ferias.co/">travel benefit</a>), take care of their mind and body (using <a href="https://www.gympass.com/">gympass</a>), study (sponsored voucher and certification) and to develop a good realtionship with each other with plenty of activities like happy-hour, talks, stretching classes and much more.</p><p>I hope this article showed you the importance of a well planned organizational culture and how it can be achieved even in smaller companies like iClubs. Five well cared workers are worth more than fifteen overworked ones, so take care of your company and show your employees that you really care!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e3723010068" width="1" height="1" alt=""><hr><p><a href="https://medium.com/iclubs/how-the-right-type-of-organizational-culture-can-improve-your-mental-health-and-boost-your-carrer-4e3723010068">How the right type of organizational culture can improve your mental health and boost your carrer</a> was originally published in <a href="https://medium.com/iclubs">iClubs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pare de usar variáveis de ambiente do jeito errado]]></title>
            <link>https://medium.com/iclubs/pare-de-usar-vari-c3-a1veis-de-ambiente-do-jeito-errado-d91fba0d4188?source=rss----f492d174491d---4</link>
            <guid isPermaLink="false">https://medium.com/p/d91fba0d4188</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[environment]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[clean-code]]></category>
            <dc:creator><![CDATA[Vinnicius Gomes]]></dc:creator>
            <pubDate>Mon, 08 Aug 2022 12:08:58 GMT</pubDate>
            <atom:updated>2023-05-12T12:48:19.810Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cXpYpOzPie_hHvNikUNjfQ.jpeg" /></figure><p>Algum dia você já ficou procurando o que estava quebrando sua aplicação, e depois de um bom tempo descobriu que esqueceu de alguma variável de ambiente? Eu já, várias e várias vezes…</p><p>Hoje venho te mostrar como acabar de vez com esse problema!</p><h4>Vamos para o problema</h4><p>Você provavelmente já fez um código assim (ou ainda faz):</p><pre>const url = `https://www.example.com/api/blog?api_key=${process.env.REACT_APP_API_KEY}`</pre><p>Fazendo dessa forma, temos alguns problemas que podem acontecer na aplicação e que serão difíceis de identificar, exemplo:</p><p>Em um cenário em que você cria a aplicação sem definir a REACT_APP_API_KEY em suas variáveis de ambiente, a aplicação usará undefined.</p><p>Obviamente undefined não é a chave de API correta que fará com que qualquer requisição utilizando essa URL falhe.</p><p>O problema aqui é que, quando o erro aparecer, a mensagem será muito enganosa e se parecerá com isto:</p><p>Error: Unauthorized</p><p>E esse erro só aparecerá quando você tentar usar a URL para buscar as postagens do blog.</p><p>Se as postagens do blog é um recurso essencial, o aplicativo não deve ser compilado sem que a REACT_APP_API_KEY esteja disponível.</p><p>Para corrigir esse problema, precisamos de duas coisas.</p><ol><li>Quando existe um problema que faz com que o aplicativo não funcione, o aplicativo precisa falhar imediatamente e de forma visível.</li><li>Uma abstração significativa para encapsular o carregamento de variáveis ​​de ambiente.</li></ol><p>Vamos para o que interessa…</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FEDt1m8p5hqXG8%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FEDt1m8p5hqXG8%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FEDt1m8p5hqXG8%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="239" frameborder="0" scrolling="no"><a href="https://medium.com/media/3e5eca64808bd753ed7d6373d6c7d766/href">https://medium.com/media/3e5eca64808bd753ed7d6373d6c7d766/href</a></iframe><h3>Como utilizar variáveis de ambiente da forma correta</h3><p><em>Isso funciona com qualquer aplicação </em><a href="https://nodejs.org/"><em>Node.js</em></a><em>. Vamos utilizar </em><a href="https://pt-br.reactjs.org/"><em>ReactJS</em></a><em> apenas para facilitar a explicação.</em></p><p>Então vamos começar, primeiro crie um arquivo .env e adicione a primeira variável:</p><pre>REACT_APP_API_KEY=example</pre><p>Agora que temos nossa variável de ambiente criada, vamos para o mais importante, como garantir que todas as variáveis realmente estejam criadas</p><p>1º Passo — Crie um arquivo env.ts com este código:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/490464f9bd15dd6570c76ae2a84c8bef/href">https://medium.com/media/490464f9bd15dd6570c76ae2a84c8bef/href</a></iframe><p>2º Passo — Ler uma variável de ambiente</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/acfeaef016c860fad91d8c7c1de4ce56/href">https://medium.com/media/acfeaef016c860fad91d8c7c1de4ce56/href</a></iframe><p>Pronto, agora nossas variáveis estão protegidas.</p><h3>Por que esta é a maneira correta de utilizar variáveis ​​de ambiente?</h3><p>Em um caso em que você esqueceu de adicionar a variável de ambiente, REACT_APP_API_KEY o aplicativo não irá compilar e lançará um erro como este: Couldn&#39;t find environment variable: REACT_APP_API_KEY.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*TIqt11J4f6vbn6fFROH4Jw.png" /><figcaption>Captura de tela do console do navegador.</figcaption></figure><p><strong>Nosso aplicativo agora falha imediatamente e mostra o erro visivelmente.</strong></p><p>Isso é chamado <em>de falha rápida.</em></p><p>Faz parte dos princípios de código limpo, sobre os quais você pode <a href="https://www.martinfowler.com/ieeeSoftware/failFast.pdf">ler mais aqui</a>.</p><p>Como estamos usando o TypeScript, podemos ter 100% de certeza de que todos os valores na configuração existem.</p><p>Além disso, o <a href="https://www.typescriptlang.org/">TypeScript</a> nos ajudará a evitar pequenos bugs. Se cometermos um erro de digitação como:</p><pre>const url = `https://www.example.com/api/blog api_key=${env.apiKeu}`</pre><p>O TypeScript nos dará o seguinte erro:</p><pre>Property &#39;apiKeu&#39; does not exist on type &#39;{ apiKey: string; }&#39;. Did you mean &#39;apiKey&#39;?</pre><p>E isso nos ajuda a manter o nosso código ainda mais seguro!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FTwXLDHoI3yFtMcoRxD%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FTwXLDHoI3yFtMcoRxD%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FTwXLDHoI3yFtMcoRxD%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/60c20ca38b1e04c320f591d9207983fd/href">https://medium.com/media/60c20ca38b1e04c320f591d9207983fd/href</a></iframe><h3>Encapsulamento</h3><p>Além de manter nossa aplicação mais segura, essa abordagem nos permite aplicar a <a href="https://medium.com/@albertosouza_47783/encapsulamento-sob-uma-perspectiva-l%C3%B3gica-3d04016e3f14">lógica de encapsulamento</a> no nosso código. Vamos lembrar do nosso primeiro código:</p><pre>const url = `https://www.example.com/api/blog?api_key=${process.env.REACT_APP_API_KEY}`</pre><p>A busca de postagens não deve se importar de onde vem a chave da API. Portanto, ela não deve depender do process.env ou de nenhuma outra abstração de baixo nível.</p><p>A criação de uma função com o propósito de ler variáveis ​​de ambiente encapsula essa funcionalidade e cria uma abstração no nosso código.</p><p>Graças a isso, podemos alterar a maneira como obtemos os valores de configuração (como a chave da API) sem precisar fazer qualquer alteração na funcionalidade de listagem do blog.</p><p>Outro benefício é que os testes unitários ficaram mais fáceis, podemos apenas simular a configuração com os valores que queremos.</p><p>—</p><p><em>Esse post foi criado com base na publicação do Austin Shelby sobre variáveis de ambiente. Para ler o post original </em><a href="https://www.austinshelby.com/blog/the-correct-way-to-load-environment-variables-in-nextjs"><em>clique aqui.</em></a></p><h3>Bom, é isso, espero que tenha gostado! E se tiver alguma sugestão deixe aí nos comentários 💬</h3><p>Mas antes de ir, se gostou, deixe uns <strong>claps</strong> aqui no post 👏 isso me ajuda e me motiva muito!</p><p><strong>Obrigado pela leitura!</strong></p><p><em>Me acompanhe por aí! </em>😜</p><ul><li>Portfólio: <a href="https://vinniciusgomes.dev/">vinniciusgomes.dev</a></li><li>GitHub: <a href="https://github.com/vinniciusgomes">@vinniciusgomes</a></li><li>LinkedIn: <a href="https://www.linkedin.com/in/vinniciusgomes">@vinniciusgomes</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d91fba0d4188" width="1" height="1" alt=""><hr><p><a href="https://medium.com/iclubs/pare-de-usar-vari-c3-a1veis-de-ambiente-do-jeito-errado-d91fba0d4188">Pare de usar variáveis de ambiente do jeito errado</a> was originally published in <a href="https://medium.com/iclubs">iClubs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Online banking security: How technology protects banking services and its customers?]]></title>
            <link>https://medium.com/iclubs/online-banking-security-how-technology-protects-banking-services-and-its-customers-87e840abc7f?source=rss----f492d174491d---4</link>
            <guid isPermaLink="false">https://medium.com/p/87e840abc7f</guid>
            <category><![CDATA[internet-fraud]]></category>
            <category><![CDATA[banking]]></category>
            <category><![CDATA[scam]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[online-banking]]></category>
            <dc:creator><![CDATA[Rafael Medeiros Ribeiro]]></dc:creator>
            <pubDate>Fri, 05 Aug 2022 13:49:29 GMT</pubDate>
            <atom:updated>2022-08-11T22:08:01.763Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/940/0*FhOlqpxFCWclUqV6" /></figure><blockquote>Versão em português <a href="https://medium.com/@rafaelmedrib/internet-banking-como-a-tecnologia-ajuda-a-proteger-bancos-e-seus-clientes-96327bba0322">aqui</a></blockquote><p>Using online methods for financial transactions has <a href="https://www.poder360.com.br/economia/transacoes-com-pix-superam-cartoes-pela-1a-vez/#:~:text=O%20n%C3%BAmero%20de%20opera%C3%A7%C3%B5es%20feitas,%2C15%25%20no%203%C2%BA%20trimestre.">become the norm</a> for many people, whether it be through banks or various other online service providers. Transactioning values has never been more easy and secure, thanks to modern technologies.</p><p>But how does bank institutions and other fintechs ensure the security of its customers? Technology is an important part of the answer, and online banking security relies on a number of different technologies. Things like MFA, biometric identification and encryption of user data are just some of the technologies that help to ensure the security of the banking systems.</p><p>In this article, we will explain some of these technologies, what they do and what still depends on you, the customer, to keep your online banking transactions safe.</p><h3>MFA: Multi-Factor Authentication</h3><p>Authentication is one of the most critical process in setting up any secure service, be it online or offline. The process of verifying a user identity is crucial for ensuring the safety of any system that involves sensitive information.</p><p>There was a time when we could ask for a password from the user and that would do the trick. But with the rise of internet banking users, also rises the chance of one of them to have a <a href="https://terranovasecurity.com/how-to-create-a-strong-password-in-7-easy-steps/">weak password</a>. This is where Multi-Factor Authentication comes in.</p><p>Multi-Factor Authentication or MFA for short, involves the use of more than one form of authentication in order to verify user’s identity. In the old days we had only one factor, the password, but to be more secure, banks and other online services started to implement a second layer to their authentication process.</p><p>According to <a href="https://csrc.nist.gov/glossary/term/Multi_Factor_Authentication#:~:text=multi%2Dfactor%20authentication-,Authentication%20using%20two%20or%20more%20factors%20to%20achieve%20authentication.,are%20(e.g.%2C%20biometric)">one of the definitions</a> found in the glossary of the US National Institute of Standards and Technology (NIST):</p><blockquote>“Authentication using two or more factors to achieve authentication. Factors include: (i) something you know (e.g., password/personal identification number [PIN]); (ii) something you have (e.g., cryptographic identification device, token); or (iii) something you are (e.g., biometric).”</blockquote><p>Usually what happens is when a user tries to log into their account, they are first prompted for their username and password. This is usually followed by a secondary prompt, usually a six-digit code that the user needs to enter in order to continue. This code is sent to the user via SMS, e-mail, or even social media apps like WhatsApp. By informing the right code, users prove that they really are who they say they are.</p><p>Using this strategy of sending a code to the user’s phone has become so well accepted and secure that many banks are now moving back to a single factor authentication process. And that is what we are going to talk about next…</p><h3>Passwordless Authentication</h3><p>In order to keep the authentication process secure while reducing the number of prompts needed during the login process, some banks have started moving away from passwords to a simple verification system that does not require users to remember usernames or passwords at all. This is achieved through what is usually known as “passwordless authentication”.</p><p>This method commonly rely on two technologies: OTP and biometrics. With the first method, a one-time PIN (OTP) is sent to a user’s registered mobile phone which needs to be entered before the user can gain access to their bank account. The second method is a bit less sophisticated but just as reliable. The system compares the image of the user, that is taken by his camera, with the stored image on file to authenticate the user.</p><p>So now you are authenticated. But how am I going to know if the information I am sending isn’t being intercepted?</p><p>Well, that is where encryption comes in.</p><h3>Encryption</h3><p>To put it simply, encryption is the transformation of data into some gibberish that can only be understood by its intended recipient. When you have a secure connection to a website, for example, your data is encrypted before it leaves your computer. This is achieved by using a technique called “ SSL “. To check if your browser has a secure connection to the server you are trying to access , look at the address bar of your browser and see if the URL starts with https:// instead of just http://.</p><p>Secure Socket Layer works by creating a tunnel. The only way to read the message being transmitted via this tunnel is if the sender and receiver both have access to the decryption key. Basically, there are two keys involved in SSL — the private key and the public key. The private key is stored in the user’s browser and the public key is stored on the web server of the bank the user is logging into.</p><p>So we know something about how this information is transmitted back and forth in a secure way. But what about it’s persistence in a third party database?</p><p>Many online services stores customer’s data in an encrypted form using their own encryption keys. The bank that owns the database is responsible for the encryption process and storing the keys in a protected environment. In other words, when they save, for example, your document number or your name, this information is encrypted so no one else can read it. This is one of the steps of the end-to-end security principle in the Privacy by Design approach.</p><p>In Brazil, the law that regulates data privacy is the Law 13.709/2018 known as the Personal Data Protection Act. Although it doesn’t state clearly that data must be encrypted before being stored, it dictates that businesses must take all the precautions necessary to ensure the protection and safety of their user’s personal data. The law also states that the more sensitive the information is, the more stringent the security measures should be.</p><p>As you can see, there are numerous ways that banks and other financial institutions are working towards making online transactions more secure. The list of technologies continues with firewalls, anti-virus, anti-malware, cookies…</p><p>But all this security can be compromised if the user can be tricked to send his or her information to a scammer. And that is what we are going to cover next.</p><h3>Internet fraud</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hycBAoP5RKHQiL4m.png" /></figure><p>With all the technologies we mentioned, it is really hard for the cyber criminal to steal your information directly from the system. That is why scammers need you to hand them over. For this section, I am going to talk about the most common types of <a href="https://olhardigital.com.br/2021/09/07/videos/golpes-digitais-batem-recorde-no-primeiro-semestre-do-ano-no-brasil/">scams in Brazil</a> (sadly a lot of them are also common in other countries).</p><h3>Phishing</h3><p>Unfortunatelly, this kind of scam is pretty common and still makes a lot of victims. In this type of fraud the cyber criminal poses as a legitimate website and asks the victim for personal information such as name, address, phone number and bank account number. Normally the message can be received by e-mail or WhatsApp and usually there is a sense of urgency, like a limited time offer or something saying that your account will be closed if you don’t take action.</p><p>To avoid this kind of scam, always be very careful when you receive an e-mail asking for personal information. It is better to contact your bank directly instead of clicking on a link provided in the message.</p><h3>WhatsApp PIX Scam</h3><p>In this kind of fraud, the criminal creates a fake WhatsApp account, using someone else’s profile picture and getting the victims to believe they are talking to the real person. Then, they proceed to tell the victim they had to change their number and their banking app is not working because of that. They ask the victim to pay something by transfering money or paying a fake bill, promising they will return it as soon as they fix.</p><p>If you receive this kind of message, be cautious. Call the person and if they block you or if you notice something strange, <a href="https://valorinveste.globo.com/educacao-financeira/noticia/2021/12/12/o-que-fazer-quando-cair-em-algum-golpe-com-o-pix.ghtml">report the police</a>. And never send money without checking first!</p><h3>Fake Purchase Scam</h3><p>The targets of this fraud are people who sell online. The scammer create a fake receipt, saying they paid for a product from the victim’s marketplace. In order to keep a good customer service, the victim promptly ships the product, only to find out later that it was a fake purchase.</p><p>This kind of fraud represents more than 30% of all e-commerce crimes that take place in Brazil every year. The best way to avoid this is by always being careful when you receive an order.</p><h3>Conclusion</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VqMlyDSlW1jm_bOw.jpg" /></figure><p>At this point, you should have realized that banking security has greatly improved in the last years. Although, this does not mean that there are no risks. Users should keep alert for scams and don’t trust messages blindly. Always contact your bank or financial institution if you have any doubts about a message.</p><p>Here at <a href="https://www.receba.app/">Receba</a>, we are very concerned about online security and are always working to improve our systems. We go beyond just making secure management of your data by also making the experience of using our solutions least prone to frauds that depend on the user sending their information.</p><p>That is why our solutions use Passwordless authentication, access via PWA and a Live Support to answer any questions you may have before making any transaction. We have put a great deal of effort in making sure that your account is safe with us.</p><p>I hope this article has shed some light about the reality of fraud today and how to keep your money safe while using online banking services.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87e840abc7f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/iclubs/online-banking-security-how-technology-protects-banking-services-and-its-customers-87e840abc7f">Online banking security: How technology protects banking services and its customers?</a> was originally published in <a href="https://medium.com/iclubs">iClubs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Internet Banking: Como a tecnologia ajuda a proteger bancos e seus clientes?]]></title>
            <link>https://medium.com/iclubs/internet-banking-como-a-tecnologia-ajuda-a-proteger-bancos-e-seus-clientes-96327bba0322?source=rss----f492d174491d---4</link>
            <guid isPermaLink="false">https://medium.com/p/96327bba0322</guid>
            <category><![CDATA[golpe]]></category>
            <category><![CDATA[segurança-da-informação]]></category>
            <category><![CDATA[fraude]]></category>
            <category><![CDATA[pix]]></category>
            <dc:creator><![CDATA[Rafael Medeiros Ribeiro]]></dc:creator>
            <pubDate>Fri, 05 Aug 2022 13:49:05 GMT</pubDate>
            <atom:updated>2022-08-11T22:38:31.454Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bNBcn_samX6xCRUX" /><figcaption>Photo by <a href="https://unsplash.com/@cardmapr?utm_source=medium&amp;utm_medium=referral">CardMapr.nl</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>English version <a href="https://medium.com/@rafaelmedrib/online-banking-security-how-technology-protects-banking-services-and-its-customers-87e840abc7f">here</a></blockquote><p>O uso de métodos on-line para transações financeiras <a href="https://www.poder360.com.br/economia/transacoes-com-pix-superam-cartoes-pela-1a-vez/#:~:text=O%20n%C3%BAmero%20de%20opera%C3%A7%C3%B5es%20feitas,%2C15%25%20no%203%C2%BA%20trimestre.">se tornou a norma</a> para muitas pessoas, seja através de bancos ou vários outros prestadores de serviços on-line. Os valores das transações nunca foram tão fáceis e seguros, graças às tecnologias modernas.</p><p>Mas como as instituições bancárias e outras fintechs garantem a segurança de seus clientes?</p><p>Tecnologia é uma parte importante da resposta. E a segurança dos bancos online depende de uma série de tecnologias diferentes. Coisas como AMF, identificação biométrica e criptografia de dados do usuário são apenas algumas das tecnologias que ajudam a garantir a segurança dos sistemas bancários.</p><p>Neste artigo, explicaremos algumas dessas tecnologias, o que elas fazem e o que ainda depende de você, o cliente, para manter suas transações bancárias on-line seguras.</p><h3>AMF</h3><p>A autenticação é um dos processos mais críticos na criação de qualquer serviço seguro, seja online ou offline. O processo de verificação de identidade do usuário é crítico para garantir a segurança de qualquer sistema que envolva informação sensível.</p><p>Houve um tempo em que podíamos pedir uma senha ao usuário e isso já era o suficiente. Mas com o aumento do número de pessoas que utilizam serviços financeiros na Internet, aumenta também a chance de uma delas possuir uma <a href="https://terranovasecurity.com/how-to-create-a-strong-password-in-7-easy-steps/">senha fraca</a>. É aqui que entra a Autenticação Multi-Fator.</p><p>A Autenticação Multi-Fator, ou AMF, envolve a utilização de mais de uma forma de autenticação para verificar a identidade do usuário. Antigamente tínhamos apenas um fator, a senha, mas para ficarmos mais seguros, os bancos e outros serviços online começaram a implementar uma segunda camada no seu processo de autenticação.</p><p>De acordo com uma das definições encontradas no glossário do US National Institute of Standards and Technology (NIST):</p><blockquote>Autenticação usando dois ou mais fatores para conseguir a autenticação. Os fatores podem incluir: (i) algo que você sabe (por exemplo, senha/número de identificação pessoal [PIN]); (ii) algo que você tem (por exemplo, dispositivo de identificação criptográfico, token); ou (iii) algo que você é (por exemplo, biometria)</blockquote><p>Normalmente, o que acontece é que quando um usuário tenta entrar na sua conta, é pedido primeiro o seu nome e senha. Isto é seguido por um segunda tela, comumente um código de seis dígitos que o usuário precisa enviar para poder continuar. Este código é enviado ao usuário via SMS, e-mail, ou mesmo aplicativos de redes sociais, como WhatsApp. Ao informar o código correto, os usuários provam que são realmente quem dizem ser.</p><p>A utilização desta estratégia, de enviar um código para o celular do usuário, tornou-se tão bem aceita e segura que muitos bancos estão regressando a um processo de autenticação de fator único. E é disso que vamos falar a seguir…</p><h3>Passwordless</h3><p>Com o intuito de manter o processo de autenticação seguro enquanto reduz o número de solicitações necessárias durante o processo de login, alguns bancos começaram a se afastar das senhas para um sistema simples de verificação que não exige que os usuários se lembrem de nomes de usuário ou senhas. Isto é conseguido através do que é normalmente conhecido como “passwordless”.</p><p>Este método geralmente se baseia em duas tecnologias: OTP e biometria. Com o primeiro método, um PIN (OTP) é enviado para o telefone celular cadastrado do usuário, que precisa ser enviado pelo usuário antes que ele possa acessar a sua conta bancária. O segundo método é um pouco menos sofisticado, mas igualmente confiável. O sistema compara a imagem do usuário (via reconhecimento facial) com a imagem armazenada em arquivo para autenticar o usuário.</p><p>Certo, agora o usuário já está autenticado. Mas como vou saber se as informações que estou enviando não estão sendo interceptadas?</p><p>Bem, é aí que entra a criptografia.</p><h3>Criptografia</h3><p>Em termos simples, a criptografia é a transformação dos dados em uma massa de código que só pode ser compreendida por seu destinatário. Quando você tem uma conexão segura com um website, seus dados são criptografados antes de saírem de seu computador. Isto é alcançado através de uma técnica chamada “SSL”. Para verificar se seu navegador tem uma conexão segura com o servidor que você está tentando acessar, cheque a barra de endereço de seu navegador e veja se a URL começa com https:// ao invés de apenas <a href="http://./">http://.</a></p><p>O Secure Socket Layer funciona através da criação de um túnel. A única maneira de ler a mensagem sendo transmitida através deste túnel é se o remetente e o receptor tiverem acesso à chave de decriptação. Basicamente, há duas chaves envolvidas no SSL — a chave privada e a chave pública. A chave privada é armazenada no navegador do usuário e a chave pública é armazenada no servidor web do banco em que o usuário está acessando.</p><p>Já sabemos algo sobre como essas informações são <strong>transmitidas</strong> de forma segura entre o usuário e o servidor. Mas e a persistência dessas informações em um banco de dados?</p><p>Muitos serviços online armazenam os dados dos clientes de forma criptografada, utilizando suas próprias chaves criptográficas. A instituição que gerencia o banco de dados é responsável pelo processo de criptografia e pelo armazenamento das chaves em um ambiente protegido. Em outras palavras, quando eles salvam, por exemplo, seu CPF ou seu número de celular, estas informações são criptografadas para que ninguém mais as possa ler. Esta é uma das etapas do princípio de <strong>segurança de ponta a ponta</strong> na abordagem Privacy by Design.</p><p>No Brasil, a lei que regula a privacidade de dados é a Lei nº 13.709/2018 conhecida como Lei Geral de Proteção de Dados Pessoais (LGPD). Embora essa lei não estabeleça claramente que os dados devem ser criptografados antes de serem armazenados, ela exige que as empresas tomem todas as precauções necessárias para garantir a proteção e a segurança dos dados pessoais de seus usuários. A lei também estabelece que quanto mais sensível for a informação, mais rigorosas devem ser as medidas de segurança.</p><p>Como você pode ver, há inúmeras maneiras pelas quais os bancos e outras instituições financeiras estão trabalhando para tornar as transações on-line mais seguras. A lista de tecnologias continua com firewalls, anti-vírus, anti-malware, cookies…</p><p>Mas toda essa segurança pode ser comprometida se o usuário puder ser persuadido por um golpista a enviar suas informações sensíveis. E é isso que vamos cobrir a seguir.</p><h3>Golpes virtuais</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_ayPvT8XzNGSaObx" /><figcaption>Photo by <a href="https://unsplash.com/es/@mbaumi?utm_source=medium&amp;utm_medium=referral">Mika Baumeister</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Com todas as tecnologias que mencionamos, é realmente difícil para o ciber-criminoso roubar suas informações diretamente do sistema. É por isso que os golpistas precisam que você as entregue de bom grado. Para esta seção, vou falar sobre os tipos de <a href="https://olhardigital.com.br/2021/09/07/videos/golpes-digitais-batem-recorde-no-primeiro-semestre-do-ano-no-brasil/">golpes mais comuns</a> no Brasil (muitos deles também são comuns em outros países).</p><h3>Phishing</h3><p>Infelizmente, este tipo de esquema é bastante comum e ainda faz muitas vítimas. Neste tipo de fraude, o ciber-criminoso se apresenta como um site legítimo e pede à vítima informações pessoais como nome, endereço, número de telefone e número de conta bancária. Normalmente a mensagem pode ser recebida por e-mail ou pelo WhatsApp e geralmente há um senso de urgência, como uma oferta por tempo limitado ou algo dizendo que sua conta será fechada se você não tomar alguma medida.</p><p>Para evitar este tipo de golpe, tenha sempre muito cuidado ao receber um e-mail solicitando informações pessoais. É melhor entrar em contato diretamente com seu banco ao invés de clicar em um link fornecido na mensagem.</p><h3>Golpe do PIX</h3><p>Neste tipo de fraude, o criminoso cria uma conta falsa no WhatsApp, usando a foto do perfil de outra pessoa e fazendo as vítimas acreditarem que estão falando com a pessoa real. Em seguida, eles dizem à vítima que tiveram que mudar seu número e seu aplicativo bancário não está funcionando por causa disso. Eles pedem à vítima para pagar algo, transferindo dinheiro ou pagando um boleto falso, prometendo que devolverão o valor assim que possível.</p><p>Se você receber este tipo de mensagem, seja cauteloso. Ligue para a pessoa e se ela o bloquear ou se você notar algo estranho, <a href="https://valorinveste.globo.com/educacao-financeira/noticia/2021/12/12/o-que-fazer-quando-cair-em-algum-golpe-com-o-pix.ghtml">denuncie a polícia</a>. E nunca envie dinheiro sem confirmar tudo primeiro!</p><h3>Golpe da compra falsa</h3><p>Os alvos desta fraude são pessoas que vendem no varejo on-line. O golpista cria um recibo falso, dizendo que pagou por um produto da loja da vítima. A fim de manter um bom atendimento ao cliente, a vítima envia imediatamente o produto, só para descobrir mais tarde que se tratava de uma compra falsa.</p><p>Este tipo de fraude representa mais de 30% de todos os crimes de comércio eletrônico que acontecem no Brasil a cada ano. A melhor maneira de evitar isto é você, como lojista virtual, sempre checar a informação antes de despachar um produto.</p><h3>Conclusão</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vd3auyw5d07MCmuB" /><figcaption>Photo by <a href="https://unsplash.com/@rupixen?utm_source=medium&amp;utm_medium=referral">rupixen.com</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A essa altura você já deve ter percebido que a segurança bancária melhorou muito nos últimos anos. Embora isto não signifique que não haja riscos. Os usuários devem se manter alertas e não confiar cegamente nas mensagens que recebem no celular. Entre em contato com seu banco ou instituição financeira sempre que tiver alguma dúvida sobre uma mensagem recebida.</p><p>Aqui no <a href="https://www.receba.app/">Receba</a>, estamos muito preocupados com a sua segurança e estamos sempre trabalhando para melhorar nossos sistemas. Vamos além de apenas fazer um gerenciamento seguro de seus dados, focamos também em melhorar a experiência do usuário, a fim de tornar nossos clientes menos propensos a golpes.</p><p>É por isso que nossas soluções utilizam autenticação “passwordless”, acesso via PWA e um suporte ao vivo para responder a quaisquer perguntas que você possa ter antes de fazer qualquer transação. Temos feito um grande esforço para garantir que sua conta esteja segura conosco.</p><p>Espero que este artigo tenha ajudado a elucidar a realidade das fraudes e a como manter seu dinheiro seguro enquanto utiliza os serviços bancários na internet.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96327bba0322" width="1" height="1" alt=""><hr><p><a href="https://medium.com/iclubs/internet-banking-como-a-tecnologia-ajuda-a-proteger-bancos-e-seus-clientes-96327bba0322">Internet Banking: Como a tecnologia ajuda a proteger bancos e seus clientes?</a> was originally published in <a href="https://medium.com/iclubs">iClubs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>