<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: JOÃO PSTER</title>
    <description>The latest articles on DEV Community by JOÃO PSTER (@jpster).</description>
    <link>https://dev.to/jpster</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F845634%2F9da97410-4a1c-4483-b32d-6836ced618bf.png</url>
      <title>DEV Community: JOÃO PSTER</title>
      <link>https://dev.to/jpster</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jpster"/>
    <language>en</language>
    <item>
      <title>AI doesn't turn anyone into a developer</title>
      <dc:creator>JOÃO PSTER</dc:creator>
      <pubDate>Fri, 27 Nov 2026 21:33:25 +0000</pubDate>
      <link>https://dev.to/jpster/ai-doesnt-turn-anyone-into-a-developer-4558</link>
      <guid>https://dev.to/jpster/ai-doesnt-turn-anyone-into-a-developer-4558</guid>
      <description>&lt;p&gt;Yes, I used AI to write this post. And I doubt you'll find the generic text here, full of "in today's landscape" and punchy one-liners, that comes out when someone asks ChatGPT to "write an article about AI and the future of developers". This post came out of a &lt;a href="https://github.com/J-Pster/joaopster-dotcom/tree/master/.claude/skills/escrever-post-blog" rel="noopener noreferrer"&gt;skill I wrote myself&lt;/a&gt;, which interviewed me in two rounds before writing a single line, researched the sources, and then ran the text through a check against AI writing habits. Everything here is something I said, the AI only organized it, and that way of using the tool is exactly what this post is about.&lt;/p&gt;

&lt;p&gt;A few days ago I saw a post on LinkedIn saying that today a 15-year-old with Claude Code does what used to take a developer years of experience. I don't remember who wrote it, and it doesn't matter, because I see that line everywhere, in a dozen variations. And I disagree with it, because it mixes up writing code with doing a developer's job.&lt;/p&gt;

&lt;p&gt;So you know where I'm coming from, I've been programming for six years. I went through &lt;a href="https://www.tecmundo.com.br/mercado/236790-trybe-vale-pena-8-pontos-olho.htm" rel="noopener noreferrer"&gt;Trybe&lt;/a&gt;, a Brazilian bootcamp of more than 1,500 hours, almost a full year of course, and even so most of what I know I learned on my own, because I'm self-taught and obsessed with productivity, and when I want something I don't let go. Today I have a startup I can't name yet, 10 months old with more than 500 users, and I wrote about 87% of its code, close to 2 million lines, not counting tests, migrations or generated files (I counted with a script, it's not a guess). All the architecture and all the infrastructure, since day zero, were my decisions. And 100% of that code goes through AI, I haven't written a line of code by hand in a long time.&lt;/p&gt;

&lt;p&gt;So no, I'm not against AI. I've been using AI to program for three years, and it clicked for me the very first time I used it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The door into programming got knocked down
&lt;/h2&gt;

&lt;p&gt;The LinkedIn post gets one thing right. Today anyone can write code. The door into programming isn't just open, it got knocked down, there's no door anymore. You open Lovable, Bolt or Claude Code itself, describe what you want and a working screen comes out.&lt;/p&gt;

&lt;p&gt;The name stuck in February 2025, when Andrej Karpathy &lt;a href="https://simonwillison.net/2025/Feb/6/andrej-karpathy/" rel="noopener noreferrer"&gt;called it "vibe coding"&lt;/a&gt;, a way of programming where you "forget that the code even exists". But a lot of people forgot the other half of the tweet, where he says himself that it's "not too bad for throwaway weekend projects", weekend projects you throw away, and there are people using it to store customer data.&lt;/p&gt;

&lt;p&gt;Writing code was never the hard part. The hard part is building software that lasts, that you can maintain, that can grow, that scales, with infrastructure that doesn't go down and doesn't ruin you at the end of the month. AI doesn't give you that for free, because to ask for the right thing you have to know what the right thing is.&lt;/p&gt;

&lt;h2&gt;
  
  
  Writing code got easy, the rest is still hard
&lt;/h2&gt;

&lt;p&gt;Ask someone who became a "dev" in seven days what a design pattern is. What changes between a monolith and microservices, and when each one makes sense. How a layered architecture works, or one split by domain. Most of the time they don't know, and they don't know because they never studied it. They know how to ask AI for code, and when the system grows and architecture problems show up, they don't even have the vocabulary to understand what's wrong.&lt;/p&gt;

&lt;p&gt;With infrastructure it's even worse. There are a lot of people calling themselves developers who have never opened the AWS console, never logged into Azure and don't know what GCP stands for. Instead they use Supabase and Firebase, and think they're doing infrastructure.&lt;/p&gt;

&lt;p&gt;I have nothing against Supabase itself. Under the hood it's Postgres, with auth, storage and a generated REST API on top, it's open source, the managed service &lt;a href="https://supabase.com/docs/guides/platform/regions" rel="noopener noreferrer"&gt;runs on AWS&lt;/a&gt; and you can host it yourself. What bothers me is people who use it with no idea of any of that. They don't know there's a Postgres underneath, they don't know security depends on something called RLS (Row Level Security, the rules that say which user can read which row of the database) and they don't know that, if they don't set it up, anyone with the public key from the frontend can read the whole database.&lt;/p&gt;

&lt;p&gt;In 2025 a researcher analyzed 1,645 apps built on Lovable and found 170 exposing data because of misconfigured RLS, with emails, phone numbers, payment data and API keys leaking, and that became &lt;a href="https://nvd.nist.gov/vuln/detail/CVE-2025-48757" rel="noopener noreferrer"&gt;CVE-2025-48757&lt;/a&gt;. In February 2026 Wiz found &lt;a href="https://www.wiz.io/blog/exposed-moltbook-database-reveals-millions-of-api-keys" rel="noopener noreferrer"&gt;Moltbook's entire database wide open&lt;/a&gt; for the same reason, with about 1.5 million tokens exposed, and the founder had said publicly that he didn't write a single line of code. I've found exposed keys myself while looking into SaaS products out there, and YouTube is full of videos of people showing how easy it is to exploit these apps.&lt;/p&gt;

&lt;h3&gt;
  
  
  Firebase is not "the database"
&lt;/h3&gt;

&lt;p&gt;I've seen a lot of people call Firebase a database, and worse, truly believe it's the right database for a large production system storing user data, because "it's faster to get started". Firebase is a platform, and the databases inside it are &lt;a href="https://firebase.google.com/docs/database/rtdb-vs-firestore" rel="noopener noreferrer"&gt;Firestore and the Realtime Database&lt;/a&gt;. When a developer says "database", almost everyone pictures Postgres or MySQL, a relational database with SQL. Firestore is a document database, NoSQL. And that's where juniors fall.&lt;/p&gt;

&lt;p&gt;NoSQL isn't bad, Amazon keeps a lot of stuff in DynamoDB. The mistake is taking relational data, which needs joins, transactions and integrity, and shoving it into a document database without modeling anything.&lt;/p&gt;

&lt;p&gt;I know the headache because I've worked on a project like that, with a few hundred thousand users, the database on Firestore and the backend on a pile of Cloud Functions. The cost was very high. We needed relations between the data and couldn't do them properly, because the database isn't relational. There was no standard for security rules, so pretty much anything could change any document. A lot of the data had no structure at all, one document looked one way and the one next to it looked another. And migrating that was misery.&lt;/p&gt;

&lt;h3&gt;
  
  
  Lovable is not a developer tool
&lt;/h3&gt;

&lt;p&gt;For building a prototype and validating an idea, Lovable is great and I have nothing against it. What makes me angry is people so convinced they've become developers that they think Lovable is what a developer uses, with no idea what the AI setup of someone who programs for a living looks like.&lt;/p&gt;

&lt;p&gt;Mine, for example, is Claude Code with a few dozen skills I wrote, a bunch of hooks and thousands of lint and Stylelint rules to force the code to come out the way I want. At the startup we have tens of thousands of unit tests, a hook that runs before every push, a hook at deploy time, a huge CI/CD pipeline and a sanity check that simulates a real user after every deploy. On a normal day I have six to eight AI chats open, each with dozens of subagents. Anyone who thinks a developer with AI is someone who writes a prompt and hits enter has never heard of unit tests or lint rules, and if they have, they don't know how to use them.&lt;/p&gt;

&lt;p&gt;And if you think I'm exaggerating my productivity, my &lt;a href="https://wakatime.com/@JoaoPster" rel="noopener noreferrer"&gt;WakaTime&lt;/a&gt; is public, and the top of my site shows the total hours I've coded.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who's selling the shortcut
&lt;/h2&gt;

&lt;p&gt;Search for "developer course" or "build your SaaS without knowing how to code" and you'll find a ton of people promising to turn you into a developer in seven days. It's everywhere, and everyone knows it. I've never bought one of those and I never will, because to me it's a scam.&lt;/p&gt;

&lt;p&gt;They exploit something every human being has, the urge to get things fast, which today, with so much cheap dopamine, is stronger than ever. It's the old "easy money, fast", now dressed up as AI.&lt;/p&gt;

&lt;p&gt;What bothers me most is that it hurts people, and if there's one thing I hate in life it's getting in someone else's way. But a scammer goes further than getting in the way. He lies to the person, takes their money and still leaves them behind, thinking they learned something, with an insecure app online and without the foundation to see how big the problem is. I did a one-year course of more than 1,500 hours and I know how much I was still missing when I finished. Seven days is a joke.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI multiplies what you already are
&lt;/h2&gt;

&lt;p&gt;AI is a tool, and like any tool it makes whoever uses it more productive, but it doesn't make bad code good and it doesn't turn anyone who isn't a developer into one.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A good developer with AI is still a good developer, only shipping ten times more.&lt;/li&gt;
&lt;li&gt;A bad developer with AI is still bad, and ships ten times more bad code.&lt;/li&gt;
&lt;li&gt;Someone who isn't a developer still isn't one, and ships broken code full of security holes ten times faster.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I've seen hired developers shipping buggy, random, senseless AI-generated code, at more than one company. And it's the complaint I see most online. In the 2025 Stack Overflow survey, the number one frustration of people using AI to code was exactly code that's &lt;a href="https://survey.stackoverflow.co/2025/ai" rel="noopener noreferrer"&gt;"almost right, but not quite"&lt;/a&gt;, cited by 66% of developers. Someone who can't program can't even see where the "almost" is.&lt;/p&gt;

&lt;h3&gt;
  
  
  AI as a crutch
&lt;/h3&gt;

&lt;p&gt;There's another type that bothers me, the person who uses AI as a crutch. No patience, no perseverance, no discipline to use AI to learn before using it to do, so they ask for everything ready-made and move on without understanding anything.&lt;/p&gt;

&lt;p&gt;I know what it's like because I've done it. Early on, I already knew unit testing but didn't know how to write integration tests, and I was arrogant enough to ask AI to do it without understanding how it worked. It went wrong. I got stuck in a loop, the thing broke, I asked AI to fix it, it broke again, and I had no idea why, because I didn't know what was going on there. When it finally clicked I thought I'd been really stupid, all I had to do was learn it first and ask later.&lt;/p&gt;

&lt;p&gt;In January 2026 Anthropic itself published a &lt;a href="https://www.anthropic.com/research/AI-assistance-coding-skills" rel="noopener noreferrer"&gt;study with 52 engineers learning a new library&lt;/a&gt;. Those who learned with AI doing the work for them scored 17% lower on average on a comprehension quiz than those who wrote the code by hand, and the biggest gap was in debugging. And those who used AI to ask for explanations and clear up conceptual questions learned more. AI teaches well, if you ask it to teach you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Will AI end developers?
&lt;/h2&gt;

&lt;p&gt;The developer as the job looks today, I think it will. Developers will stop writing code and become the people who define the architecture, the infrastructure, how things have to work and which structure to use. I already work like that, AI writes and I decide.&lt;/p&gt;

&lt;p&gt;In March 2025 Dario Amodei, Anthropic's CEO, &lt;a href="https://www.cfr.org/event/ceo-speaker-series-dario-amodei-anthropic" rel="noopener noreferrer"&gt;said&lt;/a&gt; that in three to six months AI would be writing 90% of the code. In the same talk he said the programmer would still need to define the design and security of the system, and almost nobody repeats that second part. And junior jobs really are harder to get, a &lt;a href="https://digitaleconomy.stanford.edu/publications/canaries-in-the-coal-mine" rel="noopener noreferrer"&gt;Stanford study&lt;/a&gt; using payroll data shows that hiring of 22 to 25 year olds in the jobs most exposed to AI fell well below trend, but the authors themselves say they can't claim AI is the cause.&lt;/p&gt;

&lt;p&gt;To me the developer career isn't over. What changed is what you need to study. What you used to learn only once you became senior, a junior now has to learn from the start, because AI already writes the code.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd study if I were starting today
&lt;/h2&gt;

&lt;p&gt;First, learn how to learn. It sounds silly, but you need to know how you learn, and Fabio Akita, a well-known Brazilian developer, has &lt;a href="https://www.youtube.com/watch?v=oUPaJxk6TZ0" rel="noopener noreferrer"&gt;a 2020 video about it&lt;/a&gt; (in Portuguese) that I recommend, where he sums up learning how to learn as truly figuring things out on your own. I use AI to build the courses I study with, and I show the whole process on the page about &lt;a href="https://joaopster.com/en/courses/how-i-make-them/" rel="noopener noreferrer"&gt;how I make my courses&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Then the foundation. The concepts, how the internet works, what happens between the browser and the server. And writing code, lots of code. Juniors have to write code, because writing it is how you understand what the AI is handing you.&lt;/p&gt;

&lt;p&gt;And then, much earlier than we used to, the senior stuff. Architecture, every kind. Infrastructure. Software modeling, which in &lt;a href="https://www.youtube.com/watch?v=SmYQcaP1Jgw" rel="noopener noreferrer"&gt;Akita's other video&lt;/a&gt; means representing the real world in code, and for that you need to understand the business and not just the language. Design patterns. And even learning to be an entrepreneur.&lt;/p&gt;

&lt;p&gt;Some time from now I'll write another post showing how I keep code quality high with AI, with high throughput and without having to review every PR by hand. There you'll see in practice the difference between asking AI for code and programming with it.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://joaopster.com/en/blog/ai-doesnt-turn-anyone-into-a-developer/" rel="noopener noreferrer"&gt;joaopster.com&lt;/a&gt;. The post is also on my blog in three languages&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://joaopster.com/blog/ia-nao-transforma-ninguem-em-dev/" rel="noopener noreferrer"&gt;Português&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://joaopster.com/en/blog/ai-doesnt-turn-anyone-into-a-developer/" rel="noopener noreferrer"&gt;English&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://joaopster.com/es/blog/la-ia-no-convierte-a-nadie-en-desarrollador/" rel="noopener noreferrer"&gt;Español&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>career</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>I built a free study platform with spaced repetition, practice exams and AI</title>
      <dc:creator>JOÃO PSTER</dc:creator>
      <pubDate>Fri, 27 Nov 2026 21:32:50 +0000</pubDate>
      <link>https://dev.to/jpster/i-built-a-free-study-platform-with-spaced-repetition-practice-exams-and-ai-5dl6</link>
      <guid>https://dev.to/jpster/i-built-a-free-study-platform-with-spaced-repetition-practice-exams-and-ai-5dl6</guid>
      <description>&lt;p&gt;I built four courses with AI and at first I studied everything in Obsidian, which is great for reading, but it doesn't track progress, doesn't grade quizzes and doesn't remind you of what you're forgetting. I wanted a tool like that for myself, and then I thought, why not open it up to everyone, for free? That's how the &lt;a href="https://joaopster.com/cursos/" rel="noopener noreferrer"&gt;courses section&lt;/a&gt; of my site turned into a study platform.&lt;/p&gt;

&lt;p&gt;To show everything it does I used the &lt;a href="https://joaopster.com/cursos/aws-saa-c03/" rel="noopener noreferrer"&gt;AWS Solutions Architect Associate course&lt;/a&gt;, which is the one I'm studying right now. I've finished 4 of the 27 modules and I'm doing really well. The courses are in Portuguese, so the screenshots are too, and they come from a local server with sample data, so the scores you see aren't mine.&lt;/p&gt;

&lt;p&gt;I already wrote about how the AI builds the courses in the &lt;a href="https://joaopster.com/en/blog/how-i-use-ai-to-build-courses/" rel="noopener noreferrer"&gt;post on building courses with AI&lt;/a&gt;, this one is only about what you do with a course once it exists.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sync without an account, just a code
&lt;/h2&gt;

&lt;p&gt;This is the part I think is the most amazing. You study on the computer, stop, grab your phone and everything is there, the lessons you read, the questions you answered, your highlights. Stop again, grab the tablet, same thing. I study on all three, the computer when I want real focus, the phone when I'm moving around and the tablet more at night, and without this I'd have three different progress records and none of them right.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0f3oemdrjmv92j1xo9hv.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0f3oemdrjmv92j1xo9hv.webp" alt="Sync card of the AWS course showing &amp;quot;Sincronizado às 15:15&amp;quot; (synced at 15:15) and the 20-character code to paste on another device" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And there's no account. You click "Criar código" (create code), the site generates a 20-character code and you paste it on the other device. It doesn't ask for an email, a name, a password, nothing, and that was my decision, because I didn't want anyone handing over personal data just to study. The code works like a password, so the server only stores its hash and not the code itself.&lt;/p&gt;

