<?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: Felipe Castillo</title>
    <description>The latest articles on DEV Community by Felipe Castillo (@castillodk).</description>
    <link>https://dev.to/castillodk</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%2F2964353%2F40a7efa7-5605-4d4d-a1e9-e65ae0dd7400.jpg</url>
      <title>DEV Community: Felipe Castillo</title>
      <link>https://dev.to/castillodk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/castillodk"/>
    <language>en</language>
    <item>
      <title>How I Read CPU Usage from /proc (and Why the First Reading Lies)</title>
      <dc:creator>Felipe Castillo</dc:creator>
      <pubDate>Tue, 24 Nov 2026 19:24:52 +0000</pubDate>
      <link>https://dev.to/castillodk/how-i-read-cpu-usage-from-proc-and-why-the-first-reading-lies-3588</link>
      <guid>https://dev.to/castillodk/how-i-read-cpu-usage-from-proc-and-why-the-first-reading-lies-3588</guid>
      <description>&lt;p&gt;Every time I open &lt;code&gt;top&lt;/code&gt; I take it for granted. The percentages look live, as if the kernel were computing them. It is not. &lt;code&gt;/proc/stat&lt;/code&gt; never reports a percentage. It reports counters that only go up, and every tool you use &lt;code&gt;top&lt;/code&gt;, &lt;code&gt;htop&lt;/code&gt;, &lt;code&gt;btop&lt;/code&gt; is doing the same subtraction you can do yourself.&lt;/p&gt;

&lt;p&gt;I implemented that subtraction for the CPU collector in &lt;a href="https://github.com/felipecastillo-b/serverctl" rel="noopener noreferrer"&gt;serverctl&lt;/a&gt;, and the interesting part was not the formula. It was the two moments where the naive version gives you a wrong number and nothing warns you.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is actually inside the file
&lt;/h2&gt;

&lt;p&gt;The first lines of &lt;code&gt;/proc/stat&lt;/code&gt; look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cpu  1000 0 500 8000 200 0 100 0 0 0
cpu0 250 0 125 2000 50 0 25 0 0 0
cpu1 250 0 125 2000 50 0 25 0 0 0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;cpu&lt;/code&gt; line is the aggregate, and &lt;code&gt;cpu0&lt;/code&gt;, &lt;code&gt;cpu1&lt;/code&gt;, and so on are the individual cores. Each column is a &lt;strong&gt;cumulative count of jiffies since boot&lt;/strong&gt;, in this order:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;user&lt;/code&gt; — normal processes in user space&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;nice&lt;/code&gt; — niced processes in user space&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;system&lt;/code&gt; — kernel time&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;idle&lt;/code&gt; — idle&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;iowait&lt;/code&gt; — waiting on I/O&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;irq&lt;/code&gt; — hardware interrupts&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;softirq&lt;/code&gt; — software interrupts&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;steal&lt;/code&gt; — time the hypervisor took away from this machine&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;guest&lt;/code&gt;, &lt;code&gt;guest_nice&lt;/code&gt; — time running a guest VM's CPU&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A jiffy is usually &lt;strong&gt;10 milliseconds&lt;/strong&gt; (&lt;code&gt;USER_HZ = 100&lt;/code&gt;). So those numbers are not milliseconds and they are not percentages. They are ticks.&lt;/p&gt;

&lt;h2&gt;
  
  
  The formula
&lt;/h2&gt;

&lt;p&gt;Take two samples, subtract, and the delta tells you how your cores spent the last interval:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;usage = 1 - (idle_delta / total_delta)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is the whole idea. In Go, with the eight counters that matter:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="nc"&gt;UsagePercent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prev&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;curr&lt;/span&gt; &lt;span class="nc"&gt;CPUSample&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="kt"&gt;float64&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;totalDelta&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;curr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Total&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;prev&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Total&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="n"&gt;totalDelta&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="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;idleDelta&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;curr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;IdleTime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;prev&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;IdleTime&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="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="kt"&gt;float64&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;idleDelta&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="kt"&gt;float64&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;totalDelta&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two details in those six lines are not accidental. &lt;code&gt;totalDelta == 0&lt;/code&gt; returns &lt;code&gt;0&lt;/code&gt; instead of &lt;code&gt;NaN&lt;/code&gt;, because two reads that land on the same tick are possible and a &lt;code&gt;NaN&lt;/code&gt; in a dashboard is a bug that travels. And &lt;code&gt;IdleTime()&lt;/code&gt; is &lt;code&gt;idle + iowait&lt;/code&gt;, which is a decision I will come back to.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the first reading always lies
&lt;/h2&gt;

&lt;p&gt;Here is the trap. You open the file once, compute &lt;code&gt;1 - idle/total&lt;/code&gt;, and get a number. That number is the average CPU usage &lt;strong&gt;since the machine booted&lt;/strong&gt;, not now.&lt;/p&gt;

&lt;p&gt;It is also, in practice, not even that. It is the average since boot computed from a single sample, which means it is a statistic about the last three days of uptime shown in a widget labelled "now". A server that has been idle for a week and just started compiling will show 2%.&lt;/p&gt;

&lt;p&gt;So the collector keeps exactly one piece of state:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;CPUTracker&lt;/span&gt; &lt;span class="k"&gt;struct&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;prev&lt;/span&gt;    &lt;span class="nc"&gt;CPUSample&lt;/span&gt;
    &lt;span class="n"&gt;prevPer&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="nc"&gt;CPUSample&lt;/span&gt;
    &lt;span class="n"&gt;started&lt;/span&gt; &lt;span class="kt"&gt;bool&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On the first &lt;code&gt;Refresh&lt;/code&gt;, there is nothing to subtract from. The honest thing to do is say so:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;started&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;prev&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;prevPer&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;started&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;aggregate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;perCPU&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;make&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="kt"&gt;float64&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;perCPU&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="kc"&gt;false&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That third return value is &lt;code&gt;measured&lt;/code&gt;. The first call reports &lt;code&gt;0&lt;/code&gt; &lt;strong&gt;and&lt;/strong&gt; &lt;code&gt;false&lt;/code&gt;, and the dashboard renders "measuring…" instead of a fake &lt;code&gt;0%&lt;/code&gt;. The difference between "I don't know yet" and "zero" is the difference between a correct dashboard and a liar.&lt;/p&gt;

&lt;p&gt;In &lt;code&gt;internal/core/models.go&lt;/code&gt; that becomes a field with a comment I wrote for future me:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="nc"&gt;Measured&lt;/span&gt; &lt;span class="kt"&gt;bool&lt;/span&gt; &lt;span class="c1"&gt;// false on the first round, before a baseline sample&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The second trap: sampling too fast
&lt;/h2&gt;

&lt;p&gt;If one jiffy is 10 ms, reading the file every 100 ms gives you roughly 10 ticks per core to work with. Ten. Your error is on the order of one tick out of ten around 10% and it will jump around because the rounding is not smooth.&lt;/p&gt;

&lt;p&gt;At the 2-second interval serverctl uses by default, you get around 200 ticks per core and the quantization almost disappears.&lt;/p&gt;

&lt;p&gt;So "smoother" sampling makes the number &lt;strong&gt;worse&lt;/strong&gt;, not better. If you want a responsive graph, smooth the values you already have; do not read the kernel more often.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two decisions nobody documents
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Guest time is already inside user time.&lt;/strong&gt; Since Linux 2.6.24, the time a VM spends on a virtual CPU is counted in &lt;code&gt;user&lt;/code&gt; and &lt;code&gt;nice&lt;/code&gt; as well as in &lt;code&gt;guest&lt;/code&gt;. Add both columns to your total and you count it twice, which inflates the denominator and reports less usage than there is. My parser takes the first eight counters and deliberately stops before &lt;code&gt;guest&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="n"&gt;sample&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nf"&gt;parseCPULine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fields&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="mi"&gt;9&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;It is not laziness. It is the correct total.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Iowait counts as idle in my implementation&lt;/strong&gt;, so a machine blocked on a slow disk shows low CPU usage. That is defensible the CPU is genuinely not executing but it is not the same as "the machine is fine". If your service is slow while CPU sits at 5%, the interesting number is not in this file at all: it is in &lt;code&gt;steal&lt;/code&gt;, or in your disk latency.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to test it without touching the kernel
&lt;/h2&gt;

&lt;p&gt;The collector takes a root path:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;System&lt;/span&gt; &lt;span class="k"&gt;struct&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;root&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="nc"&gt;New&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;root&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nc"&gt;System&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;root&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;root&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;Production passes &lt;code&gt;/&lt;/code&gt;. Tests pass a directory with a fixture that looks exactly like the real file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cpu  1000 0 500 8000 200 0 100 0 0 0
cpu0 250 0 125 2000 50 0 25 0 0 0
cpu1 250 0 125 2000 50 0 25 0 0 0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With that, I can test the aggregate, the per-core parsing, a malformed line, an empty file and a missing aggregate row, without a VM and without depending on whatever my PC is doing during the test run.&lt;/p&gt;

&lt;p&gt;If you take one idea from this post, take that one: &lt;strong&gt;a collector that cannot be pointed at a fixture is a collector you will never trust.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;/proc/stat&lt;/code&gt; gives you counters. You need two samples. The first one lies because it has no baseline, so report "not measured yet" instead of zero. Do not sample faster than your tick resolution allows. Do not add guest to user. And decide, explicitly, what iowait means to you.&lt;/p&gt;

&lt;p&gt;Everything &lt;code&gt;top&lt;/code&gt; shows you is that, plus formatting.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>beginners</category>
      <category>productivity</category>
    </item>
    <item>
      <title>How to Read Code You Didn't Write: Run, Enter, Follow, Break</title>
      <dc:creator>Felipe Castillo</dc:creator>
      <pubDate>Wed, 18 Nov 2026 20:40:23 +0000</pubDate>
      <link>https://dev.to/castillodk/how-to-read-code-you-didnt-write-run-enter-follow-break-1i51</link>
      <guid>https://dev.to/castillodk/how-to-read-code-you-didnt-write-run-enter-follow-break-1i51</guid>
      <description>&lt;p&gt;The first time you open a repository that is not yours, the instinct is to start reading files. Top to bottom. It feels productive for about four minutes, and then you close the tab, because nothing sticks.&lt;/p&gt;

&lt;p&gt;The problem is not the code. The problem is that reading a program is not reading a text. A text tells you what it means. A program tells you what it does &lt;em&gt;right now&lt;/em&gt;, and everything else why it is shaped that way, what used to be there, which of these five similar-looking functions actually runs is not written anywhere in the file you have open.&lt;/p&gt;

&lt;p&gt;Reading code is a skill, and like the rest of them it has a method. This is mine: &lt;strong&gt;run it, enter it, follow one path, break something.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this matters more than writing
&lt;/h2&gt;

&lt;p&gt;You will spend more time reading code than writing it. That is not a motivational phrase; it is arithmetic. Every change you make starts with understanding the surrounding code, every bug starts with finding the code that lies, and every review is reading.&lt;/p&gt;

&lt;p&gt;Writing is a small fraction of the job. And yet every course, every tutorial and every book teaches you to write, and almost nothing teaches you to read. So people improvise, and the improvisation is "open files until something clicks", which works, eventually, at the cost of days.&lt;/p&gt;

&lt;p&gt;A junior who can read unfamiliar code has a superpower that requires no permission: any repository on Earth is available today, for free.&lt;/p&gt;

&lt;h2&gt;
  
  
  The method
&lt;/h2&gt;

&lt;p&gt;Four steps, in this order. The order is the point.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Run it.&lt;/strong&gt; Before reading a single line.\&lt;br&gt;
&lt;strong&gt;2. Enter it.&lt;/strong&gt; Find the door and look at nothing else.\&lt;br&gt;
&lt;strong&gt;3. Follow one path.&lt;/strong&gt; End to end, ignoring the other 95%.\&lt;br&gt;
&lt;strong&gt;4. Break something.&lt;/strong&gt; Change one value and watch what screams.&lt;/p&gt;

&lt;p&gt;And a fifth that is not a step but a habit: &lt;strong&gt;ask the history.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I will use a real repository to show each one: &lt;a href="https://github.com/felipecastillo-b/serverctl" rel="noopener noreferrer"&gt;serverctl&lt;/a&gt;, a Go TUI for administering Linux servers over SSH. 107 Go files under &lt;code&gt;internal/&lt;/code&gt;, split across &lt;code&gt;ui&lt;/code&gt;, &lt;code&gt;core&lt;/code&gt;, &lt;code&gt;collectors&lt;/code&gt; and &lt;code&gt;actions&lt;/code&gt;, plus the entrypoint in &lt;code&gt;cmd/&lt;/code&gt;. That is enough code to get lost in, which is exactly why it is a good example.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 1: Run it
&lt;/h3&gt;

&lt;p&gt;Before you read the code, make the program work. Clone it, build it, execute it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/felipecastillo-b/serverctl.git
&lt;span class="nb"&gt;cd&lt;/span&gt; serverctl
make build
./bin/serverctl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This sounds like a detour and it is the single highest-value step. A running program answers questions the source code cannot: it tells you which of these features are real, which screen opens first, what happens when a file is missing, and where the output comes from.&lt;/p&gt;

&lt;p&gt;It also builds the vocabulary. In serverctl you press a key and see a dashboard with CPU, memory, load and uptime; you press tab and you are in processes; you press &lt;code&gt;?&lt;/code&gt; and a help overlay appears. Now you know what the words mean before you meet them in the code.&lt;/p&gt;

&lt;p&gt;If the build fails, do not skip ahead. Fixing the build is the first real exercise in reading the project: the error names a version, a dependency, or a missing header, and that is the first true thing you have learned about how it is put together.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Enter it
&lt;/h3&gt;

&lt;p&gt;Every program has a door. In Go it is &lt;code&gt;main&lt;/code&gt;, and by convention it lives in &lt;code&gt;cmd/&amp;lt;binary-name&amp;gt;/&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Open exactly one file: &lt;code&gt;cmd/serverctl/main.go&lt;/code&gt;. It is 72 lines, and those 72 lines describe the entire shape of the program:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;flags: &lt;code&gt;-version&lt;/code&gt; and &lt;code&gt;-config&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;config.Load(path)&lt;/code&gt; to read YAML, with defaults when the file is missing&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;keys.DefaultGlobal()&lt;/code&gt; and &lt;code&gt;global.ApplyOverrides(cfg.Keys)&lt;/code&gt; to apply your keybindings&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;screens.ValidateScreenKeys(cfg.ScreenKeys)&lt;/code&gt; to reject invalid ones&lt;/li&gt;
&lt;li&gt;one line that starts everything: &lt;code&gt;tea.NewProgram(app.New(cfg), tea.WithAltScreen())&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is a compressed map of the application. Config is loaded first, validated before the terminal takes over, and then handed to a single model that owns the interface.&lt;/p&gt;

&lt;p&gt;Do not read the rest of the code yet. You now know where the program starts and what it needs to start. That is enough for step three.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Follow one path
&lt;/h3&gt;

&lt;p&gt;Now pick one thing the program does and trace it from the door to the kernel, ignoring everything else. One path. Not all of them.&lt;/p&gt;

&lt;p&gt;Take the dashboard. From step two, you know it is created by &lt;code&gt;app.New(cfg)&lt;/code&gt;. Open &lt;code&gt;internal/ui/app/app.go&lt;/code&gt;. The comment at the top says what you would have guessed by now: it hosts the sidebar, the active screen, the refresh ticker, the keymap, the mouse input, the help overlay and the command palette.&lt;/p&gt;

&lt;p&gt;That is still too big. Go narrower. The dashboard needs CPU numbers. Where do they come from?&lt;/p&gt;

&lt;p&gt;This is the moment the method pays for itself. In serverctl, &lt;code&gt;internal/core/ports.go&lt;/code&gt; defines interfaces: &lt;code&gt;UnitLister&lt;/code&gt;, &lt;code&gt;JournalReader&lt;/code&gt;, &lt;code&gt;StorageLister&lt;/code&gt;, &lt;code&gt;ContainerLister&lt;/code&gt; and friends. The UI depends on those interfaces, not on &lt;code&gt;/proc&lt;/code&gt;. The things that implement them live in &lt;code&gt;internal/collectors/&lt;/code&gt;, and the things that &lt;em&gt;change&lt;/em&gt; the system live in a separate package, &lt;code&gt;internal/actions/&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;So the path is: screen asks a port, a collector implements it, the collector reads &lt;code&gt;/proc&lt;/code&gt; or D-Bus, the data comes back as a typed struct.&lt;/p&gt;

&lt;p&gt;You have just learned the architecture from the outside in, by following one number, instead of memorizing a diagram. And now the interface names make sense, because you needed one of them.&lt;/p&gt;

&lt;p&gt;This is also how you read a repository with 107 files: you do not read 107 files. You read five, and you learn that the other 102 follow the same shape.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Break something
&lt;/h3&gt;

&lt;p&gt;Change one thing and observe the failure. This is faster than reading the code that handles it.&lt;/p&gt;

&lt;p&gt;In serverctl, the config file lives at &lt;code&gt;~/.config/serverctl/config.yaml&lt;/code&gt; and accepts a &lt;code&gt;keys&lt;/code&gt; section. Do this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;quit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ctrl+q&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then change &lt;code&gt;quit&lt;/code&gt; to something invalid — &lt;code&gt;quit: notakey&lt;/code&gt; — and start the program. It refuses to open the interface and prints a readable error, before it ever takes over your terminal. That tells you something no amount of reading would have made obvious: validation happens &lt;em&gt;before&lt;/em&gt; the alternate screen starts, deliberately.&lt;/p&gt;

&lt;p&gt;And the source says exactly that, in a comment right above the call, explaining that &lt;code&gt;app.New&lt;/code&gt; trusts the values are valid so they must be checked first. You earned the comment by breaking the thing it protects. That is the difference between having read it and having learned it.&lt;/p&gt;

&lt;p&gt;Break things on purpose. Delete a file the program expects. Pass a flag with a wrong value. Point it at a path that does not exist. Every failure is a free lesson about how the code is ordered, and order is the part of a codebase that documentation never captures.&lt;/p&gt;

&lt;h3&gt;
  
  
  The fifth habit: ask the history
&lt;/h3&gt;

&lt;p&gt;The code tells you what exists. The history tells you what was tried and removed.&lt;/p&gt;

&lt;p&gt;serverctl's README has one line that is a small essay on its own: version 0.5.0 shipped SMART disk health, and version 0.5.1 removed it, because SMART reads require root or a raw I/O capability, and the whole project refuses to escalate privileges.&lt;/p&gt;

&lt;p&gt;Nobody reading the current source would find that. The feature is gone. The reason is gone with it. It survives in a changelog and in &lt;code&gt;git log&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;So when something looks strange — an empty function, a configuration option nobody uses, a TODO from two years ago — do not assume the author was careless. Ask:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git log --oneline -- path/to/the/strange/file
git blame path/to/the/strange/file
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Nine times out of ten, the strange thing is a scar. The tenth time it is genuinely bad code, and now you have evidence instead of an opinion.&lt;/p&gt;

&lt;h2&gt;
  
  
  Draw five boxes
&lt;/h2&gt;

&lt;p&gt;When you finish, close the editor and draw the program on paper. Five boxes, arrows between them, no detail.&lt;/p&gt;

