<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jaydson Gomes on Medium]]></title>
        <description><![CDATA[Stories by Jaydson Gomes on Medium]]></description>
        <link>https://medium.com/@jaydson?source=rss-e69b66b306b9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*q02hyVAVvoc0j5GWFFGg3A.jpeg</url>
            <title>Stories by Jaydson Gomes on Medium</title>
            <link>https://medium.com/@jaydson?source=rss-e69b66b306b9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 05:22:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jaydson/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[De funcionário a sócio da empresa]]></title>
            <link>https://medium.com/on2-dev/de-funcion%C3%A1rio-a-s%C3%B3cio-da-empresa-7800f958bc75?source=rss-e69b66b306b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7800f958bc75</guid>
            <category><![CDATA[tecnologia]]></category>
            <category><![CDATA[empreendedorismo]]></category>
            <dc:creator><![CDATA[Jaydson Gomes]]></dc:creator>
            <pubDate>Tue, 14 Feb 2023 13:49:31 GMT</pubDate>
            <atom:updated>2023-02-14T13:49:31.979Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FG8GByZVVM9eRHz4gPrMrw.jpeg" /><figcaption>Felipe, Jaydson e Cesar, fundadores da On2</figcaption></figure><p>Cofundador da ON2, Jaydson Gomes conta como conheceu o empresário Cesar Paz, que viria a investir em sua ideia</p><p>Parece roteiro de filme sobre o mundo corporativo: ao reconhecer o talento e a veia empreendedora de um ex-funcionário, um experimentado empresário resolve investir em seu plano de negócio e, juntos, abrem uma empresa. Só que essa história não tem nada de ficção.</p><p>Desde 2019, o empresário Cesar Paz — dono de bem sucedida carreira na área digital e articulador dos movimentos como Porto Alegre Inquieta e Pacto Alegre — é sócio dos desenvolvedores Jaydson Gomes e Felipe Moura. O trio é dono da On2, uma empresa de produtos e soluções em tecnologia que já é referência no país, estando à frente de projetos de multinacionais como Toyota e Kinto. A adesão ao novo investimento teve um componente forte: Jaydson já havia trabalhado em uma das empresas de Cesar, e a confiança que tinha em seu trabalho o avalizou.</p><p>Seus caminhos se cruzaram em 2008, quando Jaydson passou a trabalhar como programador na AG2, empresa que Cesar, engenheiro de formação, abriu após atuar por muito tempo na indústria aeronáutica. Rapidamente, o empreendimento se tornou referência no Sul e depois no Brasil, como uma agência nativa digital.</p><p>“Quando entrei, a AG2 já era uma agência bem estabelecida, com clientes grandes, como Embraer e GM. Tinha sedes em Porto Alegre, Pelotas e São Paulo. O Cesar era um dos sócios. Eu o conhecia, mas não tinha contato no dia a dia. Ele estava na gestão, fazendo coisas mais relacionadas a produtos, conexão com os clientes e tudo o mais. Eu era programador, e nutria a admiração de conhecer o cara que tinha montado aquela empresa”, recorda Jaydson.</p><p>Porém, ainda que à distância, o gestor observava o desempenho do jovem funcionário.</p><p>“O Jaydson entrou [na empresa] e logo se destacou como desenvolvedor. Um profissional diferenciado, com uma capacidade de resolução muito grande, que acabou assumindo responsabilidades com alguns dos principais clientes que a gente tinha, como a Embraer e GM. Ele sempre foi identificado como um cara de solução”, observa Cesar.</p><p>Após dois anos na casa, Jaydson foi buscar novos horizontes. Trabalhou em startups, outras agências, no portal Terra e, junto com o primo, Felipe, criou a empresa BrazilJS e a BrazilJS Conf — maior evento mundial sobre linguagem JavaScript. Cesar, por sua vez, vendeu a AG2 para a Publicis, terceiro maior grupo de comunicação do mundo em 2010, mas permaneceu na empresa até 2015 por determinação contratual. O reencontro viria logo depois, em um churrasco entre ex-colaboradores da AG2.</p><p>“O Cesar foi nesse churrasco, e troquei uma ideia com ele. Ele falou das empresas que estava montando e se interessou por um núcleo de desenvolvimento que havia dentro da BrazilJS. Ele se encantou com a conexão que a gente tinha com as comunidades de desenvolvimento de software. Depois daquele dia, seguimos conversando, tomamos café, trocamos figurinhas…”, lembra Jaydson.</p><p>Naquele período, Cesar investiu em empresas que acabaram por integrar a Ecosys, um hub de startups de diferentes naturezas que forma um ecossistema criativo de tecnologia, com sede em Porto Alegre. Algumas dessas empresas eram atendidas pelos softwares criados por Jaydson e Felipe — o que mais uma vez chamou a atenção de Cesar Paz.</p><p>“Em algum momento, o Jaydson trouxe a ideia de montarmos uma empresa que produzisse produtos de tecnologia, com foco na qualidade de software, que seria liderada por ele e pelo Felipe, que eu já conhecia. A partir daí, decidi investir. Nascia a ON2”, recorda Cesar.</p><p>Como sócios de uma empresa em franca expansão, o trio desenvolveu uma relação bem próxima. O passado em comum, segundo Jaydson, ainda favorece a ON2.</p><p>“As conexões que o Cesar criou, na época de AG2, acabam afetando positivamente a ON2. A AG2 atendeu a Toyota e, agora, atendemos também”, comenta.</p><p>“O Cesar era um grande mentor do Jaydson e se tornou um grande mentor para todos nós. Já éramos empreendedores, mas independentes, autodidatas, descobrindo as coisas por conta própria, errando e acertando. Com o Cesar, ganhamos todo o embasamento da bagagem enorme que ele traz de aprendizados, experiências e contatos, o que nos ajudou a nos comunicarmos com todo um lado do mercado que era novo para nós. Tem sido uma grande aventura, na qual temos aprendido muito, dado passos grandes e encarado novos desafios”, completa Felipe.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7800f958bc75" width="1" height="1" alt=""><hr><p><a href="https://medium.com/on2-dev/de-funcion%C3%A1rio-a-s%C3%B3cio-da-empresa-7800f958bc75">De funcionário a sócio da empresa</a> was originally published in <a href="https://medium.com/on2-dev">On2 Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[O papel da tecnologia em meio à desinformação]]></title>
            <link>https://medium.com/on2-dev/o-papel-da-tecnologia-em-meio-%C3%A0-desinforma%C3%A7%C3%A3o-eb5df842fb9c?source=rss-e69b66b306b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb5df842fb9c</guid>
            <category><![CDATA[desinformação]]></category>
            <category><![CDATA[tecnologia]]></category>
            <dc:creator><![CDATA[Jaydson Gomes]]></dc:creator>
            <pubDate>Mon, 09 Jan 2023 17:43:38 GMT</pubDate>
            <atom:updated>2023-01-09T17:43:38.364Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vGy32fZMS8_mZRZfXpJL4A.jpeg" /></figure><p>As eleições presidenciais estadunidenses de 2016 foram consideradas históricas não apenas pelo resultado das urnas, mas sim pelo uso da tecnologia e redes sociais na disseminação de notícias falsas. As chamadas “fake news” não são um fenômeno que começou agora, mas é notório o crescimento da desinformação depois dos avanços tecnológicos e digitais.</p><p>Por meio da tecnologia é possível criar informações falsas, alterar vozes, editar vídeos e imagens. O estudo Panorama Político 2022 do Instituto DataSenado mostra que 72% dos brasileiros já viram, leram ou ouviram alguma notícia sobre política que desconfiam que seja falsa. A pesquisa revela também que é mais comum receber notícias aparentemente falsas entre os usuários de redes sociais (74%) do que entre os que declaram não usar as redes (64%).</p><p>É nesse cenário que a tecnologia sai do lugar de propagadora das fake news e precisa ser uma aliada no combate à desinformação. Já existem, inclusive, diversas iniciativas que promovem o combate às notícias falsas no meio digital. A plataforma Faktabaari, por exemplo, ajuda as pessoas a identificar notícias falsas e incentiva crianças em idade escolar a examinar vídeos do YouTube e artigos publicados em mídias sociais em busca de erros factuais e estatísticos, com a ajuda da ferramenta.</p><p>Empresas de tecnologia, profissionais e governos devem se unir na promoção de plataformas e ferramentas de combate às fake news. O portal de notícias BBC anunciou recentemente uma parceria com instituições como a Google, o Twitter e o Facebook, para ajudar a combater a desinformação online. O grupo elaborou mecanismos como um sistema de alerta precoce, por meio do qual as organizações se avisam quando detectam uma notícia falsa. Esse é um dos exemplos que precisam ser seguidos.</p><p>Desenvolver softwares e algoritmos capazes de checagem de informações falsas são soluções necessárias. Existe a necessidade de desenvolvimento de ferramentas capazes de bloquear ou notificar fake news. No entanto, há também uma urgência em promover a educação midiática por meio de plataformas que ensinem o usuário a checar e buscar notícias com fatos reais. Um exemplo é o <a href="https://www.aosfatos.org/noticias/manuais/">Aos Fatos</a>, plataforma jornalística de checagem de fatos e conta com um manual de técnicas e ferramentas de fact checking. De todas as formas, a tecnologia é sim uma grande aliada no combate à desinformação.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb5df842fb9c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/on2-dev/o-papel-da-tecnologia-em-meio-%C3%A0-desinforma%C3%A7%C3%A3o-eb5df842fb9c">O papel da tecnologia em meio à desinformação</a> was originally published in <a href="https://medium.com/on2-dev">On2 Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Por uma tecnologia antirracista]]></title>
            <link>https://medium.com/on2-dev/por-uma-tecnologia-antirracista-b6919b5791a?source=rss-e69b66b306b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6919b5791a</guid>
            <category><![CDATA[tecnologia]]></category>
            <dc:creator><![CDATA[Jaydson Gomes]]></dc:creator>
            <pubDate>Sun, 20 Nov 2022 20:01:10 GMT</pubDate>
            <atom:updated>2022-11-20T20:01:10.945Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*kzr0kUnumATw1G1VJjEBlQ.png" /><figcaption>Manifesto por por uma tecnologia antirracista</figcaption></figure><p>Um por cento.</p><p>Esse foi o aumento de pessoas que se identificam como pretas em cargos técnicos em grandes empresas de tecnologia durante os anos de 2014 e 2021, de acordo com o relatório State of Tech Diversity: The Black Tech Ecosystem do Kapor Center, divulgado em abril deste ano. O estudo mostra também que estes profissionais representam 13% do quadro de funcionários, sendo somente 4,4% em cargos de diretoria, 3,7% em cargos técnicos e apenas 4,0% em cargos de liderança executiva.</p><p>Além da falta de representatividade, profissionais da área de tecnologia que se identificam como uma pessoa preta sofrem com a diferença salarial entre pessoas brancas e frequentemente são contratados em funções de nível inferior do que suas qualificações justificam. O relatório aponta ainda que quase metade das pessoas programadoras e desenvolvedoras já relataram experiências de desigualdade racial em contratações, promoções, oportunidades de liderança, salários e benefícios. Ou seja, os desafios não acabam na contratação de pessoas pretas.</p><p>O mercado de tecnologia brasileiro também reflete esses obstáculos. No Relatório 2022 da Preta Lab — uma iniciativa que atua para preencher a lacuna de mulheres pretas na tecnologia -, mostra que existem 19% de pessoas pretas profissionais da área de tecnologia ou indígenas dentro de empresas de tecnologia no Brasil. Quando levantamos a questão de gênero, o problema é ainda mais preocupante: apenas 11% dos profissionais do setor são mulheres negras ou indígenas. Além disso, quando conseguem entrar no mercado, mulheres ainda precisam lidar com as consequências de um setor majoritariamente masculino e principalmente branco.</p><p>A luta por um mercado tecnológico mais inclusivo e menos racista precisa começar na educação. Embora as ações afirmativas iniciadas nos anos 2000 já apresentam bons resultados, com a ampliação expressiva no número de estudantes que se consideram pretos iniciando e concluindo cursos de nível superior nos últimos anos, ainda existe um abismo de diferença em relação aos brancos nas universidades. E quando colocamos a lupa sobre os estudantes de cursos de tecnologia, a discrepância ainda é a regra. Nos cursos de Engenharia de Computação, Ciência da Computação e Sistemas de Informação, por exemplo, a porcentagem de estudantes pretos matriculados é, respectivamente, 5,85%, 6,74% e 7,07%, conforme o relatório da Preta Lab.</p><p>Mas por que esses dados importam? A discrepância social do mercado da tecnologia e os talentos que estamos perdendo, revela como a exclusão de pessoas pretas é prejudicial para a indústria de tecnologia e para toda a sociedade. Já se sabe que a diversidade impulsiona a produtividade e a criatividade. Um exemplo disso são os coletivos pretos, como AfroPython, QuebraDev, AfroyaTech, PerifaCode e PretaDev, projetos que existem para aumentar a representatividade de pessoas pretas e periféricas dentro da área de tecnologia.</p><p>Essa é uma luta que a On2 tomou para si. Atualmente, 34,6% das pessoas desenvolvedoras da empresa se consideram pretas e 7,7% pardas. Esses números estão acima da média do mercado e representam o nosso compromisso em promover representatividade contra o racismo. A gente entende que ofertar oportunidades e condições coerentes de trabalho para grupos pouco representados é uma das formas de cooperar para uma sociedade mais igual, além de incentivar a mobilidade social, desenvolvimento de pessoas e diversidade de saberes e experiências dentro e fora da On2.</p><p>As empresas de tecnologia precisam entender que essa não é uma missão apenas dos coletivos e pessoas desenvolvedoras pretas. Para construir um mercado tecnológico mais justo e igualitário é necessário ir além do discurso e encarar a luta antirracista.</p><p>Estabelecer e reconhecer pessoas racializadas em diferentes postos no setor de tecnologia é urgente e a falta de equidade é um problema. Em 2019, por exemplo, o Brasil passou a usar reconhecimento facial na segurança pública. O método, que tem um viés a reconhecer corretamente o rosto de uma pessoa branca e a tendência a reconhecer incorretamente o rosto de uma pessoa preta, incentiva o racismo e aumenta abordagens policiais feitas com pessoas pretas.</p><p>Uma sociedade brasileira verdadeiramente democrática só é possível com diversidade em todos os setores. E só realizamos mudanças reais a partir da transformação coletiva.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6919b5791a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/on2-dev/por-uma-tecnologia-antirracista-b6919b5791a">Por uma tecnologia antirracista</a> was originally published in <a href="https://medium.com/on2-dev">On2 Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[O que esperamos do futuro do Instagram?]]></title>
            <link>https://medium.com/on2-dev/o-que-esperamos-do-futuro-do-instagram-b4ac82b1679e?source=rss-e69b66b306b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4ac82b1679e</guid>
            <category><![CDATA[social-network]]></category>
            <category><![CDATA[instagram]]></category>
            <category><![CDATA[facebook]]></category>
            <dc:creator><![CDATA[Jaydson Gomes]]></dc:creator>
            <pubDate>Mon, 10 Oct 2022 14:50:25 GMT</pubDate>
            <atom:updated>2022-10-10T14:50:25.060Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f1L9DjLUUvdSShKzCuAX2Q.jpeg" /><figcaption>Instagram — Foto de Solen Feyissa no Unsplash</figcaption></figure><p>Já faz algum tempo que o Instagram deixou de ser um aplicativo para compartilhar apenas fotos. Nos últimos anos, a rede social de Mark Zuckerberg passou por diversas atualizações e alterou o tradicional formato do conteúdo estático para caminhar para o mundo do audiovisual.</p><p>A mudança é um reflexo do crescimento e popularidade do TikTok. O aplicativo de vídeos curtos foi o mais baixado do mundo no 1º trimestre de 2022, com 175 milhões de downloads, de acordo com a pesquisa QI 2022: Store Intelligence Data Digest, divulgada pela Sensor Tower. O Instagram ocupa a segunda posição do ranking.</p><p>Em um mundo em que os usuários chegam a passar mais de cinco horas por dia nas redes sociais, como mostra o estudo Regional Pulse Index da data.ai, é natural que as empresas disputam a atenção desse público. Mas a que custo? O Instagram, por exemplo, investe em mudanças e se assemelha tanto ao TikTok porque esse é um modelo bem sucedido. Outro caso é o BeReal, novo aplicativo de fotos instantâneas, que virou febre nos últimos meses e tanto o TikTok quanto o Instagram já se movimentaram para copiar as ferramentas. No entanto, nesse processo, a premissa de Zuckerberg com o aplicativo se perde cada vez mais.</p><p>O caminho mais esperado para o futuro é um Instagram mais parecido com outras plataformas que com ele mesmo. Outra tendência também é que as pessoas migrem de uma rede social para a outra, seja para acompanhar um novo movimento digital ou uma mudança de comportamento da geração. Essa mobilidade, no entanto, é nociva para o usuário e para as plataformas.</p><p>Inclusive, essa pauta tem levantado debates e provocado até pessoas famosas a se posicionarem contra as atualizações. Isso porque o público perde por encontrar as mesmas funcionalidades superficiais em todas redes sociais e os aplicativos deixam de inovar ou criar novas ferramentas de conexão. A mudança desse cenário, porém, só é possível com a alteração do comportamento de consumo de conteúdo das pessoas, que impacta diretamente a forma de nos comunicarmos e de gerarmos conteúdo.</p><p>Mas e como lidar com isso? O futuro do Instagram poderia ser inspirado em novos espaços e formatos de mídias sociais com redes descentralizadas. A descentralização das redes sociais permite que diferentes interfaces de usuários, diferentes softwares e diferentes formas de governança coexistem e cooperem. Isso ajudaria a incorporar novas tecnologias, ao mesmo tempo que tiraria a tomada de decisão de um único grupo de empresas.</p><p>Uma rede social centralizada tem uma estrutura hierárquica em que as regras, aplicação, desenvolvimento e a direção da plataforma são decididos pela empresa proprietária. Dessa forma, os usuários não possuem quase nenhuma forma de discordar das atualizações e ferramentas. A descentralização procura abandonar o controle do proprietário da plataforma, justamente por não ter um. Mas enquanto esse futuro não chega, precisamos repensar as nossas formas de consumir e gerar conteúdo dentro da internet.</p><p>Fontes:<br><a href="https://static.poder360.com.br/2022/04/Sensor-Tower-Q1-2022-Data-Digest.pdf">https://static.poder360.com.br/2022/04/Sensor-Tower-Q1-2022-Data-Digest.pdf</a></p><p><a href="https://www.data.ai/en/insights/market-data/q2-2022-market-pulse-regional/">https://www.data.ai/en/insights/market-data/q2-2022-market-pulse-regional/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4ac82b1679e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/on2-dev/o-que-esperamos-do-futuro-do-instagram-b4ac82b1679e">O que esperamos do futuro do Instagram?</a> was originally published in <a href="https://medium.com/on2-dev">On2 Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5G no DOC]]></title>
            <link>https://medium.com/on2-dev/5g-no-doc-d860a2ac7b76?source=rss-e69b66b306b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d860a2ac7b76</guid>
            <category><![CDATA[5g]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[society]]></category>
            <dc:creator><![CDATA[Jaydson Gomes]]></dc:creator>
            <pubDate>Mon, 08 Aug 2022 18:20:56 GMT</pubDate>
            <atom:updated>2022-08-08T19:51:58.751Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*XaC5LaO-f8VcXc9U" /><figcaption>Foto por Vivica Silva — <a href="https://unsplash.com/photos/KvJ4wD_-W5k">https://unsplash.com/photos/KvJ4wD_-W5k</a></figcaption></figure><p>As revoluções tecnológicas também escancaram a desigualdade social brasileira.</p><p>Com a chegada do 5G, as formas de nos conectarmos não será a mesma. Mas e quem poderá aproveitar os benefícios dessa nova tecnologia?</p><p>Em um mundo ideal, a distribuição seria de forma massiva, porém, nos dias atuais, mais de 300 municípios do país ainda nem receberam sinal 4G, segundo dados da Agência Nacional de Telecomunicações (Anatel).</p><blockquote>“Estamos implementando a quinta geração da conexão enquanto milhares de pessoas seguem isoladas do ambiente digital, seja por falta total de acesso à informação via internet ou por não ter o mínimo de alcance por meio de gerações anteriores, como 2G e 3G”</blockquote><p>“Estamos implementando a quinta geração da conexão enquanto milhares de pessoas seguem isoladas do ambiente digital, seja por falta total de acesso à informação via internet ou por não ter o mínimo de alcance por meio de gerações anteriores, como 2G e 3G” destaca o nosso sócio <a href="https://twitter.com/felipenmoura">Felipe N. Moura</a>, que assina artigo no Caderno DOC da @gzh da edição do último final de semana.</p><p>Você pode acessar ao material completo pelo link: <a href="https://gauchazh.clicrbs.com.br/tecnologia/noticia/2022/08/5g-uma-revolucao-lenta-e-desigual-mas-uma-revolucao-cl6dubd2w003p017ptmwt8be4.html">https://gauchazh.clicrbs.com.br/tecnologia/noticia/2022/08/5g-uma-revolucao-lenta-e-desigual-mas-uma-revolucao-cl6dubd2w003p017ptmwt8be4.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d860a2ac7b76" width="1" height="1" alt=""><hr><p><a href="https://medium.com/on2-dev/5g-no-doc-d860a2ac7b76">5G no DOC</a> was originally published in <a href="https://medium.com/on2-dev">On2 Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 discos que me apaixonei em 2021]]></title>
            <link>https://jaydson.medium.com/5-discos-que-me-apaixonei-em-2021-2a639a773824?source=rss-e69b66b306b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a639a773824</guid>
            <category><![CDATA[music]]></category>
            <dc:creator><![CDATA[Jaydson Gomes]]></dc:creator>
            <pubDate>Mon, 06 Dec 2021 00:00:00 GMT</pubDate>
            <atom:updated>2021-12-06T13:31:14.568Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Gwr-AhXi2sidFKvs.jpg" /></figure><p>2021 foi um ano fértil na música. Ao menos posso afirmar isso levando em consideração o tipo de música que ouço.<br> Ao compilar os discos mais legais e que mais me impactaram, acabei fazendo uma lista enorme. Então fui reduzindo até chegar nos principais lançamentos do ano que chegaram no meu coração.<br> O critério aqui é amor mesmo, aqueles discos que me arrepiaram e ainda arrepiam ao ouvir, os que me deram gás para trabalhar, os que eu quis imediatamente compartilhar com outras pessoas, e assim por diante. Deu para entender, né?<br> Sendo assim, segue a lista dos 5 discos que me apaixonei em 2021 🥰</p><h3>5 — Single Album (NOFX)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*oge6n6QftF29pP28.jpg" /></figure><p>Se NOFX lança disco novo a certeza é de que será o disco que mais ouvirei no ano. Com o lançamento de Single Album, o 14ª disco da banda, foi exatamente o que aconteceu. Disco mais ouvido e músicas mais ouvidas.<br> Esse disco é a cara do NOFX, como é esperado, porém, algumas músicas levam a banda para um outro nível.<br> “The big drag” me arrepia toda vez que escuto. É um som diferentão. Melodias tristes que me tocaram de forma apaixonante.<br> O disco conta com as ironias de sempre nas composições de Fat Mike, assim como a auto crítica e desconstrução musical (ex: Linewleum).<br> NOFX é minha banda do coração, chega a ser difícil de explicar o que o som representa e seus efeitos no meu corpo.<br> A experiência de ouvir NOFX é sempre catártica, desde os anos 90.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FTT_EtBM06-I%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DTT_EtBM06-I&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FTT_EtBM06-I%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/defdb8d3d4d19e99eefa3b524d4b5214/href">https://medium.com/media/defdb8d3d4d19e99eefa3b524d4b5214/href</a></iframe><h3>4- Welfare Jazz (Viagra Boys)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*jklge0YPzZO7isbj.jpg" /></figure><p>Viagra Boys foi amor à primeira ouvida e também à primeira vista. O som é ótimo e original. A performance ao vivo da banda é de outro mundo, principalmente do vocalista.<br> O som da banda é uma mistura absurda que me pegou de jeito.<br> Jazz, punk, metal e sei lá mais o que.<br> Eu ouvi tanto Viagra Boys em 2021 que parece uma banda que ouço há anos. O mais legal é que conheci o som apenas esse ano.<br> A banda é relativamente nova, estão em ativade desde 2015.<br> Me apaixonei totalmente por Viagra Boys. Welfare Jazz é uma obra, mas a discografia possui o mesmo nível.<br> Ansioso para ver um show!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FvzWds5gWS6c%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DvzWds5gWS6c&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FvzWds5gWS6c%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/66b6ae7f3ece326afa67faaa99d2eae4/href">https://medium.com/media/66b6ae7f3ece326afa67faaa99d2eae4/href</a></iframe><h3>3 — Comfort to me (Amyl and the Sniffers)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*1fK96xUNGcJYBS7f.jpg" /></figure><p>Amyl and the Sniffers é mais uma das bandas que me apaixonei perdidamente em 2021.<br> Conheci Amyl via Viagra Boys. O último som do disco Welfare Jazz é um feat de Viagra Boys e Amy Taylor, vocalista de Amyl and the Sniffers. O som “In Spite of Ourselves” é um cover de John Prine.<br> Na mesma época assisti uma entrevista de Daniel Furlan onde ele fala suas bandas favoritas da atualidade e ele cita justamente as 2 bandas em questão.<br> Comfort to me é maravilhoso. Ouvi sem parar. E mais uma vez, o disco me fez virar fã declarado de Amyl. A performance ao vivo também é absurda.<br> O som de Amyl é uma mistura das boas, punk clássico, hard rock, pop e mais um monte de coisa.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FZ--D1flPLnk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZ--D1flPLnk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FZ--D1flPLnk%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/057c4a8c4aeaa2e3a70f904f8b1f31a9/href">https://medium.com/media/057c4a8c4aeaa2e3a70f904f8b1f31a9/href</a></iframe><h3>2 — Glow on (Turnstile)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*FUsedJiPsOa1nRpp.jpg" /></figure><p>Não que a ordem importe, mas foi muito difícil escolher qual seria o primeiro nessa lista.<br> O certo é que entre os 5, as 2 primeiras posições são os discos que ouvi por último e que ainda estão sendo digeridos musicalmente pelo meu cérebro.<br> Eu conheci os maravilhosos do Turnstile há alguns anos, de forma aleatória. Por acaso vi um vídeo de um show deles e, minha nossa! Que show. Recomendo que procurem aí para ver qual é vibe ao vivo desses caras. É impressionante.<br> Quando vi que Glow on tinha sido lançado, corri pra ouvir e mais uma vez fui surpreendido.<br> Em Glow on o Turnstile conseguiu dar um passo além. O disco é maravilhoso. Várias misturas interessantes mas com a mesma pegada.<br> O som continua gritado, daquele jeito que lembra um Rage Against the Machine, mas as melodias estão mais acessíveis e diferentes.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F-xHt98f5JxI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D-xHt98f5JxI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F-xHt98f5JxI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/750bf74a7fcc14ac698184b1d34e3368/href">https://medium.com/media/750bf74a7fcc14ac698184b1d34e3368/href</a></iframe><h3>1 — Crawler (IDLES)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*bwgL-JrrAQtL8VSl.jpg" /></figure><p>Eu já tinha ouvido uma outra música dos IDLES, mas ainda não tinha parado para ouvir tudo.<br> Há pouco tempo vi uma apresentação ao vivo dos caras e mais uma vez, amor à primeira vista.<br> Foi impossível não me apaixonar pelo som e pela performance visceral da banda.<br> Crawler me arrepiou do início ao fim. É tanta referência, tanta entrega e tanta originalidade, que fez com que o disco se tornasse o meu preferido do ano. E não só isso, IDLES já se tornou uma daquelas bandas que estão presentes na minha vida como se fosse desde sempre.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fu7ZEiJwm97c%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Du7ZEiJwm97c&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fu7ZEiJwm97c%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/58e52e8cd4e9dbb03e66465ed1b70b6c/href">https://medium.com/media/58e52e8cd4e9dbb03e66465ed1b70b6c/href</a></iframe><p><em>Originally published at </em><a href="https://jaydson.com/5-discos-que-me-apaixonei-em-2021/"><em>https://jaydson.com</em></a><em> on December 6, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a639a773824" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A queda do WhatsApp e a descentralização da internet]]></title>
            <link>https://jaydson.medium.com/a-queda-do-whatsapp-e-a-descentraliza%C3%A7%C3%A3o-da-internet-e2f006fd51d3?source=rss-e69b66b306b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2f006fd51d3</guid>
            <category><![CDATA[instagram]]></category>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[whatsapp]]></category>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[social-media]]></category>
            <dc:creator><![CDATA[Jaydson Gomes]]></dc:creator>
            <pubDate>Mon, 11 Oct 2021 00:00:00 GMT</pubDate>
            <atom:updated>2021-10-14T11:28:02.090Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZK2o-elrADlc8r2e.jpg" /><figcaption>Imagem: Lionel Bonaventure, AFP</figcaption></figure><p>Sempre que os serviços ligados ao Facebook — ou a qualquer gigante do setor — apresentam instabilidade, o mundo percebe o quanto é dependente de poucos grandes players. O impacto é grande para as pessoas e para os negócios.</p><p>Está bem latente, nos últimos anos, o debate sobre o domínio da internet de forma centralizada em poucas empresas — e nossa dependência cada vez maior em função disso. Já aconteceu inúmeras vezes de uma aplicação como Instagram ou WhatsApp ficar fora do ar. É nestes momentos que prestamos atenção ao assunto, mas a pauta é permanente e está cada vez mais nítida para o grande público.</p><p>A principal consequência é não conseguir se comunicar ou até mesmo tocar o negócio, para quem vende e se relaciona com clientes utilizando esse tipo de aplicação. Isso tudo é afetado quando os serviços saem do ar, fazendo com que todos percebamos o quanto dependemos deles.</p><p>Entretanto, o problema é mais complexo e precisamos debater sobre o assunto de maneira mais efetiva. O avanço e acesso à tecnologia é fascinante, sem dúvida. Porém, as diversas camadas criadas para que tudo funcione de forma transparente podem nos levar a crer que comodidade e facilidade valem mais do que segurança, privacidade e até mesmo independência.</p><p>Cada vez mais, de alguma maneira, o que existe por trás de tudo isso está mais nítido, mas ainda não é suficiente. A grande questão é o controle dos dados e das ferramentas que utilizamos no dia a dia. Olhando só para a comunicação, no caso do WhatsApp e também do Facebook, centralizar tudo em uma ferramenta (ou mais de uma, mas ligadas à mesma empresa) é muito crítico para uma população.</p><p><a href="https://en.wikipedia.org/wiki/Jaron_Lanier">Jaron Lanier</a>, filósofo da ciência da computação e conhecido por ser o “pai” da realidade virtual, já alertou:</p><blockquote>“Não podemos ter uma sociedade na qual, se duas pessoas desejam se comunicar, a única forma que isso pode acontecer é se for financiado por uma terceira pessoa que deseja manipulá-los”</blockquote><p>Nesta semana tivemos mais um episódio: WhatsApp sai do ar, desta vez acompanhado de Facebook e Instagram. Muitos correm para o Telegram, alguns procuram outros serviços, como o Signal. No entanto, as soluções emergenciais privam os usuários de todo o histórico, arquivos e demais dados depositados nas aplicações que enfrentam problema.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zlb3DECNcADKU3Nm.jpg" /><figcaption>Imagem: NeONBRAND</figcaption></figure><p>O grande ponto é a descentralização urgente. Já existem muitas pessoas, comunidades, empresas e até governos buscando soluções descentralizadas. Isso não quer dizer que os usuários precisem acessar mais de um sistema ao mesmo tempo. Pelo contrário: a ideia é que se possa utilizar qualquer um, o de sua escolha, mas que também seja possível portar os dados sempre que quiserem.</p><p>Não depender de um único ponto central é a chave. Adicione privacidade, segurança e o foco nas pessoas — de verdade — e não no lucro, e aí sim podemos recuperar o pouco que sobrou da web aberta e ter um futuro menos distópico.</p><p>A descentralização, no que se refere a troca de mensagens e armazenamento de informações, é focada no fato de os dados serem nossos e não das empresas — e podermos utilizá-los em diferentes empresas e ferramentas. Se pudéssemos usar todos os nossos dados do WhatsApp no Telegram ou no Signal, não importaria se um deles caísse.</p><p>Um grande gargalo nessa discussão é que as empresas não querem que isso aconteça, já que dependem desse modelo de negócio para existir, na grande maioria dos casos. Os dados — para o Facebook, por exemplo — acabam sendo a parte mais importante. É dali que vem a receita.</p><p>Sendo assim, isso dificilmente vai mudar enquanto tivermos o tráfego e armazenamento de dados atrelados ao modelo de negócio. Por isso, a mudança mais uma vez depende de cada agente da sociedade que utiliza esses serviços. Outras empresas precisam achar alternativas para que aos poucos possamos hackear esse sistema em que aos poucos todos entramos.</p><p>É cômodo pedir comida utilizando uma solução do vale do silício. É incrível falar com a família, amigos ou colegas diariamente usando um serviço de mensagem americano. É confortável armazenar e confiar nossos dados a uma das maiores empresas de tecnologia do mundo. É muito fácil comprar qualquer coisa no site da pessoa mais rica do mundo.</p><p>Mas até que preço? Ao que tudo indica, o preço é jogar no lixo uma das maiores invenções da humanidade — invenção que fez com que tudo isso se tornasse possível.</p><p>Este texto foi originalmente publicado no jornal Zero Hora, na edição de sábado e domingo (09/10/2021 e 10/10/2021).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/0*B8S26j0d2SWaJtmp.jpeg" /></figure><p>E também disponibilizado no site da Zero Hora (paywall): <a href="https://gauchazh.clicrbs.com.br/comportamento/noticia/2021/10/queda-de-whatsapp-facebook-e-instagram-ressalta-necessidade-de-debater-a-descentralizacao-da-internet-ckugzhehw0027019meu466ay0.html">https://gauchazh.clicrbs.com.br/comportamento/noticia/2021/10/queda-de-whatsapp-facebook-e-instagram-ressalta-necessidade-de-debater-a-descentralizacao-da-internet-ckugzhehw0027019meu466ay0.html</a></p><p><em>Originally published at </em><a href="https://jaydson.com/a-queda-do-whatsapp-e-a-descentralizacao-da-internet/"><em>https://jaydson.com</em></a><em> on October 11, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2f006fd51d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[i18n in Next.js: the easy way]]></title>
            <link>https://medium.com/on2-dev/i18n-in-next-js-the-easy-way-8349336263c7?source=rss-e69b66b306b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/8349336263c7</guid>
            <category><![CDATA[i18n]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Jaydson Gomes]]></dc:creator>
            <pubDate>Mon, 20 Sep 2021 19:09:32 GMT</pubDate>
            <atom:updated>2021-09-20T19:09:32.888Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ynKAdRw_w-3TQh5BsB5QuQ.png" /></figure><p>There are quite a few articles out there about how to implement internationalization (i18n) in a Next.js project.</p><p>The thing is: none of them is simple enough to get the task done quickly.</p><p>Most articles focus on just one side of the problem and others are too complex and focus on generic issues.</p><p>Even the Next.js official documentation is sort of confusing (<a href="https://nextjs.org/docs/advanced-features/i18n-routing">https://nextjs.org/docs/advanced-features/i18n-routing</a>).</p><p>Well, the main thing we want to achieve with i18n is the content translated to a different language, right?</p><p>That part is kind of missing and we get it.</p><p>i18n is not something new and there’s a lot of libraries, concepts, frameworks, etc., that help with that, so this crucial part of the implementation is ignored, assuming that we all know how to do it.</p><p>And here is the problem, assuming everyone already knows everything by default is not a good practice.</p><p>Enough with the frustration. Let’s implement i18n in a Next.js project!</p><h3>Creating a new Next.js project</h3><p>Let’s first create a new Next.js project. If you already have a Next.js project you can skip this part.</p><pre>npx create-next-app<br># or<br>yarn create next-app</pre><p>To start the application in the development environment:</p><pre>npx yarn dev<br># or<br>yarn dev</pre><h3>Adding i18n</h3><p>Next.js has built-in support for i18n since v10.0.0.</p><p>We can provide a list of locales, the default locale, and even domain-specific locales, and Next.js will automatically handle the routing. Here we’re focusing on path routing, which is the basic approach.</p><p>For instance, if you have a page called contact, a new page route such as [language]/contact will be the result.</p><p>Let’s edit our next.config.js and add the i18n configuration:</p><pre>module.exports = {<br>  i18n: {<br>    locales: [&#39;pt-BR&#39;,&#39;en-US&#39;, &#39;es-ES&#39;],<br>    defaultLocale: &#39;pt-BR&#39;,<br>  }<br>}</pre><p>Here we’re explicit saying we have two languages: pt-BR(Brazilian Portuguese) and en-US(English US). We’re also saying that Brazilian Portuguese is the default language for the website.</p><p>By default, Next.js will load the language configured in the user’s browser. To disable this behavior just add localeDetection: false to next.config.js .</p><p>After saving the changes to this file, remember to restart the server to see the changes in effect.</p><h3>Adding helpers</h3><p>Now, create the directory which will handle the internationalization. You can call it whatever you want, here we’re calling it locales. You can put this directory at the root of the project. To get the basic i18n working, let’s create 3 files inside the locales folder: index.js, meta.js and texts.js.</p><pre>// index.js<br>import texts from &#39;./texts&#39;;</pre><pre>function getText(locale, key) {<br>    return texts[locale][key] ? texts[locale][key] : texts[&#39;en&#39;][key];<br>}</pre><pre>function getLangs(locale, locales, defaultLocale) {<br>    // Returning all available languages, except the current<br>    return locales.filter((lang) =&gt; lang !== locale);<br>}</pre><pre>export { getText, getLangs }</pre><p>The index.js file exports two helper functions to be used in the components, passing the keys from the router as arguments.</p><p>The getText function will be our main function to translate texts and getLangs will return the available languages on your websites, extracting the one being currently used.</p><p>The getLangs function will be useful in our LangSwitcher component (see later).</p><p>Sometimes we don’t want to add the locale code as a label in our application and perhaps, in the future, we may want to add an image flag or something like that. For this purpose, we’ll use a metadata strategy with the meta.js helper.</p><pre>// meta.js<br>export default {<br>    &#39;pt-BR&#39;: {<br>        flag: &#39;&#39;,<br>        label: &#39;Português&#39;<br>    },<br>    &#39;en-US&#39;: {<br>        flag: &#39;&#39;,<br>        label: &#39;English&#39;<br>    },<br>    &#39;es-ES&#39;: {<br>        flag: &#39;&#39;,<br>        label: &#39;Spanish&#39;<br>    }<br>}</pre><p>Just keep the same key name and then you will be able to grab all metadata information you might need. Here we’re using just the label which will be used in the LangSwitcher component.</p><h3>Adding texts</h3><p>Now let’s add the texts we’ll use in our application. To keep this example concise, a single file is enough: texts.js</p><pre>// texts.js<br>export default {<br>    &#39;pt-BR&#39;: {<br>      title: &#39;Tecnologia como base&#39;<br>    },<br>    &#39;en-US&#39;: {<br>      title: &#39;Technology as a cornerstone&#39;<br>    },<br>    &#39;es-ES&#39;: {<br>      title: &#39;La tecnología como base&#39;<br>    }<br>}</pre><p>Remember to always use the same key for the locales (defined on next.config.js).</p><p>Now, just keep adding more texts for each language and you’re good to go.</p><h3>Adding a locale switcher</h3><p>The routing part is well managed by Next.js. There’s no extra step. What we need to do is somehow show our users that our application has other languages.</p><p>Below is a basic component that renders the available languages, manages the routing part and redirects to the specific translated resource. You can add it to your components/lang-switcher folder at the root of the project.</p><pre>// index.js<br>import React from &#39;react&#39;;<br>import Link from &#39;next/link&#39;;<br>import { getLangs } from &#39;../../locales&#39;;<br>import  meta from &#39;../../locales/meta&#39;;<br>import {useRouter} from &quot;next/router&quot;;</pre><pre>function LangSwitcher (props) {<br>    const { locale, locales, defaultLocale } = useRouter();<br>    const langs = getLangs(locale, locales, defaultLocale);<br>    const redirectPath = props.redirectTo || &#39;&#39;;<br>    const {<br>        children,<br>        ...other<br>    } = props;<br>    return &lt;&gt;<br>        {langs.map((lang, i) =&gt; (<br>            &lt;Link key={i} href={`/${lang}/${redirectPath}`} locale={lang}&gt;<br>                &lt;a&gt;{meta[lang].label} &lt;/a&gt;<br>            &lt;/Link&gt;<br>        ))}<br>    &lt;/&gt;<br>}</pre><pre>export default LangSwitcher;</pre><p>What we’re doing here is:</p><ul><li>traversing our predefined locales</li><li>showing the option to switch the language on the page</li><li>handling a redirectPath passed in the props for the sake of this example.</li></ul><h3>Wrapping up</h3><p>Now that we built the basic structure for i18n we can implement it in our application.</p><p>To add a language switcher, import the LangSwitcher component and place it wherever you want, such as a new page on the ‘pages/about’ directory.</p><pre>import LangSwitcher from &#39;../../components/lang-switcher&#39;;</pre><pre>&lt;LangSwitcher/&gt;</pre><p>And for getting translated texts:</p><ul><li>get the locale from the next router,</li><li>import the getText method from the helper,</li><li>call it with the desired key (you can use the same page for this).</li></ul><pre>import { getText } from &#39;../../locales&#39;;</pre><pre>const { locale } = useRouter();<br>const textTitle = getText(locale, &#39;title&#39;);</pre><p>The final code for an about/index.jspage:</p><pre>import LangSwitcher from &#39;../../components/lang-switcher&#39;;<br>import { getText } from &#39;../../locales&#39;;<br>import { useRouter } from &quot;next/router&quot;;<br><br>export default function IndexPage() {<br>    const { locale } = useRouter();<br>    const textTitle = getText(locale, &#39;title&#39;);<br>    const destPage = &#39;about&#39;;<br>    return (<br>        &lt;&gt;<br>            &lt;h1&gt;{textTitle}&lt;/h1&gt;<br>            &lt;LangSwitcher redirectTo={`${destPage}`} /&gt;<br>        &lt;/&gt;<br>    )<br>}</pre><h3>Conclusion</h3><p>That is the basic about internationalization with Next.js!</p><p>For sure there’s a lot we are not covering here (such as React/Next.js concepts) and you might need to improve this solution to accomplish more ambitious tasks. But, for simple applications and websites, this basic approach can work just fine.</p><p>Also, as mentioned before, because of the lack of straight to the point solutions out there, we hope you can find this article useful.</p><h4>Did you get stuck or just want to download the code and see it working? Check our demo repository: <a href="https://github.com/on2-dev/next_i18n">https://github.com/on2-dev/next_i18n</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8349336263c7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/on2-dev/i18n-in-next-js-the-easy-way-8349336263c7">i18n in Next.js: the easy way</a> was originally published in <a href="https://medium.com/on2-dev">On2 Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to migrate large Git repositories]]></title>
            <link>https://medium.com/on2-dev/how-to-migrate-large-git-repositories-ba87c8910915?source=rss-e69b66b306b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba87c8910915</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[git-lfs]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[on2]]></category>
            <dc:creator><![CDATA[Jaydson Gomes]]></dc:creator>
            <pubDate>Sun, 13 Jun 2021 18:40:46 GMT</pubDate>
            <atom:updated>2021-09-17T11:51:38.972Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rlcjxYfQQaeQXT-eQdt8ig.jpeg" /></figure><p>It doesn’t matter how long is your career in technology and how experienced you are, you’ll always face things you never expected.</p><p>I’m not a Git guru, but I use Git since I don’t even remember and I do know how to work with it. And when I’m stuck in something, there’s always the team and the internet to help.</p><p>However, this time around, a simple task became a big journey.</p><p>We just close a deal with a big company and the first step was to migrate all Git repositories from the old supplier to us.</p><p>I knew this process could be tedious and slow, but it was a little more than that. We can say it was hard.</p><p>Start with the number of repositories: 82.</p><p>Well, we’ll need a tool to migrate 82 Git repositories. Fortunately, we use GitHub at <a href="https://on2.dev/">On2</a> and they offer a simple tool for that, which is available at <a href="https://github.com/new/import">https://github.com/new/import</a>.</p><p>If you want to migrate a Git repo just put the HTTPS URL, authenticate and boom! Success.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2x85IhTT4ICHSKTzw4nCkA.png" /><figcaption>GitHub migration tool</figcaption></figure><p>For the first 20 repositories, the process was easy. Just a cup of coffee, some clicks on the GitHub interface and… job done.</p><p>But then things got weird.</p><p>In one of the repositories, the process just failed with no error messages. I thought it was something related to the network, so I just tried to push some buttons another time.</p><p>Failed again.</p><p>Well, let’s try this one manually. So I cloned the repository in my machine and then tried to push to our origin.</p><pre>remote: error: GH001: Large files detected. You may want <strong>to</strong> try Git Large <strong>File</strong> Storage - https://git-lfs.github.com.<br>remote: error: See http://git.io/iept8g <strong>for</strong> more information.<br>remote: error: <strong>File</strong> XXX.zip <strong>is</strong> XXX GB; this exceeds GitHub&#39;s <strong>file</strong> size limit <strong>of</strong> 100.00 MB</pre><p>Hum, OK. I’ll not question someone else’s work. If this .zip file is stored on the repository it must have a reason.</p><p>Here’s the first issue. GitHub is pretty clear about the error. It basically says that if we want to store big files we’ll need to use <a href="https://git-lfs.github.com/">Git LFS</a>.</p><blockquote>Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.</blockquote><p>To get this working we’ll first need to install git LFS.</p><pre>git lfs install</pre><p>Then we need to track the heavy files we want to store:</p><pre>git lfs track &quot;*.zip&quot;</pre><p>Now we just need to push? Nope.</p><p>Here’s the second issue. For a big existent repository with multiple big files for which we don’t know exactly the purpose, the task is not trivial.</p><p>Also, to get this process done you first need to remove all big files, add again, commit and then push.</p><p>This is not an option when you have 82 big repositories in which some of them store big files and you don’t even know what are the file types.</p><p>What to do?</p><p>Fortunately, with <a href="https://github.blog/2017-06-27-git-lfs-2-2-0-released/">Git LFS 2.2.0</a> we have a better way to deal with this.</p><p>With the <a href="https://github.com/git-lfs/git-lfs/blob/v2.2.0/docs/man/git-lfs-migrate.1.ronn">git-lfs-migrate</a> command, it’s way easier.</p><p>In the repository you encountered the error you can just run:</p><pre>git lfs migrate info</pre><p>This command will output all file types with their sizes, for example:</p><pre>*.zip   1.2 GB   27/27 files(s)  100%</pre><p>By using this information you can determine which files to pluck out of your history and store in LFS:</p><pre>git lfs migrate <strong>import</strong> --include=&quot;*.zip&quot;<br>migrate: Sorting commits: ..., done<br>migrate: Rewriting commits: 100% (810/810), done<br>  main        f18bb746d44e8ea5065fc779bb1acdf3cdae7ed8 -&gt; 35b0fe0a7bf3ae6952ec9584895a7fb6ebcd498b<br>migrate: Updating refs: ..., done</pre><p>And then you can finally push:</p><pre>git push origin main<br>Git LFS: (1 of 1 files) 1.2 GB / 1.2 GB</pre><p>We’re almost done, I promise.</p><p>Thing is, for most cases at this point you already solved your problem with large files.</p><p>However, for us, in this particular and peculiar case, nope.</p><p>Besides the large files on these repositories, we found a tricky issue.</p><p>There’s a limit for big pushes. Yeah, life is not easy.</p><p>After all the work, investigation, adding Git LFS, etc, for some repositories GitHub failed with this message:</p><pre>git push &lt;remote_repo_name&gt; main<br>Counting objects: 146106, done.<br>Delta compression using up to 4 threads.<br>Compressing objects: 100% (35519/35519), done.<br>fatal: pack exceeds maximum allowed size00 GiB | 154 KiB/s<br>fatal: sha1 file &#39;&lt;stdout&gt;&#39; write error: Invalid arguments<br>error: failed to push some refs to &#39;git@github.com:&lt;repo&gt;.git</pre><p>To deal with this we need to push commits by chunks.</p><p>Here goes a big thanks to <a href="https://gist.github.com/Sacristan">Sacristan</a> and his little shell script which saves the day:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/372af8b0f24a028b602bd8d39f0c6c31/href">https://medium.com/media/372af8b0f24a028b602bd8d39f0c6c31/href</a></iframe><p>With the new knowledge, all equipment and necessary scripts then we are ready!</p><p>Our next step in the weirdos’ repositories was to run Git LFS migrate and then run ./push_commits_by_chunk.sh</p><p>That’s it! End of the tale. 82 big Git repositories migrated successfully.</p><p>Always remember, sometimes what looks like the easiest task can consume you and your team days or even weeks.</p><p>Also, remember to be humble, it doesn’t matter if you have one, two or twenty years of experience, the day to day job will show you that your knowledge is never enough.</p><p>Image credit: <a href="https://unsplash.com/photos/H7LxvEmVZnE">https://unsplash.com/photos/H7LxvEmVZnE</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba87c8910915" width="1" height="1" alt=""><hr><p><a href="https://medium.com/on2-dev/how-to-migrate-large-git-repositories-ba87c8910915">How to migrate large Git repositories</a> was originally published in <a href="https://medium.com/on2-dev">On2 Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How we built a publisher platform with Next.js, GraphQL and Vercel]]></title>
            <link>https://medium.com/on2-dev/how-we-built-a-publisher-platform-with-next-js-graphql-and-vercel-16ef50c9a00d?source=rss-e69b66b306b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/16ef50c9a00d</guid>
            <category><![CDATA[on2]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[vercel]]></category>
            <category><![CDATA[nextjs]]></category>
            <dc:creator><![CDATA[Jaydson Gomes]]></dc:creator>
            <pubDate>Sat, 12 Jun 2021 14:46:03 GMT</pubDate>
            <atom:updated>2021-07-23T21:07:29.784Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B8-IS3dS1f-TVNE54XxHeg.png" /><figcaption>Next.js + GraphQL + Vercel + Alright + On2</figcaption></figure><h3>The backstory</h3><p>Back in 2020, we got a mission from <a href="https://alright.com.br/"><strong>Alright</strong></a>,<strong> </strong>one of our key partners: Build an alternative CMS plus an optimized website focused on small and medium publishers.</p><p>Alright is an Ad tech company that connects publishers and brands through proprietary technologies.</p><p>They have more than <strong>300 publishers all over Brazil</strong>, which means the solution should be built with scalability in mind – and not only that – we should have a more generic approach for the technological stack.</p><p>Why not <strong>WordPress</strong>, you might be asking. Well, some publishers are already using WordPress and some bottlenecks could be found when integrating Alright’s technology with these websites, especially because the WP instances are not running on Alright’s infrastructure.</p><p>Well, so we did it. Our team suggested using a generic <a href="https://graphql.org/">GraphQL</a> API to deal not just with the data from this CMS but with all generic data Alright has in other applications and that would eventually be needed in other apps.</p><p>We love <a href="https://www.postgresql.org/">PostgreSQL</a>, so here the decision was easy. If we need a relational database with sane structured data, why not going with the “The World’s Most Advanced Open Source Relational Database”? In the beginning, we wanted a quick solution for GraphQL, so instead of building all schemes, resolvers, mutations, etc, by hand, we choose <a href="https://www.graphile.org/postgraphile/">PostGraphile</a>.</p><p>There are a lot of benefits with a solution that takes a database and generates an API, but as you can imagine, there are some issues as well (we’ll cover that in a future post).</p><p>Was that enough? Nope. What about the consuming interface? Enters <a href="https://nextjs.org/">Next.js</a> into the picture.</p><p>The CMS itself was not built with Next.js – considering it is an application that doesn’t need performance, SEO, or a strategy for dealing with multiple users; therefore, we built a plain <a href="https://reactjs.org/">React</a> <a href="https://en.wikipedia.org/wiki/Single-page_application">SPA</a>.</p><p>Since our main goal was to build a performance-first website for publishers, we bet on Next.js and its promises. Back then, Next.js hadn’t yet achieved what they have today, which is quite impressive. We adopted it for the project we called <strong>Alright Publisher Viewer</strong>, which was the “view” part of a growing ecosystem of big and small pieces of software.</p><h3>After the deploy</h3><p>Technically speaking and from the developer point of view, Next.js is great, but we had some difficulties integrating all the stuff previously built.</p><p>Besides the <strong>Alright Publisher Viewer</strong> application, we now had <strong>Alright Publisher Editor </strong>(the React SPA CMS), <strong>Alright GraphQL API</strong>,<strong> Alright Sqitch</strong> (PostgreSQL related), and some other helper applications.</p><p>The technology behind the product wasn’t trivial, but in the end, we made it work pretty well.</p><p>There was an additional and complex step here in this phase: We were creating and managing all the necessary infrastructure to support the apps. Which means our team was dealing with Amazon daily. <strong>EC2</strong>, <strong>Code Deploy</strong>, <strong>S3</strong>, <strong>Cloud Front</strong>, <strong>RDS</strong> and so on.</p><p>It worked well, but it could have been so much better, especially when we look at the developer experience, at the processes of deploying to different environments (staging, production, etc).</p><p>Right after our first release we noticed something odd. The <strong>Alright Publisher Viewer</strong>, the app we built with Next.js, wasn’t even close to the result we expected.</p><p>After all the struggle adapting the Next.js application to run well on Amazon, all days spent on the architecture and, when everything was well limed, our production application was just… OK.</p><p>There was certainly something wrong here, our team thought. And indeed there was.</p><h3>A shift in our strategy</h3><p>The main issue was related to how Next.js works and how we implemented the logic in the view.</p><p>If you have an application that needs to fetch data, what do you do?<br>That was easy. As we need performance and SEO, Next.js’ approach of server-side rendering seemed to be the solution.</p><p>We looked at the <a href="https://nextjs.org/docs/basic-features/data-fetching#getserversideprops-server-side-rendering">documentation</a> and… <em>boom</em>! Server-side rendering (SSR) <em>was </em>working. Our view layer was communicating just fine with the GraphQL API.</p><pre>export async function getServerSideProps(context) {<br>  return {<br>    props: {}, // will be passed to the page component as props<br>  }<br>}</pre><p>So what could be the issue? The problem is that this is not as fast, as performant, as we needed. We implemented the application in a way that, every time someone asks for a page, there would be a request for the API and the page would be rendered on the server.</p><p>Sure, a cache layer is missing, you’re probably thinking.</p><p>We knew that, but we also knew there was something even better: the Next.js’s approach of <a href="https://nextjs.org/docs/basic-features/data-fetching#getstaticprops-static-generation">static pages</a>.</p><pre>export async function getStaticProps(context) {<br>  return {<br>    props: {}, // will be passed to the page component as props<br>  }<br>}</pre><p>When you use getStaticProps, Next.js will pre-render the page at build time using the props returned by getStaticProps.</p><p>That’s awesome! We’re almost there.</p><p>To get all things working we have to combine getStaticProps and <a href="https://nextjs.org/docs/basic-features/data-fetching#getstaticpaths-static-generation">getStaticPaths</a>.</p><pre>export async function getStaticPaths() {<br>  return {<br>    paths: [<br>      { params: { ... } } // See the &quot;paths&quot; section below<br>    ],<br>    fallback: true or false // See the &quot;fallback&quot; section below<br>  };<br>}</pre><p>The application has dynamic routes. Remember, Alright is delivering a tool for publishers, so it’s basically a news website with a lot of pages and articles. In Next.js we need to define a list of paths that have to be rendered as HTML at build time.</p><p>If you export an async function called getStaticPaths from a page which uses dynamic routes, Next.js will statically pre-render all the paths specified by getStaticPaths.</p><p>There is a detail that must be taken into consideration: publishers may have thousands of articles (pages), which was the case for our first publisher using the platform.</p><p>We can’t generate <em>all pages</em> at build time. Imagine millions of pages being generated for each build, that’s not feasible.</p><p>Next.js has this covered. With getStaticPaths and getStaticProps we can limit how many pages we want to generate at build time.</p><p>But there’s more! What happens with pages that haven’t been generated yet when someone tries to access it? If <a href="https://nextjs.org/docs/basic-features/data-fetching#fallback-true"><strong>fallback</strong></a> is true, then the behavior of getStaticProps will change. The paths that have not been generated at build time will <strong>not</strong> result in a 404 page. Instead, Next.js will serve a “fallback” version of the page on the first request to such a path.</p><p>In the background, Next.js will statically generate the requested path HTML and JSON. This includes running getStaticProps.</p><p>In short, with this approach. we can have as many pages as we want pre-generated and in cache and when a new page is requested, Next.js will load all data necessary and cache it.</p><h3>Moving to Vercel</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v-BY681D7Uva3P-_uM3LnQ.png" /><figcaption>Vercel</figcaption></figure><p>Now that we have the perfect combination of features on the Next.js side there is just one piece missing: <a href="https://vercel.com/">Vercel</a>.</p><p>Vercel combines the best developer experience with an obsessive focus on end-user performance.</p><p>Actually, we already had the old application (before the static refactoring) running on Vercel.</p><p>We started with small steps and one thing we wanted was to be able to use all the developer experience deploying and building applications Vercel offers. We love the automated deploys via Git (including different branches) and the powerful interface and CLI.</p><p>As we had already had the new application running on Vercel with multiple branches, moving everything to production wasn’t that difficult. With a few changes on the DNS, some environment variables and some small optimization on the application, we achieved our goal.</p><p>Another killer feature from Vercel is its <a href="https://vercel.com/docs/edge-network/overview">Edge Network</a>.</p><p>The Vercel Edge Network sits in-between the internet and our application’s deployments. It has become our <em>de-facto </em>CDN.</p><p>This layer is responsible for routing requests to the correct Serverless Function or Static File output of our builds. Vercel caches our content at the edge in order to serve data as fast as possible.</p><h3>Conclusion and next steps</h3><p>Of course, there were some extra steps and a lot of research, but in the end, we got a nice and complex application up and running. And, more important, running in a scalable way.</p><p>All infrastructure is automated, the developer experience is great and new features can be developed, merged and deployed smoothly.</p><p>Vercel and Next.js are great for this kind of application, but first, you need to know what do you want and what are the possible approaches to achieve that. Then, you can move on to the advantages of combining the platform and the framework.</p><p>We still need to migrate some sub-projects, but the bottleneck has been successfully removed.</p><p>Our plan is to have all applications running on Vercel and let just the database on Amazon RDS (for now).</p><p>This work has already been done and is currently working on staging environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16ef50c9a00d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/on2-dev/how-we-built-a-publisher-platform-with-next-js-graphql-and-vercel-16ef50c9a00d">How we built a publisher platform with Next.js, GraphQL and Vercel</a> was originally published in <a href="https://medium.com/on2-dev">On2 Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>