&lt;p&gt;If two devices studied separately, offline for example, the progress merges on its own when they talk again, and each item keeps its most recent version.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzulkf7nmr57qx5p6ge3h.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzulkf7nmr57qx5p6ge3h.webp" alt="Progress panel of the AWS course on a phone, with 31 of 234 lessons read, the continue button on lesson 5.1 and the time left in each module" width="800" height="1731"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Mistakes notebook
&lt;/h2&gt;

&lt;p&gt;Every lesson ends with exam-style questions and the answer shows up right away, and any question you get wrong goes into the mistakes notebook, grouped by module and lesson, with a button to redo it back in the lesson. Get it right and it leaves the notebook.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8la0vo7u0jo7d9f03umb.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8la0vo7u0jo7d9f03umb.webp" alt="Mistakes notebook of the AWS course with 13 wrong questions grouped by module, each with a button to redo it in the lesson" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I've already gotten some questions wrong in the AWS course and the notebook helped me a lot to review them. And it doesn't let me pretend I understood, because if a question is in there it means I still don't know that thing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Spaced repetition with FSRS
&lt;/h2&gt;

&lt;p&gt;Spaced repetition means reviewing each thing right before you forget it. What you know well comes back in weeks, what you get wrong comes back in minutes. FSRS (Free Spaced Repetition Scheduler) is the algorithm that works out that moment for each card from your answers, and Anki has offered it too since 2023.&lt;/p&gt;

&lt;p&gt;I learned about this using AnkiDroid when I was preparing for my Amazon interviews, to work at AWS. It worked. So much that I wanted the same thing here, without having to export anything to Anki.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fevgs6ib5l9ojt656fzvn.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fevgs6ib5l9ojt656fzvn.webp" alt="Spaced repetition card with a wrong question from the AWS course, the answer revealed and four rating buttons, from &amp;quot;Errei&amp;quot; (again) to &amp;quot;Fácil&amp;quot; (easy), each showing when the card comes back" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The cards come from two places, the glossary terms of the lessons you've already marked as read and the questions you got wrong. You see the card, try to remember, reveal the answer and say how it went, and in the screenshot you can see that "Bom" (good) brings the card back in 10 minutes and "Fácil" (easy) in 9 days. At most 20 new cards come in per day, so the reviews don't turn into a pile you never finish.&lt;/p&gt;

&lt;h2&gt;
  
  
  Timed practice exam with a score per domain
&lt;/h2&gt;

&lt;p&gt;The AWS course has two 65-question practice exams, just like the real one, with 130 minutes (2 minutes per question), and while one is running the site hides the answers, shows a timer and a map of the questions you've answered and the ones you left blank.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw0xxt2k63lkkjea2wj9c.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw0xxt2k63lkkjea2wj9c.webp" alt="Practice exam 1 of the AWS course in progress, with the timer at 1:28:55, 23 of 65 questions answered and the question map open" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When you finish, you get the overall score and the score for each of the exam's four domains, against a 72% target per domain. In the example below the overall score was 80%, but domain 4, cost-optimized architectures, came in at 69%, so even passing overall you know you have to go back to the cost modules before the exam.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwd7up59mac4kf8x2c54m.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwd7up59mac4kf8x2c54m.webp" alt="Practice exam result with 80% correct, 52 of 65, and the bars for the four domains, with domain 4 at 69%, below the 72% target" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I haven't taken the practice exam for real yet, I'm studying a bit more first, but I tested the whole feature and it turned out really good. To me a practice exam with a score per domain is the bare minimum for anyone studying for a certification, and still it's something I've missed on paid platforms.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI assistant with your own key
&lt;/h2&gt;

&lt;p&gt;Next to the lesson there's a chat that already gets the whole lesson text as context. I use it a lot, when I didn't quite get something, when the text didn't explain it well, or when I have a more specific question the lesson doesn't even cover. You can also select a passage and send it to the chat.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F704kidmk3r3chwji46kq.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F704kidmk3r3chwji46kq.webp" alt="AI assistant open next to lesson 1.2 of the AWS course, answering a question about AZ names and AZ IDs, with a cost of about US$ 0.0011 under the answer" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The assistant runs on a key you provide yourself, from Anthropic, OpenAI or Google, and you pick the model. That's called BYOK (bring your own key), and I did it this way because I wanted you to be free to choose whatever AI you like and not be stuck paying me anything. I want this to be useful and truly free, and to be free I couldn't charge anything.&lt;/p&gt;

&lt;p&gt;The key stays in your browser only and goes straight to the provider, without passing through my server, and under each answer you see how much it cost. For me it's a fraction of a cent per answer, and so far I've spent about US$ 1 of API on this at most.&lt;/p&gt;

&lt;h2&gt;
  
  
  Listen to the lesson while you read
&lt;/h2&gt;

&lt;p&gt;This and the assistant are the two things I use the most. I really like reading while listening, I put the lesson on and follow the text with my eyes, and the passage being read gets highlighted on screen. You can use the browser's own voice, which is free, or a paid voice from Google Cloud, OpenAI or ElevenLabs with your key. Before generating, the site shows how much the audio will cost, and the generated audio is saved on the device so you don't pay twice.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvdxsxl3n7a1jwxqk6zcm.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvdxsxl3n7a1jwxqk6zcm.webp" alt="Audio player open on lesson 1.2 with the Google Cloud voice, showing that the audio for the rest of the lesson costs about US$ 0.24 and the lesson title marked as the current passage" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Highlights, offline mode, search and the rest
&lt;/h2&gt;

&lt;p&gt;I use highlights to mark the terms I have a hard time understanding, and they sync along with the progress. You select the passage and choose between highlighting it or sending it to the assistant.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F64h80k2a6bbvlddcam72.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F64h80k2a6bbvlddcam72.webp" alt="Lesson of the AWS course with two passages highlighted in yellow and a third one selected, with buttons to highlight it or add it to the chat" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Offline mode saves the whole course on the device and it opens without internet. On my phone this saves me all the time, the connection gets flaky, drops a bit, and I keep reading as if nothing happened.&lt;/p&gt;

&lt;p&gt;Search opens with Ctrl+K and looks for any term inside the course, in the lessons and in the glossary, I use it a lot.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff5u10xzks6hytgy8domd.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff5u10xzks6hytgy8domd.webp" alt="Search of the AWS course opened with Ctrl+K, showing 52 results for &amp;quot;spot instance&amp;quot; across lessons and glossary terms" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And each lesson shows the reading time and how much is left in the module and in the course, which helps me know if I can finish the lesson before going off to do something else at home.&lt;/p&gt;

&lt;p&gt;There's also font size control and a focus mode that hides the menus. I barely use that one because I like seeing where I am in the course, but I left it in for whoever likes it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I think it compares to Udemy and Coursera
&lt;/h2&gt;

&lt;p&gt;Considering it's free, I think the platform delivers a lot more than Udemy, Coursera and the like, and with a much nicer interface. A lot of paid platforms fail at the basics of studying for an exam, which is seeing where you went wrong, reviewing at the right time and practicing in the exam format. The big difference is that there's no video here, it's all text (the why is in the other post).&lt;/p&gt;

&lt;p&gt;The four courses are open at &lt;a href="https://joaopster.com/cursos/" rel="noopener noreferrer"&gt;/cursos&lt;/a&gt;. If you're studying for the SAA-C03 and you read Portuguese, start with the AWS one, create a sync code on day one and tell me in the comments what's missing.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://joaopster.com/en/blog/free-study-platform-spaced-repetition-practice-exams-ai/" rel="noopener noreferrer"&gt;joaopster.com&lt;/a&gt;. The post is also on my blog in three languages&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://joaopster.com/blog/plataforma-de-cursos-gratuita/" rel="noopener noreferrer"&gt;Português&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://joaopster.com/en/blog/free-study-platform-spaced-repetition-practice-exams-ai/" rel="noopener noreferrer"&gt;English&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://joaopster.com/es/blog/plataforma-de-estudio-gratis-repaso-espaciado-simulacros-ia/" rel="noopener noreferrer"&gt;Español&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>learning</category>
      <category>aws</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How I use AI to build courses the way I like to learn</title>
      <dc:creator>JOÃO PSTER</dc:creator>
      <pubDate>Fri, 27 Nov 2026 21:32:14 +0000</pubDate>
      <link>https://dev.to/jpster/how-i-use-ai-to-build-courses-the-way-i-like-to-learn-5gjh</link>
      <guid>https://dev.to/jpster/how-i-use-ai-to-build-courses-the-way-i-like-to-learn-5gjh</guid>
      <description>&lt;p&gt;In early November, Brazil's Civil Defense put out guidance telling every family to keep a kit to get by on their own for 72 hours, with water, food and medicine, and that landed right when everyone was talking about El Niño. I read it and thought, man, I should know first aid. I went looking and the material was scattered, hard to find in one place, and nothing took me from start to finish. So I asked AI to build a course for me.&lt;/p&gt;

&lt;p&gt;What came out was a course with 27 modules and 293 lessons, plus a glossary with 2,486 terms, based on PHTLS, TCCC and TECC, which are the reference standards for trauma care. It was the first big, truly structured course I made, because it was a subject I knew basically nothing about. In this post I explain how I ask AI to build a course the way I learn, the skill I wrote for it, and how I study what comes out.&lt;/p&gt;

&lt;h2&gt;
  
  
  What wore me out about ready-made courses
&lt;/h2&gt;

&lt;p&gt;Before AI I'd look for courses on Udemy and videos on YouTube. I was never much of a book reader, and good, organized written material was hard to find. What bothered me most was depending on how the teacher explained things, and a lot of the time it wasn't my way. Either it was so-so, or the video had bad audio, bad image, and that stressed me out.&lt;/p&gt;

&lt;p&gt;Today I prefer text, by a lot. AI is really good at generating text and not at generating video, so text is where I can get content made for the way I learn. And I read text at my own pace, go back, mark a passage. With a video I have to listen to the guy say the same thing again, and with text I just glance and find it, it's way faster.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I tell the AI the way I learn
&lt;/h2&gt;

&lt;p&gt;I only learn by starting from the foundation. Even when I already know something about the subject I like to start from the basics, because if I don't understand why something is the way it is, I don't accept that information. So the first thing I did was write that down as rules:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The first module is always the deepest foundation of the subject.&lt;/li&gt;
&lt;li&gt;Every lesson answers "why is it like this?" before "how do you do it?".&lt;/li&gt;
&lt;li&gt;No module uses something that hasn't been taught yet.&lt;/li&gt;
&lt;li&gt;The course ends with a project tied to a concrete goal of mine.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can see it in the order of the courses. The first aid one opens with "How the body keeps itself alive", and tourniquets only show up in module 5, after four modules of foundation. The AWS one opens with "Why the cloud exists".&lt;/p&gt;

&lt;p&gt;The other thing I do is tell the AI the situation I'm in, so it focuses even more on me. That's why an AWS lesson says "João has already chosen &lt;code&gt;us-east-1&lt;/code&gt; when creating resources". The course talks to me by name and uses my case as the example, which no recorded course does.&lt;/p&gt;

&lt;p&gt;That doesn't mean the course only works for me. Since it starts from zero, anyone with almost no background can pick it up and read it. And when the goal is a certification, I ask for a course for the specific exam I want, because then it also teaches how the exam works. The opening note of the AWS course already explains that there are 65 questions, that you pass with 720 out of 1,000 and how much each domain weighs, and the material follows those weights.&lt;/p&gt;

&lt;h2&gt;
  
  
  The skill that builds the course
&lt;/h2&gt;

