<?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>Forem: Shakirul Hasan</title>
    <description>The latest articles on Forem by Shakirul Hasan (@_khanshaheb).</description>
    <link>https://forem.com/_khanshaheb</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F181136%2Fb757384c-50d3-462a-bdcb-26f07b183529.png</url>
      <title>Forem: Shakirul Hasan</title>
      <link>https://forem.com/_khanshaheb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/_khanshaheb"/>
    <language>en</language>
    <item>
      <title>How I'm running an autonomous Claude Code loop on a real shipped product</title>
      <dc:creator>Shakirul Hasan</dc:creator>
      <pubDate>Tue, 28 Apr 2026 08:56:56 +0000</pubDate>
      <link>https://forem.com/_khanshaheb/how-im-running-an-autonomous-claude-code-loop-on-a-real-shipped-product-48lf</link>
      <guid>https://forem.com/_khanshaheb/how-im-running-an-autonomous-claude-code-loop-on-a-real-shipped-product-48lf</guid>
      <description>&lt;p&gt;&lt;a href="https://type.win" rel="noopener noreferrer"&gt;type.win&lt;/a&gt; is a Balatro-styled typing arcade I built — two games, a leaderboard, live on Cloudflare Workers. The interesting part isn't really the game, though. It's that &lt;strong&gt;the bulk of the routine commits to it are written by an autonomous Claude Code loop&lt;/strong&gt;, not by me directly.&lt;/p&gt;

&lt;p&gt;I review a &lt;code&gt;dev&lt;/code&gt; branch periodically and merge it to &lt;code&gt;main&lt;/code&gt;. The loop never touches production and never deploys. It opens PRs, auto-merges them when CI is green, and builds shared knowledge across sessions through a handful of markdown files in the repo.&lt;/p&gt;

&lt;p&gt;This post is about how that loop is structured, what works, and what's already broken.&lt;/p&gt;

&lt;h2&gt;
  
  
  The MAPE-K shape
&lt;/h2&gt;

&lt;p&gt;MAPE-K is a self-adaptive systems pattern from early-2000s autonomic computing: &lt;strong&gt;M&lt;/strong&gt;onitor, &lt;strong&gt;A&lt;/strong&gt;nalyze, &lt;strong&gt;P&lt;/strong&gt;lan, &lt;strong&gt;E&lt;/strong&gt;xecute, plus shared &lt;strong&gt;K&lt;/strong&gt;nowledge. The shape maps surprisingly well onto autonomous coding agents.&lt;/p&gt;

&lt;p&gt;Each session of the loop runs the same five phases inside an isolated git worktree.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Monitor — load shared knowledge before doing anything
&lt;/h3&gt;

&lt;p&gt;The session has no memory of prior runs except what's persisted to the repo. So phase one is reading:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;.claude/invariants.md&lt;/code&gt; — hard rules. "Leaderboard logic must remain server-trusted." "No theme toggle." "Desktop only."&lt;/li&gt;
&lt;li&gt;The last 20 entries of &lt;code&gt;changelog.md&lt;/code&gt; — what predecessors did, what's partial or blocked.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.claude/rejected-decisions.md&lt;/code&gt; — proposals already explored and explicitly rejected. Don't re-propose.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;nextideas.md&lt;/code&gt; — my directional file. Priorities, ideas, occasional hard directives.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;gh pr list --state open&lt;/code&gt; — currently-open PRs, mapped to the files they touch. Those files are &lt;strong&gt;claimed&lt;/strong&gt;; this session must not modify them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This phase is non-negotiable. Skipping it produces drift, duplicate work, and re-litigation of decisions I already made.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Analyze — pick exactly one task by tier
&lt;/h3&gt;

&lt;p&gt;Strict priority order:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tier A — a real bug.&lt;/strong&gt; Run &lt;code&gt;bun run test&lt;/code&gt;, &lt;code&gt;npx tsc --noEmit&lt;/code&gt;, &lt;code&gt;bun run check&lt;/code&gt;. If anything fails on &lt;code&gt;main&lt;/code&gt;, that's the highest priority. Otherwise scan recent commits, dead code, missing test coverage on security paths, a11y gaps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tier B — planned work.&lt;/strong&gt; Smallest shippable slice from &lt;code&gt;nextideas.md&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tier C — improve an existing AI-authored PR.&lt;/strong&gt; Rebase, fix CI, address reviewer notes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tier D — a new idea.&lt;/strong&gt; Only if A through C produced nothing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The phrase "do not invent bugs" under Tier A is load-bearing. Without it, the loop fabricates problems to look productive.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Plan — scoped, explicit, security-aware
&lt;/h3&gt;