&lt;p&gt;For serverctl mine would be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;cmd/serverctl&lt;/code&gt; — flags and wiring&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;internal/ui&lt;/code&gt; — models, screens, sidebar, palette&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;internal/core&lt;/code&gt; — domain types and the ports the UI depends on&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;internal/collectors&lt;/code&gt; — read-only adapters over &lt;code&gt;/proc&lt;/code&gt;, &lt;code&gt;/sys&lt;/code&gt;, D-Bus&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;internal/actions&lt;/code&gt; — the only package allowed to change anything&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you cannot draw it, you did not understand it; you memorized it. And memorized code disappears in a week.&lt;/p&gt;

&lt;p&gt;The repository already has this map in &lt;code&gt;ARCHITECTURE.md&lt;/code&gt;, with a layer table and a module table. Using existing documentation is not cheating, it is the fastest legal move. But verify it against the code: documentation ages, and the one thing worse than no map is a map of a city that was demolished two releases ago.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three ways to do this badly
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Reading breadth-first.&lt;/strong&gt; Opening thirty files in ten minutes feels like progress and produces nothing. Depth over coverage, one path at a time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reading without running.&lt;/strong&gt; You are reading a description of a program, written in a language designed for machines. Run it, or you are doing literary criticism.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Judging before understanding.&lt;/strong&gt; "This is badly written" almost always means "I do not know why it is like this yet". That line in &lt;code&gt;main.go&lt;/code&gt; that ignores an error and discards it with &lt;code&gt;_, _ =&lt;/code&gt; looks careless — until you read the comment explaining that the linter requires an explicit decision and there is no recovery if writing to stderr fails. Two lines of context change the verdict completely.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it this week
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Pick a repository you already use and have never read. Any size.&lt;/li&gt;
&lt;li&gt;Run it, enter it, follow one path, break one thing.&lt;/li&gt;
&lt;li&gt;Draw the five boxes.&lt;/li&gt;
&lt;li&gt;Write one paragraph: what would break if you deleted the file at the center of the path you followed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That paragraph is worth more than ten tutorials, because it is the only proof that you actually understood something.&lt;/p&gt;

&lt;h2&gt;
  
  
  The last thing
&lt;/h2&gt;

&lt;p&gt;Nobody is going to give you permission to read a codebase. There is no onboarding for the repository you are curious about, no ticket, no reviewer. It is just there, and you can open it.&lt;/p&gt;

&lt;p&gt;That asymmetry is the best deal available to a junior: the most senior engineer in the world has exactly the same access to that source as you do, today, for free. Reading it is a skill you can start practising in the next five minutes.&lt;/p&gt;

&lt;p&gt;I wrote about &lt;a href="https://dev.to/en/post/how-to-think-like-a-programmer/"&gt;how programmers think&lt;/a&gt; before. This is the other half: thinking is what you do once you can read.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>resources</category>
    </item>
    <item>
      <title>Why Your Coding Agent Costs 5x More Than It Should (It Is Not the Model)</title>
      <dc:creator>Felipe Castillo</dc:creator>
      <pubDate>Tue, 17 Nov 2026 22:30:25 +0000</pubDate>
      <link>https://dev.to/castillodk/why-your-coding-agent-costs-5x-more-than-it-should-it-is-not-the-model-31lm</link>
      <guid>https://dev.to/castillodk/why-your-coding-agent-costs-5x-more-than-it-should-it-is-not-the-model-31lm</guid>
      <description>&lt;p&gt;Runta published FrontierHarness Eval v1.1 today: 27,280 agent runs, 83 billion tokens, 22 harness configurations, 5 models, 62 terminal tasks. It is the largest public comparison of coding agents I have seen, and it is free to read.&lt;/p&gt;

&lt;p&gt;I read it expecting one answer and found another. The headline everyone will repeat is "the harness matters as much as the model". That is not what the data says. What the data says is more useful, and more uncomfortable.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it measured
&lt;/h2&gt;

&lt;p&gt;Five open models served by one provider: GLM-5.3, GLM-5.3 Flash, DeepSeek V4.1 Flash, Muse and Kimi-K3. Eighteen harnesses, with four DeepSeek Harness profiles counting separately and OpenCode running at two versions, for 22 configurations. Every harness ran the same 62 terminal tasks, four attempts each, in an isolated runtime that is deleted afterwards, at the model's maximum reasoning effort.&lt;/p&gt;

&lt;p&gt;Two metrics matter for everything below. &lt;strong&gt;Cost per task&lt;/strong&gt; is the average bill of one attempt. &lt;strong&gt;Cost per pass&lt;/strong&gt; is that bill divided by how often the harness succeeded. The second is the honest one: a cheap agent that never finishes is the most expensive agent you can buy.&lt;/p&gt;

&lt;h2&gt;
  
  
  The easy reading is the wrong one
&lt;/h2&gt;

&lt;p&gt;Here is the number that contradicts the headline. A two-way analysis of variance splits the cost of a run into three parts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the &lt;strong&gt;model&lt;/strong&gt; explains &lt;strong&gt;92.8%&lt;/strong&gt; of the variation&lt;/li&gt;
&lt;li&gt;the &lt;strong&gt;harness&lt;/strong&gt; explains &lt;strong&gt;2.3%&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;the &lt;strong&gt;pair&lt;/strong&gt; of model and harness explains &lt;strong&gt;4.9%&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So no: the harness does not matter as much as the model. The model sets the level of your bill.&lt;/p&gt;

&lt;p&gt;But here is the other half, and it is the half that applies to you. &lt;strong&gt;With the model fixed&lt;/strong&gt;, the most expensive harness cost between &lt;strong&gt;1.8 and 5.0 times&lt;/strong&gt; more per task than the cheapest one. Same model. Same tasks. Same provider.&lt;/p&gt;

&lt;p&gt;Two true statements that sound contradictory:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Across models, the model decides how expensive you are.&lt;/li&gt;
&lt;li&gt;Within a model, the harness decides how expensive you are.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The model sets the price of the ticket. The harness decides how many tickets you buy. If you are already committed to a model, the harness is the only lever left, and it is a lever with a 5× range.&lt;/p&gt;

&lt;p&gt;The extreme case is instructive: with DeepSeek, Cline CLI cost &lt;strong&gt;5.0 times&lt;/strong&gt; what OpenCode v1 cost per task, and passed &lt;strong&gt;2.0 points&lt;/strong&gt; more often. You paid five times more for two points. With the other four models, the cheapest harness was at most 0.4 points behind the most expensive one. In four out of five cases, the expensive harness was not buying quality. It was buying steps.&lt;/p&gt;

&lt;h2&gt;
  
  
  The number that should worry you
&lt;/h2&gt;

&lt;p&gt;Nobody is talking about this one, and it is the one I would put on a slide.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;64.5% of the total list-price spend went to trials that did not pass.&lt;/strong&gt; 52.7% to failures, 11.8% to timeouts. Two out of every three dollars bought a wrong answer.&lt;/p&gt;

&lt;p&gt;It gets worse. Among the five best-value harnesses, &lt;strong&gt;68% to 82% of the failed runs ended with a final answer, not at the time limit.&lt;/strong&gt; The agent did not run out of time. It stopped, decided it was done, and wrote a confident summary of work that a verifier then failed.&lt;/p&gt;

&lt;p&gt;The paper includes the trace. Codex CLI with GLM-5.3, on a task about cancelling async work, ends with this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Agent:    - Validated with system Python, including concurrency and
            cancellation-cleanup tests.
Verifier: FAILED test_tasks_cancel_above_max_concurrent
          assert stdout.count("Cleaned up.") == 2
          AssertionError: assert 0 == 2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;"Validated with system Python." It was not validated. And this is not a rare failure mode: it is the normal one. The agent that fails does not fail loudly. It fails with a report.&lt;/p&gt;

&lt;p&gt;If you take one thing from this benchmark, do not take the ranking. Take that. You are not paying for code. You are paying for confidence, and confidence is the cheapest thing a model produces.&lt;/p&gt;

&lt;p&gt;This is the same conclusion I reached writing about &lt;a href="https://dev.to/en/post/what-to-learn-in-2027-ai-agents-opencode-gentle-ai"&gt;what to learn in 2027&lt;/a&gt;, now with a number attached: verifying beats generating, and generating is what you already pay for.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your bill is in the steps, not the prompt
&lt;/h2&gt;

&lt;p&gt;The authors tested four candidate explanations for cost per pass: starting prompt size, number of tools, cache hit rate, and steps.&lt;/p&gt;

&lt;p&gt;Only one correlated: &lt;strong&gt;steps, at +0.51&lt;/strong&gt; (p = 0.015). The other three sat between −0.03 and +0.02 and were statistically indistinguishable from noise.&lt;/p&gt;

&lt;p&gt;The illustration is mini-SWE-agent. It has the smallest starting prompt of all 22 configurations, &lt;strong&gt;882 tokens&lt;/strong&gt;, which sounds like the efficient choice. It took &lt;strong&gt;38 steps per pass&lt;/strong&gt;, and landed 17th of 22 in cost per pass.&lt;/p&gt;

&lt;p&gt;The mechanism is simple once you see it: every step resends the whole context. A trial used between &lt;strong&gt;2.0 and 4.8 million input tokens&lt;/strong&gt;, while the largest first request in the entire benchmark was &lt;strong&gt;21,365 tokens&lt;/strong&gt;, under 1% of the total. Optimising your system prompt is optimising the 1%.&lt;/p&gt;

&lt;p&gt;What actually moves the bill is the number of turns the agent takes before it stops. That is a design question, not a prompt question: how you split the task, how big the scope is, when it decides it is done, and whether anything stops it.&lt;/p&gt;

&lt;h2&gt;
  
  
  There is no "best harness"
&lt;/h2&gt;

&lt;p&gt;The median harness moved &lt;strong&gt;11 of 22 places&lt;/strong&gt; in cost when the model changed. Codex CLI was the cheapest per task with GLM-5.3 and &lt;strong&gt;16th&lt;/strong&gt; with Kimi-K3. DeepSeek Harness: Creator went from 1st with Muse to 21st with GLM Flash. OpenCode v1 was 1st with DeepSeek and 13th with Muse.&lt;/p&gt;

&lt;p&gt;This is not rerun noise. Splitting the attempts in half gives a rank correlation of &lt;strong&gt;0.71&lt;/strong&gt; when the model is the same, and &lt;strong&gt;0.26&lt;/strong&gt; when it is different.&lt;/p&gt;

&lt;p&gt;Which means: any list titled "the best coding agent" that does not name the model is telling you nothing. Including, probably, the one you read last week. When you change model, re run the comparison with your own tasks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Paying more does not buy passing more
&lt;/h2&gt;

&lt;p&gt;Across models, the rank correlation between cost per task and pass rate ranged from &lt;strong&gt;−0.39 to +0.22&lt;/strong&gt;. Four of the five models had a negative correlation: the more expensive harness per pass passed &lt;em&gt;less&lt;/em&gt; often.&lt;/p&gt;

&lt;p&gt;The most expensive harness per pass was Antigravity CLI at &lt;strong&gt;$1.63&lt;/strong&gt;. The cheapest was Codex CLI at &lt;strong&gt;$0.937&lt;/strong&gt;, over all models. And the harness with the highest pass rate placed between 5th and 20th of 22 in cost per task. Fast, cheap and correct do not line up in a straight line.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where OpenCode lands
&lt;/h2&gt;

&lt;p&gt;I use OpenCode, so I read this part twice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OpenCode v2 had the lowest cost per task of any configuration: $0.561.&lt;/strong&gt; It sits on the efficiency frontier in the main chart, with Pi, Codex CLI and ZCode, which tied for the best pass rate at 61.9%.&lt;/p&gt;

&lt;p&gt;It is not the most accurate harness. It is the cheapest, and it is close enough to be on the frontier. For someone paying their own bills, that is the relevant column.&lt;/p&gt;

&lt;p&gt;I would be careful with that number anyway, and here is why the authors would agree with me: &lt;strong&gt;each pass rate carries a 95% interval of about ±10 points&lt;/strong&gt;, over 62 tasks. A difference of a few points between harnesses is a tie. "OpenCode is 3 points behind X" is not a finding. "OpenCode is on the frontier at the lowest cost per task" is.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this benchmark does not tell you
&lt;/h2&gt;

&lt;p&gt;Four things, and none of them invalidate it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It is a vendor benchmark.&lt;/strong&gt; Runta sells the execution layer the trials ran on. Its founder said so on Hacker News. The methodology is public and the logs are auditable, which is more than most vendors do, but the incentive is worth naming.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Open models only.&lt;/strong&gt; No Claude, no GPT. If you run Claude Code or Codex CLI with a closed model, the ranking tells you about the harness's shape, not your bill.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One provider, list prices.&lt;/strong&gt; Caching and pricing come from Baseten. Change provider and the cost ranks can move.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Default settings and one task set.&lt;/strong&gt; 62 terminal tasks with time limits from 15 minutes to 8 hours is broad, but it is not your repository.&lt;/p&gt;

&lt;p&gt;And one finding worth its own paragraph: &lt;strong&gt;216 trials were flagged for reward hacking and scored zero, 163 of them for online lookups.&lt;/strong&gt; The agents tried to find the answer on the internet rather than solve the task. That is not a benchmark artifact. That is what your agent does when nobody is looking, and it is an argument for the deny list and the review step more than any of the cost numbers.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I am doing with this tomorrow
&lt;/h2&gt;

&lt;p&gt;Three things, in this order.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Measure my own tasks.&lt;/strong&gt; The paper's final advice is the only advice that survives its own limitations: build a small private set of tasks you actually do, and compare two harnesses on it. Ten tasks is enough to see a 5× difference. It is not enough to see a 3 point one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Cut steps, not tokens.&lt;/strong&gt; If a task takes 40 turns, the problem is the task definition. Smaller scope, clearer stop condition, and a check before the agent declares victory. That is where the money is.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Keep the verifier.&lt;/strong&gt; If 68–82% of failed runs end with a confident answer, then "the agent said it worked" is worth nothing. A test that fails is worth more than a summary that sounds right.&lt;/p&gt;

&lt;p&gt;None of this is a reason to change tools. It is a reason to stop treating the tool choice as the decision.&lt;/p&gt;

&lt;h2&gt;
  
  
  The honest summary
&lt;/h2&gt;

&lt;p&gt;The benchmark answers "which harness is cheapest for this model" and answers it well. It does not answer "which agent writes better code", and it says so.&lt;/p&gt;

&lt;p&gt;The number I will remember is not $0.561, and it is not 5×. It is 64.5%. Two thirds of the money spent on coding agents in this study bought runs that failed, and most of those failures were delivered with a straight face.&lt;/p&gt;

&lt;p&gt;That is the actual state of the tooling in November 2026. Plan accordingly.&lt;/p&gt;

&lt;p&gt;Status of this article: November 17, 2026. Sources: &lt;a href="https://runta.com/blog/introducing-frontierharness-eval-v1-1/" rel="noopener noreferrer"&gt;FrontierHarness Eval v1.1&lt;/a&gt; and the &lt;a href="https://frontierharness.org/" rel="noopener noreferrer"&gt;live leaderboard&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>beginners</category>
      <category>productivity</category>
      <category>llm</category>
    </item>
    <item>
      <title>What to Learn in 2027: AI Agents, Not Another Framework</title>
      <dc:creator>Felipe Castillo</dc:creator>
      <pubDate>Mon, 16 Nov 2026 23:25:13 +0000</pubDate>
      <link>https://dev.to/castillodk/what-to-learn-in-2027-ai-agents-not-another-framework-2023</link>
      <guid>https://dev.to/castillodk/what-to-learn-in-2027-ai-agents-not-another-framework-2023</guid>
      <description>&lt;p&gt;Disclaimer: I am not the person who predicts the market. I am a junior backend developer who reads job postings, gets rejected, and adjusts. So treat this as field notes, not a forecast.&lt;/p&gt;

&lt;p&gt;But there is one thing I am sure of, because I lived it this year: &lt;strong&gt;the hard part of my job stopped being writing the code.&lt;/strong&gt; The hard part is reading what an agent wrote, at speed, and knowing whether it is right.&lt;/p&gt;

&lt;p&gt;That is the skill worth building in 2027.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually changed
&lt;/h2&gt;

&lt;p&gt;Two years ago, the bottleneck was typing. You knew what you wanted; producing it took hours. Agents compressed that to minutes.&lt;/p&gt;

&lt;p&gt;The bottleneck moved. Now a model produces a plausible solution in forty seconds, and you have maybe three minutes to decide if it is correct, idiomatic, safe, and consistent with the rest of your codebase. If you cannot do that, the agent did not make you faster. It made you risky.&lt;/p&gt;

&lt;p&gt;This is why "learn to prompt" is bad advice. Prompting is a skill measured in days. &lt;strong&gt;Reviewing generated code is a skill measured in years&lt;/strong&gt;, and it is built on the same foundations everyone keeps telling you to skip: data structures, complexity, how a database actually executes a query, how TCP works, how a process fails at 3am.&lt;/p&gt;

&lt;p&gt;An agent will write you a function that does a linear scan inside a loop and looks perfectly reasonable. If you do not know why that is O(n²), you ship it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The five things I would focus on
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Fundamentals, but for a different reason than before.&lt;/strong&gt; Not to write code from memory, but to audit code you did not write. That is a different exercise. Reading &lt;code&gt;EXPLAIN ANALYZE&lt;/code&gt; matters more than ever, because the agent will not run it for you with judgment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Linux and the terminal, properly.&lt;/strong&gt; Agents live in your shell. They run commands, read files, spawn processes. The developers who get the most out of them are the ones who already know what the command should have been. If you cannot debug a service that will not start, the agent's confident explanation will convince you of the wrong thing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. One agent, configured well.&lt;/strong&gt; Not five installed and half-used. The difference between a mediocre and a good agent setup is not the model. It is context: what it knows about your project, what it can read, what it is allowed to do, and whether it remembers yesterday.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. MCP, and how tools reach a model.&lt;/strong&gt; The Model Context Protocol is how an agent talks to your database, your browser, your docs. Learning to wire one tool properly teaches you more about agents than ten tutorials.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Verification.&lt;/strong&gt; Tests, diffs, reproductions. This is the whole game. An agent that cannot prove its work is a guess with good formatting. This is also the thing that makes you employable, because it is the thing that is hard to fake.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would stop doing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Collecting frameworks.&lt;/strong&gt; Another JS meta-framework in 2027 is a commodity. Nobody is hiring for it specifically.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watching "AI for developers" content without building anything.&lt;/strong&gt; I did this for weeks. It is entertainment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Learning tools that only work inside a vendor's IDE.&lt;/strong&gt; Prefer tools that run in your terminal and own your files.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The setup I actually use
&lt;/h2&gt;

&lt;p&gt;I run OpenCode v2, configured with Gentle-AI. Here is the reasoning, and then the exact install.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why OpenCode.&lt;/strong&gt; It is open source, it runs in the terminal, it is not tied to one model provider, and it is extensible through agents, skills, commands, plugins and MCP servers. If you are on Linux and live in a terminal, that combination is hard to beat. It also ships as a desktop app and a web interface if you want them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Gentle-AI on top.&lt;/strong&gt; An agent with no workflow forgets everything between sessions, has no opinion about your project, and cannot prove what it did. Gentle-AI adds three things: persistent memory (Engram), a workflow for how work gets done (ODD), and an evidence-based review step (RDD). It also gives your agent a large skills library that loads on demand.&lt;/p&gt;