&lt;p&gt;I use Claude Code with Opus 5.5 and a skill I wrote, &lt;code&gt;criar-curso&lt;/code&gt; ("create course"). A skill is an instructions file Claude loads when the request matches its description, and mine has the whole process:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Understand the topic and where I want to get to.&lt;/li&gt;
&lt;li&gt;Design the curriculum, with modules in dependency order, and show it to me for approval before researching anything.&lt;/li&gt;
&lt;li&gt;Research and write, with one agent per module, up to 5 in parallel, all reading the same writing guide.&lt;/li&gt;
&lt;li&gt;Put it all together, check that facts match across modules and link each term to the glossary.&lt;/li&gt;
&lt;li&gt;Verify with scripts, no broken links, no unlinked terms and answer keys without bias (the right answer can't always be the longest one, which is a habit of AI-generated text).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I run this with Claude Code's &lt;code&gt;/workflow&lt;/code&gt;, which launches several subagents (other Claude instances, each with its own task) and collects what they return. I wrote more about it in the &lt;a href="https://joaopster.com/en/blog/claude-code-harness-made-my-workflow-obsolete/" rel="noopener noreferrer"&gt;post about the Claude Code harness&lt;/a&gt;. The AWS course alone used around 483 agents, spread across several workflows.&lt;/p&gt;

&lt;p&gt;A course takes 2 to 3 hours to finish, depending on its size, and it's basically one shot. The workflows themselves research, write and review, so the AI handles the back and forth on its own without me touching anything. I'm on the Ultra plan, and each course eats about 1 to 2% of my weekly usage.&lt;/p&gt;

&lt;p&gt;The course comes out as a folder in the format &lt;a href="https://obsidian.md/" rel="noopener noreferrer"&gt;Obsidian&lt;/a&gt; understands, with one note per lesson, one note per glossary term and links between them. The courses section of my site reads that same format and adds on top what Obsidian doesn't have, so I write the course once and it works in both.&lt;/p&gt;

&lt;p&gt;The skill wasn't born like this. The first two courses, House Modeling and then Radio, back in September, came from a very early version that only researched and wrote the course. It had no glossary, didn't link one lesson to another and didn't follow the Obsidian structure. The courses weren't bad, but they were more basic, and the skill kept growing from there until the first aid one.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I study the course
&lt;/h2&gt;

&lt;p&gt;Every day I open the course on any of my devices, and my progress is already saved there. I read the lesson to the end and, when I finish the module, I take its quiz, which helps me lock in what I read, and then I move on to the next one.&lt;/p&gt;

&lt;p&gt;About two days later I go back to the questions I got wrong. And I do spaced repetition pretty much every day, with cards for the glossary terms of the lessons I've already read and for the questions I missed, and each card comes back on the day I'd be close to forgetting it.&lt;/p&gt;

&lt;p&gt;When I don't understand something, I ask the AI assistant built into the courses platform. You add your own Anthropic, OpenAI or Google key, and it reads the lesson you have open and answers based on it, you can even select a passage and ask only about that. It's amazing. And when I find a mistake in the course, I fix it and update the course on the site. I showed everything else the platform does in the &lt;a href="https://joaopster.com/en/blog/free-study-platform-spaced-repetition-practice-exams-ai/" rel="noopener noreferrer"&gt;post about the study platform&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;AWS is the one I'm studying the most. I study one or two hours a day and I plan to take the exam in the next few months, maybe weeks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does the AI get things wrong?
&lt;/h2&gt;

&lt;p&gt;It does, for sure, and there's not much way around it. What you can do is make it research and analyze a lot online before it writes anything, which is what the skill does, and check the critical points yourself.&lt;/p&gt;

&lt;p&gt;What I see most is the AI drifting into generic stuff. Once I asked for some first aid quick reference cards and it gave me huge, messy explanations, which is awful for a card you need to read in two seconds during an emergency. I had to refine the request until I got what I wanted, and the skill is basically that, a prompt I've already refined so it doesn't go generic.&lt;/p&gt;

&lt;p&gt;Now, to anyone who says AI teaches wrong things so it's useless for learning, I'd point out that books get things wrong, teachers get things wrong and YouTube videos get things wrong, and nobody stopped reading books because of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to build your own course
&lt;/h2&gt;

&lt;p&gt;The skill is open on the &lt;a href="https://joaopster.com/en/courses/how-i-make-them/" rel="noopener noreferrer"&gt;How I make the courses&lt;/a&gt; page (the skill files are in Portuguese, but you can ask for the course in any language). To use it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Download the skill .zip.&lt;/li&gt;
&lt;li&gt;In Claude Code, unzip it and copy the &lt;code&gt;criar-curso&lt;/code&gt; folder to &lt;code&gt;~/.claude/skills/&lt;/code&gt;. On claude.ai or the app, upload the .zip in Settings, Capabilities, Skills. In another AI, paste the content of &lt;code&gt;SKILL.md&lt;/code&gt; and &lt;code&gt;guia-de-escrita.md&lt;/code&gt; as instructions.&lt;/li&gt;
&lt;li&gt;Ask by saying the topic, where you want to get to and, if you want, your situation, like this:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Learning photography, I want to be able to shoot a wedding on my own. Write the course in English.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It shows you the curriculum to approve, writes the modules and checks everything at the end. The courses I've made this way are open in the &lt;a href="https://joaopster.com/cursos/" rel="noopener noreferrer"&gt;courses section of my site&lt;/a&gt; (in Portuguese), and if you make one, send it to me at &lt;a href="mailto:joao@joaopster.com"&gt;joao@joaopster.com&lt;/a&gt; and I'll read it and, if it's good, publish it there with credit to you.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://joaopster.com/en/blog/how-i-use-ai-to-build-courses/" rel="noopener noreferrer"&gt;joaopster.com&lt;/a&gt;. The post is also on my blog in three languages&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://joaopster.com/blog/cursos-criados-com-ia/" rel="noopener noreferrer"&gt;Português&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://joaopster.com/en/blog/how-i-use-ai-to-build-courses/" rel="noopener noreferrer"&gt;English&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://joaopster.com/es/blog/como-uso-la-ia-para-crear-cursos/" rel="noopener noreferrer"&gt;Español&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>claudecode</category>
      <category>learning</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Is Anthropic the Evil Corp or not?</title>
      <dc:creator>JOÃO PSTER</dc:creator>
      <pubDate>Thu, 26 Nov 2026 14:46:18 +0000</pubDate>
      <link>https://dev.to/jpster/is-anthropic-the-evil-corp-or-not-58ng</link>
      <guid>https://dev.to/jpster/is-anthropic-the-evil-corp-or-not-58ng</guid>
      <description>&lt;p&gt;Anyone who watched Mr. Robot remembers E Corp, the biggest conglomerate in the world on the show, which Elliot only ever calls &lt;a href="https://en.wikipedia.org/wiki/Mr._Robot" rel="noopener noreferrer"&gt;Evil Corp&lt;/a&gt;. Well, an article that showed up on LinkedIn this month paints Anthropic in pretty much the same way, as a company that uses Claude Code to get into your repository, copy your business and throw you away afterwards.&lt;/p&gt;

&lt;p&gt;I found this article in a funny way. I published my &lt;a href="https://joaopster.com/en/blog/claude-code-harness-workflows-obsoletos/" rel="noopener noreferrer"&gt;post about how Claude Code's harness made my workflow obsolete&lt;/a&gt; on LinkedIn, and the author of this article commented on it. I went to read it, and the title alone tells you the tone, &lt;a href="https://www.linkedin.com/pulse/se-voc%C3%AA-usa-claude-code-est%C3%A1-lascado-por-que-sua-de-com-maia-favero-9pqcf/" rel="noopener noreferrer"&gt;"Se você usa Claude Code, está lascado"&lt;/a&gt; ("If you use Claude Code, you're screwed"), published on November 3, 2026.&lt;/p&gt;

&lt;p&gt;Before anything else I want to make one thing clear. I'm not an Anthropic investor, I don't work there, I'm not a fan of any AI company and I'm not against any of them either. I'm in favor of everyone using whatever works best for them, safely. And one thing I hate is opinion dressed up as fact, which is exactly what this article does and what I see in a lot of writing about AI out there. You take a half-truth, mix it with a lot of sensationalism and deliver digital fearmongering of the "don't use AI, go back to the stone age" kind.&lt;/p&gt;

&lt;p&gt;So I did what the article didn't do. I went after every claim, I read Anthropic's IPO filing, the news from the time, the terms of service and the data policies, and I put a link to all of it here so you don't have to believe me or him.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who wrote it and why that matters
&lt;/h2&gt;

&lt;p&gt;The article is by Edilson Maia Favero, and my criticism here is of the article, not the person. He has open source projects, he has a company, he does cool stuff, but there's a detail the article leaves out.&lt;/p&gt;

&lt;p&gt;The whole article revolves around conflict of interest, the idea that Anthropic has an interest in grabbing your data and locking you in. But the author himself has a huge conflict of interest on this subject. The headline of his LinkedIn profile literally says "You as the sole owner of your data | I turn cloud dependence into technological autonomy through extreme efficiency and converting OPEX into CAPEX". In the consulting section, he writes that his focus is "eliminating systemic dependence on Big Tech providers". His company, Costafavero, advertises &lt;a href="https://costafavero.com.br" rel="noopener noreferrer"&gt;Vault-Code, an "AI agent server" with "its own infrastructure"&lt;/a&gt; on its website, and he maintains &lt;a href="https://github.com/edilsonmaia/Autoreflex" rel="noopener noreferrer"&gt;Autoreflex, a local memory server for agents&lt;/a&gt; on GitHub.&lt;/p&gt;

&lt;p&gt;Now look at the "survival architecture" he recommends at the end of the article. Your own harness, local memory under your control, no closed vendor agent. Point by point, it's what he sells.&lt;/p&gt;

&lt;p&gt;That doesn't automatically make the article false, and I even think he gets a few things right, which I'll show you. But someone who accuses others of hiding commercial interests should disclose their own.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where I stand
&lt;/h2&gt;

&lt;p&gt;So you understand where I'm coming from, this is my position.&lt;/p&gt;

&lt;p&gt;I use Claude Code every day. At my company I use an Ultra plan, I've even used two at the same time, and the training toggle is off. I think this has to be a conscious choice for each person, and I chose to keep it off.&lt;/p&gt;

&lt;p&gt;I'm in favor of local memory, &lt;code&gt;deny&lt;/code&gt; rules, hooks and any other lock that keeps AI from reaching where you don't want it to. And if I had to pick the best option of all, I'd pick an open source model running on your own hardware, because that's real independence, independence even from cloud hardware providers. The catch is that today this is still expensive, and I'll talk more about it at the end.&lt;/p&gt;

&lt;p&gt;So no, I'm not here to defend Anthropic. I'm here to separate fact from opinion.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mechanism 1, the "confession" in the IPO filing
&lt;/h2&gt;

&lt;p&gt;The article says the NYU Stern analysis of the S-1 "put the final nail in the coffin of illusions" (translated from Portuguese), and that the document makes it clear "in no uncertain terms" that Claude Code is a weapon to&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;break into companies through the back door (via individual programmers), map internal usage, lock the entire corporate operation into the closed Claude for Enterprise ecosystem and exterminate all intermediary software companies&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;What it actually says.&lt;/strong&gt; I went straight to the document. The S-1 exists, Anthropic filed it with the SEC on &lt;a href="https://www.sec.gov/Archives/edgar/data/2130357/000162828026067168/anthropicpbc-sx1.htm" rel="noopener noreferrer"&gt;October 26, 2026&lt;/a&gt;, and the IPO happened on November 18 at US$ 83 per share, according to the &lt;a href="https://www.sec.gov/Archives/edgar/data/2130357/000162828026074944/anthropicpbc-424b4.htm" rel="noopener noreferrer"&gt;final prospectus&lt;/a&gt;. I read the passages, and this is what the document says.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;These users provide strategic value as a top-of-funnel engine for our enterprise business— individuals who utilize Claude for their personal work and then champion it inside their organizations.&lt;/p&gt;

&lt;p&gt;By the time our direct teams engage a customer, Claude is often already in use.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Putting it the way I understood it, Anthropic counts on the dev who uses Claude for personal work to bring it into the company, so when the sales team shows up, Claude is already there. That's it. There's no "breaking in", no "mapping internal usage", no "exterminating intermediaries". I searched the final prospectus for any risk factor or sentence about competing with its own customers and didn't find one. The document says the opposite, that customers like Legora and Salesforce build products on top of Claude, and that one of the risks is a customer developing its own AI and no longer buying.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is that normal?&lt;/strong&gt; From what I researched, it's everywhere. It's called product-led growth, or bottom-up growth, and it's exactly what the &lt;a href="https://bhr.stern.nyu.edu/quick-take/enterprise-ai-with-a-consumer-funnel-what-anthropics-s-1-reveals-about-the-ai-ipo-era/" rel="noopener noreferrer"&gt;NYU Stern analysis itself&lt;/a&gt; says, that Anthropic is applying "a well-worn marketing strategy to the AI era". NYU Stern's criticism, by the way, is about something else, the risk to consumers and mental health, not stealing companies. I looked up what other companies wrote in their own IPO filings, and look at this.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Dropbox, 2018.&lt;/strong&gt; "Our 500 million registered users are our best salespeople. They've spread Dropbox to their friends and brought us into their offices" (&lt;a href="https://www.sec.gov/Archives/edgar/data/1467623/000119312518055809/d451946ds1.htm" rel="noopener noreferrer"&gt;S-1&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Atlassian, owner of Jira, 2015.&lt;/strong&gt; "We rely on word-of-mouth and low-touch demand generation to drive trial, adoption and expansion of our products within customers" (&lt;a href="https://www.sec.gov/Archives/edgar/data/1650372/000104746915008450/a2226437zf-1.htm" rel="noopener noreferrer"&gt;F-1&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Slack, 2019.&lt;/strong&gt; "self-service users become leads for our salespeople" (&lt;a href="https://www.sec.gov/Archives/edgar/data/1764925/000162828019004786/slacks-1.htm" rel="noopener noreferrer"&gt;S-1&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zoom, 2019.&lt;/strong&gt; "Our sales model allows us to efficiently turn a single non-paying user into a full enterprise deployment" (&lt;a href="https://www.sec.gov/Archives/edgar/data/1585521/000119312519107178/d642624ds1a.htm" rel="noopener noreferrer"&gt;S-1/A&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Figma, 2025.&lt;/strong&gt; "approximately 70% of new Organization and Enterprise plan customers included at least one user who was previously a member of a Professional plan" (&lt;a href="https://www.sec.gov/Archives/edgar/data/1579878/000162828025033742/figma-sx1.htm" rel="noopener noreferrer"&gt;S-1&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Canva hasn't gone public yet, so there's no filing like these, but it talks about its own &lt;a href="https://www.canva.com/newsroom/news/one-year-canva-enterprise/" rel="noopener noreferrer"&gt;"product-led roots"&lt;/a&gt; itself. Nobody calls Dropbox the Evil Corp because you brought it to work.&lt;/p&gt;

&lt;p&gt;The number that scared me the most was the net revenue retention of around 900%, meaning that on average business customers spend nine times more than they did a year before. But the prospectus itself explains that this number excludes Pro, Max and Ultra subscribers. It measures companies that bought more, not devs who were "captured".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My verdict.&lt;/strong&gt; The "top of funnel" part is real and it's in writing. The rest is the author's interpretation presented as if it were the document's text.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mechanism 2, the Windsurf case
&lt;/h2&gt;

&lt;p&gt;The article calls this one "Telemetry as industrial espionage and supply cutoff". The thesis is that Windsurf practically invented the modern coding agent, that Anthropic watched everything through the API, shamelessly copied it to create Claude Code and then cut off Windsurf's access to steal its customers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's true.&lt;/strong&gt; I checked, and Windsurf really did process over 100 million tokens per minute on Anthropic's API, which is in the &lt;a href="https://claude.com/customers/windsurf" rel="noopener noreferrer"&gt;customer case study Anthropic itself publishes&lt;/a&gt;, and the cutoff really happened. On June 3, 2025, Windsurf's CEO, Varun Mohan, said Anthropic cut almost all of its first-party capacity for the Claude 3.x models "with less than five days of notice" (&lt;a href="https://techcrunch.com/2025/06/03/windsurf-says-anthropic-is-limiting-its-direct-access-to-claude-ai-models/" rel="noopener noreferrer"&gt;TechCrunch&lt;/a&gt;). That was harsh, and I think Anthropic got the way it did it wrong.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What the article leaves out.&lt;/strong&gt; The stated reason. Two days later, co-founder Jared Kaplan said the decision came from the reports that OpenAI was going to buy Windsurf, "I think it would be odd for us to be selling Claude to OpenAI" (&lt;a href="https://techcrunch.com/2025/06/05/anthropic-co-founder-on-cutting-access-to-windsurf-it-would-be-odd-for-us-to-sell-claude-to-openai/" rel="noopener noreferrer"&gt;TechCrunch&lt;/a&gt;). You can think the reason is bad, but it isn't "stealing the dev base", and Claude 4 stayed available on Windsurf with the user's own API key.&lt;/p&gt;

&lt;p&gt;The ending of the story was left out too. The OpenAI deal didn't happen, Google hired the CEO and paid US$ 2.4 billion in licensing (&lt;a href="https://www.theverge.com/openai/705999/google-windsurf-ceo-openai" rel="noopener noreferrer"&gt;The Verge&lt;/a&gt;, &lt;a href="https://www.reuters.com/business/google-hires-windsurf-ceo-researchers-advance-ai-ambitions-2025-07-11/" rel="noopener noreferrer"&gt;Reuters&lt;/a&gt;), and Cognition, which bought the rest of Windsurf on July 14, 2025, announced the IDE "now with full access to the latest Claude models" (&lt;a href="https://cognition.com/blog/windsurf" rel="noopener noreferrer"&gt;Cognition&lt;/a&gt;). Anthropic went back to selling to them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;And the copying?&lt;/strong&gt; For me the timeline doesn't add up. Boris Cherny started the prototype of what became Claude Code in September 2024, and it was already being used inside Anthropic in November 2024 (&lt;a href="https://newsletter.pragmaticengineer.com/p/how-claude-code-is-built" rel="noopener noreferrer"&gt;The Pragmatic Engineer&lt;/a&gt;), the same month Windsurf launched Cascade, on &lt;a href="https://devin.ai/blog/windsurf-launch" rel="noopener noreferrer"&gt;November 13, 2024&lt;/a&gt;. Claude Code's public launch was on &lt;a href="https://www.anthropic.com/news/claude-3-7-sonnet" rel="noopener noreferrer"&gt;February 24, 2025&lt;/a&gt;, four months before the cutoff. And Windsurf didn't invent the coding agent either. &lt;a href="https://github.com/Aider-AI/aider/releases/tag/v0.5.0" rel="noopener noreferrer"&gt;Aider&lt;/a&gt; already existed in 2023, &lt;a href="https://cognition.com/blog/introducing-devin" rel="noopener noreferrer"&gt;Devin&lt;/a&gt; was announced in March 2024 and &lt;a href="https://github.com/cline/cline/releases/tag/v2.0.0" rel="noopener noreferrer"&gt;Cline&lt;/a&gt; started as Claude Dev in July 2024. As for "sucking it out of the telemetry", I didn't find any evidence, and &lt;a href="https://www.anthropic.com/legal/commercial-terms" rel="noopener noreferrer"&gt;Anthropic's commercial terms&lt;/a&gt; say "Anthropic may not train models on Customer Content from Services". You can distrust the contract, of course, but then you need proof, and the article brings none.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My verdict.&lt;/strong&gt; The cutoff with less than five days' notice is real and it was ugly. The "industrial espionage" is an accusation without proof, and the order of events works against it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mechanism 3, harness detection
&lt;/h2&gt;

&lt;p&gt;The name he gave it was "Silent inspection and sabotage of harnesses". The article says that in a scandal called the "Anthropic Billing Controversy", in May 2026, people found out Anthropic was scanning prompts, headers and requests to find competing harnesses, and when it found one it changed the billing, blocked usage on the plan or killed &lt;code&gt;claude -p&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This is the one with the most truth in it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What happened.&lt;/strong&gt; On April 25, 2026, a user opened &lt;a href="https://github.com/anthropics/claude-code/issues/53262" rel="noopener noreferrer"&gt;issue #53262 on the Claude Code GitHub&lt;/a&gt; showing that the string &lt;code&gt;HERMES.md&lt;/code&gt; in a commit message made Claude Code send requests to extra usage billing instead of the plan. He spent US$ 200.98 in extra usage with only 13% of his Max 20x weekly limit used, and support replied that it didn't refund "technical errors that result in incorrect billing routing". Theo Browne reproduced it with an empty repository and the word OpenClaw in a JSON file (&lt;a href="https://gigazine.net/gsc_news/en/20260501-claude-code-ban-openclaw/" rel="noopener noreferrer"&gt;GIGAZINE&lt;/a&gt;). Boris Cherny closed the issue saying it was "an overactive anti-abuse system", and Thariq, from the Claude Code team, admitted it was a bug "with the 3rd party harness detection and how we pull git status into the system prompt", with a refund and an extra month of credit (&lt;a href="https://gigazine.net/gsc_news/en/20260430-hermes-claude-code/" rel="noopener noreferrer"&gt;GIGAZINE&lt;/a&gt;, &lt;a href="https://news.ycombinator.com/item?id=47952722" rel="noopener noreferrer"&gt;Hacker News&lt;/a&gt;). But the money only came back after the case blew up on Hacker News.&lt;/p&gt;

&lt;p&gt;In other words, Anthropic really was looking for competing harness names in the &lt;code&gt;git status&lt;/code&gt; that Claude Code itself puts into the prompt, it overcharged people who weren't even using those harnesses, and support refused refunds until it became a scandal. That's serious, and I'm not going to sugarcoat it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What the article distorts.&lt;/strong&gt; The backdrop is a pricing rule, not an independence rule. Since April 4, 2026, the subscription, which has a fixed price, no longer covers third-party harnesses like OpenClaw. Boris Cherny wrote that you could keep using those tools "via extra usage bundles (now available at a discount), or with a Claude API key" (&lt;a href="https://www.theverge.com/ai-artificial-intelligence/907074/anthropic-openclaw-claude-subscription-ban" rel="noopener noreferrer"&gt;The Verge&lt;/a&gt;). The &lt;a href="https://www.anthropic.com/legal/consumer-terms" rel="noopener noreferrer"&gt;consumer terms&lt;/a&gt; already prohibited automated access outside the API key, and according to &lt;a href="https://www.theregister.com/ai-ml/2026/05/14/anthropic-tosses-agents-into-the-api-billing-pool/5240748" rel="noopener noreferrer"&gt;The Register&lt;/a&gt; that rule dates from February 2024 and just wasn't enforced.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;claude -p&lt;/code&gt; was never killed. In May Anthropic announced that programmatic usage would get a separate balance starting June 15, and on June 16 it &lt;a href="https://the-decoder.com/anthropic-backs-off-unpopular-billing-overhaul-as-price-war-with-openai-looms/" rel="noopener noreferrer"&gt;backed off&lt;/a&gt;. And most importantly, having your own harness call Claude through the API and pay per token was never prohibited. The article says Anthropic sabotages anyone who wants independence, but what it actually did was stop the subscription's fixed price from being used outside its own tools.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My verdict.&lt;/strong&gt; The keyword detection and the refusal to refund are real and deserved all the noise they made. The rest, the dates, the "headers", &lt;code&gt;claude -p&lt;/code&gt; being killed and "your own harness gets sabotaged", doesn't match the sources.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mechanism 4, "sucking up alpha"
&lt;/h2&gt;

&lt;p&gt;The title of this one was "sucking out the operational soul of companies". The thesis is that Anthropic's joint venture with Wall Street funds puts engineers inside companies to map their business secrets and train agents that then get sold to competitors, and that Bridgewater ditched the commercial labs precisely so it wouldn't get sucked dry.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's true.&lt;/strong&gt; The joint venture exists, and I read the announcement. On May 4, 2026, Anthropic announced, together with Blackstone, Hellman &amp;amp; Friedman and Goldman Sachs, an AI services company for mid-sized businesses, with Anthropic engineers working alongside them (&lt;a href="https://www.anthropic.com/news/enterprise-ai-services-company" rel="noopener noreferrer"&gt;Anthropic&lt;/a&gt;). The US$ 1.5 billion figure comes from the Wall Street Journal, with about US$ 300 million from Anthropic, Blackstone and H&amp;amp;F and around US$ 150 million from Goldman (&lt;a href="https://www.reuters.com/legal/transactional/anthropic-nears-15-billion-ai-joint-venture-with-wall-street-firms-wsj-reports-2026-05-04/" rel="noopener noreferrer"&gt;Reuters&lt;/a&gt;), and the Bridgewater study exists too. They fine-tuned Qwen3-235B and went from 78.2% to 84.7% accuracy on financial screening tasks, at 13.8 times lower cost (&lt;a href="https://www.bridgewater.com/aia-labs/learning-to-replicate-expert-judgment-in-financial-tasks" rel="noopener noreferrer"&gt;Bridgewater AIA Labs&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What the article makes up.&lt;/strong&gt; The phrase "sucking up alpha" didn't come from "market reports". It comes from Alex Karp, Palantir's CEO, who said on CNBC in July that the labs are "stealing the weights and alpha of my business" (&lt;a href="https://www.mediaite.com/media/tv/you-sound-pretty-angry-cnbc-anchor-left-stunned-as-palantir-ceo-blows-his-stack-during-wild-interview/" rel="noopener noreferrer"&gt;Mediaite&lt;/a&gt;, &lt;a href="https://www.forbes.com/sites/josipamajic/2026/07/02/karp-says-frontier-ai-labs-are-stealing-enterprise-value-and-vcs-are-listening/" rel="noopener noreferrer"&gt;Forbes&lt;/a&gt;), and Palantir sells exactly the "sovereign" alternative. Conflict of interest again.&lt;/p&gt;

&lt;p&gt;Bridgewater never said anywhere that it did this to stop Anthropic from sucking up its intelligence. The reason they give is different. They say an expert's judgment doesn't fit in a prompt, "the judgments that matter most are often the hardest to articulate", and that they chose Qwen3-235B because its fine-tuning is well studied. I also didn't find any evidence that Anthropic engineers train agents on a client's secrets to sell them to a competitor. The commercial contract says the opposite.&lt;/p&gt;

&lt;p&gt;And this is where my opinion comes in, even if all of that were true. If you let an outside developer into your company to read your code without a proper contract, that's on you. In the United States this has a name, NDA, the non-disclosure agreement, and a lot of companies add an intellectual property clause and a non-compete clause on top. The non-compete isn't even valid in every state (in California it's banned in most cases), but the NDA is. It's like letting a stranger who knocked on your door into your house, and you wouldn't do that. Maybe it would be wrong for Anthropic to do it. Fine. But we live under capitalism, every company exists to make a profit, and whoever let them in without protecting themselves didn't do their homework. You can't call anyone the Evil Corp for that, since everybody everywhere does the same.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My verdict.&lt;/strong&gt; The facts exist, but the story that ties them together is the author's own montage.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mechanism 5, the competing product clause
&lt;/h2&gt;

&lt;p&gt;He called this one "The legal guillotine in the Terms of Service". The thesis is that the terms prohibit using the API to build a competing product, so when Anthropic launches something just like your product, you become a violator and it cuts you off.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's true.&lt;/strong&gt; The clause exists. The &lt;a href="https://www.anthropic.com/legal/commercial-terms" rel="noopener noreferrer"&gt;commercial terms&lt;/a&gt;, in section D.4, say the customer may not "access the Services to build a competing product or service, including to train competing AI models", and &lt;a href="https://www.brookings.edu/articles/what-happens-when-ai-companies-compete-with-their-customers/" rel="noopener noreferrer"&gt;Brookings published on March 12, 2026&lt;/a&gt; an analysis by Mark MacCarthy saying Anthropic could use this clause against Cursor or any coding app, and that US antitrust law is unlikely to protect those who depend on the supplier. This is the article's most serious argument, and I agree the risk exists.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What the article hides.&lt;/strong&gt; The same Brookings piece says that "Each of the major AI model providers has an explicit policy allowing them to disconnect competing AI app developers". So OpenAI and Google have the same clause, and it isn't an Anthropic thing. The article's step by step, where you build, it copies and then cuts you off, is a hypothesis. I didn't find a single case of a customer being cut off because Anthropic launched something similar. The only known cutoff is Windsurf's, with the stated reason being the OpenAI acquisition, and I found no news at all of Cursor being cut off, even though it competes directly with Claude Code.&lt;/p&gt;

&lt;p&gt;And I'll go further. If I owned Anthropic, or any AI company, I'd have this clause too, because it's how you protect yourself from a competitor using your own tool. The others have something similar. OpenAI's terms prohibit "Use Output to develop models that compete with OpenAI" (&lt;a href="https://openai.com/policies/terms-of-use/" rel="noopener noreferrer"&gt;OpenAI&lt;/a&gt;), and Gemini's say "You may not use the Services to develop models that compete with the Services" (&lt;a href="https://ai.google.dev/gemini-api/terms" rel="noopener noreferrer"&gt;Google&lt;/a&gt;). Anthropic's is broader, that's true, because it talks about products or services and not only models. But the logic is the same.&lt;/p&gt;

&lt;p&gt;And Anthropic has already used this clause for exactly that. In August 2025 it cut off OpenAI's own access to Claude, because engineers there were using Claude Code ahead of the GPT-5 launch (&lt;a href="https://techcrunch.com/2025/08/02/anthropic-cuts-off-openais-access-to-its-claude-models/" rel="noopener noreferrer"&gt;TechCrunch&lt;/a&gt;). Notice that it's mechanism 4 in reverse, a competitor coming in through the tool, and the one who did its homework and protected itself was Anthropic.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My verdict.&lt;/strong&gt; Real risk, a hypothesis with no concrete case, and it applies to any model provider.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Anthropic actually keeps from your code
&lt;/h2&gt;

&lt;p&gt;Now the part the article should have explained and didn't. Yes, Anthropic receives and stores the code that goes through Claude. There's no way around it, since the model needs to see the code to work on it.&lt;/p&gt;

&lt;p&gt;But it doesn't scan your repository. From what I read in the &lt;a href="https://code.claude.com/docs/en/data-usage" rel="noopener noreferrer"&gt;Claude Code documentation&lt;/a&gt;, local Claude Code sends what you write, what Claude answers and what the tools bring into the conversation, meaning the files it opens and the output of the commands it runs. A file it never opened stays on your machine. The exception is Claude Code on the web, which clones the repository onto an Anthropic machine.&lt;/p&gt;

&lt;p&gt;And how much it keeps, from what I read in the Privacy Center, depends on your plan and the training toggle (&lt;a href="https://privacy.claude.com/en/articles/10023548-how-long-do-you-store-my-data" rel="noopener noreferrer"&gt;Privacy Center&lt;/a&gt;).&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What&lt;/th&gt;
&lt;th&gt;Goes to Anthropic?&lt;/th&gt;
&lt;th&gt;Training toggle off&lt;/th&gt;
&lt;th&gt;Training toggle on&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Your prompts and the responses&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;30 days, no training&lt;/td&gt;
&lt;td&gt;up to 5 years, with training&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Files Claude opens&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;30 days, no training&lt;/td&gt;
&lt;td&gt;up to 5 years, with training&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Command output&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;30 days, no training&lt;/td&gt;
&lt;td&gt;up to 5 years, with training&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Files it never opened (local)&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Entire repository (Claude Code on the web)&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;30 days, no training&lt;/td&gt;
&lt;td&gt;up to 5 years, with training&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Thumbs up and &lt;code&gt;/feedback&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;5 years&lt;/td&gt;
&lt;td&gt;5 years&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Incognito chat&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;no training&lt;/td&gt;
&lt;td&gt;no training&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Conversation flagged for a violation&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;up to 2 years&lt;/td&gt;
&lt;td&gt;up to 2 years&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Commercial plan (Team, Enterprise, API)&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;30 days, no training&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two things I think matter there. Turning off the toggle doesn't hide anything from Anthropic, since it still receives everything and keeps it for 30 days. It just doesn't train on it. And the thumbs up and &lt;code&gt;/feedback&lt;/code&gt; bypass the toggle, so the whole conversation gets sent and stays there for five years. That's the kind of thing every dev should know, and it isn't in the article.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your company isn't just your code
&lt;/h2&gt;

&lt;p&gt;Even with all that, there's something I want to say that is my own opinion, and I'm making it clear that it's opinion.&lt;/p&gt;

&lt;p&gt;Your company isn't made of your code alone. Code is really important, and I'd say it's the engine of the company, but there's still the whole rest of the body. There's the infrastructure, the people, the relationship with your customers, the customers themselves and everything you built around it. If someone took your code tomorrow, they wouldn't take the contracts, the trust, the support, the team's knowledge of the business and the years of relationship with each customer along with it.&lt;/p&gt;

&lt;p&gt;The article treats the code as if it were the whole company, and that's what makes the fear look so big.&lt;/p&gt;

&lt;p&gt;And there's something else. These days it doesn't even take Anthropic reading your code to copy your project. In August 2026 an indie dev, FindTheNeedleDev, released the demo of Find the Needle on Steam, a game about finding the needle in a haystack. The game went viral, and before the final version came out there were already dozens of clones on Roblox and Fortnite, some with tens of thousands of players and making good money (&lt;a href="https://www.plagiarismtoday.com/2026/09/17/the-attack-of-the-roblox-clones/" rel="noopener noreferrer"&gt;Plagiarism Today&lt;/a&gt;). Nobody needed his code. Watching the video was enough, and AI makes this kind of copying even faster (&lt;a href="https://howtomarketagame.com/2026/10/28/ai-cloners-are-here-are-indie-devs-cooked/" rel="noopener noreferrer"&gt;How To Market A Game&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;There are greedy, self-serving people out there, and a lot of people got rich exactly that way. It's brutal, but that's how the business world is, period. Your protection is what you build around the code.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I protect myself today
&lt;/h2&gt;

&lt;p&gt;I'm against the fearmongering and I'm still careful. I have several locks, and none of them depend on trusting Anthropic.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Training toggle off on my Ultra plan.&lt;/li&gt;
&lt;li&gt;No database passwords on my machine. The database is accessed through an AWS IAM profile that asks for my authentication every time. The AI doesn't have my password, it can't open the browser and log in for me, and its own guardrails stop it from trying.&lt;/li&gt;
&lt;li&gt;AWS IAM everywhere, which is what helps me the most to protect the code and the infrastructure.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;deny&lt;/code&gt; rules in the Claude Code config, so it stays out of certain places.&lt;/li&gt;
&lt;li&gt;A deploy script that forces every test to run, so the AI can't deploy without tests, even if it wanted to.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of this is exotic. The &lt;code&gt;deny&lt;/code&gt; rules and hooks are Claude Code's own configuration, and the rest is AWS. If you use another tool, the same ideas apply.&lt;/p&gt;

&lt;h2&gt;
  
  
  The future I believe in is the model on your own hardware
&lt;/h2&gt;

&lt;p&gt;If I had to pick the solution I like the most, it's running an open source model on your own hardware. Then you don't depend on any company, any cloud or anyone's data policy. The catch is that today it's still expensive and still behind the closed models.&lt;/p&gt;

&lt;p&gt;I have 96 GB of RAM and I've never run a local model on my machine, but I've rented GPUs to test a few and run benchmarks, and I closely follow the tests &lt;a href="https://akitaonrails.com/2026/10/27/llm-benchmark-melhores-llms-open-source-hardware-caseiro/" rel="noopener noreferrer"&gt;Akita on Rails&lt;/a&gt; runs on this. In the latest one, he spent over US$ 6,000 renting GPUs and landed on an open model, Qwen3.8 Flash-Next, which runs on an RTX 5090 and scored 91 on his coding test, against 92.5 for the best open models running on datacenter GPUs.&lt;/p&gt;

&lt;p&gt;The overall numbers point the same way. Epoch AI measured that the price to reach the same level of performance drops &lt;a href="https://epoch.ai/data-insights/llm-inference-price-trends" rel="noopener noreferrer"&gt;9 to 900 times per year&lt;/a&gt;, depending on the benchmark, and that a single RTX 5090 runs models at the level that was the top &lt;a href="https://epoch.ai/data-insights/consumer-gpu-model-gap" rel="noopener noreferrer"&gt;6 to 12 months earlier&lt;/a&gt;. But the gap to the top is still big. On the Artificial Analysis index from October 2026, the best open-weights model sits &lt;a href="https://artificialanalysis.ai/articles/artificial-analysis-intelligence-index-v5" rel="noopener noreferrer"&gt;26 points behind the leader&lt;/a&gt;. It's still expensive and it's still behind, but it's getting cheaper, and I believe the future is everyone with their own hardware running their own AI.&lt;/p&gt;

&lt;h2&gt;
  
  
  So, is it the Evil Corp or not?
&lt;/h2&gt;

&lt;p&gt;Before answering, do an exercise with me. Imagine you own Anthropic and think like a business owner, without playing the victim.&lt;/p&gt;

&lt;p&gt;Wouldn't you want the dev who uses your product at home to bring it to work, the way Dropbox, Slack and Jira did? Wouldn't you put a clause in the contract so nobody uses your tool to build your competitor? And if your biggest rival were buying one of your customers, would you keep selling them capacity as if nothing had happened? I think most of the people complaining would do exactly the same things, and maybe worse.&lt;/p&gt;

&lt;p&gt;So no, it isn't the Evil Corp. Anthropic is a private company that's now listed on the stock market and needs to grow, and it plays hardball. It cut off Windsurf with less than five days' notice, overcharged people because of a word in a commit and only gave the money back after the scandal, and it has a clause that leaves anyone who builds on top of it vulnerable. All of that is real and deserves criticism, but the same logic applies to OpenAI, Google and any company that size. That has a name, and the name is capitalism.&lt;/p&gt;

&lt;p&gt;What I don't accept is taking those facts, mixing them with things that didn't happen and selling panic, especially when the person writing it sells the cure for the fear he created himself. The article gets the risk of depending on a single vendor right, and gets it badly wrong when it says Anthropic reads your code to copy your business.&lt;/p&gt;

&lt;p&gt;If you use Claude, or any other AI, what I recommend is a lot less dramatic. Turn off the training toggle if you don't want your code used for training, put company code on a commercial plan, don't send secrets into the conversation, use &lt;code&gt;deny&lt;/code&gt;, hooks and IAM, keep your product able to switch models, and keep an eye on local models, because they're coming.&lt;/p&gt;

&lt;p&gt;And yes, I used Claude to research and put this post together, and I left every source linked above precisely so you don't have to trust me, him or Claude.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://joaopster.com/en/blog/anthropic-evil-corp/" rel="noopener noreferrer"&gt;joaopster.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>programming</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Claude Code's harness made my AI workflow obsolete</title>
      <dc:creator>JOÃO PSTER</dc:creator>
      <pubDate>Thu, 26 Nov 2026 02:44:19 +0000</pubDate>
      <link>https://dev.to/jpster/claude-codes-harness-made-my-ai-workflow-obsolete-and-most-others-too-5g5d</link>
      <guid>https://dev.to/jpster/claude-codes-harness-made-my-ai-workflow-obsolete-and-most-others-too-5g5d</guid>
      <description>&lt;p&gt;In March I shipped version 1.0 of &lt;a href="https://github.com/J-Pster/Psters_AI_Workflow" rel="noopener noreferrer"&gt;Pster's AI Workflow&lt;/a&gt;, a plugin I built to organize how AI works on my projects, with 20 commands, 45 agents, 17 skills, 4 hooks and 8 rules. In May, in the &lt;a href="https://joaopster.com/en/blog/migrei-cursor-para-claude-code/" rel="noopener noreferrer"&gt;post where I told the story of moving from Cursor to Claude Code&lt;/a&gt;, I even signed off with "long live OMC", the agent orchestrator I had installed on top of Claude Code.&lt;/p&gt;

&lt;p&gt;Today I use neither.&lt;/p&gt;

&lt;p&gt;And they both still work. What changed is Claude Code itself. Its harness got so much better over these months that it now does almost everything I had built, and in some cases it does it better than my workflow did. I think that goes for most of the workflows we used to install on top of it, and I say that because I went through a bunch of them myself. Mine is just the one I know from the inside, and there are worse cases, like Ruflo, which I found out in that same May post was mostly theater.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is the Claude Code harness?
&lt;/h2&gt;

&lt;p&gt;The harness is everything that runs around the model. The model, Opus or Sonnet, does the thinking, and the harness gives it the tools to act, like reading and editing files, running commands, launching other agents, managing context and remembering things from one conversation to the next.&lt;/p&gt;

&lt;p&gt;For a long time the model improved faster than the harness. It could already handle a lot, but it didn't have the structure to organize itself on a big task, and that's the gap workflows like mine were built to fill.&lt;/p&gt;

&lt;h2&gt;
  
  
  What my workflow did
&lt;/h2&gt;

&lt;p&gt;Pster's AI Workflow started out in Cursor and had a fixed flow that I ran one command at a time:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/pwf-brainstorm      → define scope and decisions
/pwf-plan            → break the feature into phases
/pwf-checklist, /pwf-clarify, /pwf-analyze   → optional quality gates
/pwf-work-plan       → implement one phase at a time, until done
/pwf-review          → multi-agent review
/pwf-commit-changes  → structured commits
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There were two ideas behind it. The first was predictability. The README itself said the commands don't pick the path on their own and the developer decides the next step. The second was using documentation as memory, so the commands read the project docs before touching anything and updated them at the end, because the AI forgot everything from one session to the next.&lt;/p&gt;

&lt;p&gt;When I moved to Claude Code there was still one piece missing, which was running several agents at once, so I installed OMC (&lt;a href="https://github.com/Yeachan-Heo/oh-my-claudecode" rel="noopener noreferrer"&gt;oh-my-claudecode&lt;/a&gt;), which added commands like &lt;code&gt;/team&lt;/code&gt;, &lt;code&gt;/ralph&lt;/code&gt; and &lt;code&gt;/ultrawork&lt;/code&gt; to orchestrate agents in parallel. It made sense. The model didn't organize itself well on long tasks, so I gave it rails.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Claude Code does on its own today
&lt;/h2&gt;

&lt;p&gt;To see the difference for myself, I put together this table:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What I needed&lt;/th&gt;
&lt;th&gt;In my workflow&lt;/th&gt;
&lt;th&gt;In Claude Code today&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Plan before implementing&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;/pwf-brainstorm&lt;/code&gt; + &lt;code&gt;/pwf-plan&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;native&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Execute in phases&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/pwf-work-plan&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;native, with subagents&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Several agents in parallel&lt;/td&gt;
&lt;td&gt;OMC (&lt;code&gt;/team&lt;/code&gt;, &lt;code&gt;/ultrawork&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/workflow&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Multi-agent review&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/pwf-review&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/code-review&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Instructions I keep repeating&lt;/td&gt;
&lt;td&gt;the plugin's rules and skills&lt;/td&gt;
&lt;td&gt;skills and plugins&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Project memory&lt;/td&gt;
&lt;td&gt;docs maintained by the workflow&lt;/td&gt;
&lt;td&gt;Claude's memory + ai-memory&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The first time &lt;code&gt;/workflow&lt;/code&gt; impressed me was on a research task. I wanted the AI to dig into several topics to figure out the best way to do something, and until then I did that by asking it to launch workers by hand, which is what I called subagents, agents Claude launches to handle part of the work with their own context and that hand back only the result. &lt;code&gt;/workflow&lt;/code&gt; is that, but structured. It launches the subagents with a clear goal, each one on its own piece, and puts everything together at the end. I thought it was amazing! Before, I could only orchestrate agents like that with OMC, and now Claude Code does it on its own and goes further than the old OMC did.&lt;/p&gt;

&lt;p&gt;Sessions got a lot more flexible too. You can ask a side question with &lt;code&gt;/btw&lt;/code&gt; without interrupting the task that's running and you can open a subchat from the session you're in, but the part I find coolest is that one chat can now talk to another. One session sends a task to another, the other one answers, and I don't have to copy and paste between them anymore.&lt;/p&gt;

&lt;p&gt;And Claude started managing itself. The brainstorm, plan and phased execution sequence that I used to force with commands, it now does without me asking, deciding when planning is worth it, when to split the work and when to call a subagent. That killed the core idea of my workflow. I chose every step because the model couldn't, and now it can.&lt;/p&gt;

&lt;p&gt;Even the command I had for setting up a workspace with all of a project's repositories stopped making sense, because Claude Code's projects do that natively, with one central session that orchestrates subsessions they call topics.&lt;/p&gt;

&lt;p&gt;I uninstalled OMC about two months ago, when I realized Claude Desktop had gotten better than the CLI. In my May post I was defending the CLI because the UI froze with a lot of agents running, but the harness in Desktop is much better implemented now, so I moved to Desktop and OMC stopped making sense.&lt;/p&gt;

&lt;p&gt;One thing I can't tell you is how much I saved with all this. I didn't feel a difference in usage, and Claude's usage swings a lot on its own anyway. Some weeks I do the same amount of work and token usage blows up, and other weeks it barely moves. Is it something internal to Anthropic's models? My guess is yes, but I don't know.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I still use on top
&lt;/h2&gt;

&lt;p&gt;The first one is &lt;a href="https://github.com/oraios/serena" rel="noopener noreferrer"&gt;Serena&lt;/a&gt;. Claude Code still works on code with basic file tools that only read, edit and search text, the way the operating system does. It works, but it's crude, and to change a function it has to read the file, find the snippet and replace the text. Serena gives Claude tools that understand code, like &lt;code&gt;find_symbol&lt;/code&gt; to find a function or class, &lt;code&gt;find_referencing_symbols&lt;/code&gt; to see who uses it and &lt;code&gt;replace_symbol_body&lt;/code&gt; to replace its body without reading the whole file. In practice Claude finishes the job a lot faster, because it edits files a lot faster.&lt;/p&gt;

&lt;p&gt;Fair warning though, it eats RAM. I have 96 GB of memory and I run 6 or 7 Serena instances at the same time, each one takes between 6 and 18 GB, and in the end it sucks up almost all the memory on the machine. I still won't drop it, it's saved me a lot since I installed it. I think something like this will make it into the harness eventually, but it hasn't yet.&lt;/p&gt;

&lt;p&gt;The other one is memory. Claude's is starting to improve but it isn't good yet, so I use &lt;a href="https://github.com/akitaonrails/ai-memory" rel="noopener noreferrer"&gt;ai-memory&lt;/a&gt; by Akita, which stores memory as git-versioned markdown files on a server you run yourself and works across agents and across machines. I can quit Claude Code in the middle of a task, open another agent in the same folder and keep going without explaining the architecture again.&lt;/p&gt;

&lt;p&gt;My setup ended up much smaller than the one in my May post:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Claude Code, now in Claude Desktop&lt;/li&gt;
&lt;li&gt;Serena&lt;/li&gt;
&lt;li&gt;ai-memory&lt;/li&gt;
&lt;li&gt;my skills&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I uninstalled or stopped using everything else.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you explained it twice, make it a skill
&lt;/h2&gt;

&lt;p&gt;The tip I'd give anyone using Claude Code today is to turn anything you have to explain twice into a skill. A skill is a bundle of instructions Claude loads when a task calls for it, so you write down once how to do something and it follows that whenever the topic comes up. I have skills for deploying, for my commit convention and for writing in my own voice.&lt;/p&gt;

&lt;p&gt;This post is an example. On the first draft Claude used a skill I had made for chat messages and the text came out way too short for a blog, so instead of explaining again how I wanted the post, I asked it to create a skill just for blog posts, with structure, SEO, my site's rules and a long list of AI writing habits to avoid. This version was rewritten with it.&lt;/p&gt;

&lt;p&gt;And skills keep growing. They're merging with connectors, which are integrations with outside services, into a single thing called plugins. A skill used to be one &lt;code&gt;.md&lt;/code&gt; file, and today a plugin can have several skills, several &lt;code&gt;.md&lt;/code&gt; files, scripts, commands, connectors and other support files, which is more or less what I tried to build by hand in Pster's AI Workflow, except now it's native.&lt;/p&gt;

&lt;p&gt;If you have a workflow installed on top of Claude Code, try a few weeks without it, see what you miss and add only that back, ideally as a skill. And tell me in the comments what's left in your setup, I'm curious whether anyone still runs OMC.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://joaopster.com/en/blog/claude-code-harness-workflows-obsoletos/" rel="noopener noreferrer"&gt;joaopster.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>devtools</category>
      <category>productivity</category>
    </item>
    <item>
      <title>"Customer Obsession" Explicado - Princípios de Liderança da Amazon (Amazon LPs)</title>
      <dc:creator>JOÃO PSTER</dc:creator>
      <pubDate>Thu, 10 Jul 2025 13:34:24 +0000</pubDate>
      <link>https://dev.to/jpster/customer-obsession-explicado-principios-de-lideranca-da-amazon-amazon-lps-3jod</link>
      <guid>https://dev.to/jpster/customer-obsession-explicado-principios-de-lideranca-da-amazon-amazon-lps-3jod</guid>
      <description>&lt;h2&gt;
  
  
  Princípios de Liderança (ou LP)
&lt;/h2&gt;

&lt;p&gt;Neste tópico apresento a &lt;strong&gt;explicação detalhada e direto ao ponto&lt;/strong&gt; do princípio de "Customer Obsession" da Amazon.&lt;/p&gt;

&lt;p&gt;Eu assisti detalhadamente o &lt;a href="https://www.youtube.com/watch?v=My-2-MyxamQ" rel="noopener noreferrer"&gt;vídeo&lt;/a&gt; do CEO &lt;em&gt;Andy Jassy&lt;/em&gt; explicando cada um dos princípios de liderança, e vou passar para vocês a explicação detalhada do que significa cada um dos princípios.&lt;/p&gt;

&lt;p&gt;Para encontrar os outros princípios, confira minha página aqui no LeetCode ou no LinkedIn, no fim deste artigo também terá links para os outros princípios quando eu os postar.&lt;/p&gt;

&lt;h3&gt;
  
  
  O que são os princípios de liderança da Amazon?
&lt;/h3&gt;

&lt;p&gt;Primeiro, entenda o que é &lt;strong&gt;princípios&lt;/strong&gt;, no âmbito cultural significa &lt;strong&gt;valores fundamentais e crenças&lt;/strong&gt; que orientam o comportamento, tradição e práticas de um indivíduo e sociedade, no mundo dos negócios significa &lt;strong&gt;diretrizes estratégicas e valores organizacionais&lt;/strong&gt; que guiam decisões e operações.&lt;/p&gt;

&lt;p&gt;Ou seja, &lt;strong&gt;princípios&lt;/strong&gt; são as regras base que moldam a forma como nós comportamos e agimos para tomar decisões e viver, tanto culturalmente como empresarialmente, orientando comportamentos e estabelecendo padrões de conduta.&lt;/p&gt;

&lt;p&gt;Os princípios de liderança da Amazon são exatamente isso, regras base que moldam como um &lt;em&gt;amazonier&lt;/em&gt; (funcionário da Amazon) deve se comportar em suas decisões e operações.&lt;/p&gt;

&lt;h3&gt;
  
  
  Customer Obsession (Obsessão pelo Cliente)
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Leaders start with the customer and work backwards. They work vigorously to earn and keep customer trust. Although leaders pay attention to competitors, they obsess over customers.&lt;/p&gt;

&lt;p&gt;Líderes começam com o cliente e trabalham de trás para frente. Eles se esforçam vigorosamente para ganhar e manter a confiança do cliente. Embora líderes prestem atenção aos concorrentes, eles são obcecados pelos clientes.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h4&gt;
  
  
  Introdução
&lt;/h4&gt;

&lt;p&gt;Ser obcecado pelo cliente significa sempre começar novos projetos a partir da visão do cliente, também significa que sempre ao discutir uma decisão, pensar no que seria melhor para o cliente, sempre, isso mesmo, sempre!&lt;/p&gt;

&lt;p&gt;Líderes obcecados pelo cliente trabalham de forma regressiva, eles começam na visão do cliente, e regressivamente vão construindo documentos sobre o que eles pretendem criar até chegar na solução de código.&lt;/p&gt;

&lt;p&gt;Código &amp;lt;-- Press Release &amp;lt;-- Documentação Regressiva &amp;lt;-- Cliente (Começa Aqui)&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Em algumas empresas principalmente em ideias que dão princípio a startups, uma pessoa analisa um problema na sociedade, cria uma solução e depois com um MVP tenta ver se a solução atende ao cliente, na Amazon o processo é feito reversamente, começa no cliente, estuda se isso realmente atende ele e só depois é feita a solução.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Líderes obcecados pelo cliente sempre trabalham vigorosamente para ganhar e manter a confiança do cliente, e mesmo que sempre se deve observar seus competidores, eles são mais focados em atender as expectativas que eles sabem que os clientes deles têm.&lt;/p&gt;

&lt;h4&gt;
  
  
  Walk that Walk
&lt;/h4&gt;

&lt;p&gt;Na Amazon quando se diz que tudo tem a ver com o cliente, não é para fazer &lt;a href="https://pt.wikipedia.org/wiki/Greenwashing" rel="noopener noreferrer"&gt;&lt;em&gt;Greenwashing&lt;/em&gt;&lt;/a&gt; ou em termos mais técnicos &lt;em&gt;Marketing de Causa Superficial&lt;/em&gt;, é de verdade!&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Andy Jassy&lt;/em&gt; CEO da Amazon cita que foi esse um dos motivos que o atraiu para a Amazon &lt;strong&gt;26 anos atrás&lt;/strong&gt;, e de acordo com o relato dele desde quando ele entrou até hoje, tudo é focado no cliente, desde o começo da empresa até hoje, na Amazon, somos obcecados pelo cliente.&lt;/p&gt;

&lt;h4&gt;
  
  
  Exemplos Reais
&lt;/h4&gt;

&lt;p&gt;Todos nós somos clientes de algum lugar, e todos nós sabemos como queremos ser tratados, e também sabemos que muitos locais dizem ser focados no cliente, mas não são de verdade.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Avaliações reais de livros (Early 90s)&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;Andy Jassy&lt;/em&gt; cita que muitos anos atrás, houve um debate para decidir se colocavam ou não avaliações de pessoas reais nos livros vendidos na plataforma, ele cita que as editoras não queriam que isso fosse colocado por que poderiam ter avaliações negativas e isso poderia afetar as vendas, mas a decisão deles foi colocar sim as avaliações, pois com avaliações reais e sinceras &lt;strong&gt;os clientes poderiam tomar a melhor decisão para eles&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pandemia de COVID 19&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;Andy Jassy&lt;/em&gt; também cita que durante a pandemia de COVID 19 muitas empresas tentaram sugar o máximo de dinheiro possível de seus clientes para sobreviver, ao mesmo tempo que tentavam enxugar o máximo de custos, mas a Amazon fez o contrário, em vez de sugar seus clientes, a AWS ativamente buscou formas de &lt;strong&gt;economizar dinheiro dos seus clientes AWS para que eles pudessem sobreviver a esse tempo difícil e reinvestir esse dinheiro onde seria melhor para eles no futuro&lt;/strong&gt;, nas palavras de Andy: "Cost-optimize for customers where they can save money, to redeploy that money in the future".&lt;/p&gt;

&lt;h4&gt;
  
  
  Como isso funciona no Dia a Dia
&lt;/h4&gt;

&lt;p&gt;Na Amazon nem uma única linha de código é escrita sem antes ter feito um trabalho regressivo de documentação da necessidade do cliente e uma press release para validar que vão construir um produto que realmente vai funcionar e atender as necessidades do cliente, sempre buscando responder às perguntas:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"What problem are we trying to solve?"&lt;/li&gt;
&lt;li&gt;"What will customers care most about?"&lt;/li&gt;
&lt;li&gt;"What would they be most disappointed about?"&lt;/li&gt;
&lt;li&gt;"What will they love most?"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;O processo sempre segue o fluxo:&lt;br&gt;
Código &amp;lt;-- Press Release &amp;lt;-- Documentação Regressiva &amp;lt;-- Cliente (Começa Aqui)&lt;/p&gt;

&lt;p&gt;Onde:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Cliente: Começa avaliando a dor do cliente, responde-se às 4 perguntas citadas anteriormente.&lt;/li&gt;
&lt;li&gt;Documentação Regressiva: Documenta as respostas das perguntas, faz análises e coleta informações de qual seriam as melhores formas de resolver a dor do cliente, qual seria a melhor experiência do cliente, o que se sabe sobre o que o cliente quer, e monta-se uma solução ideal.&lt;/li&gt;
&lt;li&gt;Press Release: É feito um &lt;a href="https://pt.wikipedia.org/wiki/Comunicado_de_imprensa" rel="noopener noreferrer"&gt;comunicado à imprensa&lt;/a&gt; para validar que aquela solução realmente vai atender a dor do cliente.&lt;/li&gt;
&lt;li&gt;Código: Por fim, depois de confirmado e validado, é iniciado a criação da solução em código.&lt;/li&gt;
&lt;/ol&gt;

&lt;h4&gt;
  
  
  Como competitividade e questões econômicas se encaixam nesse princípio
&lt;/h4&gt;

&lt;p&gt;Algumas pessoas podem se confundir ao tentar entender como competitividade e questões econômicas podem se encaixar nesse princípio, mas é bem simples.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Questões Econômicas&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;Andy Jassy&lt;/em&gt; relembra de um acontecimento com a empresa &lt;strong&gt;Costco&lt;/strong&gt; em meados dos anos 2000, quando eles propuseram uma entrega rápida de uma hora para qualquer produto da loja, mas essa proposta tinha um problema, ela não era economicamente viável, e a Costco veio a encerrar as entregas rápidas meses depois, &lt;strong&gt;quebrando a confiança do cliente&lt;/strong&gt;, pois eles criaram uma expectativa grande nos clientes e não conseguiram manter, ferindo este princípio de liderança, então se atentar a questões econômicas está dentro dos parâmetros que precisam ser atendidos para cumprir com esse princípio.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Competitividade&lt;/strong&gt;&lt;br&gt;
Se você está tentando criar a melhor experiência possível para o seu cliente, você tem que estar atento ao que seus concorrentes oferecem para eles, e se os competidores oferecem algo que você não oferece ainda, sempre esteja atento, se inspire na solução do concorrente e pense em como melhorar a experiência do seu cliente com o que você aprendeu dos seus competidores, sejam falhas, ou acertos.&lt;/p&gt;

&lt;p&gt;Nas palavras de Andy Jassy: "Think how we can improve our own customer experience with what we learn from what competitors have done".&lt;/p&gt;

&lt;p&gt;Mas primeiro, gaste mais tempo focado em &lt;strong&gt;o que você sabe&lt;/strong&gt; que seus clientes gostariam, isso está conectado com o princípio do &lt;strong&gt;Are Right, A Lot&lt;/strong&gt;.&lt;/p&gt;




&lt;p&gt;Para finalizar, deixo a frase:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Everybody at this company has not just the freedom but really the expectation to look at what customers want and figure out how we can be better and better for them every day.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Acesse minhas redes: &lt;a href="https://leetcode.com/u/JoaoPster/" rel="noopener noreferrer"&gt;LeetCode&lt;/a&gt;, &lt;a href="https://www.youtube.com/channel/UCZDR6EKNW8zO6HDOHOdtlFQ" rel="noopener noreferrer"&gt;YouTube&lt;/a&gt; e &lt;a href="https://www.linkedin.com/in/ojoaopster/" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;/p&gt;

</description>
      <category>leadership</category>
      <category>aws</category>
    </item>
    <item>
      <title>"Ownership" na Prática: Princípios de Liderança da Amazon Explicados</title>
      <dc:creator>JOÃO PSTER</dc:creator>
      <pubDate>Thu, 10 Jul 2025 13:33:18 +0000</pubDate>
      <link>https://dev.to/jpster/ownership-na-pratica-principios-de-lideranca-da-amazon-explicados-n2o</link>
      <guid>https://dev.to/jpster/ownership-na-pratica-principios-de-lideranca-da-amazon-explicados-n2o</guid>
      <description>&lt;h2&gt;
  
  
  Princípios de Liderança da Amazon: Ownership (Senso de Propriedade)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Introdução aos Princípios de Liderança
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;O que são princípios?&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No âmbito cultural&lt;/strong&gt;: Valores fundamentais e crenças que orientam nosso comportamento e tradições&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No mundo dos negócios&lt;/strong&gt;: Diretrizes estratégicas que guiam decisões e operações&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Os &lt;strong&gt;princípios de liderança da Amazon&lt;/strong&gt; são as regras fundamentais que moldam como um &lt;em&gt;amazonier&lt;/em&gt; (funcionário da Amazon) deve se comportar em suas decisões e operações diárias.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Este artigo é baseado na explicação detalhada do CEO Andy Jassy em &lt;a href="https://www.youtube.com/watch?v=My-2-MyxamQ" rel="noopener noreferrer"&gt;vídeo oficial&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  O Princípio: Ownership ("Senso de Propriedade")
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Definição Oficial
&lt;/h4&gt;

&lt;blockquote&gt;
&lt;p&gt;"Leaders are owners. They think long term and don't sacrifice long-term value for short-term results. They act on behalf of the entire company, beyond just their own team. They never say 'that's not my job.'"&lt;/p&gt;

&lt;p&gt;"Líderes são donos. Pensam a longo prazo e não sacrificam o valor a longo prazo por resultados de curto prazo. Agem em nome de toda a empresa, além de sua própria equipe. Nunca dizem 'este não é meu trabalho'."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h4&gt;
  
  
  O que Significa na Prática?
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;Ownership&lt;/strong&gt; significa &lt;strong&gt;agir como se você fosse o dono&lt;/strong&gt; daquilo que está sob sua responsabilidade. É pensar: &lt;em&gt;"E se fosse o meu dinheiro em jogo?"&lt;/em&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  Os 3 Pilares do Ownership:
&lt;/h5&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;🎯 Visão de Longo Prazo&lt;/strong&gt;: Nunca sacrificar resultados duradouros por ganhos imediatos&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;🏢 Pensamento Holístico&lt;/strong&gt;: Trabalhar pelo bem de toda a empresa, não apenas da sua equipe&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;🚀 Proatividade Total&lt;/strong&gt;: Jamais dizer "isso não é meu trabalho"&lt;/li&gt;
&lt;/ol&gt;




&lt;h3&gt;
  
  
  Ownership Como Mindset
&lt;/h3&gt;

&lt;p&gt;Mais que um princípio, &lt;strong&gt;Ownership é uma mentalidade&lt;/strong&gt; - uma forma de pensar que se reflete diretamente em nossas atitudes. Segundo Andy Jassy, este é o princípio mais conectado com &lt;strong&gt;comportamentos práticos&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Características de quem tem Ownership:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;✅ Assume responsabilidade sem precisar ser lembrado&lt;/li&gt;
&lt;li&gt;✅ Pensa no negócio de forma holística&lt;/li&gt;
&lt;li&gt;✅ Foca em soluções de longo prazo&lt;/li&gt;
&lt;li&gt;✅ Vai além das responsabilidades básicas do cargo&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Exemplos Práticos Para Entender
&lt;/h3&gt;

&lt;h4&gt;
  
  
  📍 Exemplo 1: Locatários vs. Proprietários no Natal
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;A Situação&lt;/strong&gt;: Nos EUA, alguns locatários fixam árvores de Natal diretamente no piso de madeira das casas alugadas, danificando o assoalho.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A Lição&lt;/strong&gt;: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Locatário&lt;/strong&gt; (sem ownership): Prioriza a facilidade imediata&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Proprietário&lt;/strong&gt; (com ownership): Pensa no impacto a longo prazo&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Aplicação no Trabalho&lt;/strong&gt;: Um líder com ownership sempre considera as consequências futuras de suas decisões, não apenas os resultados imediatos.&lt;/p&gt;

&lt;h4&gt;
  
  
  📍 Exemplo 2: O Jovem Funcionário da Loja
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;A Situação&lt;/strong&gt;: Andy Jassy conversou com um jovem funcionário e perguntou: &lt;em&gt;"Você teria alguma ideia sobre como aumentar as vendas da loja?"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A Resposta&lt;/strong&gt;: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Isso não é meu trabalho"&lt;/li&gt;
&lt;li&gt;"Eu não seria pago a mais por isso"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;O Problema&lt;/strong&gt;: Esta resposta demonstra &lt;strong&gt;ausência total de ownership&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A Lição&lt;/strong&gt;: Quem tem ownership:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Busca constantemente maneiras de agregar valor&lt;/li&gt;
&lt;li&gt;Entende que o sucesso da empresa beneficia sua própria carreira&lt;/li&gt;
&lt;li&gt;Não se limita às responsabilidades básicas do cargo&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Como Aplicar Ownership na Prática
&lt;/h3&gt;

&lt;h4&gt;
  
  
  ✅ O que a Amazon Espera:
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Pessoas que se sentem e agem como donos&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pessoas que pensam nos problemas de forma holística&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pessoas que encontram soluções&lt;/strong&gt;: Quando veem um problema, procuram o responsável para resolvê-lo&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pessoas que garantem execução&lt;/strong&gt;: Fazem de tudo para que as coisas sejam concluídas e funcionem&lt;/li&gt;
&lt;/ol&gt;

&lt;h4&gt;
  
  
  🎯 Comportamentos Esperados:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Diante de problemas complexos&lt;/strong&gt;: Não empurram para outros, mas montam equipes com as pessoas certas e buscam resolver aquele problema da melhor forma possivel para o cliente.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Visão ampla&lt;/strong&gt;: Pensam muito além de suas próprias equipes
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Foco no cliente&lt;/strong&gt;: Sempre consideram o impacto no cliente final&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Persistência&lt;/strong&gt;: Garantem que problemas tenham um caminho para resolução&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Frase de Reflexão
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;"Everybody at this company has not just the freedom but really the expectation to look at what customers want and figure out how we can be better and better for them every day."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;"Todos nesta empresa têm não apenas a liberdade, mas realmente a expectativa de olhar para o que os clientes querem e descobrir como podemos ser cada vez melhores para eles todos os dias."&lt;/em&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  📚 Resumo para Fixação
&lt;/h3&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;OWNERSHIP EM 5 PONTOS-CHAVE:&lt;/strong&gt;
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;🏠 Aja como dono&lt;/strong&gt;: Pense "e se fosse meu dinheiro/negócio?"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;⏰ Visão de longo prazo&lt;/strong&gt;: Nunca sacrifique resultados duradouros por ganhos imediatos&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;🌍 Pensamento holístico&lt;/strong&gt;: Trabalhe pelo bem de toda a empresa, não só da sua equipe&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;🚀 Proatividade total&lt;/strong&gt;: Nunca diga "isso não é meu trabalho"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;🎯 Foco na solução&lt;/strong&gt;: Encontre problemas, busque responsáveis e garanta que sejam resolvidos&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;PERGUNTA PARA REFLEXÃO:&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;"Estou agindo como se esta empresa fosse minha? Minhas decisões consideram o longo prazo e o bem de toda a organização?"&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Acesse minhas redes:&lt;/strong&gt; &lt;a href="https://leetcode.com/u/JoaoPster/" rel="noopener noreferrer"&gt;LeetCode&lt;/a&gt;, &lt;a href="https://www.youtube.com/channel/UCZDR6EKNW8zO6HDOHOdtlFQ" rel="noopener noreferrer"&gt;YouTube&lt;/a&gt; e &lt;a href="https://www.linkedin.com/in/ojoaopster/" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;/p&gt;

</description>
      <category>leadership</category>
      <category>aws</category>
    </item>
    <item>
      <title>JavaScript Map - Explicação detalhada, casos e exemplos de uso</title>
      <dc:creator>JOÃO PSTER</dc:creator>
      <pubDate>Wed, 09 Jul 2025 20:38:23 +0000</pubDate>
      <link>https://dev.to/jpster/javascript-map-explicacao-detalhada-casos-e-exemplos-de-uso-1h0j</link>
      <guid>https://dev.to/jpster/javascript-map-explicacao-detalhada-casos-e-exemplos-de-uso-1h0j</guid>
      <description>&lt;h1&gt;
  
  
  JavaScript Map
&lt;/h1&gt;

&lt;h2&gt;
  
  
  O que é Map?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Map&lt;/strong&gt; é uma estrutura de dados &lt;strong&gt;key-value&lt;/strong&gt; (chave-valor) nativa do JavaScript que permite armazenar pares de dados de qualquer tipo como chave ou valor.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;map&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Map&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;nome&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;João&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;número um&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;booleano&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;&lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;objeto como chave&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Estrutura de Dados Interna
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Map é implementada como uma Hash Table (Tabela Hash)&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;┌─────────────────────────────────────────────────────────────┐
│                    HASH TABLE                               │
├─────────────────────────────────────────────────────────────┤
│ Bucket 0: [key1, value1] -&amp;gt; [key4, value4]                 │
│ Bucket 1: [key2, value2]                                   │
│ Bucket 2: [key3, value3] -&amp;gt; [key5, value5]                 │
│ Bucket 3: empty                                            │
│ ...                                                        │
└─────────────────────────────────────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Como funciona internamente:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Hash Function&lt;/strong&gt;: Converte a chave em um índice do array, ou seja, digamos que a chave e &lt;code&gt;banana&lt;/code&gt;, ele converte essa chave em um numero especifico, usando algorimitos de hasheamento avancados.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Collision Handling&lt;/strong&gt;: Usa chaining (encadeamento) para resolver colisões, isso significa que, as vezes quando uma chave e convertida em um indice, pode ser que esse indice conflite com um outro ja existente, oque o Map faz e em cada indice ao invez de ter apenas um valor, se tem um array, podendo armazenar mais de um valor por indice, a funcao &lt;code&gt;.get&lt;/code&gt; do Map lida em encontrar dentro desse array qual o item certo, mas colisoes sao raras pois o algoritimo de Hash e bem avancado.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dynamic Resizing&lt;/strong&gt;: Redimensiona automaticamente quando necessário.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Big O
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Operação&lt;/th&gt;
&lt;th&gt;Complexidade&lt;/th&gt;
&lt;th&gt;Explicação&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;set(key, value)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;O(1)&lt;/strong&gt; amortizado&lt;/td&gt;
&lt;td&gt;Hash direto para o bucket&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;get(key)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;O(1)&lt;/strong&gt; amortizado&lt;/td&gt;
&lt;td&gt;Hash direto para busca&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;has(key)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;O(1)&lt;/strong&gt; amortizado&lt;/td&gt;
&lt;td&gt;Hash direto para verificação&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;delete(key)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;O(1)&lt;/strong&gt; amortizado&lt;/td&gt;
&lt;td&gt;Hash direto para remoção&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;size&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;O(1)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Propriedade mantida internamente&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;clear()&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;O(n)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Precisa limpar todos os elementos&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;forEach()&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;O(n)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Itera sobre todos os elementos&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  O que significa "amortizado"?
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Amortizado&lt;/strong&gt; é um termo técnico usado quando a complexidade de uma operação pode na verdade ter duas complexidades distintas, dependendo de dois cenários diferentes que podem ocorrer.&lt;/p&gt;

&lt;p&gt;O que acontece no &lt;code&gt;Map&lt;/code&gt; é que o tamanho &lt;code&gt;in-memory&lt;/code&gt; (na memória) de um &lt;code&gt;Map&lt;/code&gt; quando ele é iniciado é sempre 4, ou seja, 4 slots de memória são reservados para o Map. Nos 3 primeiros elementos que são adicionados ao Map, a operação tem complexidade &lt;strong&gt;O(1)&lt;/strong&gt;, mas no momento que o quarto elemento for adicionado, será necessário criar um novo espaço &lt;code&gt;in-memory&lt;/code&gt; de tamanho 8, e mover todos os elementos atuais para o novo espaço, em uma função que se assemelharia a essa:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Processo interno do redimensionamento:&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;resize&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;oldTable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;table&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;           &lt;span class="c1"&gt;// O(1)&lt;/span&gt;
    &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;table&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;oldTable&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// O(1)&lt;/span&gt;
    &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;size&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                         &lt;span class="c1"&gt;// O(1)&lt;/span&gt;

    &lt;span class="c1"&gt;// AQUI está o O(n)!&lt;/span&gt;
    &lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;bucket&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nx"&gt;oldTable&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;       &lt;span class="c1"&gt;// O(n)&lt;/span&gt;
        &lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nx"&gt;bucket&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;          &lt;span class="c1"&gt;// Rehash cada elemento&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Apenas neste caso específico, a operação executada será &lt;strong&gt;O(n)&lt;/strong&gt;, mas como estes casos só vão acontecer cada vez que o &lt;code&gt;Map&lt;/code&gt; tiver que duplicar seu tamanho, é dito que a complexidade foi "amortizada" para um caso mais realista.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A sequência de redimensionamentos funciona assim:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Inicialmente será a inserção do elemento número 4 que será &lt;strong&gt;O(n)&lt;/strong&gt; (com n=4)&lt;/li&gt;
&lt;li&gt;Depois esse número vai aumentar exponencialmente: a segunda vez será a inserção do elemento número 8 que será &lt;strong&gt;O(n)&lt;/strong&gt; (com n=8)&lt;/li&gt;
&lt;li&gt;Depois a inserção do elemento 16, depois a 32, depois a 64, depois a 128, e assim por diante&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Chegando em um ponto que a operação &lt;strong&gt;O(n)&lt;/strong&gt; ficará tão distante uma da outra que pode ser desconsiderada em casos reais de uso. Por exemplo, se você tem um Map com 1 milhão de elementos, o próximo redimensionamento só acontecerá quando chegar a 2 milhões de elementos - uma distância muito grande entre as operações custosas.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Por isso a complexidade é chamada de "amortizada":&lt;/strong&gt; na média, considerando uma sequência longa de operações, o custo das operações caras (redimensionamento) é distribuído entre as operações baratas (inserções normais), resultando em uma complexidade média de &lt;strong&gt;O(1)&lt;/strong&gt; por operação.&lt;/p&gt;

&lt;h2&gt;
  
  
  Map vs Object vs Array
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Aspecto&lt;/th&gt;
&lt;th&gt;Map&lt;/th&gt;
&lt;th&gt;Object&lt;/th&gt;
&lt;th&gt;Array&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Tipos de chave&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Qualquer tipo&lt;/td&gt;
&lt;td&gt;String/Symbol&lt;/td&gt;
&lt;td&gt;Números (índices)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Tamanho&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;map.size&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Object.keys(obj).length&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;arr.length&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Iteração&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Preserva ordem de inserção&lt;/td&gt;
&lt;td&gt;Não garantida (ES5)&lt;/td&gt;
&lt;td&gt;Preserva ordem&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Acesso&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;map.get(key)&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;obj.key&lt;/code&gt; ou &lt;code&gt;obj[key]&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;arr[index]&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Performance&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;O(1) para tudo&lt;/td&gt;
&lt;td&gt;O(1) para acesso&lt;/td&gt;
&lt;td&gt;O(1) para acesso&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Exemplos Práticos
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Criação e Operações Básicas
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;map&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Map&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;span class="c1"&gt;// Adicionar&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;nome&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Maria&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;primeiro&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;verdadeiro&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// Buscar&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;nome&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt; &lt;span class="c1"&gt;// "Maria"&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;      &lt;span class="c1"&gt;// "primeiro"&lt;/span&gt;

&lt;span class="c1"&gt;// Verificar existência&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;has&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;nome&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt; &lt;span class="c1"&gt;// true&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;has&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;age&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;  &lt;span class="c1"&gt;// false&lt;/span&gt;

&lt;span class="c1"&gt;// Tamanho&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;size&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// 3&lt;/span&gt;

&lt;span class="c1"&gt;// Remover&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;delete&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;nome&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;size&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// 2&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Chaves de Qualquer Tipo
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;map&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Map&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;span class="c1"&gt;// Objetos como chaves&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;obj1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;obj2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;};&lt;/span&gt;

&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;obj1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;primeiro objeto&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;obj2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;segundo objeto&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;obj1&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt; &lt;span class="c1"&gt;// "primeiro objeto"&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;&lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;}));&lt;/span&gt; &lt;span class="c1"&gt;// undefined (diferente objeto!)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Iteração
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;map&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Map&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;a&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;b&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;c&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;]);&lt;/span&gt;

&lt;span class="c1"&gt;// Iterar chaves&lt;/span&gt;
&lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;key&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// 'a', 'b', 'c'&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// Iterar valores&lt;/span&gt;
&lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;value&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;values&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// 1, 2, 3&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// Iterar pares&lt;/span&gt;
&lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;entries&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// 'a' 1, 'b' 2, 'c' 3&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// forEach&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. Inicialização com Array
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;map&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Map&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;key1&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;value1&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;key2&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;value2&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;key3&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;value3&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;]);&lt;/span&gt;

