<?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 Gabriel Borges Marthendal on Medium]]></title>
        <description><![CDATA[Stories by Gabriel Borges Marthendal on Medium]]></description>
        <link>https://medium.com/@gabrielmarthendal?source=rss-e34e5f3e44fa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rq25-HiBf1RNEQK0KOL1-g.jpeg</url>
            <title>Stories by Gabriel Borges Marthendal on Medium</title>
            <link>https://medium.com/@gabrielmarthendal?source=rss-e34e5f3e44fa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 02:24:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gabrielmarthendal/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[What is Platform Engineering and why does it exist]]></title>
            <link>https://levelup.gitconnected.com/what-is-platform-engineering-and-why-does-it-exist-b231c2308ac3?source=rss-e34e5f3e44fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/b231c2308ac3</guid>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Gabriel Borges Marthendal]]></dc:creator>
            <pubDate>Mon, 16 Feb 2026 19:26:21 GMT</pubDate>
            <atom:updated>2026-02-16T19:26:21.958Z</atom:updated>
            <content:encoded><![CDATA[<h4>A simple, educational explanation for anyone who’s never heard the term</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ISImz3fAA_isAErssLDQiA.png" /></figure><p>This article was born from a simple (and recurring) difficulty: explaining what Platform Engineering is in a way that makes sense to anyone.</p><p>At some point in a conversation — with friends, family, or even coworkers — the topic comes up and the question follows:</p><blockquote>“So, what do you actually do for a living?”</blockquote><p>I answer, explain, try to simplify. And almost always get back that sincere expression of “I think I got it… but I didn’t really get it.”</p><p>So I decided to write this. The idea here is simple: explain what Platform Engineering is, why it exists, and why it matters. No technical jargon and without assuming you know what a server, an API, or a deploy is.</p><p>Before we continue, an honest heads-up. If you already work in Platform Engineering, know the term well, or are looking for something more technical and in-depth, this article will probably feel shallow. And that’s okay.</p><p>Now, if you work at a tech company but never quite understood what that team does; if you’ve heard the term a few times but it never clicked; or if you’ve simply never heard of it… then you’re in the right place!</p><h3>Building without a foundation</h3><p>To understand why Platform Engineering exists, it’s worth thinking about something much closer to our daily lives than software: a house.</p><p>Imagine a construction worker building a house. Brick by brick, wall by wall, everything done manually. He buys the materials, decides how to do it, puts up the structure, and solves problems as they come up. It works. The house gets built.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DcZuy7hYa7eo7aE9K28NMg.png" /></figure><p>Now imagine that this worker isn’t alone. He works for a construction company. And the company has grown. What was once one worker building one house is now twenty workers building ten houses at the same time.</p><p>And this is where things start to get complicated.</p><p>Each worker buys materials on their own. One prefers one brand of cement, another prefers a different one. One does the foundation one way, another does it differently. Nobody knows exactly what their colleague is doing in the house next door. And every time a worker starts a new house, they start from scratch, as if they’d never built one before, even if the blueprint is similar to yesterday’s.</p><p>There’s more. When the wall is already up, someone remembers they need to run electrical wiring. Result? Break open the wall, run the wire, rebuild. Rework.</p><p>With two workers, all of this was manageable. A conversation would solve it. With twenty, it becomes chaos. Costs go up, deadlines blow up, quality drops, and everyone is too busy putting out fires to think about how to improve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s0YyMnZ5gj8kE7BTVsCuXg.png" /></figure><p>Now think: what if someone at the construction company stopped and said “wait, we don’t need to build like this”?</p><p>What if, instead of each worker starting from scratch, there were already prefabricated structures ready to use? What if the electrical and plumbing were already planned before the first wall went up? What if there were standard materials, so everyone used the same foundation, without having to decide everything on their own every time?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DdnSbE4pFKOkXZCtRX27og.png" /></figure><p>The worker still builds the house. That doesn’t change. But the effort, the time, and the rework change completely.</p><h3><strong>And when the construction is digital?</strong></h3><p>Now swap the construction worker for a software developer. And the house for an app, a system, a digital product — what the end user sees and uses. The logic is the same.</p><p>Imagine the following scenario. A developer needs to create a new feature. Before writing the first line of code, they need to set up the environment where they’ll work. Then, they need to make sure their code won’t break what already exists. Then, they need to package everything and deploy it. Then, they need to configure alerts to know if something went wrong. Each of these steps requires time, knowledge, and decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9RXkLiob1GyMyW42M0Iaag.png" /></figure><p>Now multiply this by ten developers. Each one sets up their environment their own way. Each one tests differently. Each one packages and deploys following a different process. When something breaks, nobody knows exactly where or why, precisely because there’s no standard.</p><p>Sound familiar? It’s the construction company with twenty workers and no structure.</p><p>Platform Engineering is the team that looks at this scenario and says: “the developer shouldn’t have to spend time on this.”</p><p>Instead of each developer starting a new project from scratch — repeating the same configurations someone already did before — the platform team delivers a ready-made foundation to build on. Instead of everyone inventing their own process to deploy code, there’s a standardized path that everyone follows. Instead of finding out something broke because a customer called complaining, there are automatic alerts that notify the team before the customer notices.</p><p>The developer still builds. That doesn’t change. But they build on top of a foundation that someone designed, prepared, and maintains for them.</p><p>That someone is the Platform Engineering team.</p><h3><strong>Why this matters (even if you don’t write code)</strong></h3><p>If you work in product, technology, sales, or leadership at a software company, you may have already experienced some of these situations:</p><ul><li>You ask the development team why that seemingly simple feature is taking so long, and the answer involves terms you don’t understand and problems you didn’t know existed.</li><li>Or a recently launched product reaches customers full of bugs, and the engineering team spends weeks fixing problems instead of evolving the product.</li><li>Or a good portion of each development cycle is consumed by “technical debt” — structural problems accumulated over time — and the product roadmap always takes a back seat.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yXgruetrI59OY47im9AEbw.png" /></figure><p>These situations don’t happen because developers are bad at their jobs. They happen because they’re building brick by brick.</p><p>When there’s no foundation, no ready-made environments, no standardized processes, and no tools that automate the repetitive stuff, the developer spends a huge portion of their time solving problems that have nothing to do with the product. And that time has a direct cost: features get delayed, bugs appear, deadlines slip.</p><p>Platform Engineering exists to reduce that cost.</p><p>So, next time someone asks me “so what do you actually do for a living?”, I have a simpler answer:</p><blockquote>I don’t build the house. I make it so that those who build can build faster, with higher quality, and without having to reinvent the wheel every time.</blockquote><p>Platform Engineering doesn’t show up in the final product. The customer doesn’t see it, doesn’t click on it, doesn’t know it exists. But without it, everything the customer sees takes longer, breaks more, and costs more.</p><p>And if after all this you still make that expression of ‘I think I got it… but I didn’t really get it,’ that’s okay too. Drop me a comment — I promise I don’t bite.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b231c2308ac3" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/what-is-platform-engineering-and-why-does-it-exist-b231c2308ac3">What is Platform Engineering and why does it exist</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</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 é Engenharia de Plataforma e por que ela existe]]></title>
            <link>https://medium.com/@gabrielmarthendal/o-que-%C3%A9-engenharia-de-plataforma-e-por-que-ela-existe-1e3a5e937700?source=rss-e34e5f3e44fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e3a5e937700</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Gabriel Borges Marthendal]]></dc:creator>
            <pubDate>Sat, 14 Feb 2026 21:02:01 GMT</pubDate>
            <atom:updated>2026-02-14T21:02:01.230Z</atom:updated>
            <content:encoded><![CDATA[<h4>Uma explicação simples e didática para quem nunca ouviu falar no termo</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ISImz3fAA_isAErssLDQiA.png" /></figure><p>Este artigo nasceu de uma dificuldade simples (e recorrente): explicar o que é Engenharia de Plataforma de forma que faça sentido pra qualquer pessoa.</p><p>Em algum momento da conversa, com amigos, familiares ou até colegas de trabalho, o assunto surge e a pergunta vem:</p><blockquote>“Tá, mas o que você faz da vida mesmo?”</blockquote><p>Eu respondo, explico, tento simplificar. E quase sempre recebo de volta aquela expressão sincera de “acho que entendi… mas não entendi”.</p><p>Então resolvi escrever. A ideia aqui é simples: explicar o que é Engenharia de Plataforma, por que ela existe e por que ela importa. Sem jargão técnico e sem assumir que você sabe o que é um servidor, uma API ou um deploy.</p><p>Antes de seguir, um aviso honesto. Se você já trabalha diretamente com Engenharia de Plataforma, está acostumado com o termo ou busca uma discussão mais profunda e técnica, este artigo provavelmente vai parecer raso. E tudo bem.</p><p>Agora, se você trabalha em uma empresa de tecnologia mas nunca entendeu muito bem o que esse time faz; se já ouviu o termo algumas vezes mas ele nunca fez sentido; ou se você simplesmente nunca ouviu falar nisso… então você está no lugar certo!</p><h3>Construindo sem fundação</h3><p>Para entender por que Engenharia de Plataforma existe, vale pensar em algo bem mais próximo do nosso dia a dia do que software: uma casa.</p><p>Imagine um pedreiro construindo uma casa. Tijolo por tijolo, parede por parede, tudo feito manualmente. Ele compra o material, decide como vai fazer, levanta a estrutura e resolve os problemas conforme aparecem. Funciona. A casa sai.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DcZuy7hYa7eo7aE9K28NMg.png" /></figure><p>Agora imagine que esse pedreiro não está sozinho. Ele trabalha em uma construtora. E a construtora cresceu. O que antes era um pedreiro fazendo uma casa, agora são vinte pedreiros fazendo dez casas ao mesmo tempo.</p><p>E é aqui que a coisa começa a complicar.</p><p>Cada pedreiro compra o material por conta própria. Um prefere uma marca de cimento, outro prefere outra. Um faz a fundação de um jeito, outro faz de outro. Ninguém sabe exatamente o que o colega está fazendo na casa ao lado. E toda vez que um pedreiro começa uma casa nova, ele começa do zero, como se nunca tivesse construído uma antes, mesmo que a planta seja parecida com a de ontem.</p><p>Tem mais. Quando a parede já está levantada, alguém lembra que precisa passar a fiação elétrica. Resultado? Quebra a parede, passa o fio, refaz. Retrabalho.</p><p>Com dois pedreiros, tudo isso era contornável. Uma conversa resolvia. Com vinte, vira caos. O custo sobe, o prazo estoura, a qualidade cai, e todo mundo está ocupado demais apagando incêndio pra pensar em como melhorar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s0YyMnZ5gj8kE7BTVsCuXg.png" /></figure><p>Agora pense: e se alguém na construtora parasse e dissesse “peraí, a gente não precisa construir assim”?</p><p>E se, em vez de cada pedreiro começar do zero, já existissem estruturas pré-moldadas prontas pra usar? E se a parte elétrica e hidráulica já viessem planejadas antes da primeira parede subir? E se existisse um padrão de materiais, pra todo mundo usar a mesma base, sem precisar decidir tudo sozinho toda vez?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DdnSbE4pFKOkXZCtRX27og.png" /></figure><p>O pedreiro continua construindo a casa. Isso não muda. Mas o esforço, o tempo e o retrabalho mudam completamente.</p><h3>E quando a construção é digital?</h3><p>Agora troca o pedreiro por um desenvolvedor de software. E a casa por um aplicativo, um sistema, um produto digital — aquilo que o usuário final vê e usa. A lógica é a mesma.</p><p>Imagina o seguinte cenário. Um desenvolvedor precisa criar uma funcionalidade nova. Antes de escrever a primeira linha de código, ele precisa configurar o ambiente onde vai trabalhar. Depois, precisa garantir que o código dele não vai quebrar o que já existe. Depois, precisa empacotar tudo e colocar no ar. Depois, precisa configurar alertas pra saber se algo deu errado. Cada uma dessas etapas exige tempo, conhecimento e decisões.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9RXkLiob1GyMyW42M0Iaag.png" /></figure><p>Agora multiplica isso por dez desenvolvedores. Cada um configura o ambiente do seu jeito. Cada um testa de uma forma diferente. Cada um empacota e coloca no ar seguindo um processo diferente. Quando algo quebra, ninguém sabe exatamente onde nem por que, justamente porque não existe um padrão.</p><p>Parece familiar? É a construtora com vinte pedreiros e nenhuma estrutura.</p><p>Engenharia de Plataforma é o time que olha pra esse cenário e diz: “o desenvolvedor não deveria gastar tempo com isso.”</p><p>Em vez de cada desenvolvedor começar um projeto novo do zero, repetindo as mesmas configurações que alguém já fez antes, o time de plataforma entrega uma base pronta pra ele só construir em cima. Em vez de cada um inventar seu próprio processo pra colocar código no ar, existe um caminho padronizado que todo mundo segue. Em vez de descobrir que algo quebrou porque o cliente ligou reclamando, existem alertas automáticos que avisam o time antes do cliente perceber.</p><p>O desenvolvedor continua construindo. Isso não muda. Mas ele constrói em cima de uma base que alguém pensou, preparou e mantém pra ele.</p><p>Esse alguém é o time de Engenharia de Plataforma.</p><h3>Por que isso importa (mesmo que você não escreva código)</h3><p>Se você trabalha com produto, tecnologia, comercial ou liderança em uma empresa de software, talvez já tenha vivido alguma dessas situações:</p><ul><li>Você pergunta pro time de desenvolvimento por que aquela funcionalidade simples está demorando tanto, e a resposta envolve termos que você não entende e problemas que você não sabia que existiam.</li><li>Ou um produto recém-lançado chega ao cliente cheio de bugs, e o time de engenharia passa semanas corrigindo problemas em vez de evoluir o produto.</li><li>Ou boa parte de cada ciclo de desenvolvimento é consumida por “débitos técnicos” — problemas de estrutura acumulados ao longo do tempo — e o roadmap de produto fica sempre em segundo plano.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yXgruetrI59OY47im9AEbw.png" /></figure><p>Essas situações não acontecem porque os desenvolvedores são ruins. Acontecem porque eles estão construindo tijolo por tijolo.</p><p>Quando não existe uma base, ambientes prontos, processos padronizados e ferramentas que automatizam o repetitivo, o desenvolvedor gasta uma parte enorme do tempo dele resolvendo problemas que não têm nada a ver com o produto. E esse tempo tem um custo direto: features atrasam, bugs aparecem, prazos estouram.</p><p>Engenharia de Plataforma existe pra reduzir esse custo.</p><p>Então, da próxima vez que alguém me perguntar “tá, mas o que você faz da vida mesmo?”, eu tenho uma resposta mais simples:</p><blockquote>Eu não construo a casa. Eu faço com que quem constrói consiga construir mais rápido, com mais qualidade e sem precisar reinventar a roda toda vez.</blockquote><p>Engenharia de Plataforma não aparece no produto final. O cliente não vê, não clica, não sabe que existe. Mas sem ela, tudo o que o cliente vê demora mais, quebra mais e custa mais.</p><p>E se depois de tudo isso você ainda fizer aquela expressão de “acho que entendi… mas não entendi”, tudo bem também. Me manda esse artigo que eu explico de novo.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e3a5e937700" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Automate File Transfer with Python ftplib]]></title>
            <link>https://levelup.gitconnected.com/how-to-automate-file-transfer-with-python-ftplib-2dde0efe0325?source=rss-e34e5f3e44fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/2dde0efe0325</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Gabriel Borges Marthendal]]></dc:creator>
            <pubDate>Tue, 14 Mar 2023 15:17:19 GMT</pubDate>
            <atom:updated>2023-03-14T15:17:19.421Z</atom:updated>
            <content:encoded><![CDATA[<h4>A Hands-On Guide to Python’s module ftplib</h4><p>File Transfer Protocol (FTP) is a tool used for transferring files over the internet. It allows you to move files between devices, such as a client and a server, or between collaborators who are working on the same project.</p><p>In Python, you could use some libraries to do it, but I prefer ftplib. It’s an easy-to-use interface and does not require a long time to learn and use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lSk4Y4jIoWth6YhrtkQz_w.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@sharonmccutcheon?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Alexander Grey</a> on <a href="https://unsplash.com/photos/tn57JI3CewI?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>The topics will be presented in the following sequence:</p><ol><li><strong>The Problem</strong></li><li><strong>Setting Variables and Getting Files</strong></li><li><strong>Setting Up an FTP Connection</strong></li><li><strong>Working with Directories and Files</strong></li><li><strong>Uploading Files and Automating</strong></li><li><strong>Adding Logging</strong></li><li><strong>Managing Errors and Handling Exceptions</strong></li></ol><h4>1. The Problem</h4><p>First of all, let’s define a hypothetical problem. I assumed that every two hours, I have to transfer files from a local folder to the FTP server. Another automation is generating the files, and it’s up to me to clean the directory whenever I upload files to the FTP server.</p><h4>2. Setting Variables and Getting Files</h4><p>We start with importing <strong>ftplib</strong>, <strong>os</strong> and <strong>time</strong>.</p><pre>import ftplib<br>import os<br>import time</pre><p>Then, we have to set variables. We need a hostname, username, and password to connect to an FTP server, the local directory to get files, and the remote directory to upload files.</p><pre>hostname = &quot;ftp.example.com&quot;<br>username = &quot;user_example&quot;<br>password = &quot;pswd_example&quot;<br>local_dir = &quot;/path/to/local/dir&quot;<br>remote_dir = &quot;/path/to/remote/dir&quot;</pre><p>And store the files to upload in a variable called file_list.</p><pre>file_list = os.listdir(local_dir)</pre><h4>3. Setting Up an FTP Connection</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4QpdBM516FvHCha1B67-Yw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@alinnnaaaa?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Alina Grubnyak</a> on <a href="https://unsplash.com/photos/ZiQkhI7417A?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>I am using <strong>with</strong> statement to open and connect to an FTP server. The <strong>with</strong> statement ensures that the connection to the FTP server is properly closed when the block of code is exited.</p><p>Then, I am checking the connection with <strong>getwelcome</strong> method.</p><pre>with ftplib.FTP(host=hostname, user=username, passwd=password) as ftp:<br>    <br>    status = ftp.getwelcome()<br>    print(f&#39;Connection status: {status}&#39;)</pre><p>If you get a ‘220’ message, it means the FTP server is connected. If not, there is a problem with the connection.</p><h4>4. Working with Directories and Files</h4><p>Now that we’ve established the connection, we’re at the root of the directory. We need to access the remote directory with the following command:</p><pre>ftp.cwd(remote_dir)</pre><p>And then let’s get ready to upload the files. Let’s access each item in the <strong>file_list</strong>, generate the <strong>file_path</strong>, and check if this item is a file:</p><pre>for file in file_list:<br>    file_path = os.path.join(local_dir, file)<br>    if os.path.isfile(file_path):</pre><h4>5. Uploading Files and Automating</h4><p>Finally, we have to use <strong>open</strong> method and then call <strong>storbinary</strong> to upload each file:</p><pre>   with open(file_path, &#39;rb&#39;) as file:<br>       ftp.storbinary(f&#39;STOR {file}&#39;)</pre><p>Place all of the code within a while loop. I have also included a remove method to clean up the local directory, as well as a sleep method to pause execution for a duration of two hours. The final code appears as follows:</p><pre># Importing libs<br>import ftplib<br>import os<br>import time<br><br># Setting variables<br>hostname = &quot;ftp.example.com&quot;<br>username = &quot;user_example&quot;<br>password = &quot;pswd_example&quot;<br>local_dir = &quot;/path/to/local/dir&quot;<br>remote_dir = &quot;/path/to/remote/dir&quot;<br><br><br>while True:<br>    # Storing files to upload<br>    file_list = os.listdir(local_dir)<br>    <br>    # Opening and connecting<br>    with ftplib.FTP(host=hostname, user=username, passwd=password) as ftp:<br>        <br>        # Navigating to remote directory<br>        ftp.cwd(remote_dir)<br>    <br>        # Accessing each file from file_list<br>        for file in file_list:<br>            file_path = os.path.join(local_dir, file)<br>            if os.path.isfile(file_path):<br>            <br>            # Uploading file<br>            with open(file_path, &#39;rb&#39;) as file:<br>                ftp.storbinary(f&#39;STOR {file_name}&#39;, file)<br><br>            # Removing file from local directory after success<br>            os.remove(file_path)<br><br>    # Sleeping for 2 hours and then restart proccess<br>    time.sleep(7200)</pre><p>This is a functional code. But it is not in a pythonic way. I will cover some topics below to improve it.</p><h4>6. Adding Logging</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-c63g8HmYsqt0LWSeyu1wA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@artur_luczka?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Artur Łuczka</a> on <a href="https://unsplash.com/s/photos/logging?orientation=landscape&amp;utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>By adding logging to our code, we can easily record and track events and actions, and monitor and troubleshoot any issues that may arise during the file transfer process. We’re going to use Python’s logging lib.</p><p>We need to import the logging module and configure it to write log messages to a file called ‘ftp.log’ at the DEBUG level. We add <strong>logging.info()</strong> statements to logging each step of the process, including connecting to the FTP server, navigating to the remote directory, and uploading each file. <br>I strongly recommend you read the <a href="https://docs.python.org/3/library/logging.html">documentation</a> to understand the module’s concepts and applicability.</p><pre>import ftplib<br>import os<br>import time<br>import logging<br><br>hostname = &quot;ftp.example.com&quot;<br>username = &quot;user_example&quot;<br>password = &quot;pswd_example&quot;<br>local_dir = &quot;/path/to/local/dir&quot;<br>remote_dir = &quot;/path/to/remote/dir&quot;<br><br># Formatting and configuring  <br>fmt = &#39;%(asctime)s | %(levelname)s | %(message)s&#39;<br>logging.basicConfig(level=logging.DEBUG, <br>                    format=fmt, <br>                    handlers=[logging.StreamHandler(), <br>                              logging.FileHandler(&quot;ftp.log&quot;)])<br><br>while True:<br>    file_list = os.listdir(local_dir)<br><br>    with ftplib.FTP(host=hostname, user=username, passwd=password) as ftp:<br><br>        # Adding logging<br>        logging.info(&#39;Connection succesfully established ...&#39;)<br><br>        ftp.cwd(remote_dir)<br>        # Adding logging<br>        logging.info(f&#39;Accessing {remote_dir} directory ...&#39;)<br><br>        for file_name in file_list:<br>            file_path = os.path.join(local_dir, file_name)<br>            if os.path.isfile(file_path):<br><br>            with open(file_path, &#39;rb&#39;) as file:<br>                ftp.storbinary(f&#39;STOR {file_name}&#39;, file)<br>                # Adding logging<br>                logging.info(f&#39;{file_name} succesfully uploaded !&#39;)<br><br>            os.remove(file_path)<br><br>    # Adding logging<br>    logging.info(&#39;The process has been completed and will restart <br>                  in two hours.&#39;)<br>    time.sleep(7200)</pre><h4>7. Managing Errors and Handling Exceptions</h4><p>Right after calling the <strong>while</strong> method, we are going to include a <strong>try/except</strong> method. We add as <strong>except</strong>, hostname, username, and password connection errors. For that, we need to import the <strong>socket</strong> module that will handle the hostname error. When starting the <strong>for</strong> method, a <strong>try/except</strong> method is placed to catch possible connection errors when uploading the file.</p><p>Analyzing the ‘file_list’ variable, we add an <strong>if</strong> method that checks if it contains files. If not, the entire process stops, and every 10 minutes it will be consulted if the variable has files to resume the process.</p><pre>import os<br>import ftplib<br>import socket<br>import time<br>import logging<br><br>hostname = &quot;ftp.example.com&quot;<br>username = &quot;user_example&quot;<br>password = &quot;pswd_example&quot;<br>local_dir = &quot;/path/to/local/dir&quot;<br>remote_dir = &quot;/path/to/remote/dir&quot;<br><br>fmt = &#39;%(asctime)s | %(levelname)s | %(message)s&#39;<br>logging.basicConfig(level=logging.DEBUG, <br>                    format=fmt, <br>                    handlers=[logging.StreamHandler(), <br>                              logging.FileHandler(&quot;ftp.log&quot;)])<br>while True:<br>    # First try/except block<br>    try:<br>        file_list = os.listdir(local_dir)<br><br>        # Validating if there are files<br>        if not file_list:<br>            logging.info(&quot;No files to upload, waiting for new files...&quot;)<br>            time.sleep(600)<br>            continue<br><br>        with ftplib.FTP_TLS(host=hostname, user=username, passwd=password) \ <br>                as ftp:<br>            ftp.prot_p()<br>            logging.info(&quot;Connection established with FTP server&quot;)<br><br>            ftp.cwd(remote_dir)<br>            logging.info(f&quot;Accessing {remote_dir}&quot;)<br><br>            for file_name in file_list:<br>                # Second try/except block<br>                try:<br>                    file_path = os.path.join(local_dir, file_name)<br>                    if os.path.isfile(file_path):<br>                        with open(file_path, &#39;rb&#39;) as file:<br>                            logging.info(f&quot;Uploading {file_name}...&quot;)<br>                            ftp.storbinary(f&#39;STOR {file_name}&#39;, file)<br>                        os.remove(file_path)<br>                except Exception as e:<br>                    logging.error(f&#39;Error uploading {file_name}: {str(e)}&#39;)<br>                    continue<br><br>            logging.info(f&quot;Uploaded all files to {remote_dir}&quot;)<br><br>        logging.info(f&quot;The process will restart in two hours&quot;)<br>        time.sleep(7200)<br><br>    except socket.gaierror:<br>        logging.critical(&#39;Invalid Hostname.&#39;)<br>        break<br><br>    except ftplib.error_perm:<br>        logging.critical(&#39;Invalid username, password or remote &#39;<br>                         &#39;directory path.&#39;)<br>        break<br><br>    except FileNotFoundError:<br>        logging.critical(f&#39;{local_dir} is not a valid directory.&#39; <br>                          &#39;Please check path informed.&#39;)<br>        break</pre><h3>Final Thoughts</h3><p>In conclusion, automating file transfer tasks through FTP can improve efficiency and reduce errors in your workflow. With the right tools and knowledge, setting up an FTP connection, working with directories and files, uploading files, and adding logging and error handling can all be accomplished smoothly. Remember to prioritize security and choose strong passwords. By mastering these techniques, you can save time and streamline your file transfer processes.</p><p>Here are some advanced topics to improve the process:</p><ul><li>Multi-threading file transfers for increased efficiency</li><li>Transfer files securely with SFTP or FTPS</li><li>Environment variables</li></ul><h3>Level Up Coding</h3><p>Thanks for being a part of our community! Before you go:</p><ul><li>👏 Clap for the story and follow the author 👉</li><li>📰 View more content in the <a href="https://levelup.gitconnected.com/?utm_source=pub&amp;utm_medium=post">Level Up Coding publication</a></li><li>💰 Free coding interview course ⇒ <a href="https://skilled.dev/?utm_source=luc&amp;utm_medium=article">View Course</a></li><li>🔔 Follow us: <a href="https://twitter.com/gitconnected">Twitter</a> | <a href="https://www.linkedin.com/company/gitconnected">LinkedIn</a> | <a href="https://newsletter.levelup.dev/">Newsletter</a></li></ul><p>🚀👉 <a href="https://jobs.levelup.dev/talent/welcome?referral=true"><strong>Join the Level Up talent collective and find an amazing job</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2dde0efe0325" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/how-to-automate-file-transfer-with-python-ftplib-2dde0efe0325">How to Automate File Transfer with Python ftplib</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Non-Tech to (Python) Developer: My Journey and Lessons Learned]]></title>
            <link>https://medium.com/@gabrielmarthendal/from-non-tech-to-python-developer-my-journey-and-lessons-learned-954d529b58f5?source=rss-e34e5f3e44fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/954d529b58f5</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[first-job]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Gabriel Borges Marthendal]]></dc:creator>
            <pubDate>Mon, 13 Feb 2023 22:59:18 GMT</pubDate>
            <atom:updated>2023-02-13T22:59:18.811Z</atom:updated>
            <content:encoded><![CDATA[<h4>This is a true story about how I got my first python developer job and what you have to do to get a job too</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YjW9M2FxaTpk9MJt4gKQDg.jpeg" /><figcaption>Image by iconicbestiary on Freepik</figcaption></figure><p>First of all, that’s not a common and clichê history about ‘how to become a developer’ No. That’s a true story about how I become a python developer working on a startup, in a different way.</p><p>Second, but no less important, maybe you want to ask me why the python word is in the parenthesis on this article title. I will give you a simple answer. You can switch ‘Python’ for any other programming language such as Node, Java, Go, or C#. The main goal of this article isn’t about how I learned Python, but how I became a developer. Python is just the tool. So, this article fits anybody who wants to become a developer regardless of programming language.</p><p>Then in this article, I’m going to tell you how I came from zero on Python and got my first job as a developer. It worked for me. Will that work for you? I am not sure, but I hope it does. There isn’t only a single way to become a developer, but from the bottom of my heart, I hope this article helps you.</p><h3>Getting a Job</h3><p>“What? Without knowing Python or any other programming language?” Yes. The first step is to get a job. A non-developer role in a Startup that has developer roles. That’s important because the secret is to work in a role and then get a career transition to a developer role.</p><p>Search about the startup, and find the development roles it offers. Find the programming language they use. But again, don’t waste your time applying for developer roles. Not yet. Try a role in which you don’t need a lot of knowledge, and experience, and don’t have to study and learn a lot before getting a job. Startups have plenty of other roles: Human Resources, Sales, Marketing, Customer Service, Product Manager, Project Manager, and others. Some of these roles need a lot of study and knowledge, so search and choose the role that fits you better.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NWpkUadR-OgkNzIsaDsgnA.jpeg" /><figcaption>Image by pch.vector on Freepik</figcaption></figure><p>I recommend you apply for the operation department roles. It was how I started. The operations department is where you learn everything about the business and how it works, and it gives you a lot of advantages when you are a developer because you need to know the business rules of the product. The main roles of an operations department in a startup are Customer Service, Customer Success, and Customer Support.</p><p>But come on, ‘Getting a Job’ is too simplistic. We are skipping a step, which is:</p><h3>How to Get a Job</h3><p>I tried the traditional way and searched for job offers on Linkedin and others sites. I had my curriculum on a pdf, so for each job I applied for, I personalized the pdf with the skills and information needed for that job offer. I applied for more than fifty job offers and got only three job interviews. I didn’t get a job at any of them.</p><p>I even sent a resume to the startup where I got my first job as a developer (I’ll call it Startup X), but I didn’t get an answer. The traditional way didn’t work for me. I got my first job in another way: Networking.</p><p>I’m gonna give you some advice given by a very successful friend: <strong>Shout out to the world that you are looking for a job!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l-CAAx3YYvAcjusKRXTRpA.jpeg" /><figcaption>Image by iwat1929 on Freepik</figcaption></figure><p>I remember that time I saw a meme about unemployment on a page I was a follower of and reposted it on my Instagram story. Around four hundred people had visualized and had known that I was looking for a job. This got me some replies and some people ask me about my resume. I only reposted a story, did you understand that? It took me seconds and almost no effort.</p><p>I used to say it when I did hang out with friends. Until a friend asked me for a resume to apply for a job offer on Startup X.</p><p>And that’s how I sent my resume again to Startup X applying for Customer Onboarding Analyst. One step further, after all, I only had experience as a client onboarding intern on an early-stage startup.</p><p>A few weeks went by and I got an interview. A couple of weeks later came the reply: ‘We like you, but we opted for someone more experienced’.</p><p>Okay, here we go again. Search for companies, send resumes, and tell friends and anybody else that you are looking for a job…</p><p>A month later, my friend contacted me saying that the job offer had been filled at Startup X, but they had opened a new vacancy for an intern in the same function, and they would contact me. I didn’t have to send the resume again, but I did another interview, and… I was accepted! I got the job!</p><h3>Do your best</h3><p>Okay, I got the job. Now I must do my best. You have to excel at your role. Do more than is asked, show work, and show that you are an excellent employee. Do each task with excellence. Offer to help others. You’ll know you’re doing well when you get compliments, when they ask for your help with certain tasks, or when you start to become a reference in specific subjects.</p><p>While you are doing your best…</p><h3>Start studying</h3><p>Let the fun begin. Now that you got a job at the tech company, it’s time to get ready to become a developer. There are countless courses, books, podcasts, boot camps… Anyway, there are many ways to learn Python or the programming language you want.</p><p>Maybe you ask me: ‘What is the best Python course?’, ‘What is the ideal book to learn Python?’ or ‘What podcast should I listen to about Python?’ All of this is bullshit. In fact, there are courses that are better than others, books that you should read, and others that are more of the same. But the question you have to ask yourself right now is, what is my way of learning?</p><h3>Find your Learning Style</h3><p>Finding your way of learning is important. You don’t want to study something and forget about it the next day, right? You want to absorb as much content as possible in the shortest amount of time. Discovering your learning style will make your study more enjoyable and efficient. It is likely that you already know what your ideal way of learning is. But in case you didn’t know, I recommend that you carry out active research on the subject and test the various learning styles until you find the one that best suits you. In short, learn how to learn.</p><p>My ideal way of learning is to read articles or books, depending on the subject, and watch short videos. Then I usually write down on <a href="https://www.notion.so/">Notion</a>, the main topics and other topics that I have to study, based on what I just learned. Long videos don’t work for me because I have a hard time focusing on a video longer than 15 minutes. If what I’m studying is related to programming, I need to apply what I’ve just learned to an existing project or create a new one.</p><p>There are many ways to learn something. I have a friend who watches videos on YouTube and don’t waste time putting into practice what he already learned. He says he learns most by practice, by trial and error than just by studying theory.</p><p>I have another friend who works better with a mix of videos and podcasts. He watches something about a subject, and then, on his way to work he usually listens to a podcast about that.</p><p>So find your way of learning.</p><h3>Make it clear</h3><p>You got a job and are studying to become a developer but something is missing to finally get your job as a developer.</p><p>You must <strong>let it clear to your manager</strong> that you want a career transition to the technology department.</p><p>I had 1:1 (one-to-one) meetings every three months with my supervisor. I had already completed my first three months in company X and got a promotion from intern to junior customer onboarding analyst. In the 1:1 meetings, we usually speak about our future beyond other things. So I said that I wanna a career transition and he was very comprehensive. He supported me and gave some useful advices. Of course, it depends a lot of the company you are working. I was lucky to be working on a startup that support and encourages career transitions.</p><p>In short, all I could do was keep studying and when a job offer came, they would give me preference. In addition, I would need to study other topics such as: Linux Commands, PL/SQL, Docker, Rest API, Git, ETL Concepts and some specific libraries.</p><h3>Routine</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WZIkwvz8pXyVHb4csY3MHQ.jpeg" /><figcaption>Image by Freepik</figcaption></figure><p>I’m going to call this step, as a routine, because in fact, that’s what happened. I waited 6 months for the opportunity to come. And during these months those are what I did:</p><ul><li>I kept doing my best in the role I was;</li><li>I continued studying Python, and added SQL studies to my routine;</li><li>I contacted the leader of the sector I was going to so that he could give me tips on what to study (this was very useful), and I met him with some frequency to answer questions.</li></ul><p>What they don’t tell you about the routine is that sometimes it’s tiring. There’s no glamor in doing the same thing every day. And sometimes you will study boring but necessary subjects.</p><h3>Reaching the Target</h3><p>Nine months after joining company X, the opportunity presented itself. They told me that I was able to start the transition period and that soon after, I could start as a developer. During this transition period, I would complete the projects in the sector I was in, and little by little I would take on some tasks in the development sector.</p><p>I started to participate in the daily scrums, taking on one task or another in the new role, while I finished the projects in the old sector. And after three months of the transition period, I finally finished the last project, and now I was a member of the development team.</p><p>In conclusion, I hope this story has provided valuable insights and information. Thank you for taking the time to read and I wish you all the best on your journey.</p><h3>Post Script</h3><p>Now I’m going to comment a little about this start in the development team because it wasn’t easy. You will feel lost many times.</p><p>First, because you don’t know anything about the team’s processes, and second, because you hold a junior position, so seniors will sometimes comment on terms or subjects that you don’t know about. Ask everything, absolutely everything you don’t know or understand. I’m a bit shy, so sometimes I researched the subjects so as not to take up seniors’ time. But sometimes, there are things that only they can answer, so ask.</p><p>In addition to asking, I suggest talking to someone more senior on the team and looking at that person’s projects. How he codes, what libraries he uses, and how he organizes the project. Absorb as much knowledge as possible from someone who already has years of experience.</p><p>And my final tip is: If you work remotely or hybrid, I suggest going to the in-person office as much as possible. There’s nothing like building a good relationship with your team, but also getting to know the other development teams in the company. I particularly like going there in person, because I hear other developers from other areas working and talking about development, and other technical issues. And passively I learn from them. When they comment on a tool that I don’t know about, I research it. When they get together to discuss a project they are working on, I listen and I learn.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=954d529b58f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>