&lt;p&gt;For anything touching the leaderboard, HMAC, or session tokens, the plan has to walk through the entire tamper surface. For anything touching the PixiJS scene, the plan has to address the React-isn't-aware-of-frame-state pattern (more on that below).&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Execute — TDD, then PR
&lt;/h3&gt;

&lt;p&gt;Tests first. Code second. Open a PR against &lt;code&gt;dev&lt;/code&gt; (never &lt;code&gt;main&lt;/code&gt;). Auto-merge if CI is green.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Knowledge — append to changelog
&lt;/h3&gt;

&lt;p&gt;The session writes a single &lt;code&gt;changelog.md&lt;/code&gt; entry: what was done, what's left, what surprised it. The next session reads this. It's the only memory across sessions.&lt;/p&gt;




&lt;h2&gt;
  
  
  Stack notes for anyone curious
&lt;/h2&gt;

&lt;p&gt;The product is TanStack Start (React 19, file routing, SSR) on Cloudflare Workers. PixiJS v8 for Word Fall, plain DOM for Type Race. Drizzle + Neon Postgres. Clerk for auth.&lt;/p&gt;

&lt;p&gt;A few non-obvious choices worth pulling out:&lt;/p&gt;

&lt;h3&gt;
  
  
  PixiJS inside React without re-render storms
&lt;/h3&gt;

&lt;p&gt;The Word Fall scene is a plain TS class instantiated once in a &lt;code&gt;useEffect&lt;/code&gt;. It owns the &lt;code&gt;app.ticker.add&lt;/code&gt; loop and mutates Pixi objects directly every frame. &lt;strong&gt;Per-frame state never goes through React&lt;/strong&gt; — that would re-render the tree at 60fps and tank everything. React only hears about gameplay through a batched event emitter for the HUD (score, WPM, lives, streak).&lt;/p&gt;

&lt;p&gt;There's also a React-owned &lt;code&gt;ResizeObserver&lt;/code&gt; that imperatively calls &lt;code&gt;scene.forceSize(w, h)&lt;/code&gt;, in addition to PixiJS's own &lt;code&gt;resizeTo&lt;/code&gt;. PixiJS's observer can silently fail on iOS Safari URL-bar animations, leaving &lt;code&gt;app.screen&lt;/code&gt; stuck at 0 and freezing the loop. The redundant path is intentional — don't remove it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Leaderboard tamper-proofing
&lt;/h3&gt;

&lt;p&gt;Client is fully untrusted. Every score submission has to satisfy:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Clerk auth (no token → 401)&lt;/li&gt;
&lt;li&gt;HMAC-signed session token, single-use, 1h expiry, replay-protected via a &lt;code&gt;used_sessions&lt;/code&gt; PK&lt;/li&gt;
&lt;li&gt;Zod discriminated union (Word Fall and Type Race have different shapes and caps)&lt;/li&gt;
&lt;li&gt;Math-consistency check on the submitted score&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Server-side WPM recomputation&lt;/strong&gt; for Type Race — client never supplies WPM&lt;/li&gt;
&lt;li&gt;Cloudflare native rate-limit binding, 5 req / 10s / user
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json-doc"&gt;&lt;code&gt;&lt;span class="c1"&gt;// wrangler.jsonc&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nl"&gt;"ratelimits"&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="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"LEADERBOARD_RATE_LIMITER"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"namespace_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"1001"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"simple"&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;"limit"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"period"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;10&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;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;p&gt;20 dedicated unit tests cover tamper vectors. Any change to that path has to keep them green — and the loop knows this from the invariants file.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's already broken
&lt;/h2&gt;

&lt;p&gt;A few honest failures from the first few weeks:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Drift toward speculation.&lt;/strong&gt; Once Tier A and B are exhausted, sessions reach for Tier D too eagerly. My current guards are rejected-decisions.md plus the strict tier order, but the loop will sometimes invent borderline-justified work to look productive.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;File-claim race.&lt;/strong&gt; Two sessions starting within the same minute occasionally both pick the same file before one publishes its draft PR. Solvable, but ugly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Changelog noise.&lt;/strong&gt; Sessions over-document the obvious. I haven't found the right prompt phrasing to keep entries terse without losing useful signal.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;If you're running a similar loop on a real product, I'd love to hear what broke first for you, and how you guard against scope drift after the obvious bugs are fixed.&lt;/strong&gt;&lt;/p&gt;

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