&lt;span class="c1"&gt;// Converter Map para Array&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;array&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Array&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;array&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// [['key1', 'value1'], ['key2', 'value2'], ['key3', 'value3']]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Quando Usar Map?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  ✅ Use Map quando:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Precisa de chaves que não são strings&lt;/li&gt;
&lt;li&gt;Precisa saber o tamanho frequentemente&lt;/li&gt;
&lt;li&gt;Precisa iterar em ordem de inserção&lt;/li&gt;
&lt;li&gt;Precisa de performance O(1) garantida&lt;/li&gt;
&lt;li&gt;Chaves são dinâmicas/desconhecidas&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  ❌ Use Object quando:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Chaves são sempre strings&lt;/li&gt;
&lt;li&gt;Precisa de sintaxe mais simples&lt;/li&gt;
&lt;li&gt;Precisa de serialização JSON&lt;/li&gt;
&lt;li&gt;Tem métodos/propriedades específicas&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Exemplo Prático: Contagem de Caracteres
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;countChars&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;map&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Map&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

    &lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;char&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nx"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;has&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;char&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;char&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;char&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;char&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;countChars&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;hello world&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;result&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="c1"&gt;// Map { 'h' =&amp;gt; 1, 'e' =&amp;gt; 1, 'l' =&amp;gt; 3, 'o' =&amp;gt; 2, ' ' =&amp;gt; 1, 'w' =&amp;gt; 1, 'r' =&amp;gt; 1, 'd' =&amp;gt; 1 }&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Métodos Úteis
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;map&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Map&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;span class="c1"&gt;// Operações básicas&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;  &lt;span class="c1"&gt;// Adiciona/atualiza&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;         &lt;span class="c1"&gt;// Obtém valor&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;has&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;         &lt;span class="c1"&gt;// Verifica existência&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;delete&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;      &lt;span class="c1"&gt;// Remove&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;clear&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;          &lt;span class="c1"&gt;// Remove todos&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;size&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;             &lt;span class="c1"&gt;// Tamanho&lt;/span&gt;