&lt;p&gt;Important, and the project says it plainly: &lt;strong&gt;Gentle-AI never installs an AI agent for you.&lt;/strong&gt; It configures the one you already have. That is a good design, and it is worth knowing before you start.&lt;/p&gt;

&lt;h3&gt;
  
  
  Install OpenCode
&lt;/h3&gt;

&lt;p&gt;Pick one method.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# curl (recommended on Linux)&lt;/span&gt;
curl -fsSL https://opencode.ai/v2/install &lt;span class="o"&gt;|&lt;/span&gt; bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Homebrew&lt;/span&gt;
brew install anomalyco/tap/opencode-v2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# npm&lt;/span&gt;
npm install -g @opencode/cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# pnpm&lt;/span&gt;
pnpm add -g --allow-build=@opencode/cli @opencode/cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Arch there is also an AUR package, &lt;code&gt;paru -S opencode-beta&lt;/code&gt;, which tracks the beta channel.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo pacman -S opencode
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;opencode --version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first run opens the terminal interface. Before you ask it anything, connect a model:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/connect
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That opens the provider picker. You can bring your own API key, or use a subscription plan. Do not skip this and then wonder why the agent does nothing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Install Gentle-AI
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# macOS / Linux, script installer&lt;/span&gt;
curl -fsSL https://raw.githubusercontent.com/Gentleman-Programming/gentle-ai/main/scripts/install.sh &lt;span class="o"&gt;|&lt;/span&gt; bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Homebrew&lt;/span&gt;
brew install gentleman-programming/tap/gentle-ai
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# from source, needs Go&lt;/span&gt;
go install github.com/gentleman-programming/gentle-ai/v4/cmd/gentle-ai@latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you use &lt;code&gt;go install&lt;/code&gt;, the binary lands in &lt;code&gt;$(go env GOPATH)/bin&lt;/code&gt;, which is not on your &lt;code&gt;PATH&lt;/code&gt; by default. Add it once, then open a new terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"export PATH=\"$(go env GOPATH)/bin:\$PATH\""&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; ~/.bashrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then run the installer interface:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gentle-ai
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvrj724whu1m6ghls6hwy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvrj724whu1m6ghls6hwy.png" alt="Gentle-AI installer interface selecting agents and components" width="800" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It asks three things: which agents to configure, which components to install, and which persona to apply. You do not need Claude Code and Codex and Cursor at once. Start with OpenCode.&lt;/p&gt;

&lt;p&gt;If you prefer flags over the interface, or you want to preview first:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gentle-ai install --agent opencode --dry-run
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;--dry-run&lt;/code&gt; prints the plan and touches nothing. Use it the first time. When you are happy with the plan, drop the flag.&lt;/p&gt;

&lt;p&gt;Then verify. &lt;code&gt;doctor&lt;/code&gt; is read-only; it never changes anything:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gentle-ai doctor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2F7cnv73xoq3cznb08ddgm.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%2F7cnv73xoq3cznb08ddgm.webp" alt="Gentle-AI doctor output" width="351" height="327"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Back in OpenCode, the agent now has memory, a workflow, and a review step. It also keeps a snapshot of your config before every write it makes, which matters the first time you break something.&lt;/p&gt;

&lt;h3&gt;
  
  
  Updating both
&lt;/h3&gt;

&lt;p&gt;Two independent things to keep current.&lt;/p&gt;

&lt;p&gt;OpenCode updates itself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;opencode upgrade
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It detects how you installed it. If you installed with a package manager that owns the version, pass the method explicitly, for example &lt;code&gt;opencode upgrade --method brew&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Gentle-AI depends on how you installed it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Homebrew&lt;/span&gt;
brew upgrade gentle-ai
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# script installer — re-run it&lt;/span&gt;
curl -fsSL https://raw.githubusercontent.com/Gentleman-Programming/gentle-ai/main/scripts/install.sh &lt;span class="o"&gt;|&lt;/span&gt; bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# from source&lt;/span&gt;
go install github.com/gentleman-programming/gentle-ai/v4/cmd/gentle-ai@latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Updating the binary is not the last step. Managed configs and skills have to match the new version:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gentle-ai sync
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;sync&lt;/code&gt; rewrites the managed files, keeps your own settings, and leaves a backup. Then run &lt;code&gt;gentle-ai doctor&lt;/code&gt; again. If you update only the binary and skip &lt;code&gt;sync&lt;/code&gt;, you end up with a new CLI reading old prompts, which is the kind of problem that looks like a model bug and is not.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gentle-ai --version
opencode --version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  What a session looks like
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/projects/your-app
opencode
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fnuensay8ogs3au05mllk.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%2Fnuensay8ogs3au05mllk.webp" alt="OpenCode terminal session working on a repository" width="800" height="473"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The difference from a chat window is that the agent reads your repository, runs your commands, and edits files. Which is exactly why the next part matters.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part nobody puts in the announcement
&lt;/h2&gt;

&lt;p&gt;An agent with write access and no verification is a very fast way to introduce bugs you will not notice for a month. The first week I used one, I accepted a refactor that passed no tests, because there were no tests to pass.&lt;/p&gt;

&lt;p&gt;So the workflow I would learn in 2027, in one line: &lt;strong&gt;make the agent prove it.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If the change is testable, write the test first and watch it fail. An agent that never sees a red test will happily ship a green one that tests nothing.&lt;/li&gt;
&lt;li&gt;Read the diff. All of it. Not the summary.&lt;/li&gt;
&lt;li&gt;Run the command yourself on the edge case the agent did not consider.&lt;/li&gt;
&lt;li&gt;If it says "this should work", that is not evidence.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is not a limitation of the tools. It is the job now.&lt;/p&gt;

&lt;h2&gt;
  
  
  A 90-day plan, if you want one
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Days 1 to 15.&lt;/strong&gt; Install OpenCode and Gentle-AI. Use them on one real project, not a tutorial. Break something and fix it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Days 16 to 45.&lt;/strong&gt; Pick one thing you already know well and make the agent do it, then review the result line by line. You will find something. That moment is the skill.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Days 46 to 75.&lt;/strong&gt; Add one MCP server that connects the agent to something you actually use. Read how it works, not just how to install it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Days 76 to 90.&lt;/strong&gt; Write the setup down. A short post, a README, a dotfiles repo. Explaining your workflow is how you find out which parts of it are real.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In 2027, "I know React" is not a differentiator. "I can direct an agent to build something and prove it works" is, because it requires everything underneath: fundamentals, Linux, testing, judgment.&lt;/p&gt;

&lt;p&gt;The tools will change. This post will be outdated before the year ends, and that is fine. The workflow it describes, memory, small steps, evidence, is the part that survives.&lt;/p&gt;

&lt;p&gt;If you take one thing from this article, take the sentence from the Gentle-AI README that I keep coming back to: &lt;strong&gt;verifying beats generating.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>agents</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Polybar: A Minimal Bar for Linux, From Install to Autostart</title>
      <dc:creator>Felipe Castillo</dc:creator>
      <pubDate>Mon, 16 Nov 2026 06:16:39 +0000</pubDate>
      <link>https://dev.to/castillodk/polybar-a-minimal-bar-for-linux-from-install-to-autostart-34n9</link>
      <guid>https://dev.to/castillodk/polybar-a-minimal-bar-for-linux-from-install-to-autostart-34n9</guid>
      <description>&lt;h2&gt;
  
  
  Polybar from Install to Autostart
&lt;/h2&gt;

&lt;p&gt;Most polybar tutorials assume you already live in a tiling window manager and know what a bar section is. This one does not. You install polybar, drop one config file, run it, and make it survive a reboot.&lt;/p&gt;

&lt;p&gt;Two things before we start, because they save people hours:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Polybar is &lt;strong&gt;X11 only&lt;/strong&gt;. On Wayland (sway, Hyprland, GNOME on Wayland) it will not work. Waybar is the usual alternative there.&lt;/li&gt;
&lt;li&gt;The config below uses the &lt;strong&gt;bspwm&lt;/strong&gt; workspace module, so it assumes bspwm. If you use i3 there is a one-line swap further down.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;By the end you get a 28px bar with workspaces on the left, the date in the center, and CPU, RAM, battery, wifi, volume and system tray on the right.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install
&lt;/h2&gt;

&lt;p&gt;Pick your distribution.&lt;/p&gt;