&lt;p&gt;Live: ~&lt;a href="https://type.win/" rel="noopener noreferrer"&gt;type.win&lt;/a&gt;~. Desktop only — PixiJS particle layer plus keyboard-first input.&lt;br&gt;
Roast everything. Especially the loop architecture — I want to know where this falls apart at scale.&lt;/p&gt;

</description>
      <category>vibecoding</category>
      <category>gamedev</category>
      <category>webdev</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Why Should You Not Use px?</title>
      <dc:creator>Shakirul Hasan</dc:creator>
      <pubDate>Wed, 10 Jan 2024 15:09:35 +0000</pubDate>
      <link>https://forem.com/_khanshaheb/why-should-you-not-use-px-1b2m</link>
      <guid>https://forem.com/_khanshaheb/why-should-you-not-use-px-1b2m</guid>
      <description>&lt;p&gt;Using &lt;code&gt;px&lt;/code&gt; or pixels in CSS sizing is generally not recommended. This document explores alternative units of measurement that can be employed instead of &lt;code&gt;px&lt;/code&gt;. But first, let's delve into why &lt;code&gt;px&lt;/code&gt; is often considered a poor choice.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem with Pixels
&lt;/h2&gt;

&lt;p&gt;Everything displayed on a screen comprises pixels. But why does using pixels for measurement pose a problem? Websites are viewed on a variety of screens, each differing in size, orientation, zoom levels, and pixel geometries. What looks perfect on one screen might be distorted on another.&lt;/p&gt;

&lt;p&gt;Consider a &lt;code&gt;div&lt;/code&gt; on your website set to 600px, occupying half of your screen. When you resize the screen, zoom in or out, or view the site on a mobile device, your website might not display as intended. Moreover, in CSS, a pixel doesn't always correspond to a physical pixel on your screen. On high-resolution displays, several device pixels can combine to form a single CSS pixel.&lt;/p&gt;

&lt;p&gt;Additionally, pixel-based sizing scales poorly. For users with poor eyesight who have increased their device's font size, a fixed font size like &lt;code&gt;14px&lt;/code&gt; on your website might render the text unreadable, as it doesn't adjust to their preferred settings.&lt;/p&gt;

&lt;h2&gt;
  
  
  Alternatives to Pixels
&lt;/h2&gt;

&lt;p&gt;So, what are the alternatives to using &lt;code&gt;px&lt;/code&gt;? Units like &lt;code&gt;em&lt;/code&gt;, &lt;code&gt;rem&lt;/code&gt;, &lt;code&gt;ch&lt;/code&gt;, &lt;code&gt;ex&lt;/code&gt;, &lt;code&gt;vh&lt;/code&gt;, &lt;code&gt;vw&lt;/code&gt;, and others offer more flexibility. Let's explore them in detail.&lt;/p&gt;

&lt;h3&gt;
  
  
  Understanding &lt;code&gt;rem&lt;/code&gt; and &lt;code&gt;em&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;The &lt;code&gt;rem&lt;/code&gt; unit is relative to the font size of the root element of the document, which is usually the &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt; element. This means that if the font size of the &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt; element is set to 16 pixels, &lt;code&gt;1rem&lt;/code&gt; will be equivalent to 16 pixels. Using &lt;code&gt;rem&lt;/code&gt; for font sizes, margins, padding, and other properties ensures consistency throughout your website. For example, setting paragraph font sizes to &lt;code&gt;1rem&lt;/code&gt; means that they will scale appropriately if the user has different default font size settings in their browser. This makes &lt;code&gt;rem&lt;/code&gt; particularly useful for maintaining accessibility, as it adapts to the preferences of users with poor eyesight.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;em&lt;/code&gt; unit is relative to the font size of the element it's used on. It's useful for scaling designs within an element, such as for text, margins, and padding. If &lt;code&gt;em&lt;/code&gt; is used for an element's font size, it's relative to its own font size. For other properties, it's based on the element's text size.&lt;/p&gt;