&lt;span class="c1"&gt;// Iteração&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;           &lt;span class="c1"&gt;// Iterator das chaves&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;values&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;         &lt;span class="c1"&gt;// Iterator dos valores&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;entries&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;        &lt;span class="c1"&gt;// Iterator dos pares [key, value]&lt;/span&gt;
&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;callback&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// Itera com callback&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Map é a estrutura perfeita para casos que precisam de mapeamento chave-valor com performance O(1) e flexibilidade de tipos!&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>datastructures</category>
      <category>map</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Entendendo GAS e Transaction Fees na Ethereum: Do Legacy ao EIP-1559</title>
      <dc:creator>JOÃO PSTER</dc:creator>
      <pubDate>Mon, 12 Aug 2024 12:19:47 +0000</pubDate>
      <link>https://dev.to/web3-brasil/diario-web3-dia-2-aprendendo-gas-transaction-fee-gwei-wei-e-a-relacao-disso-com-a-eth-e-sua-network-2o7p</link>
      <guid>https://dev.to/web3-brasil/diario-web3-dia-2-aprendendo-gas-transaction-fee-gwei-wei-e-a-relacao-disso-com-a-eth-e-sua-network-2o7p</guid>
      <description>&lt;p&gt;&lt;strong&gt;AVISO&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Agora aqui eu vou postar conteúdo meu, mas reescrito por IA, e auditado por mim, para melhorar a qualidade, enquanto no meu perfil &lt;a class="mentioned-user" href="https://dev.to/jpster"&gt;@jpster&lt;/a&gt; vou postar o original escrito por mim.&lt;/p&gt;