&lt;p&gt;Arch Linux:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo pacman -S polybar
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Debian and Ubuntu (on Ubuntu the package lives in &lt;code&gt;universe&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo apt update &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; sudo apt install polybar
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Fedora:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo dnf install polybar
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;openSUSE:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo zypper install polybar
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Void:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo xbps-install -S polybar
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Alpine:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo apk add polybar
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;NixOS, or any distro with Nix installed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nix profile install nixpkgs#polybar
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check that it landed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;polybar --version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If your distribution does not package it, compile from source. The &lt;a href="https://github.com/polybar/polybar/wiki/Compiling" rel="noopener noreferrer"&gt;compiling page in the wiki&lt;/a&gt; lists the build dependencies, and the full list is basically &lt;code&gt;cmake&lt;/code&gt;, &lt;code&gt;pkg-config&lt;/code&gt;, &lt;code&gt;python3&lt;/code&gt; and the xcb libraries.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the config file lives
&lt;/h2&gt;

&lt;p&gt;Polybar reads the first path that exists, in this order:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$XDG_CONFIG_HOME/polybar/config
$XDG_CONFIG_HOME/polybar/config.ini
$HOME/.config/polybar/config
$HOME/.config/polybar/config.ini
/etc/xdg/polybar/config.ini
/etc/polybar/config.ini
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On a normal setup that means &lt;code&gt;~/.config/polybar/config.ini&lt;/code&gt;. Create it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mkdir -p ~/.config/polybar
&lt;span class="nv"&gt;$EDITOR&lt;/span&gt; ~/.config/polybar/config.ini
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If your distro already dropped a config at &lt;code&gt;/etc/polybar/config.ini&lt;/code&gt;, do not edit that one. Package updates overwrite it. Copy it to your home directory and work there.&lt;/p&gt;

&lt;h2&gt;
  
  
  The config
&lt;/h2&gt;

&lt;p&gt;Paste this as is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ini"&gt;&lt;code&gt;&lt;span class="k"&gt;[bar/main]&lt;/span&gt;
&lt;span class="na"&gt;width&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;
&lt;span class="na"&gt;height&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;28&lt;/span&gt;
&lt;span class="na"&gt;radius&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="na"&gt;fixed-center&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;

&lt;span class="na"&gt;background&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="c1"&gt;#222222&lt;/span&gt;
&lt;span class="na"&gt;foreground&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="c1"&gt;#eeeeee&lt;/span&gt;

&lt;span class="na"&gt;line-size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;
&lt;span class="na"&gt;border-size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="na"&gt;padding-left&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="na"&gt;padding-right&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="na"&gt;module-margin&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;

&lt;span class="na"&gt;font-0&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;sans&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;

&lt;span class="na"&gt;modules-left&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;bspwm&lt;/span&gt;
&lt;span class="na"&gt;modules-center&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;date&lt;/span&gt;
&lt;span class="na"&gt;modules-right&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;cpu&lt;/span&gt; &lt;span class="n"&gt;memory&lt;/span&gt; &lt;span class="n"&gt;battery&lt;/span&gt; &lt;span class="n"&gt;wlan&lt;/span&gt; &lt;span class="n"&gt;pulseaudio&lt;/span&gt; &lt;span class="n"&gt;tray&lt;/span&gt;

&lt;span class="c1"&gt;#tray-position=right
#tray-padding=2
&lt;/span&gt;
&lt;span class="na"&gt;cursor-click&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;pointer&lt;/span&gt;
&lt;span class="na"&gt;cursor-scroll&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;ns&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;resize&lt;/span&gt;

&lt;span class="k"&gt;[module/bspwm]&lt;/span&gt;
&lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;internal&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;bspwm&lt;/span&gt;

&lt;span class="na"&gt;label-focused&lt;/span&gt;&lt;span class="o"&gt;=%&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;
&lt;span class="na"&gt;label-focused-foreground&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="c1"&gt;#222222&lt;/span&gt;
&lt;span class="na"&gt;label-focused-background&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="c1"&gt;#eeeeee&lt;/span&gt;
&lt;span class="na"&gt;label-focused-padding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;

&lt;span class="na"&gt;label-occupied&lt;/span&gt;&lt;span class="o"&gt;=%&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;
&lt;span class="na"&gt;label-occupied-foreground&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="c1"&gt;#eeeeee&lt;/span&gt;
&lt;span class="na"&gt;label-occupied-padding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;

&lt;span class="na"&gt;label-urgent&lt;/span&gt;&lt;span class="o"&gt;=%&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;
&lt;span class="na"&gt;label-urgent-foreground&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="c1"&gt;#ffffff&lt;/span&gt;
&lt;span class="na"&gt;label-urgent-background&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="c1"&gt;#cc3333&lt;/span&gt;
&lt;span class="na"&gt;label-urgent-padding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;

&lt;span class="na"&gt;label-empty&lt;/span&gt;&lt;span class="o"&gt;=%&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;
&lt;span class="na"&gt;label-empty-foreground&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="c1"&gt;#666666&lt;/span&gt;
&lt;span class="na"&gt;label-empty-padding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;

&lt;span class="k"&gt;[module/cpu]&lt;/span&gt;
&lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;internal&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;cpu&lt;/span&gt;
&lt;span class="na"&gt;interval&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;

&lt;span class="na"&gt;format-prefix&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"CPU"&lt;/span&gt;
&lt;span class="na"&gt;format-prefix-padding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;

&lt;span class="na"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=%&lt;/span&gt;&lt;span class="n"&gt;percentage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;%%&lt;/span&gt;

&lt;span class="k"&gt;[module/memory]&lt;/span&gt;
&lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;internal&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;memory&lt;/span&gt;
&lt;span class="na"&gt;interval&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;

&lt;span class="na"&gt;format-prefix&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"RAM"&lt;/span&gt;
&lt;span class="na"&gt;format-prefix-padding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;

&lt;span class="na"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=%&lt;/span&gt;&lt;span class="n"&gt;percentage_used&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;%%&lt;/span&gt;

&lt;span class="k"&gt;[module/battery]&lt;/span&gt;
&lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;internal&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;battery&lt;/span&gt;
&lt;span class="na"&gt;battery&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;BAT1&lt;/span&gt;
&lt;span class="na"&gt;adapter&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;ACAD&lt;/span&gt;

&lt;span class="na"&gt;poll-interval&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;

&lt;span class="na"&gt;format-charging&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;charging&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="na"&gt;format-discharging&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;discharging&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="na"&gt;format-full&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;full&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="na"&gt;label-charging&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"BAT %percentage%%"&lt;/span&gt;
&lt;span class="na"&gt;label-discharging&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"BAT %percentage%%"&lt;/span&gt;
&lt;span class="na"&gt;label-full&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"BAT FULL"&lt;/span&gt;

&lt;span class="k"&gt;[module/wlan]&lt;/span&gt;
&lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;internal&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;network&lt;/span&gt;
&lt;span class="na"&gt;interface&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;wlan0&lt;/span&gt;
&lt;span class="na"&gt;interval&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;

&lt;span class="na"&gt;format-connected&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;connected&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="na"&gt;format-disconnected&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;disconnected&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="na"&gt;label-connected&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"WiFi %essid%"&lt;/span&gt;
&lt;span class="na"&gt;label-disconnected&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"WiFi OFF"&lt;/span&gt;

&lt;span class="k"&gt;[module/pulseaudio]&lt;/span&gt;
&lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;internal&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;pulseaudio&lt;/span&gt;

&lt;span class="na"&gt;format-volume&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;volume&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="na"&gt;format-muted&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;muted&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="na"&gt;label-volume&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"VOL %percentage%%"&lt;/span&gt;
&lt;span class="na"&gt;label-muted&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"MUTE"&lt;/span&gt;

&lt;span class="k"&gt;[module/date]&lt;/span&gt;
&lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;internal&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;date&lt;/span&gt;
&lt;span class="na"&gt;interval&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;

&lt;span class="na"&gt;date&lt;/span&gt;&lt;span class="o"&gt;=%&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="o"&gt;/%&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="o"&gt;/%&lt;/span&gt;&lt;span class="no"&gt;Y&lt;/span&gt;
&lt;span class="na"&gt;time&lt;/span&gt;&lt;span class="o"&gt;=%&lt;/span&gt;&lt;span class="no"&gt;H&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="no"&gt;M&lt;/span&gt;

&lt;span class="na"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=%&lt;/span&gt;&lt;span class="n"&gt;date&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;

&lt;span class="k"&gt;[module/tray]&lt;/span&gt;
&lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;internal&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;tray&lt;/span&gt;
&lt;span class="na"&gt;tray-spacing&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One version check before moving on, because it changes the tray lines. &lt;code&gt;[module/tray]&lt;/code&gt; with &lt;code&gt;type=internal/tray&lt;/code&gt; needs &lt;strong&gt;polybar 3.7 or newer&lt;/strong&gt;. Debian 12 and Ubuntu 24.04 still ship 3.6.3, where that module type does not exist: polybar logs an error and the tray simply never appears. On 3.6 and older, remove &lt;code&gt;tray&lt;/code&gt; from &lt;code&gt;modules-right&lt;/code&gt; and uncomment &lt;code&gt;tray-position=right&lt;/code&gt;. That is exactly what those two legacy lines at the top are for. Confirm your version with &lt;code&gt;polybar --version&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The four values that will be wrong on your machine
&lt;/h2&gt;

&lt;p&gt;Polybar does not crash when a module points to hardware that does not exist. The module just disappears, and you spend twenty minutes thinking polybar is broken. Check these before you complain about anything else.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Battery and adapter.&lt;/strong&gt; &lt;code&gt;battery=BAT1&lt;/code&gt; and &lt;code&gt;adapter=ACAD&lt;/code&gt; are the names of the files in sysfs. Find yours:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ls /sys/class/power_supply/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The usual pairs are &lt;code&gt;BAT0&lt;/code&gt; with &lt;code&gt;AC&lt;/code&gt;, or &lt;code&gt;BAT1&lt;/code&gt; with &lt;code&gt;ADP1&lt;/code&gt;. If your laptop has two batteries, you will see &lt;code&gt;BAT0&lt;/code&gt; and &lt;code&gt;BAT1&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Network interface.&lt;/strong&gt; &lt;code&gt;interface=wlan0&lt;/code&gt; is the old naming scheme. Check the real name:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ip -br link
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Modern systems give you something like &lt;code&gt;wlp2s0&lt;/code&gt;, or &lt;code&gt;enp3s0&lt;/code&gt; for ethernet. Put the wireless one in &lt;code&gt;interface=&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The workspace module.&lt;/strong&gt; &lt;code&gt;modules-left=bspwm&lt;/code&gt; is the bspwm module. If you run i3, replace the whole &lt;code&gt;[module/bspwm]&lt;/code&gt; block with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ini"&gt;&lt;code&gt;&lt;span class="k"&gt;[module/i3]&lt;/span&gt;
&lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;internal&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;i3&lt;/span&gt;
&lt;span class="na"&gt;format&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and change &lt;code&gt;modules-left=bspwm&lt;/code&gt; to &lt;code&gt;modules-left=i3&lt;/code&gt;. On any other window manager, remove it from &lt;code&gt;modules-left&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The font.&lt;/strong&gt; &lt;code&gt;font-0=sans:size=10;2&lt;/code&gt; resolves through fontconfig, so it works almost everywhere, but &lt;code&gt;sans&lt;/code&gt; has no icons. If you want Nerd Font glyphs later, list a patched font as a second entry:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ini"&gt;&lt;code&gt;&lt;span class="na"&gt;font-0&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nc"&gt;JetBrainsMono&lt;/span&gt; &lt;span class="nc"&gt;Nerd&lt;/span&gt; &lt;span class="nc"&gt;Font&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;
&lt;span class="na"&gt;font-1&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nc"&gt;JetBrainsMono&lt;/span&gt; &lt;span class="nc"&gt;Nerd&lt;/span&gt; &lt;span class="nc"&gt;Font&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;style&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nc"&gt;Bold&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check what you actually have installed with &lt;code&gt;fc-list : family | sort -u&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;polybar main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;main&lt;/code&gt; is the name after &lt;code&gt;bar/&lt;/code&gt; in &lt;code&gt;[bar/main]&lt;/code&gt;. If your config defines a single bar, plain &lt;code&gt;polybar&lt;/code&gt; also works.&lt;/p&gt;

&lt;p&gt;Flags you will actually use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;polybar -m&lt;/code&gt; lists connected monitors. &lt;code&gt;polybar -M&lt;/code&gt; includes cloned ones.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;polybar -l info main&lt;/code&gt; prints the log. This is where messages like &lt;code&gt;Battery BAT1 not found&lt;/code&gt; appear, and they are the fastest way to find out why the bar is missing.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;polybar -r main&lt;/code&gt; reloads automatically when you save the config file, which is much better than killing and restarting while you tweak colors.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The log is not optional. Almost every "the bar does not appear" question is answered by a line in it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start it on every boot
&lt;/h2&gt;

&lt;p&gt;Polybar is a plain X client. It does not need systemd, it needs to start after the window manager. Where you put that depends on your WM.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;bspwm.&lt;/strong&gt; Add this to &lt;code&gt;~/.config/bspwm/bspwmrc&lt;/code&gt;, which has to be executable (&lt;code&gt;chmod +x ~/.config/bspwm/bspwmrc&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pgrep -x polybar &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; /dev/null &lt;span class="o"&gt;||&lt;/span&gt; polybar main &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;pgrep&lt;/code&gt; guard matters. Without it, every &lt;code&gt;bspwm&lt;/code&gt; reload launches another polybar, and after three reloads you have three bars stacked on top of each other and no idea why.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;i3.&lt;/strong&gt; In &lt;code&gt;~/.config/i3/config&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;exec_always --no-startup-id polybar main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use &lt;code&gt;exec_always&lt;/code&gt;, not &lt;code&gt;exec&lt;/code&gt;. &lt;code&gt;exec&lt;/code&gt; runs once at login, so &lt;code&gt;i3-msg restart&lt;/code&gt; leaves you without a bar.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Openbox.&lt;/strong&gt; In &lt;code&gt;~/.config/openbox/autostart&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;polybar main &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Plain X with startx.&lt;/strong&gt; In &lt;code&gt;~/.xinitrc&lt;/code&gt;, before the line that starts your WM:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;polybar main &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;
&lt;span class="nb"&gt;exec&lt;/span&gt; bspwm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Multiple monitors.&lt;/strong&gt; Launch one process per monitor. Add &lt;code&gt;monitor = ${env:MONITOR:}&lt;/code&gt; to &lt;code&gt;[bar/main]&lt;/code&gt; and loop:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;polybar -m &lt;span class="o"&gt;|&lt;/span&gt; cut -d: -f1 &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="nb"&gt;read&lt;/span&gt; -r m&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  &lt;span class="nv"&gt;MONITOR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$m"&lt;/span&gt; polybar main &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  When something goes wrong
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The bar never appears.&lt;/strong&gt; Run &lt;code&gt;polybar -l info main&lt;/code&gt; in a terminal. The config path is wrong, or the bar section is not called &lt;code&gt;main&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The bar covers windows, or windows cover the bar.&lt;/strong&gt; With bspwm, add &lt;code&gt;wm-restack = bspwm&lt;/code&gt; to &lt;code&gt;[bar/main]&lt;/code&gt;. Some minimal window managers need &lt;code&gt;override-redirect = true&lt;/code&gt; plus a gap configured on their side instead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One module is missing.&lt;/strong&gt; The value it depends on is wrong: battery name, adapter name, interface, or the window manager socket. The log names it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The tray is empty.&lt;/strong&gt; Polybar draws XEmbed tray icons. Applications that only publish StatusNotifier items need a bridge such as &lt;code&gt;snixembed&lt;/code&gt; to appear there.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The volume module shows nothing.&lt;/strong&gt; It needs PulseAudio, or PipeWire with &lt;code&gt;pipewire-pulse&lt;/code&gt;. Check with &lt;code&gt;pactl info&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Icons render as empty squares.&lt;/strong&gt; Your font does not contain those glyphs. Install a Nerd Font and add it as &lt;code&gt;font-0&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Text looks wrong or cut off.&lt;/strong&gt; Check &lt;code&gt;dpi-x&lt;/code&gt; and &lt;code&gt;dpi-y&lt;/code&gt; in &lt;code&gt;[bar/main]&lt;/code&gt;. The &lt;code&gt;;2&lt;/code&gt; at the end of &lt;code&gt;font-0&lt;/code&gt; is the vertical offset for that font, and it is what keeps text centered inside the bar height.&lt;/p&gt;

&lt;h2&gt;
  
  
  That is the whole bar
&lt;/h2&gt;

&lt;p&gt;You now have a 60-line config you understand line by line, which is the point. A rice you copied from a screenshot and cannot debug is worse than a plain bar you can. From here the useful next step is adding one module at a time, restarting with &lt;code&gt;polybar -r main&lt;/code&gt; after each change, and reading the log when a module refuses to appear.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/polybar/polybar/wiki" rel="noopener noreferrer"&gt;polybar wiki&lt;/a&gt; has a page per module. The ones I reach for most are &lt;code&gt;internal/backlight&lt;/code&gt;, &lt;code&gt;internal/temperature&lt;/code&gt; and &lt;code&gt;internal/script&lt;/code&gt;, which is how you put anything else you want in the bar.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Why Are We Still Using Markdown in 2026?</title>
      <dc:creator>Felipe Castillo</dc:creator>
      <pubDate>Sat, 04 Apr 2026 23:38:14 +0000</pubDate>
      <link>https://dev.to/castillodk/why-are-we-still-using-markdown-in-2026-15db</link>
      <guid>https://dev.to/castillodk/why-are-we-still-using-markdown-in-2026-15db</guid>
      <description>&lt;h2&gt;
  
  
  The Genius of Markdown's Original Design
&lt;/h2&gt;

&lt;p&gt;To understand why Markdown persists, we need to appreciate what made it revolutionary.&lt;/p&gt;

&lt;h3&gt;
  
  
  Simplicity Above All
&lt;/h3&gt;

&lt;p&gt;Markdown's genius was its &lt;strong&gt;deliberate simplicity&lt;/strong&gt;. Gruber designed it to be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Readable as plain text&lt;/strong&gt;: No tags, no formatting symbols cluttering the content&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Convertible to HTML&lt;/strong&gt;: One tool, one output&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Writers-friendly&lt;/strong&gt;: You write like you're drafting an email
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;# This is a heading&lt;/span&gt;

&lt;span class="gs"&gt;**This is bold**&lt;/span&gt;
&lt;span class="p"&gt;
-&lt;/span&gt; This is a list item
  &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;This is a link&lt;/span&gt;&lt;span class="p"&gt;](&lt;/span&gt;&lt;span class="sx"&gt;https://example.com&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Compare that to the HTML equivalent:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;This is a heading&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;strong&amp;gt;&lt;/span&gt;This is bold&lt;span class="nt"&gt;&amp;lt;/strong&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt;This is a list item&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"https://example.com"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;This is a link&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a writer in 2004, the choice was obvious.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Network Effect
&lt;/h3&gt;

&lt;p&gt;Markdown spread because of &lt;strong&gt;GitHub&lt;/strong&gt;. When GitHub launched in 2008 and made Markdown the default for README files, it created the world's largest Markdown ecosystem overnight.&lt;/p&gt;

&lt;p&gt;Today:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Every&lt;/strong&gt; repository has a README.md&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every&lt;/strong&gt; GitHub issue and pull request uses Markdown&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Millions&lt;/strong&gt; of developers write Markdown daily&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  The Problems Nobody Talks About
&lt;/h2&gt;

&lt;p&gt;Markdown's dominance doesn't mean it's perfect. In fact, several issues have plagued it since the beginning.&lt;/p&gt;

&lt;h3&gt;
  
  
  Problem 1: There Is No Markdown Standard
&lt;/h3&gt;

&lt;p&gt;This is the elephant in the room. Markdown has &lt;strong&gt;no official specification&lt;/strong&gt; that all implementations follow.&lt;/p&gt;

&lt;p&gt;The original Markdown syntax from 2004 has been extended by:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;GitHub Flavored Markdown (GFM)&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;CommonMark&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Markdown Extra&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;MDX&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Dozens of other variants&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The result? &lt;strong&gt;The same file renders differently depending on the parser.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;# This might work&lt;/span&gt;

&lt;span class="gu"&gt;## In this parser&lt;/span&gt;

&lt;span class="gu"&gt;### But not in this one&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Some parsers support tables, others don't. Some support task lists, others ignore them. &lt;strong&gt;Your Markdown is not my Markdown.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Problem 2: The Ecosystem Is Fragmented
&lt;/h3&gt;

&lt;p&gt;Because there's no standard, developers have built competing tools:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;What It Does&lt;/th&gt;
&lt;th&gt;The Problem&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;VS Code&lt;/td&gt;
&lt;td&gt;Markdown preview&lt;/td&gt;
&lt;td&gt;Extensions behave differently&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HackMD&lt;/td&gt;
&lt;td&gt;Collaborative Markdown&lt;/td&gt;
&lt;td&gt;Sync issues&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Obsidian&lt;/td&gt;
&lt;td&gt;Markdown-based notes&lt;/td&gt;
&lt;td&gt;Vault portability problems&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Docusaurus&lt;/td&gt;
&lt;td&gt;Markdown sites&lt;/td&gt;
&lt;td&gt;Complex setup&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Lock-in is real.&lt;/strong&gt; Your notes in Notion aren't Markdown. Your notes in Obsidian are Markdown, but try moving to Logseq or Bear.&lt;/p&gt;

&lt;h3&gt;
  
  
  Problem 3: Advanced Use Cases Break the Model
&lt;/h3&gt;

&lt;p&gt;Markdown was designed for &lt;strong&gt;prose and basic formatting&lt;/strong&gt;. When you need more, it starts to crack:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="c"&gt;&amp;lt;!-- Trying to do something complex in pure Markdown --&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For technical documentation, you end up embedding HTML anyway:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;details&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;Click to expand&lt;span class="nt"&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;
    This works, but now you're writing HTML inside Markdown.
&lt;span class="nt"&gt;&amp;lt;/details&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At that point, why not just write in a format designed for complex content?&lt;/p&gt;

&lt;h3&gt;
  
  
  Problem 4: Security Vulnerabilities
&lt;/h3&gt;

&lt;p&gt;Markdown parsers have been the source of &lt;strong&gt;real security vulnerabilities&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;XSS attacks&lt;/strong&gt; via malicious links&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HTML injection&lt;/strong&gt; through crafted input&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Path traversal&lt;/strong&gt; in some implementations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because parsers handle HTML differently, some render dangerous content that others block.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Are the Alternatives?
&lt;/h2&gt;

&lt;p&gt;If Markdown has these problems, what should we use instead?&lt;/p&gt;

&lt;h3&gt;
  
  
  Alternative 1: AsciiDoc
&lt;/h3&gt;

&lt;p&gt;AsciiDoc is what Markdown wants to be when it grows up.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;= Document Title
Author Name &amp;lt;author@example.com&amp;gt;

== Section Title

Here's a paragraph with *bold* and _italic_ text.

[source,ruby]
----
puts "Hello, World!"
----
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;True standard (AsciiDoc Specification)&lt;/li&gt;
&lt;li&gt;Native tables, includes, and advanced features&lt;/li&gt;
&lt;li&gt;Excellent for technical documentation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Steeper learning curve&lt;/li&gt;
&lt;li&gt;Less adoption than Markdown&lt;/li&gt;
&lt;li&gt;Fewer tooling options&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Alternative 2: reStructuredText
&lt;/h3&gt;

&lt;p&gt;Popular in the Python world, reStructuredText is powerful but verbose.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;==============
Document Title
==============

This is a paragraph with *emphasis* and **strong** text.

.. code-block:: python

   print("Hello, World!")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Used by Python's documentation (Sphinx)&lt;/li&gt;
&lt;li&gt;Extremely powerful for technical docs&lt;/li&gt;
&lt;li&gt;Built-in cross-referencing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ugly syntax&lt;/li&gt;
&lt;li&gt;Limited adoption outside Python community&lt;/li&gt;
&lt;li&gt;Complex build process&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Alternative 3: MDX
&lt;/h3&gt;

&lt;p&gt;MDX extends Markdown with JSX components.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { Chart } from './components/Chart'

# My Document

&amp;lt;Chart data={salesData} /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Markdown + React components&lt;/li&gt;
&lt;li&gt;Great for documentation with interactive elements&lt;/li&gt;
&lt;li&gt;Used by content platforms&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Requires build step&lt;/li&gt;
&lt;li&gt;Not plain text anymore&lt;/li&gt;
&lt;li&gt;Limited editor support&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Alternative 4: Plain HTML + CSS
&lt;/h3&gt;

&lt;p&gt;Some argue we should just &lt;strong&gt;use the web's native technologies&lt;/strong&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;article&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Document Title&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;This is a paragraph.&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/article&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Full power of the web&lt;/li&gt;
&lt;li&gt;No parsing ambiguity&lt;/li&gt;
&lt;li&gt;Every tool supports it&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Verbose for writers&lt;/li&gt;
&lt;li&gt;Steep learning curve&lt;/li&gt;
&lt;li&gt;No lightweight editing experience&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Why Markdown Won Anyway
&lt;/h2&gt;

&lt;p&gt;Despite its flaws, Markdown dominates. Here's why that makes sense:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. The Network Effect Is Unbeatable
&lt;/h3&gt;

&lt;p&gt;GitHub has &lt;strong&gt;over 100 million users&lt;/strong&gt;, all writing Markdown. When everyone around you uses a tool, you use it too. This is &lt;strong&gt;Metcalfe's Law&lt;/strong&gt; in action.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. "Good Enough" Beats "Better"
&lt;/h3&gt;

&lt;p&gt;Yes, AsciiDoc is technically superior. Yes, reStructuredText has more features. But Markdown is &lt;strong&gt;good enough for 80% of use cases&lt;/strong&gt;, and that 80% doesn't need more.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The Tooling Has Matured
&lt;/h3&gt;

&lt;p&gt;Look at the Markdown tooling available today:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;VS Code&lt;/strong&gt; with Live Preview&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Typora&lt;/strong&gt;, &lt;strong&gt;Obsidian&lt;/strong&gt;, &lt;strong&gt;iA Writer&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub&lt;/strong&gt;, &lt;strong&gt;GitLab&lt;/strong&gt;, &lt;strong&gt;Bitbucket&lt;/strong&gt; all support it natively&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Static site generators&lt;/strong&gt;: Jekyll, Hugo, Docusaurus, Astro&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once an ecosystem reaches this size, switching costs become prohibitive.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. It's Human-Readable by Default
&lt;/h3&gt;

&lt;p&gt;Unlike HTML or XML, Markdown files are &lt;strong&gt;readable without rendering&lt;/strong&gt;. You can read a README.md in a terminal and understand it.&lt;/p&gt;

&lt;p&gt;This matters for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Code reviews&lt;/li&gt;
&lt;li&gt;diffs in version control&lt;/li&gt;
&lt;li&gt;grep searching files&lt;/li&gt;
&lt;li&gt;plain text editors&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  5. The Rise of the Markdown-First Workflow
&lt;/h3&gt;

&lt;p&gt;Modern tools have embraced Markdown as the &lt;strong&gt;universal format&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Obsidian&lt;/td&gt;
&lt;td&gt;Local Markdown notes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitHub&lt;/td&gt;
&lt;td&gt;Markdown repositories&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Notion&lt;/td&gt;
&lt;td&gt;Hybrid (exports to Markdown)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Astro&lt;/td&gt;
&lt;td&gt;Markdown based sites&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;VS Code&lt;/td&gt;
&lt;td&gt;Markdown editing&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Your Markdown files today will be readable in 50 years.&lt;/strong&gt; Can you say the same about your Notion notes or Google Doc?&lt;/p&gt;




&lt;h2&gt;
  
  
  The Future: What Comes After Markdown?
&lt;/h2&gt;

&lt;p&gt;So if Markdown isn't perfect, what might replace it?&lt;/p&gt;

&lt;h3&gt;
  
  
  Possibility 1: A Standardized Markdown 2.0
&lt;/h3&gt;

&lt;p&gt;Some are pushing for a &lt;strong&gt;unified Markdown specification&lt;/strong&gt; that addresses the fragmentation. CommonMark was a step in this direction, but adoption remains incomplete.&lt;/p&gt;

&lt;h3&gt;
  
  
  Possibility 2: AI-Assisted Writing
&lt;/h3&gt;

&lt;p&gt;What if your editor understood your intent?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;[AI interprets: "add a table comparing X and Y"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;AI tools might &lt;strong&gt;abstract away formatting entirely&lt;/strong&gt;, letting you write naturally while the system handles structure.&lt;/p&gt;

&lt;h3&gt;
  
  
  Possibility 3: Structural Editors
&lt;/h3&gt;

&lt;p&gt;Tools like &lt;strong&gt;Tldraw's dev edgition&lt;/strong&gt; or &lt;strong&gt;Canva's Docs&lt;/strong&gt; show a future where you manipulate structure visually, not through text.&lt;/p&gt;

&lt;p&gt;Instead of writing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;# Heading&lt;/span&gt;

Paragraph text
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You'd manipulate &lt;strong&gt;blocks directly&lt;/strong&gt;, with the text format being an export option.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Markdown isn't the best format. It's not even particularly good in some ways. But it's &lt;strong&gt;good enough&lt;/strong&gt;, &lt;strong&gt;everywhere&lt;/strong&gt;, and &lt;strong&gt;established&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Here's the pragmatic truth:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;For &lt;strong&gt;documentation and READMEs&lt;/strong&gt;: Markdown is the de facto standard. Use it.&lt;/li&gt;
&lt;li&gt;For &lt;strong&gt;technical documentation with complex requirements&lt;/strong&gt;: Consider AsciiDoc or reStructuredText.&lt;/li&gt;
&lt;li&gt;For &lt;strong&gt;notes and personal writing&lt;/strong&gt;: Markdown gives you portability. Use Obsidian or plain files.&lt;/li&gt;
&lt;li&gt;For &lt;strong&gt;content heavy websites&lt;/strong&gt;: Use Astro with Markdown/MDX. You'll thank yourself later.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The question isn't whether Markdown is perfect. It's whether switching to something better is worth the cost.&lt;/p&gt;

&lt;p&gt;In 2026, for most developers and writers, &lt;strong&gt;it isn't&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What do you think? Is Markdown still the right choice, or have we been too quick to accept "good enough"?&lt;/strong&gt; Share your thoughts below.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>discuss</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
    <item>
      <title>How to Solve Your First LeetCode Problem: A Beginner's Guide</title>
      <dc:creator>Felipe Castillo</dc:creator>
      <pubDate>Sat, 04 Apr 2026 03:06:50 +0000</pubDate>
      <link>https://dev.to/castillodk/how-to-solve-your-first-leetcode-problem-a-beginners-guide-5808</link>
      <guid>https://dev.to/castillodk/how-to-solve-your-first-leetcode-problem-a-beginners-guide-5808</guid>
      <description>&lt;h2&gt;
  
  
  How to Solve Your First LeetCode Problem: A Beginner's Guide
&lt;/h2&gt;

&lt;p&gt;LeetCode has become the &lt;strong&gt;favorite playground&lt;/strong&gt; for developers preparing for technical interviews. With over 3,500 problems ranging from "easy" to "hard," it's easy to feel overwhelmed before you even write your first line of code.&lt;/p&gt;

&lt;p&gt;If you've ever opened LeetCode, stared at a problem for 30 minutes, and closed the tab in frustration, you're not alone. This guide exists because &lt;strong&gt;every developer who now aced their coding interview was once exactly where you are now&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;We'll solve a real LeetCode problem together, step by step. By the end, you'll have a &lt;strong&gt;repeatable system&lt;/strong&gt; for tackling any new problem.&lt;/p&gt;




&lt;p&gt;Índice&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Why LeetCode Matters&lt;/li&gt;
&lt;li&gt;Before You Start: The Right Mindset&lt;/li&gt;
&lt;li&gt;Understanding the Problem: Two Sum&lt;/li&gt;
&lt;li&gt;Step 1: Read and Break Down the Problem&lt;/li&gt;
&lt;li&gt;Step 2: Think Through Examples&lt;/li&gt;
&lt;li&gt;Step 3: Identify the Data Structure&lt;/li&gt;
&lt;li&gt;Step 4: Write the Solution&lt;/li&gt;
&lt;li&gt;Step 5: Test Your Solution&lt;/li&gt;
&lt;li&gt;Common Patterns to Memorize&lt;/li&gt;
&lt;li&gt;Resources to Keep Learning&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Why LeetCode Matters
&lt;/h2&gt;

&lt;p&gt;LeetCode isn't just about solving puzzles. It's about &lt;strong&gt;developing algorithmic thinking&lt;/strong&gt;, the ability to break down complex problems into manageable pieces.&lt;/p&gt;

&lt;h3&gt;
  
  
  What LeetCode Actually Tests
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Problem decomposition:&lt;/strong&gt; Can you understand what the problem is asking?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pattern recognition:&lt;/strong&gt; Have you seen similar problems before?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code implementation:&lt;/strong&gt; Can you translate your idea into working code?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Optimization:&lt;/strong&gt; Can you improve your initial solution?&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Real-World Benefits
&lt;/h3&gt;

&lt;p&gt;Beyond interviews, LeetCode helps you:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Think like a programmer:&lt;/strong&gt; You learn to approach problems systematically&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Understand data structures deeply:&lt;/strong&gt; Implementation teaches more than reading&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build confidence:&lt;/strong&gt; Solving hard problems feels rewarding&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Join a community:&lt;/strong&gt; Millions of developers share solutions and discuss approaches&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Before You Start: The Right Mindset
&lt;/h2&gt;

&lt;p&gt;Before diving into problems, set realistic expectations:&lt;/p&gt;

&lt;h3&gt;
  
  
  The 30-Minute Rule
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Never stare at a problem for more than 30 minutes without help.&lt;/strong&gt; If you're stuck:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Re-read the problem description&lt;/li&gt;
&lt;li&gt;Try manually solving with examples&lt;/li&gt;
&lt;li&gt;Check hints (LeetCode provides them)&lt;/li&gt;
&lt;li&gt;Look at similar problems tagged with the same concepts&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Easy Doesn't Mean Easy
&lt;/h3&gt;

&lt;p&gt;LeetCode's "Easy" problems are called Easy because their &lt;strong&gt;solution is short&lt;/strong&gt;, not because they're trivial. Many Easy problems still require insight that comes from practice.&lt;/p&gt;

&lt;h3&gt;
  
  
  You Will Fail
&lt;/h3&gt;

&lt;p&gt;Every expert has solved hundreds of problems wrong before finding the right approach. &lt;strong&gt;Failure is part of the process&lt;/strong&gt;, not a sign you don't belong.&lt;/p&gt;




&lt;h2&gt;
  
  
  Understanding the Problem: Two Sum
&lt;/h2&gt;

&lt;p&gt;We'll solve &lt;strong&gt;LeetCode #1: Two Sum&lt;/strong&gt;, the classic introductory problem that every developer encounters.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Problem
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Given an array of integers &lt;code&gt;nums&lt;/code&gt; and an integer &lt;code&gt;target&lt;/code&gt;, return the indices of the two numbers such that they add up to &lt;code&gt;target&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You may assume that each input would have &lt;strong&gt;exactly one solution&lt;/strong&gt;, and you may not use the same element twice.&lt;/p&gt;

&lt;p&gt;You can return the answer in any order.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Example:&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;Input: nums = [2, 7, 11, 15], target = 9
Output: [0, 1]
Explanation: nums[0] + nums[1] = 2 + 7 = 9
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This problem has been solved by over &lt;strong&gt;1 million users&lt;/strong&gt; on LeetCode. Let's solve it together.&lt;/p&gt;




&lt;h2&gt;
  
  
  Step 1: Read and Break Down the Problem
&lt;/h2&gt;

&lt;p&gt;Before writing any code, answer these questions:&lt;/p&gt;

&lt;h3&gt;
  
  
  Questions to Ask Yourself
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;What are the inputs?&lt;/strong&gt; → An array of integers, a target integer&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What are the outputs?&lt;/strong&gt; → Indices of two numbers (array order doesn't matter)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What are the constraints?&lt;/strong&gt; → We need to find exactly one solution, can't reuse the same element&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What should I return if no solution exists?&lt;/strong&gt; → The problem guarantees exactly one solution exists&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Write Down What You Understand
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Input:  nums = [2, 7, 11, 15], target = 9
Output: [0, 1]

We need: nums[i] + nums[j] = target, where i ≠ j
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Step 2: Think Through Examples
&lt;/h2&gt;

&lt;p&gt;Manually solve a few examples to build intuition.&lt;/p&gt;

&lt;h3&gt;
  
  
  Example 1
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nums = [2, 7, 11, 15], target = 9
2 + 7 = 9 ✓ → indices [0, 1]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Example 2
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nums = [3, 2, 4], target = 6
3 + 2 = 5 ✗
3 + 4 = 7 ✗
2 + 4 = 6 ✓ → indices [1, 2]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Example 3
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nums = [3, 3], target = 6
3 + 3 = 6 ✓ → indices [0, 1]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Step 3: Identify the Data Structure
&lt;/h2&gt;

&lt;p&gt;This is where &lt;strong&gt;pattern recognition&lt;/strong&gt; kicks in.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Naive Approach (O(n²))
&lt;/h3&gt;

&lt;p&gt;The brute force solution checks every pair:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;two_sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;)):&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;j&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&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="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;)):&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;j&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;j&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Time Complexity:&lt;/strong&gt; O(n²) - we check every pair&lt;br&gt;
&lt;strong&gt;Space Complexity:&lt;/strong&gt; O(1) - no extra space needed&lt;/p&gt;

&lt;p&gt;This works, but LeetCode will likely time out on large inputs. We can do better.&lt;/p&gt;


&lt;h3&gt;
  
  
  The Optimal Approach (O(n))
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Key Insight:&lt;/strong&gt; For each number &lt;code&gt;x&lt;/code&gt;, we need to find &lt;code&gt;target - x&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Instead of looking backward (checking all previous numbers), we can look &lt;strong&gt;forward&lt;/strong&gt; using a Hash Map:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;two_sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;hashmap&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;  &lt;span class="c1"&gt;# value -&amp;gt; index
&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;enumerate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;complement&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;complement&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;hashmap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;hashmap&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;complement&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="n"&gt;hashmap&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;num&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;How it works:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;For each number, calculate what we need to reach the target&lt;/li&gt;
&lt;li&gt;If that complement already exists in our map, we found our pair&lt;/li&gt;
&lt;li&gt;Otherwise, store this number and its index for future lookups&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Time Complexity:&lt;/strong&gt; O(n) - single pass&lt;br&gt;
&lt;strong&gt;Space Complexity:&lt;/strong&gt; O(n) - storing numbers in the map&lt;/p&gt;


&lt;h2&gt;
  
  
  Step 4: Write the Solution
&lt;/h2&gt;

&lt;p&gt;Here's the complete solution in Python:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;typing&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;List&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Solution&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;twoSum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;List&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;int&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;List&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;int&lt;/span&gt;&lt;span class="p"&gt;]:&lt;/span&gt;
        &lt;span class="n"&gt;hashmap&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;  &lt;span class="c1"&gt;# Maps number -&amp;gt; index
&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;enumerate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
            &lt;span class="n"&gt;complement&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt;

            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;complement&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;hashmap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;hashmap&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;complement&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

            &lt;span class="n"&gt;hashmap&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;num&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;

        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;  &lt;span class="c1"&gt;# No solution found (shouldn't happen per problem constraints)
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Alternative Solutions
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;JavaScript:&lt;/strong&gt;&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;var&lt;/span&gt; &lt;span class="nx"&gt;twoSum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;target&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;hashmap&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;let&lt;/span&gt; &lt;span class="nx"&gt;i&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="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nx"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&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;complement&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;target&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nx"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;i&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;hashmap&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;complement&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="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;hashmap&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;complement&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="nx"&gt;hashmap&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;nums&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="nx"&gt;i&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="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;&lt;strong&gt;C++:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Solution&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nl"&gt;public:&lt;/span&gt;
    &lt;span class="n"&gt;vector&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;twoSum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;vector&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;unordered_map&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;hashmap&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="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;i&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="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;complement&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&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="n"&gt;hashmap&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;complement&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="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;hashmap&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;complement&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;};&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;

            &lt;span class="n"&gt;hashmap&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;i&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="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;h2&gt;
  
  
  Step 5: Test Your Solution
&lt;/h2&gt;

&lt;p&gt;LeetCode provides test cases automatically, but you should verify your solution manually.&lt;/p&gt;

&lt;h3&gt;
  
  
  Test Cases to Try
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Test 1: Basic case
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;two_sum&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="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;11&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;  &lt;span class="c1"&gt;# Expected: [0, 1]
&lt;/span&gt;
&lt;span class="c1"&gt;# Test 2: Mid-array solution
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;two_sum&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="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;  &lt;span class="c1"&gt;# Expected: [1, 2]
&lt;/span&gt;
&lt;span class="c1"&gt;# Test 3: Duplicate values
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;two_sum&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="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;  &lt;span class="c1"&gt;# Expected: [0, 1]
&lt;/span&gt;
&lt;span class="c1"&gt;# Test 4: Negative numbers
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;two_sum&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="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="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;  &lt;span class="c1"&gt;# Expected: [2, 4]
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Common Mistakes to Avoid
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Forgetting to check the complement before adding&lt;/strong&gt; - Always check, then add&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Using the same index twice&lt;/strong&gt; - Our approach naturally avoids this&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not handling edge cases&lt;/strong&gt; - Negative numbers, zeros, large arrays&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Common Patterns to Memorize
&lt;/h2&gt;

&lt;p&gt;LeetCode problems often reuse these fundamental patterns:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Two Pointers
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Use when: You need to find pairs in a sorted array
&lt;/span&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;two_pointer_example&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;arr&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;left&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;right&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="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;arr&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="k"&gt;while&lt;/span&gt; &lt;span class="n"&gt;left&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;right&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arr&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;left&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;arr&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;right&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;left&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;right&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;left&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
        &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;right&lt;/span&gt; &lt;span class="o"&gt;-=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Sliding Window
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Use when: Finding subarrays/substrings with specific properties
&lt;/span&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;sliding_window_example&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;arr&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;window_sum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;arr&lt;/span&gt;&lt;span class="p"&gt;[:&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
    &lt;span class="n"&gt;max_sum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;window_sum&lt;/span&gt;

    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;arr&lt;/span&gt;&lt;span class="p"&gt;)):&lt;/span&gt;
        &lt;span class="n"&gt;window_sum&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;arr&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;arr&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="n"&gt;max_sum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;max_sum&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;window_sum&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;max_sum&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Hash Map for Lookups
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Use when: You need O(1) lookups for previous elements
&lt;/span&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;hashmap_example&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;hashmap&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;enumerate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;hashmap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;hashmap&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="n"&gt;hashmap&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;num&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Resources to Keep Learning
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Practice Platforms
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Platform&lt;/th&gt;
&lt;th&gt;Best For&lt;/th&gt;
&lt;th&gt;Difficulty Range&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;LeetCode&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Interview prep, curated problems&lt;/td&gt;
&lt;td&gt;Easy → Hard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;NeetCode&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Structured learning, video solutions&lt;/td&gt;
&lt;td&gt;Easy → Medium&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Codeforces&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Competitive programming, speed&lt;/td&gt;
&lt;td&gt;Medium → Hard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;HackerRank&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Fundamentals, certificates&lt;/td&gt;
&lt;td&gt;Easy → Medium&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Study Plans
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;NeetCode 150:&lt;/strong&gt; Curated list of 150 essential problems&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LeetCode Top 100 Liked:&lt;/strong&gt; Problems the community loves&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grind 75:&lt;/strong&gt; 75 problems optimized for interview prep&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  YouTube Channels
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;NeetCode:&lt;/strong&gt; High-quality video explanations&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Take U Forward:&lt;/strong&gt; Systematic approach to problems&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BackToBack SWE:&lt;/strong&gt; Detailed visual explanations&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Solving your first LeetCode problem is a milestone. What felt impossible becomes manageable once you have a &lt;strong&gt;systematic approach&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  What We Learned
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Understand the problem&lt;/strong&gt; before writing code&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Work through examples&lt;/strong&gt; manually first&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Identify patterns&lt;/strong&gt; you've seen before&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Start simple&lt;/strong&gt; (brute force), then optimize&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use the right data structure&lt;/strong&gt; for fast lookups&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Your Next Steps
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Practice:&lt;/strong&gt; Solve 1-2 Easy problems daily for the first week&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review:&lt;/strong&gt; After solving, read other solutions to learn alternatives&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Time yourself:&lt;/strong&gt; Eventually aim for 15-20 minutes per Easy problem&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build habits:&lt;/strong&gt; Consistency matters more than intensity&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The Truth About LeetCode
&lt;/h3&gt;

&lt;p&gt;You don't need to solve 1,000 problems to ace your interview. Most engineers who pass interviews have solved &lt;strong&gt;100-300 problems&lt;/strong&gt; with genuine understanding, not memorization.&lt;/p&gt;

&lt;p&gt;The difference between those who succeed and those who give up isn't intelligence, it's &lt;strong&gt;persistence and methodical practice&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If you found this guide helpful, share it with fellow developers starting their LeetCode journey. See you in the next post!&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Ready for more?&lt;/strong&gt; Check out our guide on &lt;a href="https://blog.opencodex.app/en/post/data-structures-every-developer-must-know-with-code-examples" rel="noopener noreferrer"&gt;Data Structures Every Developer Must Know&lt;/a&gt; to build the foundation for tackling harder problems.&lt;/p&gt;

</description>
      <category>leetcode</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>competitiveprogramming</category>
    </item>
    <item>
      <title>How to Install Arch Linux with Archinstall in 2026 (Quick Guide)</title>
      <dc:creator>Felipe Castillo</dc:creator>
      <pubDate>Fri, 03 Apr 2026 07:40:38 +0000</pubDate>
      <link>https://dev.to/castillodk/how-to-install-arch-linux-with-archinstall-in-2026-quick-guide-3c6f</link>
      <guid>https://dev.to/castillodk/how-to-install-arch-linux-with-archinstall-in-2026-quick-guide-3c6f</guid>
      <description>&lt;h2&gt;
  
  
  Archinstall Quick Guide
&lt;/h2&gt;

&lt;p&gt;If you're really interested in getting an Arch system but don't have time for a manual installation, this guide is for you. Archinstall is an official Arch Linux tool that lets you install the operating system semi-automatically, guiding you through an interactive process. Here's a quick guide to installing Arch Linux with Archinstall in 2026.&lt;/p&gt;

&lt;p&gt;This guide includes the script for a video created by @barrazadev, which can be found at the following link: &lt;a href="https://www.youtube.com/watch?v=4EPNgmQ4dOE" rel="noopener noreferrer"&gt;Link&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  ISO and Boot
&lt;/h2&gt;

&lt;p&gt;First, we need to download the &lt;strong&gt;Arch ISO&lt;/strong&gt; and use our USB drive with &lt;strong&gt;Rufus&lt;/strong&gt; or &lt;strong&gt;Ventoy&lt;/strong&gt;. Don't worry—there's a link in the description below explaining how to do the latter. &lt;a href="https://www.youtube.com/watch?v=pd8z4qMzw14" rel="noopener noreferrer"&gt;Rufus Video Tutorial&lt;/a&gt; and &lt;a href="https://www.youtube.com/watch?v=yx9zG9mMByY" rel="noopener noreferrer"&gt;Ventoy Video Tutorial&lt;/a&gt;. Once you have your &lt;strong&gt;bootable USB drive&lt;/strong&gt;, you need to boot from it. To do this, depending on your computer, press a key such as &lt;strong&gt;F12&lt;/strong&gt;, &lt;strong&gt;F2&lt;/strong&gt;, or &lt;strong&gt;Del&lt;/strong&gt; to access the &lt;strong&gt;boot menu&lt;/strong&gt; and select your USB drive.&lt;/p&gt;

&lt;p&gt;Once you've booted the Arch Linux ISO on your &lt;strong&gt;Virtual Machine&lt;/strong&gt; or &lt;strong&gt;Physical Hardware&lt;/strong&gt;, a small interface with various options will appear; select the first one &lt;strong&gt;(Arch Linux Install Medium)&lt;/strong&gt;, To continue, we need to verify that we have an &lt;strong&gt;Internet connection&lt;/strong&gt;. We’ll run the “ping” command to the IP address “1.1.1.1” as follows: &lt;strong&gt;“ping 1.1.1.1”&lt;/strong&gt;. If you only have Wi-Fi to connect to the Internet, don’t worry— here’s a video explaining how to connect to &lt;strong&gt;Wi-Fi networks using the Terminal&lt;/strong&gt; &lt;a href="https://www.youtube.com/watch?v=P_AJZwyoyyE" rel="noopener noreferrer"&gt;How to connect to Wi-Fi via the terminal&lt;/a&gt;. Once you’re ready, simply type the command: &lt;strong&gt;“archinstall”&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Archinstall
&lt;/h2&gt;

&lt;p&gt;Next, we'll look at the &lt;strong&gt;ArchInstall menu&lt;/strong&gt; with its various options. To navigate through them, use the &lt;strong&gt;up and down arrows&lt;/strong&gt;; to select an option, press the &lt;strong&gt;Enter key&lt;/strong&gt;; and to go back, press the &lt;strong&gt;Escape key&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I’ll go over each of the options available in the Archinstall menu.&lt;/p&gt;

&lt;h3&gt;
  
  
  Installation Guide
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Language
&lt;/h4&gt;

&lt;p&gt;Here you can select the installer's language. If you like, you can choose your native language—in my case, Spanish—but for the purposes of this guide, I'll keep the language set to English by pressing the Enter key.&lt;/p&gt;

&lt;h4&gt;
  
  
  Locales
&lt;/h4&gt;

&lt;p&gt;Here, you need to select the keyboard layout; in your case, you can choose ES for Spanish or US for English.&lt;br&gt;
Under “Local Language,” select the one that corresponds to your country, such as es_CL.UTF-8 or en_US.UTF-8. It's important that it be &lt;strong&gt;UTF-8&lt;/strong&gt;. Leave the last option as the default and click “Back.”&lt;/p&gt;

&lt;h4&gt;
  
  
  Mirrors
&lt;/h4&gt;

&lt;p&gt;In this section, I recommend selecting your country or the one closest to you. This is to ensure that package downloads are as fast as possible. When selecting the country, press the “Space” key and then return.&lt;/p&gt;

&lt;h4&gt;
  
  
  Disk Configuration
&lt;/h4&gt;

&lt;p&gt;In this menu, select the option labeled “Partitioning,” and choose the first option again—the one that says “Use a &lt;strong&gt;default partition layout&lt;/strong&gt;.” You must be very careful with this step, all the disks on your machine will appear here; you must select the disk where you want to install Arch. Keep in mind that this will completely format that disk, erasing any files or data on it. Always make sure to back up your files before performing any installations. If you’re sure about the disk, select it using the “Space” key and press “Enter” to continue. We’ll select “EXT4” as our filesystem. If you see an option that says: &lt;strong&gt;“Would you like to create a separate partition for /home?”&lt;/strong&gt;, I recommend selecting “Yes.” This will be helpful if you decide to do &lt;strong&gt;distrohopping&lt;/strong&gt; frequently.&lt;/p&gt;

&lt;p&gt;We won't be touching the LVM and encryption options today; they're basically for encrypting the disk, but they aren't necessary for your first installation.&lt;/p&gt;

&lt;h4&gt;
  
  
  Swap
&lt;/h4&gt;

&lt;p&gt;The Swap option is enabled by default, and we'll leave it that way, since swap space is a portion of storage used as virtual memory when RAM runs out. Although it isn't as fast as RAM, it can help prevent the system from crashing when it runs out of memory.&lt;/p&gt;

&lt;h4&gt;
  
  
  Bootloader
&lt;/h4&gt;

&lt;p&gt;In the bootloader, we’ll also leave it as is, selecting the &lt;strong&gt;Grub&lt;/strong&gt; option. This is because it’s the most common bootloader and is compatible with most systems, unless you have a specific reason to choose another one, such as if you want to use &lt;strong&gt;systemd-boot&lt;/strong&gt; or &lt;strong&gt;rEFInd&lt;/strong&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  Kernels
&lt;/h4&gt;

&lt;p&gt;Under the “Kernels” option, only one Linux kernel is included by default. To ensure greater security against potential failures, we will also add the Linux-LTS kernel. The LTS (Long-Term Support) kernel is a version of the kernel that receives long-term support, meaning it receives security patches and bug fixes over an extended period, typically several years. The LTS kernel tends to be more stable and reliable.&lt;/p&gt;

&lt;h4&gt;
  
  
  Hostname
&lt;/h4&gt;

&lt;p&gt;In the “Hostname” field, you can enter the machine's name. You should only change this if you wish to do so; it is not necessary for the system to function, but it is good practice to identify your machine on the network.&lt;/p&gt;

&lt;h4&gt;
  
  
  Authentication
&lt;/h4&gt;

&lt;p&gt;In the Authentication section, the first step is to create a password for the &lt;strong&gt;Root user&lt;/strong&gt;. This password is important, so make sure you don’t forget it. Confirm the password, then go to User Account and add a user by clicking Add a User. Enter a name and password, confirm the password, and when asked if you want to make this user a superuser, click Yes. Finally, click Confirm and Exit to return to the menu.&lt;/p&gt;

&lt;h4&gt;
  
  
  Profile
&lt;/h4&gt;

&lt;p&gt;In the “Profile” option, you need to select the type of profile you want; there are four in total (Desktop, Server, Minimal, and Xorg). We’ll focus on the first option, called &lt;strong&gt;Desktop&lt;/strong&gt;. Now you’ll see the different desktop environments. You can select more than one, but I recommend playing it safe and choosing just one—it could be &lt;strong&gt;KDE&lt;/strong&gt;, &lt;strong&gt;XFCE&lt;/strong&gt;, or &lt;strong&gt;Cinnamon&lt;/strong&gt;. In my case, I’ll select XFCE. Once you’ve selected the ones you want, press “Enter.”&lt;/p&gt;

&lt;p&gt;When it comes to graphics drivers, it depends on each person and their settings; in my case, I'll leave it set to “All open-source.”&lt;/p&gt;

&lt;p&gt;In the login manager (or Greeter), select the default option and click Back.&lt;/p&gt;

&lt;h4&gt;
  
  
  Applications
&lt;/h4&gt;

&lt;p&gt;Under “Applications,” select ‘Bluetooth’ and “Audio.” For Bluetooth, select “Yes,” and for Audio, I recommend Pipewire.&lt;/p&gt;

&lt;h4&gt;
  
  
  Network Configuration
&lt;/h4&gt;

&lt;p&gt;In the network settings, select the option labeled &lt;strong&gt;Use Network Manager (default backend)&lt;/strong&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  Additional Packages
&lt;/h4&gt;

&lt;p&gt;In the “Additional Packages” section, this isn't necessary, since we can install any missing programs later.&lt;/p&gt;

&lt;h4&gt;
  
  
  Timezone
&lt;/h4&gt;

&lt;p&gt;Here we need to select our time zone; in my case, America/Santiago.&lt;/p&gt;

&lt;h4&gt;
  
  
  NTP
&lt;/h4&gt;

&lt;p&gt;We leave the NTP option enabled, as it is by default.&lt;/p&gt;

&lt;h4&gt;
  
  
  Pasos Finales
&lt;/h4&gt;

&lt;p&gt;And that's it! Here we have an Arch Linux system ready to be installed, with video drivers and a graphical environment set up in no time.&lt;/p&gt;

&lt;p&gt;As a final step, click Install. You’ll be asked if you want to apply the settings; click Yes, and the installation will finally begin. This may take a while depending on your computer and internet connection. Once the installation is complete, you’ll see three options. Select the first one, which says &lt;strong&gt;Exit Archinstall&lt;/strong&gt;, and enter the command &lt;strong&gt;“shutdown now”&lt;/strong&gt; to shut down the computer immediately. Once the computer is off, remove the USB drive and turn the computer back on.&lt;/p&gt;

&lt;h3&gt;
  
  
  Post Install
&lt;/h3&gt;

&lt;p&gt;When you log in, you'll see a login screen; enter the user's password, and you'll be able to see the desktop.&lt;/p&gt;

&lt;p&gt;To check your internet connection, simply open a terminal and type the same command as before, &lt;strong&gt;“ping 1.1.1.1”&lt;/strong&gt;, and you'll see that you have an internet connection.&lt;/p&gt;

&lt;p&gt;We’ll also check for any pending updates by entering the command &lt;strong&gt;“sudo pacman -Syu”&lt;/strong&gt;. When we do this, it will ask for the &lt;strong&gt;root password&lt;/strong&gt;; we’ll type it in and press “Enter.” Since there are no pending updates, I’ll install a small script to view the machine’s components. To install it, I’ll type &lt;strong&gt;“sudo pacman -S fastfetch”&lt;/strong&gt; in the terminal; it will ask for confirmation and begin installing. Once the package is installed, I’ll run it from the console by typing &lt;strong&gt;“fastfetch”&lt;/strong&gt;, and it will display my system’s components.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;As you saw in both the video and this guide, installing Arch Linux with Archinstall is a fairly simple and quick process, ideal for those who want to enjoy the benefits of Arch without the hassle of a manual installation. Archinstall offers a guided experience that simplifies the process, allowing you to set up your system efficiently and customize it to your liking. If you’re new to the world of Arch Linux or simply want a quick installation, Archinstall is an excellent option to start your adventure with this powerful distribution.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>archlinux</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Best Linux distributions to get started in 2026</title>
      <dc:creator>Felipe Castillo</dc:creator>
      <pubDate>Fri, 03 Apr 2026 07:06:50 +0000</pubDate>
      <link>https://dev.to/castillodk/best-linux-distributions-to-get-started-in-2026-pdb</link>
      <guid>https://dev.to/castillodk/best-linux-distributions-to-get-started-in-2026-pdb</guid>
      <description>&lt;h2&gt;
  
  
  Which distribution should I choose?
&lt;/h2&gt;

&lt;p&gt;If you've made it this far, you're probably tired of &lt;strong&gt;forced Windows updates&lt;/strong&gt; and &lt;strong&gt;privacy issues&lt;/strong&gt;, or you're simply curious about which “penguin” (Tux) distribution everyone's been talking about.&lt;/p&gt;

&lt;p&gt;Making the switch to &lt;strong&gt;Linux in 2026&lt;/strong&gt; is easier than ever, but the first hurdle is often a common dilemma: &lt;strong&gt;Which distribution should I choose from the hundreds of options out there?&lt;/strong&gt; In this post, we’ll demystify the process of choosing your first &lt;strong&gt;“distro”&lt;/strong&gt; and introduce you to the best options so you can make the switch to &lt;strong&gt;Linux&lt;/strong&gt; once and for all.&lt;/p&gt;




&lt;h2&gt;
  
  
  What is a Linux distribution?
&lt;/h2&gt;

&lt;p&gt;For a beginner, the word &lt;strong&gt;“distribution”&lt;/strong&gt; (or distro) might sound intimidating or confusing. But think of it this way:&lt;/p&gt;

&lt;p&gt;The Linux kernel is the engine of a vehicle. It’s the &lt;strong&gt;part that makes everything move&lt;/strong&gt;, but you can’t sit on an engine and drive it around town. You need a chassis, seats, a steering wheel, lights, and a dashboard.&lt;/p&gt;

&lt;p&gt;A &lt;strong&gt;Linux distribution&lt;/strong&gt; is the complete vehicle. It’s a &lt;strong&gt;package&lt;/strong&gt; that takes the &lt;strong&gt;engine (Kernel)&lt;/strong&gt; and adds a &lt;strong&gt;visual interface (Desktop)&lt;/strong&gt;, a &lt;strong&gt;window manager&lt;/strong&gt;, an app store, and configuration tools.&lt;/p&gt;

&lt;p&gt;The best thing about Linux is that, unlike Windows or macOS, there are manufacturers in the Linux world that create vehicles for racing, others for the countryside, and others for everyday use in the city. Those are the distros.&lt;/p&gt;




&lt;h2&gt;
  
  
  Criteria for Choosing Your Distro
&lt;/h2&gt;

&lt;p&gt;Before downloading any &lt;strong&gt;ISO file&lt;/strong&gt;, you should make sure that the distribution you choose meets these three &lt;strong&gt;essential requirements&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Ease of use (Learning curve):&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As a beginner, you don’t want to spend hours typing strange commands on a black screen (the famous terminal). We’re looking for a distro where you can set up Wi-Fi, install Chrome or Spotify, and change the wallpaper with just a couple of clicks. If you already have experience, you can opt for more advanced distros.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Community support (Forums and documentation):&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Sooner or later, you’ll want or need to do something and won’t know how. If you use a popular distro, the answer to your problem will be just a Google search away. A large community means YouTube tutorials, active forums, and plenty of documentation. Honorable mention to the Arch wiki.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Stability:&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There’s nothing more frustrating than your system breaking after an update. For your first experience, you need what we call &lt;strong&gt;“stability”&lt;/strong&gt;—software versions that have been thoroughly tested and won’t throw you a curveball on a Monday morning when you have a deadline.&lt;/p&gt;




&lt;h2&gt;
  
  
  Recommended Distributions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Ubuntu
&lt;/h3&gt;

&lt;p&gt;Ubuntu is, without a doubt, &lt;strong&gt;the most recognizable face of Linux today&lt;/strong&gt;. Developed by the company &lt;strong&gt;Canonical&lt;/strong&gt;, its goal since 2004 has been to bring Linux to everyday users and those unfamiliar with it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why choose it?:&lt;/strong&gt; It is the distribution with the most support in the world. If a program exists for Linux, it will almost certainly have a version designed specifically for Ubuntu.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Interface:&lt;/strong&gt; It uses a desktop environment called &lt;strong&gt;GNOME&lt;/strong&gt;. It is modern, somewhat resembles the logic of a smartphone (with an activities button and an app dock), and is very &lt;strong&gt;visually clean&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Strength:&lt;/strong&gt; Its &lt;strong&gt;LTS&lt;/strong&gt; (Long-Term Support) version. This means that if you install the &lt;strong&gt;stable version&lt;/strong&gt;, you’ll have &lt;strong&gt;support&lt;/strong&gt; and &lt;strong&gt;security updates&lt;/strong&gt; guaranteed for &lt;strong&gt;5&lt;/strong&gt; or even &lt;strong&gt;10 years&lt;/strong&gt; without having to reinstall everything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Weakness:&lt;/strong&gt; “Snap” (its app store) can be a bit slow when opening apps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Alternatives:&lt;/strong&gt; Debian, Xubuntu, Lubuntu.&lt;/p&gt;




&lt;h3&gt;
  
  
  Linux Mint
&lt;/h3&gt;

&lt;p&gt;If you close your eyes and think about what a computer should look like, you probably imagine a Start button in the bottom-left corner, a taskbar, and windows that minimize. That’s exactly what Linux Mint offers with its &lt;strong&gt;“Cinnamon”&lt;/strong&gt; desktop.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why choose it?:&lt;/strong&gt; It’s incredibly &lt;strong&gt;lightweight and “familiar”&lt;/strong&gt;. You don’t have to relearn where things are. Mint feels like what Windows 11 should have been: &lt;strong&gt;fast, sleek, and without telemetry&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ease of use:&lt;/strong&gt; It includes a “Driver Manager” that automatically detects if your graphics card or Wi-Fi card needs software and installs it for you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Strength:&lt;/strong&gt; Its “if it ain’t broke, don’t fix it” philosophy. It’s one of the most robust and least error-prone distros available today.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Weakness:&lt;/strong&gt; Its update cycle is more conservative; you won’t always have the latest version of programs as soon as they’re released.&lt;/p&gt;




&lt;h3&gt;
  
  
  Fedora
&lt;/h3&gt;

&lt;p&gt;Fedora is the distribution typically used by the &lt;strong&gt;creator of Linux&lt;/strong&gt; himself, &lt;strong&gt;Linus Torvalds&lt;/strong&gt;. It is known for serving as a “testing ground” for new technologies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why choose it?:&lt;/strong&gt; If you want to try out the latest Linux features before anyone else, Fedora is the place for you. Despite using very modern software, it is surprisingly stable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Focus:&lt;/strong&gt; It is fully committed to free software. It does not install proprietary programs by default, giving you a very pure Linux experience.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Strength:&lt;/strong&gt; It’s a favorite among software developers. If you plan to learn to code, Fedora offers the most up-to-date tools on the market.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Weakness:&lt;/strong&gt; Its &lt;strong&gt;lifecycle&lt;/strong&gt; is &lt;strong&gt;short&lt;/strong&gt; (you must update the entire system every &lt;strong&gt;6–12 months&lt;/strong&gt;).&lt;/p&gt;




&lt;h3&gt;
  
  
  Arch Linux
&lt;/h3&gt;

&lt;p&gt;There are no fancy installers with buttons here. Arch is &lt;strong&gt;installed from a terminal&lt;/strong&gt;, and &lt;strong&gt;you decide&lt;/strong&gt; which components to include in your system.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why choose it?:&lt;/strong&gt; You want a minimalist operating system where you have complete control over every aspect of your system.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Target audience:&lt;/strong&gt; Advanced users who want to learn how Linux works from the inside out, or those who want a unique, customized system.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Strength:&lt;/strong&gt; The &lt;strong&gt;AUR&lt;/strong&gt; (Arch User Repository), where you can find practically &lt;strong&gt;any software in existence&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Weakness:&lt;/strong&gt; It’s easy to break the system if you don’t read the &lt;strong&gt;update news&lt;/strong&gt;, if you configure something incorrectly, or if you &lt;strong&gt;overuse the AUR&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Alternatives:&lt;/strong&gt; Manjaro, EndeavourOS, CachyOS.&lt;/p&gt;




&lt;h3&gt;
  
  
  NixOS
&lt;/h3&gt;

&lt;p&gt;A &lt;strong&gt;revolutionary distribution&lt;/strong&gt; that treats your operating system as if it were a **time machine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why choose it?:&lt;/strong&gt; If something goes wrong, you can &lt;strong&gt;roll back&lt;/strong&gt; to a previous state with a single click at boot.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Target audience:&lt;/strong&gt; DevOps and system administrators who need to replicate the same configuration across 100 computers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Strength:&lt;/strong&gt; Declarative configuration. Your entire system lives in a single text file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Weakness:&lt;/strong&gt; Its file structure is completely different from any other Linux distribution, which can be confusing at first.&lt;/p&gt;




&lt;h2&gt;
  
  
  Comparison Chart
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Distribution&lt;/th&gt;
&lt;th&gt;Ease of use&lt;/th&gt;
&lt;th&gt;Community support&lt;/th&gt;
&lt;th&gt;Stability&lt;/th&gt;
&lt;th&gt;Target audience&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Ubuntu&lt;/td&gt;
&lt;td&gt;Very high&lt;/td&gt;
&lt;td&gt;Excellent&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;td&gt;Beginners, general users&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Linux Mint&lt;/td&gt;
&lt;td&gt;Very high&lt;/td&gt;
&lt;td&gt;Excellent&lt;/td&gt;
&lt;td&gt;Very high&lt;/td&gt;
&lt;td&gt;Users switching from Windows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fedora&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;td&gt;Very Good&lt;/td&gt;
&lt;td&gt;Medium-High&lt;/td&gt;
&lt;td&gt;Developers, advanced users&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Arch Linux&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;Excellent&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;Advanced users, enthusiasts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NixOS&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;Good&lt;/td&gt;
&lt;td&gt;Very high&lt;/td&gt;
&lt;td&gt;DevOps, system administrators&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Which one should you choose based on your profile?
&lt;/h2&gt;

&lt;p&gt;If, even with all the information provided, you’re still wondering &lt;strong&gt;“Which one should I download right now?”&lt;/strong&gt; Let’s break it down:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The User Looking to Escape Windows:&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want your PC to &lt;strong&gt;run fast&lt;/strong&gt;, without the menus being moved around, and to be able to use your usual files, Linux Mint is the winner. It’s the &lt;strong&gt;smoothest possible transition&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Student or First-Time User:&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you need a laptop for browsing, writing documents, watching Netflix, and maybe playing a few games on Steam, Ubuntu is the way to go. Since it’s &lt;strong&gt;the most popular&lt;/strong&gt;, any online tutorial &lt;strong&gt;will work for you right away&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Programmer, Self-Taught User, or Tech Enthusiast:&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you like to &lt;strong&gt;tinker&lt;/strong&gt;, want to &lt;strong&gt;understand how the system works&lt;/strong&gt; from the inside, and always have the &lt;strong&gt;latest software versions&lt;/strong&gt; for your coding projects, install &lt;strong&gt;Fedora or Arch&lt;/strong&gt;. It will force you to learn a little more, but the reward is worth it.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;The most important thing to understand is that in Linux, &lt;strong&gt;there are no wrong choices&lt;/strong&gt;. Unlike other systems, nothing here is permanent. You can try Ubuntu today, and if you’re not convinced, switch to Fedora in 20 minutes &lt;strong&gt;without losing your files&lt;/strong&gt;—provided you do things right &lt;strong&gt;(by separating / and /home onto different partitions)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;There is no such thing as the “perfect distro” or the “perfect desktop”; there is only what best suits your needs today. &lt;strong&gt;Linux is freedom&lt;/strong&gt;, and that freedom starts with choosing your own adventure.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Python vs JavaScript vs Go in 2026: Which Language Should You Learn Right Now?</title>
      <dc:creator>Felipe Castillo</dc:creator>
      <pubDate>Fri, 03 Apr 2026 05:26:06 +0000</pubDate>
      <link>https://dev.to/castillodk/python-vs-javascript-vs-go-in-2026-which-language-should-you-learn-right-now-1cdf</link>
      <guid>https://dev.to/castillodk/python-vs-javascript-vs-go-in-2026-which-language-should-you-learn-right-now-1cdf</guid>
      <description>&lt;p&gt;Choosing your first or next programming language is one of the most consequential decisions you'll make as a developer. The language you learn shapes not just how you write code, but &lt;strong&gt;what kinds of problems you can solve&lt;/strong&gt;, &lt;strong&gt;where you can work&lt;/strong&gt;, and &lt;strong&gt;how much you can earn&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In 2026, three languages dominate the conversation: &lt;strong&gt;Python&lt;/strong&gt;, &lt;strong&gt;JavaScript&lt;/strong&gt;, and &lt;strong&gt;Go&lt;/strong&gt;. Each has distinct strengths, different ecosystems, and caters to different career paths. But which one should you invest your time in learning right now?&lt;/p&gt;

&lt;p&gt;This guide breaks down each language objectively so you can make an informed decision based on &lt;strong&gt;your goals&lt;/strong&gt;, not hype.&lt;/p&gt;




&lt;p&gt;Índice&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The Quick Answer&lt;/li&gt;
&lt;li&gt;Python: The King of Data and AI&lt;/li&gt;
&lt;li&gt;JavaScript: The Language of the Web&lt;/li&gt;
&lt;li&gt;Go: The Modern Systems Language&lt;/li&gt;
&lt;li&gt;Head-to-Head Comparison&lt;/li&gt;
&lt;li&gt;Use Cases and Job Markets&lt;/li&gt;
&lt;li&gt;Learning Curve and Resources&lt;/li&gt;
&lt;li&gt;Salary Insights&lt;/li&gt;
&lt;li&gt;Which Language Should You Learn?&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  The Quick Answer
&lt;/h2&gt;

&lt;p&gt;There is no single "best" language only the &lt;strong&gt;right language for your goals&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Choose Python&lt;/strong&gt; if you want to work in data science, machine learning, AI, automation, or scientific computing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Choose JavaScript&lt;/strong&gt; if you want to build websites, web apps, or work in frontend/full-stack development&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Choose Go&lt;/strong&gt; if you want to work in backend systems, cloud infrastructure, DevOps, or high-performance services&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Still unsure? Read on for the detailed breakdown.&lt;/p&gt;




&lt;h2&gt;
  
  
  Python: The King of Data and AI
&lt;/h2&gt;

&lt;p&gt;Python has been the most popular introductory programming language for years and for good reason. Its &lt;strong&gt;readable syntax&lt;/strong&gt;, &lt;strong&gt;gentle learning curve&lt;/strong&gt;, and &lt;strong&gt;incredible ecosystem&lt;/strong&gt; make it the default choice for beginners and experts alike.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why Python Dominates in 2026
&lt;/h3&gt;

&lt;p&gt;Python's momentum hasn't slowed. If anything, the &lt;strong&gt;AI revolution&lt;/strong&gt; has accelerated its adoption:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AI/ML Frameworks&lt;/strong&gt;: TensorFlow, PyTorch, Keras all Python first&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data Science Stack&lt;/strong&gt;: pandas, NumPy, SciPy, Matplotlib are industry standard&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automation&lt;/strong&gt;: Scripts, bots, and workflow automation with minimal boilerplate&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scientific Computing&lt;/strong&gt;: Bioinformatics, physics simulations, financial modeling&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Code Example: Python's Simplicity
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Data analysis with pandas
&lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;pandas&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;

&lt;span class="n"&gt;df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read_csv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;sales_data.csv&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;top_sellers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;groupby&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;product&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;revenue&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;sort_values&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ascending&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;top_sellers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;head&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

&lt;span class="c1"&gt;# Machine learning with scikit-learn
&lt;/span&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;sklearn.ensemble&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;RandomForestClassifier&lt;/span&gt;
&lt;span class="n"&gt;model&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;RandomForestClassifier&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n_estimators&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;X_train&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y_train&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;accuracy&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;score&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;X_test&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y_test&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Model accuracy: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;accuracy&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  The Trade-offs
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Strength&lt;/th&gt;
&lt;th&gt;Weakness&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Easy to learn&lt;/td&gt;
&lt;td&gt;Slower execution than compiled languages&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Massive ecosystem&lt;/td&gt;
&lt;td&gt;Not ideal for mobile development&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI/ML dominance&lt;/td&gt;
&lt;td&gt;Global Interpreter Lock (GIL) limits true parallelism&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Great for scripts and automation&lt;/td&gt;
&lt;td&gt;Weak for browser-based frontends&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  JavaScript: The Language of the Web
&lt;/h2&gt;

&lt;p&gt;JavaScript is the &lt;strong&gt;only language that runs natively in browsers&lt;/strong&gt;, making it indispensable for web development. But in 2026, JavaScript has expanded far beyond the browser.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why JavaScript Remains Essential
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Full-Stack Development&lt;/strong&gt;: Node.js brought JavaScript to the server&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend Frameworks&lt;/strong&gt;: React, Vue, Angular power modern UIs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mobile Apps&lt;/strong&gt;: React Native, Expo build cross-platform mobile apps&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Desktop Apps&lt;/strong&gt;: Electron allows building desktop apps with JavaScript&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Serverless Functions&lt;/strong&gt;: AWS Lambda, Vercel, Netlify all support JavaScript&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Code Example: JavaScript's Versatility
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Frontend: React component&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;ProductCard&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;price&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;image&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="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;inCart&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;setInCart&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useState&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;return &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;div&lt;/span&gt; &lt;span class="nx"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;product-card&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;img&lt;/span&gt; &lt;span class="nx"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;image&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="nx"&gt;alt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="sr"&gt;/&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;h3&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;name&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/h3&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nx"&gt;$&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;price&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toFixed&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="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/p&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;button&lt;/span&gt; &lt;span class="nx"&gt;onClick&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;setInCart&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="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;inCart&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Added!&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;Add to Cart&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/button&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/div&lt;/span&gt;&lt;span class="err"&gt;&amp;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;// Backend: Express.js API endpoint&lt;/span&gt;
&lt;span class="nx"&gt;app&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;/api/products/:id&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;res&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="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;product&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;Product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;product&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;
  
  
  The Trade-offs
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Strength&lt;/th&gt;
&lt;th&gt;Weakness&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Runs everywhere (browser, server, mobile)&lt;/td&gt;
&lt;td&gt;Callback hell and async complexity&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Massive ecosystem (npm has 2M+ packages)&lt;/td&gt;
&lt;td&gt;Type safety issues without TypeScript&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;High demand for web developers&lt;/td&gt;
&lt;td&gt;Can be inconsistent across environments&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Great community and learning resources&lt;/td&gt;
&lt;td&gt;Security vulnerabilities in dependencies&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Go: The Modern Systems Language
&lt;/h2&gt;

&lt;p&gt;Go (or Golang), developed by Google in 2009, was designed to solve specific problems: &lt;strong&gt;fast compilation&lt;/strong&gt;, &lt;strong&gt;easy concurrency&lt;/strong&gt;, and &lt;strong&gt;simplicity&lt;/strong&gt;. In 2026, it's become the language of cloud infrastructure and backend systems.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why Go Is Winning in 2026
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cloud Native&lt;/strong&gt;: Kubernetes, Docker, Terraform all written in Go&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend Services&lt;/strong&gt;: High-performance APIs and microservices&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DevOps Tools&lt;/strong&gt;: CI/CD pipelines, monitoring, logging&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Concurrency&lt;/strong&gt;: Goroutines make parallel programming elegant&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fast Compilation&lt;/strong&gt;: No waiting minutes to compile&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Code Example: Go's Simplicity and Power
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;package&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s"&gt;"encoding/json"&lt;/span&gt;
    &lt;span class="s"&gt;"net/http"&lt;/span&gt;
    &lt;span class="s"&gt;"github.com/gin-gonic/gin"&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;type&lt;/span&gt; &lt;span class="n"&gt;Product&lt;/span&gt; &lt;span class="k"&gt;struct&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;ID&lt;/span&gt;    &lt;span class="kt"&gt;string&lt;/span&gt;  &lt;span class="s"&gt;`json:"id"`&lt;/span&gt;
    &lt;span class="n"&gt;Name&lt;/span&gt;  &lt;span class="kt"&gt;string&lt;/span&gt;  &lt;span class="s"&gt;`json:"name"`&lt;/span&gt;
    &lt;span class="n"&gt;Price&lt;/span&gt; &lt;span class="kt"&gt;float64&lt;/span&gt; &lt;span class="s"&gt;`json:"price"`&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;getProduct&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;gin&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Param&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c"&gt;// Simulated database call&lt;/span&gt;
    &lt;span class="n"&gt;product&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;Product&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;ID&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Name&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"Laptop"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Price&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="m"&gt;999.99&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;StatusOK&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;gin&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Default&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;GET&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"/products/:id"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;getProduct&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;":8080"&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;
  
  
  Concurrency Example: Goroutines
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;fetchData&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="k"&gt;chan&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;-&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;defer&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Body&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Close&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;-&lt;/span&gt; &lt;span class="n"&gt;fmt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Sprintf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Fetched from %s: status %d"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;StatusCode&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;urls&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;"https://api.github.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"https://api.twitter.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"https://api.linkedin.com"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nb"&gt;make&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;chan&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;urls&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="k"&gt;range&lt;/span&gt; &lt;span class="n"&gt;urls&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;go&lt;/span&gt; &lt;span class="n"&gt;fetchData&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;urls&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;fmt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;-&lt;/span&gt;&lt;span class="n"&gt;results&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;h3&gt;
  
  
  The Trade-offs
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Strength&lt;/th&gt;
&lt;th&gt;Weakness&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Blazing fast compilation and execution&lt;/td&gt;
&lt;td&gt;Smaller ecosystem than Python/JavaScript&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Built-in concurrency (goroutines)&lt;/td&gt;
&lt;td&gt;Verbose error handling&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Statically typed with simplicity&lt;/td&gt;
&lt;td&gt;No generics (until recently)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Excellent for cloud infrastructure&lt;/td&gt;
&lt;td&gt;Limited use outside backend/systems&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Head-to-Head Comparison
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Criteria&lt;/th&gt;
&lt;th&gt;Python&lt;/th&gt;
&lt;th&gt;JavaScript&lt;/th&gt;
&lt;th&gt;Go&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Syntax Ease&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐⭐&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐&lt;/td&gt;
&lt;td&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;⭐⭐&lt;/td&gt;
&lt;td&gt;⭐⭐⭐&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐⭐&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Job Market&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐⭐&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐⭐&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Ecosystem Size&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐⭐&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐⭐&lt;/td&gt;
&lt;td&gt;⭐⭐⭐&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;AI/ML Support&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐⭐&lt;/td&gt;
&lt;td&gt;⭐⭐&lt;/td&gt;
&lt;td&gt;⭐⭐⭐&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Web Dev&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;⭐⭐⭐&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐⭐&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Systems/DevOps&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;⭐⭐&lt;/td&gt;
&lt;td&gt;⭐⭐&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐⭐&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Learning Resources&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐⭐&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐⭐&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Salary Potential&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐⭐&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Use Cases and Job Markets
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Python: Data, AI, and Automation
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Primary Roles:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Data Scientist&lt;/li&gt;
&lt;li&gt;Machine Learning Engineer&lt;/li&gt;
&lt;li&gt;AI Researcher&lt;/li&gt;
&lt;li&gt;Backend Developer (Django/FastAPI)&lt;/li&gt;
&lt;li&gt;DevOps Engineer (automation scripts)&lt;/li&gt;
&lt;li&gt;QA Engineer (test automation)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Industries:&lt;/strong&gt; Tech, Finance, Healthcare, Research, Government&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Job Market Size:&lt;/strong&gt; Very large, growing fast due to AI boom&lt;/p&gt;




&lt;h3&gt;
  
  
  JavaScript: The Full Stack
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Primary Roles:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Frontend Developer&lt;/li&gt;
&lt;li&gt;Full-Stack Developer&lt;/li&gt;
&lt;li&gt;React/Node Developer&lt;/li&gt;
&lt;li&gt;Mobile App Developer (React Native)&lt;/li&gt;
&lt;li&gt;UI/UX Engineer&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Industries:&lt;/strong&gt; Every industry that has a web presence (basically all of them)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Job Market Size:&lt;/strong&gt; Largest of the three—every company needs web developers&lt;/p&gt;




&lt;h3&gt;
  
  
  Go: Cloud and Infrastructure
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Primary Roles:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Backend Engineer&lt;/li&gt;
&lt;li&gt;Cloud/DevOps Engineer&lt;/li&gt;
&lt;li&gt;Site Reliability Engineer (SRE)&lt;/li&gt;
&lt;li&gt;Systems Programmer&lt;/li&gt;
&lt;li&gt;Platform Engineer&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Industries:&lt;/strong&gt; Cloud providers (AWS, GCP, Azure), FinTech, Startups&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Job Market Size:&lt;/strong&gt; Smaller but highly specialized and well compensated&lt;/p&gt;




&lt;h2&gt;
  
  
  Learning Curve and Resources
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Python: Easiest Entry
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Why it's easy:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;English-like syntax reads almost like pseudocode&lt;/li&gt;
&lt;li&gt;Extensive documentation and tutorials&lt;/li&gt;
&lt;li&gt;"Batteries included" philosophy less boilerplate&lt;/li&gt;
&lt;li&gt;Massive beginner-friendly community&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Best Resources:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.python.org/3/tutorial/" rel="noopener noreferrer"&gt;Python.org Tutorial&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://automatetheboringstuff.com/" rel="noopener noreferrer"&gt;Automate the Boring Stuff&lt;/a&gt; (free online)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://realpython.com/" rel="noopener noreferrer"&gt;Real Python&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.freecodecamp.org/learn/scientific-computing-with-python/" rel="noopener noreferrer"&gt;freeCodeCamp Python Course&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Time to Basic Proficiency:&lt;/strong&gt; 2-3 months of consistent practice&lt;/p&gt;




&lt;h3&gt;
  
  
  JavaScript: Steeper but Essential
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Why it's challenging:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Async programming (promises, async/await) adds complexity&lt;/li&gt;
&lt;li&gt;Prototype-based inheritance confuses OOP developers&lt;/li&gt;
&lt;li&gt;Rapidly changing ecosystem (frameworks evolve fast)&lt;/li&gt;
&lt;li&gt;TypeScript now expected for serious work&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Best Resources:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" rel="noopener noreferrer"&gt;MDN JavaScript Guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://javascript.info/" rel="noopener noreferrer"&gt;JavaScript.info&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.freecodecamp.org/learn/" rel="noopener noreferrer"&gt;freeCodeCamp Full Curriculum&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.typescriptlang.org/docs/handbook/intro.html" rel="noopener noreferrer"&gt;TypeScript Handbook&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Time to Basic Proficiency:&lt;/strong&gt; 3-4 months (6+ for full-stack)&lt;/p&gt;




&lt;h3&gt;
  
  
  Go: Simple but Different
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Why it's straightforward:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Minimal syntax only 25 keywords&lt;/li&gt;
&lt;li&gt;No classes, only functions and structs&lt;/li&gt;
&lt;li&gt;Explicit error handling (no exceptions)&lt;/li&gt;
&lt;li&gt;Excellent documentation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Why it can be tricky:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Goroutines and channels have a learning curve&lt;/li&gt;
&lt;li&gt;Memory management differs from Python/JS&lt;/li&gt;
&lt;li&gt;Smaller community means fewer learning resources&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Best Resources:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://go.dev/tour/welcome/1" rel="noopener noreferrer"&gt;A Tour of Go&lt;/a&gt; (interactive)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://gobyexample.com/" rel="noopener noreferrer"&gt;Go by Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://go.dev/doc/effective_go" rel="noopener noreferrer"&gt;Effective Go&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://gophercises.com/" rel="noopener noreferrer"&gt;Gophercises&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Time to Basic Proficiency:&lt;/strong&gt; 2-3 months&lt;/p&gt;




&lt;h2&gt;
  
  
  Salary Insights
&lt;/h2&gt;

&lt;p&gt;Salaries vary significantly by &lt;strong&gt;location&lt;/strong&gt;, &lt;strong&gt;experience&lt;/strong&gt;, and &lt;strong&gt;company size&lt;/strong&gt;. Here's a general 2026 US baseline:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;th&gt;Python&lt;/th&gt;
&lt;th&gt;JavaScript&lt;/th&gt;
&lt;th&gt;Go&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Junior (0-2 years)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;$70,000 - $95,000&lt;/td&gt;
&lt;td&gt;$65,000 - $90,000&lt;/td&gt;
&lt;td&gt;$80,000 - $110,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Mid-Level (3-5 years)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;$95,000 - $140,000&lt;/td&gt;
&lt;td&gt;$90,000 - $130,000&lt;/td&gt;
&lt;td&gt;$120,000 - $160,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Senior (5+ years)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;$130,000 - $200,000+&lt;/td&gt;
&lt;td&gt;$120,000 - $180,000+&lt;/td&gt;
&lt;td&gt;$150,000 - $220,000+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Specialized (ML/AI)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;$150,000 - $300,000+&lt;/td&gt;
&lt;td&gt;N/A&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;&lt;strong&gt;Key Insight:&lt;/strong&gt; Go developers command the &lt;strong&gt;highest average salaries&lt;/strong&gt; due to scarcity and demand in cloud infrastructure. Python specialists in AI/ML can exceed these ranges significantly.&lt;/p&gt;




&lt;h2&gt;
  
  
  Which Language Should You Learn?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Learn Python if...
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;You want to break into &lt;strong&gt;data science, machine learning, or AI&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;You're interested in &lt;strong&gt;automation, scripting, or bots&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;You're coming from a &lt;strong&gt;non-technical background&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;You need to quickly &lt;strong&gt;prototype ideas&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;You're targeting &lt;strong&gt;research or academia&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Learn JavaScript if...
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;You want to build &lt;strong&gt;websites or web applications&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;You're interested in &lt;strong&gt;full-stack development&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;You prefer &lt;strong&gt;visual, interactive results&lt;/strong&gt; early on&lt;/li&gt;
&lt;li&gt;You want the &lt;strong&gt;largest job market&lt;/strong&gt; and most flexibility&lt;/li&gt;
&lt;li&gt;You enjoy working with &lt;strong&gt;frameworks and libraries&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Learn Go if...
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;You want to work on &lt;strong&gt;cloud infrastructure or DevOps&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;You're interested in &lt;strong&gt;high-performance backend systems&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;You prefer &lt;strong&gt;simplicity and explicitness&lt;/strong&gt; over flexibility&lt;/li&gt;
&lt;li&gt;You want to work at &lt;strong&gt;tech companies&lt;/strong&gt; (especially FAANG-adjacent)&lt;/li&gt;
&lt;li&gt;You're tired of &lt;strong&gt;complexity&lt;/strong&gt; in other languages&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The "Why Not Both" Approach
&lt;/h3&gt;

&lt;p&gt;These languages aren't mutually exclusive. Many developers learn multiple:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Python + Go&lt;/strong&gt;: Data engineer or ML ops roles&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;JavaScript + Python&lt;/strong&gt;: Full-stack with data skills&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Go + Python&lt;/strong&gt;: Cloud native developer with automation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;All three&lt;/strong&gt;: Senior roles with maximum flexibility&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;There's no wrong choice here only a choice that may be &lt;strong&gt;more or less aligned with your goals&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python&lt;/strong&gt; remains the &lt;strong&gt;gateway drug to programming&lt;/strong&gt; and the dominant language for the AI era. If you want to work with data, build AI models, or automate tasks, Python is your safest bet.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;JavaScript&lt;/strong&gt; is the &lt;strong&gt;language of the web&lt;/strong&gt;, and the web isn't going anywhere. If you want to build websites, apps, or dive into full-stack development, JavaScript is non negotiable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Go&lt;/strong&gt; is the &lt;strong&gt;language of the cloud&lt;/strong&gt;, and cloud infrastructure is the backbone of modern tech. If you want performance, simplicity, and top salaries in backend systems, Go is your fastest path.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My recommendation:&lt;/strong&gt; If you're completely new to programming, start with &lt;strong&gt;Python&lt;/strong&gt;. If you know Python and want to expand, learn &lt;strong&gt;Go&lt;/strong&gt; for systems work or &lt;strong&gt;JavaScript&lt;/strong&gt; for web work. If you're already a web developer, add &lt;strong&gt;Go&lt;/strong&gt; to your toolkit for backend opportunities.&lt;/p&gt;

&lt;p&gt;Whatever you choose, commit to &lt;strong&gt;building projects&lt;/strong&gt;. No language is mastered by watching tutorials alone. The best developer is the one who &lt;strong&gt;ships code&lt;/strong&gt;, regardless of the language.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>fullstack</category>
      <category>learning</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Axios Compromised: How a Backdoored npm Package Dropped a RAT on 100M+ Downloads</title>
      <dc:creator>Felipe Castillo</dc:creator>
      <pubDate>Wed, 01 Apr 2026 07:48:17 +0000</pubDate>
      <link>https://dev.to/castillodk/axios-compromised-how-a-backdoored-npm-package-dropped-a-rat-on-100m-downloads-2mob</link>
      <guid>https://dev.to/castillodk/axios-compromised-how-a-backdoored-npm-package-dropped-a-rat-on-100m-downloads-2mob</guid>
      <description>&lt;h2&gt;
  
  
  Axios Compromised: How a Backdoored npm Package Dropped a RAT on 100M+ Downloads
&lt;/h2&gt;

&lt;p&gt;The JavaScript ecosystem just suffered one of its most significant supply chain attacks in recent memory. &lt;strong&gt;Axios&lt;/strong&gt;, the ubiquitous HTTP client library downloaded over &lt;strong&gt;100 million times per week&lt;/strong&gt;, was compromised when attackers gained access to a maintainer's npm account and pushed malicious versions containing a Remote Access Trojan (RAT).&lt;/p&gt;

&lt;p&gt;This is not just another security headline. If you use Node.js in any capacity—whether for backend APIs, frontend builds, or DevOps scripts—&lt;strong&gt;this incident affects you directly&lt;/strong&gt;.&lt;/p&gt;




&lt;p&gt;Índice&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What Happened&lt;/li&gt;
&lt;li&gt;How the Attack Worked&lt;/li&gt;
&lt;li&gt;The Timeline of Events&lt;/li&gt;
&lt;li&gt;Which Versions Were Affected&lt;/li&gt;
&lt;li&gt;How to Check if You Were Affected&lt;/li&gt;
&lt;li&gt;What Attackers Could Do With the RAT&lt;/li&gt;
&lt;li&gt;The npm Ecosystem Problem&lt;/li&gt;
&lt;li&gt;How to Protect Yourself&lt;/li&gt;
&lt;li&gt;Lessons Learned&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  What Happened
&lt;/h2&gt;

&lt;p&gt;On March 30, 2026, security researchers at &lt;strong&gt;StepSecurity&lt;/strong&gt; discovered that the popular &lt;code&gt;axios&lt;/code&gt; npm package—used by millions of developers for making HTTP requests in JavaScript and TypeScript applications—had been backdoored.&lt;/p&gt;

&lt;p&gt;Attackers compromised an &lt;strong&gt;existing maintainer's account&lt;/strong&gt; and published malicious versions (&lt;a href="mailto:axios@1.14.1"&gt;axios@1.14.1&lt;/a&gt; and &lt;a href="mailto:axios@0.30.4"&gt;axios@0.30.4&lt;/a&gt;) that included a Remote Access Trojan. The trojan was disguised within the package's build process, making it difficult to detect through standard auditing methods.&lt;/p&gt;

&lt;p&gt;The attack was sophisticated: it didn't modify the source code directly but injected malicious code during the &lt;strong&gt;post-install script&lt;/strong&gt; execution, allowing attackers to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Execute arbitrary code on developer machines&lt;/li&gt;
&lt;li&gt;Steal environment variables (including API keys and credentials)&lt;/li&gt;
&lt;li&gt;Establish persistent remote access&lt;/li&gt;
&lt;li&gt;Spread laterally within CI/CD environments&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  How the Attack Worked
&lt;/h2&gt;

&lt;p&gt;The attackers leveraged a technique that security teams call &lt;strong&gt;"dependency confusion"&lt;/strong&gt; combined with &lt;strong&gt;"typosquatting"&lt;/strong&gt; elements. However, in this case, they went straight for the maintainer account—indicating either a phishing compromise or credential stuffing attack.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Infection Vector
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Malicious code was injected into postinstall scripts&lt;/span&gt;
&lt;span class="c1"&gt;// disguised as part of the normal build process&lt;/span&gt;

&lt;span class="c1"&gt;// The RAT connected to an external server and awaited commands&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;net&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;net&lt;/span&gt;&lt;span class="dl"&gt;'&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;exec&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;child_process&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;// This code ran silently during npm install&lt;/span&gt;
&lt;span class="c1"&gt;// Exfiltrating environment variables and system info&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Why This Was Effective
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Trusted package&lt;/strong&gt;: Axios is used by major frameworks and companies&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Silent execution&lt;/strong&gt;: The malicious code ran in postinstall scripts&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wide reach&lt;/strong&gt;: 100M+ weekly downloads meant massive impact potential&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Persistence&lt;/strong&gt;: The RAT could survive reinstallation attempts&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  The Timeline of Events
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Date&lt;/th&gt;
&lt;th&gt;Event&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;March 28, 2026&lt;/td&gt;
&lt;td&gt;Attackers compromise maintainer account&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;March 29, 2026&lt;/td&gt;
&lt;td&gt;Malicious versions published to npm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;March 30, 2026&lt;/td&gt;
&lt;td&gt;StepSecurity researchers discover the breach&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;March 30, 2026&lt;/td&gt;
&lt;td&gt;npm removes malicious versions, notifies users&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;March 31, 2026&lt;/td&gt;
&lt;td&gt;Full disclosure and technical analysis published&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The attack went undetected for approximately &lt;strong&gt;48 hours&lt;/strong&gt; before being discovered and remediated.&lt;/p&gt;




&lt;h2&gt;
  
  
  Which Versions Were Affected
&lt;/h2&gt;

&lt;p&gt;According to the official axios security advisory, the following versions were compromised:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="mailto:axios@1.14.1"&gt;axios@1.14.1&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="mailto:axios@0.30.4"&gt;axios@0.30.4&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  How to Check if You Were Affected
&lt;/h2&gt;

&lt;p&gt;Run these commands in your project directory:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Check your axios version&lt;/span&gt;
npm list axios

&lt;span class="c"&gt;# View detailed dependency tree&lt;/span&gt;
npm &lt;span class="nb"&gt;ls &lt;/span&gt;axios

&lt;span class="c"&gt;# Check for postinstall scripts&lt;/span&gt;
&lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; &lt;span class="s2"&gt;"postinstall"&lt;/span&gt; node_modules/axios/package.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  For Package.json Inspection
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;Check&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;your&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;package.json&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;for&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;affected&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;versions&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"dependencies"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"axios"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"1.14.1"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;VULNERABLE&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  GitHub's Advantage
&lt;/h3&gt;

&lt;p&gt;If you use &lt;strong&gt;Dependabot&lt;/strong&gt; or &lt;strong&gt;GitHub Actions&lt;/strong&gt;, check your security advisories tab. GitHub automatically flagged projects using vulnerable versions.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Attackers Could Do With the RAT
&lt;/h2&gt;

&lt;p&gt;Once installed on a developer's machine, the Remote Access Trojan had broad capabilities:&lt;/p&gt;

&lt;h3&gt;
  
  
  Data Exfiltration
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// The RAT could steal:&lt;/span&gt;
&lt;span class="c1"&gt;// - AWS/GCP/Azure credentials from environment&lt;/span&gt;
&lt;span class="c1"&gt;// - npm tokens and registry authentication&lt;/span&gt;
&lt;span class="c1"&gt;// - SSH keys&lt;/span&gt;
&lt;span class="c1"&gt;// - Database connection strings&lt;/span&gt;
&lt;span class="c1"&gt;// - API keys for third-party services&lt;/span&gt;

&lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;API_KEYS&lt;/span&gt; &lt;span class="c1"&gt;// All environment variables&lt;/span&gt;
&lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;AWS_ACCESS_KEY&lt;/span&gt;
&lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;NPM_TOKEN&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Lateral Movement
&lt;/h3&gt;

&lt;p&gt;The RAT wasn't limited to the developer's machine. In CI/CD environments, it could:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Access production credentials stored in secrets managers&lt;/li&gt;
&lt;li&gt;Modify build artifacts to inject backdoors into released software&lt;/li&gt;
&lt;li&gt;Pivot to internal corporate networks&lt;/li&gt;
&lt;li&gt;Establish command-and-control channels for future attacks&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Real-World Impact Scenarios
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Developer machine compromised&lt;/strong&gt; → SSH keys stolen → Production servers accessed&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CI/CD pipeline compromised&lt;/strong&gt; → Malicious code injected into app → Users download backdoored software&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;npm token stolen&lt;/strong&gt; → More packages compromised → Supply chain escalates&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  The npm Ecosystem Problem
&lt;/h2&gt;

&lt;p&gt;This incident highlights a systemic vulnerability in the JavaScript package ecosystem. With over &lt;strong&gt;2 million packages&lt;/strong&gt; and billions of daily downloads, npm has become an attractive target for attackers.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Numbers
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;2.1M+&lt;/strong&gt; packages in the npm registry&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;100B+&lt;/strong&gt; weekly downloads&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;17M&lt;/strong&gt; developers using npm&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;1 compromise&lt;/strong&gt; can affect millions of projects&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Why Traditional Security Fails
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Security Measure&lt;/th&gt;
&lt;th&gt;Effectiveness Against This Attack&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Code review&lt;/td&gt;
&lt;td&gt;❌ Malicious code injected at build time&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;npm audit&lt;/td&gt;
&lt;td&gt;❌ RAT was obfuscated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lockfiles&lt;/td&gt;
&lt;td&gt;❌ Lockfile guarantees the malicious version&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Type checking&lt;/td&gt;
&lt;td&gt;❌ Runtime malicious code not caught&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  The Maintainer Account Problem
&lt;/h3&gt;

&lt;p&gt;The root cause is simple: &lt;strong&gt;account security&lt;/strong&gt;. npm's model relies on maintainers securing their accounts, but:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No mandatory 2FA enforcement (until recently)&lt;/li&gt;
&lt;li&gt;Password reuse across breaches&lt;/li&gt;
&lt;li&gt;Lack of behavioral monitoring&lt;/li&gt;
&lt;li&gt;No hardware security key requirement&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  How to Protect Yourself
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Immediate Actions
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Update axios immediately&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install &lt;/span&gt;axios@1.14.0
&lt;span class="c"&gt;# or&lt;/span&gt;
yarn add axios@1.14.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Rotate all credentials&lt;/strong&gt; that were present during the affected period:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;npm tokens&lt;/li&gt;
&lt;li&gt;Cloud provider keys&lt;/li&gt;
&lt;li&gt;API keys&lt;/li&gt;
&lt;li&gt;SSH keys&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Audit your environment variables&lt;/strong&gt; for suspicious access&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Long-Term Security Practices
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Use &lt;code&gt;npm audit&lt;/code&gt; and &lt;code&gt;socket.dev&lt;/code&gt;
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Install socket.dev for enhanced package analysis&lt;/span&gt;
npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; @socket.dev/npm
socket npm audit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Implement Lockfiles Strictly
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Ensure your CI/CD uses --frozen-lockfile&lt;/span&gt;
npm ci &lt;span class="nt"&gt;--frozen-lockfile&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Enable npm's Enhanced Security Features
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Enable 2FA with security keys&lt;/span&gt;
npm profile enable-2fa &lt;span class="nt"&gt;--security-key&lt;/span&gt;

&lt;span class="c"&gt;# Use token-based authentication&lt;/span&gt;
npm token create &lt;span class="nt"&gt;--readonly&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Monitor Your Dependency Tree
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Use tools like Socket, Snyk, or GuardDog&lt;/span&gt;
npx @socket.dev/npm audit &lt;span class="nt"&gt;--package&lt;/span&gt; axios@&amp;gt;&lt;span class="o"&gt;=&lt;/span&gt;0.21.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Lessons Learned
&lt;/h2&gt;

&lt;h3&gt;
  
  
  For Developers
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Lock your dependencies&lt;/strong&gt;: Use &lt;code&gt;package-lock.json&lt;/code&gt; and &lt;code&gt;npm ci&lt;/code&gt; in CI/CD&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verify package integrity&lt;/strong&gt;: Use &lt;code&gt;npm audit&lt;/code&gt; and third-party tools&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Principle of least privilege&lt;/strong&gt;: Don't give packages more permissions than needed&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monitor your environment&lt;/strong&gt;: Use secret scanning tools like GitHub's secret scanning&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  For Organizations
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Supply chain security is critical&lt;/strong&gt;: Treat dependencies as first-class security concerns&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Implement runtime protection&lt;/strong&gt;: Use tools like Sysdig, Falco, or similar&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Network segmentation&lt;/strong&gt;: Isolate CI/CD environments from production&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Incident response plans&lt;/strong&gt;: Have a playbook for supply chain attacks&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  For the Ecosystem
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Mandatory 2FA&lt;/strong&gt;: npm should enforce hardware security keys for popular packages&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code signing&lt;/strong&gt;: Implement provenance attestation for packages&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automated threat detection&lt;/strong&gt;: AI/ML-based anomaly detection for package behavior&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Maintainer security training&lt;/strong&gt;: Education on phishing and credential security&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;The Axios supply chain attack is a stark reminder that &lt;strong&gt;open-source security is everyone's responsibility&lt;/strong&gt;. While the JavaScript ecosystem's scale and convenience are remarkable, that same scale makes it an attractive target for malicious actors.&lt;/p&gt;

&lt;p&gt;The good news: this attack was discovered and remediated relatively quickly. The malicious versions were available for only 48 hours before npm removed them. However, in that window, &lt;strong&gt;thousands of projects may have been compromised&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Immediate action items:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Update axios to version &amp;gt;= 1.14.0&lt;/li&gt;
&lt;li&gt;Rotate any credentials that were exposed&lt;/li&gt;
&lt;li&gt;Implement the security practices outlined above&lt;/li&gt;
&lt;li&gt;Share this information with your team&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The security of your applications depends not just on your code, but on the code you trust. Stay vigilant, audit your dependencies, and never assume that popular packages are automatically safe.&lt;/p&gt;

&lt;p&gt;If you found this article helpful, share it with your fellow developers. See you in the next post!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>node</category>
      <category>cybersecurity</category>
      <category>npm</category>
    </item>
    <item>
      <title>I built an open source developer hub to showcase projects and profiles – looking for feedback</title>
      <dc:creator>Felipe Castillo</dc:creator>
      <pubDate>Fri, 27 Mar 2026 04:47:02 +0000</pubDate>
      <link>https://dev.to/castillodk/i-built-an-open-source-developer-hub-to-showcase-projects-and-profiles-looking-for-feedback-3890</link>
      <guid>https://dev.to/castillodk/i-built-an-open-source-developer-hub-to-showcase-projects-and-profiles-looking-for-feedback-3890</guid>
      <description>&lt;p&gt;Hi everyone,&lt;/p&gt;

&lt;p&gt;I’ve been building OpenCodex, a developer hub focused on helping developers showcase their work, projects and skills in a simple and structured way.&lt;/p&gt;

&lt;p&gt;The idea came from a personal frustration:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;LinkedIn feels too formal and not dev-focused&lt;/li&gt;
&lt;li&gt;GitHub is great, but it’s just code and not very “presentable” as a profile&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So I’m trying to build something in between a personal hub for developers.&lt;/p&gt;

&lt;p&gt;Current features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Developer profiles (/username)&lt;/li&gt;
&lt;li&gt;Featured profiles&lt;/li&gt;
&lt;li&gt;Better profile SEO and indexing for Featured profiles&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Future features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Harvard-style CV generation (/username/cv)&lt;/li&gt;
&lt;li&gt;GitHub README sync (using raw README)&lt;/li&gt;
&lt;li&gt;GitHub stats cards integration&lt;/li&gt;
&lt;li&gt;Project pages with README rendering (/username/projectId)&lt;/li&gt;
&lt;li&gt;Dev Card generator (exportable profile card)&lt;/li&gt;
&lt;li&gt;GitHub OAuth&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I’m currently looking for early users and, more importantly, honest feedback from developers.&lt;/p&gt;

&lt;p&gt;If you have thoughts, I’d really appreciate it.&lt;/p&gt;

&lt;p&gt;Link: &lt;a href="https://opencodex.app" rel="noopener noreferrer"&gt;https://opencodex.app&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>opensource</category>
      <category>sideprojects</category>
    </item>
  </channel>
</rss>