&lt;p&gt;Take a look at the example:&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;style&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;html&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;16px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nt"&gt;h2&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2.5rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="c"&gt;/* 40px if root font size is 16px */&lt;/span&gt;
  &lt;span class="nt"&gt;h2&lt;/span&gt; &lt;span class="nt"&gt;span&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2em&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="c"&gt;/* Twice the font size of h2 */&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;h2&amp;gt;&amp;lt;span&amp;gt;&lt;/span&gt;Larger&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt; Text&lt;span class="nt"&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this example, changing &lt;code&gt;h2&lt;/code&gt;'s font size automatically adjusts the &lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt; size, showcasing &lt;code&gt;em&lt;/code&gt;'s adaptability.&lt;/p&gt;

&lt;h3&gt;
  
  
  What Are &lt;code&gt;ch&lt;/code&gt; and &lt;code&gt;ex&lt;/code&gt;?
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;Ch&lt;/code&gt; and &lt;code&gt;ex&lt;/code&gt; units refer to the width and height of a character, respectively. &lt;code&gt;1ch&lt;/code&gt; is the width of the character &lt;code&gt;0&lt;/code&gt;, and &lt;code&gt;1ex&lt;/code&gt; is the height of the &lt;code&gt;x&lt;/code&gt; character in your font. For instance, if you want a paragraph with a consistent character count per line regardless of font size, you can use:&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;style&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;p&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="py"&gt;max-inline-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;30ch&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Long text...&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Viewport Units
&lt;/h3&gt;

&lt;p&gt;Viewport units are responsive to the size of the user's browser window. &lt;code&gt;1vw&lt;/code&gt; represents 1% of the viewport's width, and &lt;code&gt;1vh&lt;/code&gt; is 1% of its height. To create a &lt;code&gt;div&lt;/code&gt; that takes half of the viewport's width, set its width to &lt;code&gt;50vw&lt;/code&gt;. The same concept applies to &lt;code&gt;vh&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Additionally, &lt;code&gt;vmin&lt;/code&gt; and &lt;code&gt;vmax&lt;/code&gt; are based on the smaller and larger dimensions of the viewport. A div with &lt;code&gt;width: 50vmin&lt;/code&gt; and &lt;code&gt;height: 50vmax&lt;/code&gt; occupies 50% of the viewport's smallest width and largest height.&lt;/p&gt;

&lt;h3&gt;
  
  
  Percentages (%)
&lt;/h3&gt;

&lt;p&gt;Percentages are relative to the size of the parent element. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;600px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="nt"&gt;p&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;50%&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;In this case, the &lt;code&gt;p&lt;/code&gt; tag inside the &lt;code&gt;div&lt;/code&gt; will be 300px wide.&lt;/p&gt;

&lt;h3&gt;
  
  
  Absolute Lengths
&lt;/h3&gt;

&lt;p&gt;CSS also offers units like &lt;code&gt;cm&lt;/code&gt;, &lt;code&gt;mm&lt;/code&gt;, &lt;code&gt;in&lt;/code&gt;, &lt;code&gt;pt&lt;/code&gt;, etc., based on physical measurements. However, like &lt;code&gt;px&lt;/code&gt;, these units can vary depending on the screen and are typically not recommended.&lt;/p&gt;

&lt;p&gt;In conclusion, while pixels may seem straightforward, they often lead to less flexible and accessible designs. Embracing alternative units like &lt;code&gt;em&lt;/code&gt;, &lt;code&gt;rem&lt;/code&gt;, &lt;code&gt;ch&lt;/code&gt;, &lt;code&gt;ex&lt;/code&gt;, &lt;code&gt;vw&lt;/code&gt;, &lt;code&gt;vh&lt;/code&gt;, &lt;code&gt;vmin&lt;/code&gt;, &lt;code&gt;vmax&lt;/code&gt;, and percentages can make your web designs more adaptable and user-friendly.&lt;/p&gt;

&lt;p&gt;Read the post on &lt;a href="https://medium.com/@shakirulhkhan/why-should-you-not-use-px-3021aa0b5958"&gt;Medium&lt;/a&gt;, &lt;a href="https://open.substack.com/pub/shakirulhasan/p/why-should-you-not-use-px?r=30rvns&amp;amp;utm_campaign=post&amp;amp;utm_medium=web"&gt;Substack&lt;/a&gt; or &lt;a href="https://www.linkedin.com/pulse/why-should-you-use-px-shakirul-hasan-khan-0oa8c"&gt;LinkedIn&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>css</category>
      <category>design</category>
      <category>html</category>
    </item>
  </channel>
</rss>