&lt;h1&gt;
  
  
  Entendendo GAS e Transaction Fees na Ethereum: Do Legacy ao EIP-1559
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Introdução
&lt;/h2&gt;

&lt;p&gt;Bem-vindos, futuros desenvolvedores e entusiastas da Web3! Hoje, vamos mergulhar no fascinante mundo do GAS e das Transaction Fees na rede Ethereum. Vamos explorar como esse sistema evoluiu, passando do modelo legacy para o revolucionário EIP-1559.&lt;/p&gt;

&lt;h2&gt;
  
  
  O Conceito de GAS
&lt;/h2&gt;

&lt;p&gt;Imagine que a blockchain Ethereum é uma grande cidade, e as transações são pacotes que precisam ser entregues. O GAS é como o combustível necessário para que os "entregadores" (mineradores ou validadores) levem seus pacotes (transações) ao destino.&lt;/p&gt;

&lt;h3&gt;
  
  
  Analogia do Mundo Real
&lt;/h3&gt;

&lt;p&gt;Pense no GAS como a gasolina que você coloca no carro para transportar algo valioso. Na Ethereum, o GAS é medido em unidades chamadas Gwei, que são frações minúsculas de ETH.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1 ETH = 1,000,000,000 Gwei
1 Gwei = 0.000000001 ETH
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  O Sistema Legacy de GAS
&lt;/h2&gt;

&lt;p&gt;No sistema antigo da Ethereum, as coisas funcionavam assim:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Você define um limite máximo de GAS que está disposto a pagar.&lt;/li&gt;
&lt;li&gt;Sua transação é enviada para a rede.&lt;/li&gt;
&lt;li&gt;Os mineradores escolhem as transações com maior oferta de GAS.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Prós e Contras do Sistema Legacy
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Prós:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Mineradores ganhavam bem com as taxas.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Contras:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Usuários frequentemente pagavam taxas exorbitantes.&lt;/li&gt;
&lt;li&gt;Difícil prever o preço do GAS.&lt;/li&gt;
&lt;li&gt;Transações com baixo GAS podiam ficar presas por dias.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Cenário Exemplo do Sistema Legacy
&lt;/h3&gt;

&lt;p&gt;Imagine uma loja popular lançando uma coleção limitada de NFTs:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Inicialmente, as taxas estão em 50 Gwei.&lt;/li&gt;
&lt;li&gt;A demanda explode, e alguns usuários oferecem 100 Gwei.&lt;/li&gt;
&lt;li&gt;Inicia-se uma "guerra de lances", com ofertas chegando a 500 Gwei.&lt;/li&gt;
&lt;li&gt;Usuários que mantêm 50 Gwei ficam para trás, possivelmente por dias.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  A Revolução do EIP-1559
&lt;/h2&gt;

&lt;p&gt;O EIP-1559 (Ethereum Improvement Proposal 1559) veio para resolver esses problemas. Vamos entender as principais mudanças:&lt;/p&gt;

&lt;h3&gt;
  
  
  Principais Alterações
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Introdução da "base fee" (taxa base).&lt;/li&gt;
&lt;li&gt;Aumento do limite de GAS por bloco.&lt;/li&gt;
&lt;li&gt;Nova estrutura de taxa: base fee + tip (gorjeta para mineradores).&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Como Funciona a Base Fee?
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;A base fee é ajustada automaticamente baseada no uso da rede.&lt;/li&gt;
&lt;li&gt;Se o uso &amp;gt; 50%, a base fee aumenta.&lt;/li&gt;
&lt;li&gt;Se o uso &amp;lt; 50%, a base fee diminui.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Limite de GAS por Bloco
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Uso ≤ 50%: 12.5M GAS&lt;/li&gt;
&lt;li&gt;Uso &amp;gt; 50%: até 25M GAS&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Composição da Nova Taxa
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Taxa Total = Base Fee + Tip
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A base fee é queimada (destruída), reduzindo a oferta total de ETH.&lt;/p&gt;

&lt;h3&gt;
  
  
  Cenário Exemplo com EIP-1559
&lt;/h3&gt;

&lt;p&gt;Voltando ao exemplo da loja de NFTs:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Rede a 50% de uso, taxa total em 50 Gwei.&lt;/li&gt;
&lt;li&gt;Demanda explode, uso sobe para 100%.&lt;/li&gt;
&lt;li&gt;Base fee aumenta 12.5% automaticamente no próximo bloco.&lt;/li&gt;
&lt;li&gt;Aumento continua enquanto o uso estiver acima de 50%.&lt;/li&gt;
&lt;li&gt;Altas taxas naturalmente reduzem o uso da rede.&lt;/li&gt;
&lt;li&gt;Quando o uso cai abaixo de 50%, a base fee começa a diminuir.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Conclusão
&lt;/h2&gt;

&lt;p&gt;O EIP-1559 trouxe um sistema mais equilibrado e previsível para as taxas na Ethereum. Ele ajuda a evitar picos extremos de preços e torna a rede mais eficiente a longo prazo.&lt;/p&gt;

&lt;h2&gt;
  
  
  Exercício para Fixação
&lt;/h2&gt;

&lt;p&gt;Imagine que você está desenvolvendo um dApp (aplicativo descentralizado) na Ethereum. Como você explicaria para seus usuários a importância de entender o sistema de GAS e como isso afeta o uso do seu dApp?&lt;/p&gt;

&lt;h2&gt;
  
  
  Recursos Adicionais
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=MGemhK9t44Q" rel="noopener noreferrer"&gt;Vídeo explicativo sobre EIP-1559&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://updraft.cyfrin.io/courses/" rel="noopener noreferrer"&gt;Curso Updraft para aprofundamento&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Lembre-se: A compreensão desses conceitos é fundamental para qualquer desenvolvedor Web3. Continue estudando e praticando!&lt;/p&gt;

&lt;h1&gt;
  
  
  A Fundo: GAS na Ethereum
&lt;/h1&gt;

&lt;p&gt;Para entender completamente o funcionamento do GAS na Ethereum, vamos mergulhar nos detalhes técnicos tanto do sistema Legacy quanto do EIP-1559.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sistema Legacy: Detalhamento Técnico
&lt;/h2&gt;

&lt;p&gt;No sistema Legacy, o GAS funcionava da seguinte forma:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Gas Limit&lt;/strong&gt;: Usuários definiam um limite máximo de GAS que estavam dispostos a gastar.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gas Price&lt;/strong&gt;: Usuários também definiam um preço por unidade de GAS em Gwei.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Total Fee&lt;/strong&gt;: Era calculada multiplicando o Gas Limit pelo Gas Price.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Total Fee = Gas Limit * Gas Price
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Execução da Transação&lt;/strong&gt;: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Se a transação usasse menos GAS que o limite, o excesso era reembolsado.&lt;/li&gt;
&lt;li&gt;Se usasse mais, a transação falhava e o GAS era consumido.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Priorização&lt;/strong&gt;: Mineradores priorizavam transações com maior Gas Price.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Volatilidade&lt;/strong&gt;: Os preços flutuavam drasticamente baseados na demanda da rede.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  EIP-1559: Detalhamento Técnico
&lt;/h2&gt;

&lt;p&gt;O EIP-1559 introduziu um sistema mais complexo e eficiente:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Base Fee&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Calculada algoritmicamente para cada bloco.&lt;/li&gt;
&lt;li&gt;Ajusta-se baseada no uso do bloco anterior:

&lt;ul&gt;
&lt;li&gt;Se o bloco anterior estava cheio &amp;gt; 50%, a base fee aumenta até 12.5%.&lt;/li&gt;
&lt;li&gt;Se estava &amp;lt; 50% cheio, diminui até 12.5%.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;É queimada (removida permanentemente da circulação).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Max Priority Fee (Tip)&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Definida pelo usuário.&lt;/li&gt;
&lt;li&gt;Vai diretamente para o minerador/validador.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Max Fee&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;O máximo que o usuário está disposto a pagar.&lt;/li&gt;
&lt;li&gt;Inclui a base fee e a max priority fee.
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Max Fee = Base Fee + Max Priority Fee
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Cálculo da Taxa Efetiva&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Se Max Fee &amp;gt; (Base Fee + Max Priority Fee):

&lt;ul&gt;
&lt;li&gt;Usuário paga: Base Fee + Max Priority Fee&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Se Max Fee &amp;lt; (Base Fee + Max Priority Fee):

&lt;ul&gt;
&lt;li&gt;Transação não é incluída no bloco&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Tamanho do Bloco&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tamanho alvo: 15M unidades de GAS&lt;/li&gt;
&lt;li&gt;Tamanho máximo: 30M unidades de GAS&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Ajuste Dinâmico&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Se o bloco &amp;gt; 15M GAS, a base fee aumenta.&lt;/li&gt;
&lt;li&gt;Se o bloco &amp;lt; 15M GAS, a base fee diminui.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Mecanismo de Estabilização&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A base fee não pode mudar mais que 12.5% por bloco.&lt;/li&gt;
&lt;li&gt;Isso previne mudanças drásticas nos preços.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Previsibilidade&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Usuários podem estimar melhor as taxas futuras.&lt;/li&gt;
&lt;li&gt;A base fee do próximo bloco é sempre conhecida.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Efeito Deflacionário&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Como a base fee é queimada, pode levar à deflação do ETH se o uso da rede for alto.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Inclusão de Transações&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Transações são incluídas se: Max Fee ≥ Base Fee + Mínima Priority Fee aceitável pelo minerador.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Comparação Técnica
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Aspecto&lt;/th&gt;
&lt;th&gt;Legacy&lt;/th&gt;
&lt;th&gt;EIP-1559&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Estrutura da Taxa&lt;/td&gt;
&lt;td&gt;Gas Price * Gas Used&lt;/td&gt;
&lt;td&gt;Base Fee + Priority Fee&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Previsibilidade&lt;/td&gt;
&lt;td&gt;Baixa&lt;/td&gt;
&lt;td&gt;Alta&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Volatilidade&lt;/td&gt;
&lt;td&gt;Alta&lt;/td&gt;
&lt;td&gt;Reduzida&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mecanismo de Ajuste&lt;/td&gt;
&lt;td&gt;Manual (pelos usuários)&lt;/td&gt;
&lt;td&gt;Algorítmico&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Destino das Taxas&lt;/td&gt;
&lt;td&gt;100% para mineradores&lt;/td&gt;
&lt;td&gt;Base Fee queimada, Priority Fee para mineradores&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Impacto na Oferta de ETH&lt;/td&gt;
&lt;td&gt;Nenhum&lt;/td&gt;
&lt;td&gt;Potencialmente deflacionário&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Implicações para Desenvolvedores e Usuários
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Estimativa de Taxas&lt;/strong&gt;: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Legacy: Necessário consultar oráculos de GAS ou fazer estimativas complexas.&lt;/li&gt;
&lt;li&gt;EIP-1559: Pode-se prever a base fee do próximo bloco com precisão.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Implementação em Carteiras&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Legacy: Foco em ajustar o Gas Price.&lt;/li&gt;
&lt;li&gt;EIP-1559: Necessário implementar lógica para Max Fee e Priority Fee.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Estratégias de Transação&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Legacy: "Substituição de transação" comum para aumentar o Gas Price.&lt;/li&gt;
&lt;li&gt;EIP-1559: Pode-se aumentar a Priority Fee para acelerar transações pendentes.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Economia de Tokens&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Legacy: Taxas não afetavam diretamente a oferta de ETH.&lt;/li&gt;
&lt;li&gt;EIP-1559: Queima de base fee pode impactar tokenomics de projetos.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;UX em dApps&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Legacy: Usuários frequentemente confusos com flutuações de preço.&lt;/li&gt;
&lt;li&gt;EIP-1559: Possibilidade de UX mais suave com taxas mais previsíveis.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Esta análise detalhada mostra como o EIP-1559 não apenas mudou o mecanismo de taxas, mas também introduziu um sistema econômico mais sofisticado na Ethereum, afetando desenvolvedores, usuários e a própria economia da rede.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>DIARIO WEB3 - Dia 2 - Aprendendo GAS (Transaction FEE), Gwei, Wei e a relação disso com a ETH e sua Network</title>
      <dc:creator>JOÃO PSTER</dc:creator>
      <pubDate>Mon, 12 Aug 2024 12:10:40 +0000</pubDate>
      <link>https://dev.to/jpster/diario-web3-dia-2-aprendendo-gas-transaction-fee-gwei-wei-e-a-relacao-disso-com-a-eth-e-sua-network-46h6</link>
      <guid>https://dev.to/jpster/diario-web3-dia-2-aprendendo-gas-transaction-fee-gwei-wei-e-a-relacao-disso-com-a-eth-e-sua-network-46h6</guid>
      <description>&lt;p&gt;Depois de fazer algumas transações fui introduzido ao GAS e a Transaction FEE (especificamente na rede etherium) depois fui apresentado a EIP 1559 que mudou a forma com que Transaction Fees são calculadas e executadas.&lt;/p&gt;

&lt;h1&gt;
  
  
  Oque eu aprendi?
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Conceito de GAS
&lt;/h2&gt;

&lt;p&gt;Bem, é simples.&lt;br&gt;
No mundo real, se você tem que levar ouro de um local para outro você vai precisar de um transporte, em palavras resumidas você vai gastar gasolina para transportar esse ouro (claro que não é só isso, mas vamos pensar só nisso).&lt;/p&gt;

&lt;p&gt;Na rede Etherium (uma cripto) implementaram o sistema de GAS (GAS é gasolina em inglês), no ETH (Etherium) legacy se fazia da seguinte forma:&lt;/p&gt;

&lt;h3&gt;
  
  
  GAS na ETH Legacy
&lt;/h3&gt;

&lt;p&gt;Ao enviar sua transação para a rede, você definia um valor de GAS máximo que gostaria de pagar, então a transação era enviada para a Main network.&lt;/p&gt;

&lt;p&gt;Ao chegar lá, os mineradores (pessoas responsáveis por adicionar blocos novos a chain, vamos pensar assim), listavam os novos pedidos de acordo com o maior valor de GAS, e então executavam aquelas que tinham o maior valor.&lt;/p&gt;

&lt;h4&gt;
  
  
  Pontos Positivos
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Os mineradores ganhavam bastante, toda FEE era enviada diretamente para eles.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Pontos Negativos
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Frequentemente os usuários da rede pagavam valores abusivos de GAS.&lt;/li&gt;
&lt;li&gt;Quando um evento gerava um pico de transações na Network o preço do GAS (e a quantidade dele) subia repentinamente.&lt;/li&gt;
&lt;li&gt;Era difícil prever a quantidade de GAS que os mineradores iriam aceitar no bloco seguinte.&lt;/li&gt;
&lt;li&gt;Quem colocasse um valor de GAS muito baixo (oque, se de repente tivesse um pico de uso na Network e as ofertas de GAS subissem muito, quem não estava sabendo e continuava a colocar pedidos com uma quantia de GAS normal acabava esperando muito para sua transação ser efetuada).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Como podem ver, tem mais pontos negativos do que positivos, mas não é só isso, eu não sou o melhor para explicar isso, então no fim vou deixar alguns vídeos de referência.&lt;/p&gt;

&lt;h4&gt;
  
  
  Simulando um cenário real
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Ao colocar uma transação, estão pagando em média 50 Gwei de FEE, e tudo ocorre bem.&lt;/li&gt;
&lt;li&gt;Devido a um pico de uso da Rede começam a vir blocos desesperados pagando 100 de Gwei, e os mineradores priorizam eles.&lt;/li&gt;
&lt;li&gt;Devido ao movimento de manada, e agora a ter vários blocos a 100 Gwei, os mais apressados começam a pagar cada vez mais, 150, 200, 300, 500 Gwei.&lt;/li&gt;
&lt;li&gt;Aqueles que não tem pressa, vão acabar ficando nos 50 Gwei, e podem demorar dias para ter suas transações efetuadas.&lt;/li&gt;
&lt;li&gt;O sistema tenderá assim ao CAOS, com taxas cada vez maiores, até que acabe esse pico de uso.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Agora vamos ver na EIP 1559.&lt;/p&gt;

&lt;h3&gt;
  
  
  GAS pós EIP 1559
&lt;/h3&gt;

&lt;p&gt;Uma EIP significa Etherium Improvement Proposals (Propostas de melhoria da Etherium) e são geralmente discutidas apenas entre os membros do Core de desenvolvimento da ETH, mas a EIP 1559 é diferente, ela impacta todos, investidores, usuários e desenvolvedores.&lt;/p&gt;

&lt;p&gt;A EIP 1559 implementou um sistema de GAS price variável que se adapta de acordo com o uso atual da rede de forma autônoma, para vocês entenderem a fundo esse conceito convido a assistirem:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=MGemhK9t44Q" rel="noopener noreferrer"&gt;Can ETH Become DEFLATIONARY? EIP 1559 Explained&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Explicando a EIP 1559
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;Mudanças na EIP 1559&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Uma basefee, é um valor base de FEE, nenhum pedido a Network pode ter menos do que esse basefee.&lt;/li&gt;
&lt;li&gt;Aumentou o limite de GAS de 12.5M para 25M, tecnicamente aumentando o tamanho do bloco.&lt;/li&gt;
&lt;li&gt;Agora, a FEE é composta de uma basefee e uma tip (a tip vai para os miners).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Como a Basefee é calculada?&lt;/strong&gt;&lt;br&gt;
A basefee é calculada de acordo com o uso da Network, caso a network esteja com mais de 50% &amp;lt; a basefee aumenta, caso a network esteja com menos de 50% &amp;gt; de carda a basefee abaixa.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Como o limite de GAS por bloco se comporta?&lt;/strong&gt;&lt;br&gt;
12.5M GAS &amp;gt; 50% &amp;gt; 25M GAS&lt;/p&gt;

&lt;p&gt;Ou seja, abaixo ou em 50% de uso, o limite de GAS por bloco é de 12.5M, acima de 50% é de 25M de Gás.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do que é composta a FEE?&lt;/strong&gt;&lt;br&gt;
A FEE agora é uma Basefee + uma TIP, a TIP é um valor também em Gwei que é enviado diretamente ao minerador daquela transação, é a recompensa dele.&lt;/p&gt;

&lt;p&gt;A basefee, como vou explicar mais para frente, vai ser queimada, isso mesmo, vai ser destruída, será ETH sendo destruido.&lt;/p&gt;

&lt;h4&gt;
  
  
  Simulando um cenário real
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Ao colocar uma transação, vamos dizer que os usuários estão pagando 50 Gwei de FEE (Somando Basefee + Tip), e tudo esta ocorrendo bem, pois a Network está em 50% de uso.&lt;/li&gt;
&lt;li&gt;De repente um pico sobe o uso da rede para 100%, no proximo bloco a Basefee vai ser automáticamente incrementada em 12.5% (A TIP pode variar, você quem define, quem tem uma TIP maior claramente vai ser priorizado).&lt;/li&gt;
&lt;li&gt;O pico continua, e então subsequentemente, bloco por bloco a Basefee será aumentada em 12.5% a cada bloco novo, enquanto a rede estiver acima de 50% de uso.&lt;/li&gt;
&lt;li&gt;Devido aos altos valores de FEE, a network é forçada devido ao seu alto valor por transação a ter menos transações, isso vai fazer com que o uso da Network abaixe, mas também devido a alta Basefee, muito ETH vai ser sendo perdido, fazendo com que tenha menos ETH na Rede, fazendo com que os ETH se tornem mais escassos, e assim, mais caros.&lt;/li&gt;
&lt;li&gt;Devido a pressão causada pelo alto valor de FEE, a Network começa a ser menos usada, fazendo com que o uso da Network caia para 40%, gradualmente, isso fará com que o tamanho do bloco máximo volte para 12.5M de GAS e reduzirá a basefee.&lt;/li&gt;
&lt;li&gt;Agora, devido ao baixo uso da rede e a FEE barata a rede começara a ser mais usada.&lt;/li&gt;
&lt;li&gt;O mesmo processo poderia acontecer novamente, mas as pessoas vão procurar o equilíbrio em 50% de uso, para manter justos os valores de FEE e a quantidade de uso da rede.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Resumo
&lt;/h3&gt;

&lt;p&gt;Bem, agora eu entendo melhor a questão de GAS, e a relação dele com a FEE, a FEE é taxa por transação, como a gasolina usada por um carro para transportar ouro, essa taxa é descrita em GAS, tipo 10 litros de gasolina é a taxa para levar ouro de um bairro para outro.&lt;/p&gt;

&lt;p&gt;O GAS é vendido por Gwei ou Wei, o Gwei e o Wei são basicamente Ether (Ether = Etherium), só que em escalas menores:&lt;br&gt;
Wei: 1,000,000,000 Wei = 1 Gwei (Gigawei)&lt;br&gt;
Gwei: 1000,000,000 Gwei = 1 Eth&lt;/p&gt;

&lt;p&gt;Em resumo, o GAS é a gasolina, que custa ETH, mas custa bem pouco, então para não ficar falando 0.00000000000000231 ETH, se fala 0.00000231 Gwei.&lt;/p&gt;

&lt;p&gt;Antigamente, quem pagava mais GAS era priorizado, e isso ia desenfreado tendendo ao CAOS, após a EIP 1559 existe um sistema mais complexo para regular o uso da Network e os preços de FEE, forçando o sistema ao equilíbrio, tipo um sistema de oferta e demanda, mas com uma intervenção autônoma descentralizada ajudando os seres humanos a evitar sua tendencia natural ao CAOS.&lt;/p&gt;

&lt;h1&gt;
  
  
  Tentativa de Minerar
&lt;/h1&gt;

&lt;p&gt;Tentei começar a minerar, mas descobri que ETH não pode mais ser minerada, e sei que minerar Bitcoin vai ser uma loucura, vou deixar um link de um artigo que achei sobre criptos para minerar:&lt;/p&gt;

&lt;p&gt;Não estou recomendando, eu só achei, e lí.&lt;br&gt;
&lt;a href="https://coinledger.io/tools/best-crypto-to-mine" rel="noopener noreferrer"&gt;9 Best Cryptocurrencies for Mining (Easy to Hard)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Desisti de minerar por enquanto, só por enquanto.&lt;/p&gt;

&lt;h1&gt;
  
  
  Recomendações de conteúdo
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=MGemhK9t44Q" rel="noopener noreferrer"&gt;Can ETH Become DEFLATIONARY? EIP 1559 Explained&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://updraft.cyfrin.io/courses/" rel="noopener noreferrer"&gt;Updraft Course&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Meu sumiço
&lt;/h3&gt;

&lt;p&gt;Fiquei um tempo sem postar, devido a meu problema de procrastinação, pois acabei me envolvendo em alguns projetos secundários e não estava acordando tão cedo mais, desculpem-me, vou tentar enfrentar isso e acordar sempre cedo para estudar.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>web3</category>
      <category>web3brasil</category>
      <category>braziliandevs</category>
    </item>
    <item>
      <title>Conteúdo em Inglês</title>
      <dc:creator>JOÃO PSTER</dc:creator>
      <pubDate>Mon, 29 Jul 2024 12:56:31 +0000</pubDate>
      <link>https://dev.to/web3-brasil/conteudo-em-ingles-28gm</link>
      <guid>https://dev.to/web3-brasil/conteudo-em-ingles-28gm</guid>
      <description>&lt;p&gt;Gostaria de começar essa comunidade divulgando a minha primeira fonte de informações, o curso da &lt;a href="https://github.com/Cyfrin/foundry-full-course-cu" rel="noopener noreferrer"&gt;Cyfrin Updraft&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;No futuro publicarei conteúdos em português, explicando conceitos vindos de várias fontes, para ensinar brasileiros a Web3.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>DIARIO WEB3 - Dia 1 Comecei a estudar Web 3, criei meu primeiro dMail e minha carteira na MetaMask.</title>
      <dc:creator>JOÃO PSTER</dc:creator>
      <pubDate>Mon, 29 Jul 2024 12:54:46 +0000</pubDate>
      <link>https://dev.to/jpster/diario-web3-dia-1-comecei-a-estudar-web-3-criei-meu-primeiro-dmail-e-minha-carteira-na-metamask-5ejj</link>
      <guid>https://dev.to/jpster/diario-web3-dia-1-comecei-a-estudar-web-3-criei-meu-primeiro-dmail-e-minha-carteira-na-metamask-5ejj</guid>
      <description>&lt;p&gt;DIARIO WEB3 - Dia 1 &lt;/p&gt;

&lt;p&gt;Comecei a estudar Web 3, criei meu primeiro dMail e minha carteira na MetaMask.&lt;/p&gt;

&lt;p&gt;Hoje comecei a estudar Web 3 com o Cyfrin Updraft, e estou ficando fascinado por essa nova geração, ainda não entendo bem todo o conceito, mas imaginar "Contratos Inquebráveis" que são os Smart Contracts e como isso pode impactar o mundo, ainda mais agora que o Banco Central do Brasil quer criar o DREX.&lt;/p&gt;

&lt;p&gt;Eu acredito que isto seja o futuro, então decidi começar a estudar, até agora entendi apenas conceitualmente os Smart Contracts, e o conceito de Oracle Problem, mas as networks ainda são um pouco obscuras para mim.&lt;/p&gt;

&lt;p&gt;Eu decidi entrar de cara nesse mundo, então comecei por uma coisa que acho que todo novato na internet faz, criar um email, só que na web3 não terá Google, e sim, dMail (Conceito de e-mail decentralizado) então criei meu primeiro dmail.ai, aliás, quem quiser: &lt;a href="mailto:joaopster@dmail.ai"&gt;joaopster@dmail.ai&lt;/a&gt; me manda uma mensagem lá! ;)&lt;/p&gt;

&lt;p&gt;Também comprei BSC e USDT na rede BNB Chain, para poder comprar o NFT &lt;a href="mailto:joaopster@dmail.ai"&gt;joaopster@dmail.ai&lt;/a&gt; (sim, o email é um NFT, também fiquei impressionado).&lt;/p&gt;

&lt;p&gt;Também fiz minha primeira transação na Sepolia Testnet, e claro, 2 transação na BNB Chain, como disse anteriormente, e estou ficando fascinado.&lt;/p&gt;

&lt;p&gt;Os próximos passos serão entender Gás na ETH, oque eu não entendo direito, e conforme avanço, vou começar a tentar ensinar oque aprendi em posts como esses, e na minha página no &lt;a href="https://dev.to/jpster"&gt;Dev.to&lt;/a&gt; :)&lt;/p&gt;

&lt;p&gt;Cyfrin Updraft: &lt;a href="https://github.com/Cyfrin/foundry-full-course-cu" rel="noopener noreferrer"&gt;Link&lt;/a&gt;&lt;/p&gt;

</description>
      <category>web3</category>
      <category>braziliandevs</category>
    </item>
  </channel>
</rss>
