<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tony Peakman on Medium]]></title>
        <description><![CDATA[Stories by Tony Peakman on Medium]]></description>
        <link>https://medium.com/@PeakmanTony?source=rss-5eba70a59475------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*2sBfIprCtIQIAK4X.jpg</url>
            <title>Stories by Tony Peakman on Medium</title>
            <link>https://medium.com/@PeakmanTony?source=rss-5eba70a59475------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 22:02:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@PeakmanTony/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why dagger.js Is the Perfect Frontend Framework for Backend Developers]]></title>
            <link>https://javascript.plainenglish.io/why-dagger-js-is-the-perfect-frontend-framework-for-backend-developers-1beb3965d9b7?source=rss-5eba70a59475------2</link>
            <guid isPermaLink="false">https://medium.com/p/1beb3965d9b7</guid>
            <category><![CDATA[daggerjs]]></category>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Tony Peakman]]></dc:creator>
            <pubDate>Mon, 06 Oct 2025 05:39:23 GMT</pubDate>
            <atom:updated>2025-10-16T01:26:55.019Z</atom:updated>
            <content:encoded><![CDATA[<p>Frontend development has never been more powerful, but it has also never been more overwhelming. React, Vue, Angular, Svelte — these frameworks shaped the web we know today. But let’s be honest: for a <strong>backend developer</strong>, they often feel like overkill.</p><p>Most backend engineers don’t want to spend days configuring build tools or debugging npm dependencies just to render a table or a button. They just want something that works with <strong>HTML + JavaScript, no fuss</strong>.</p><p>This is exactly where <a href="https://daggerjs.org/"><strong>dagger.js</strong></a> comes in. It’s a lightweight, runtime-only, no-build frontend framework that feels like a natural extension of backend template engines.</p><h3>The Pain Points of Backend Developers in Frontend</h3><p><strong>Steep Learning Curve</strong><br> React and Vue are fantastic, but they demand a different mindset. You need to learn JSX, hooks, reactive stores, and sometimes TypeScript just to get started. For a backend developer who lives in Java, Go, or Python, this feels like switching professions.</p><p><strong>Small Needs, Big Frameworks</strong><br> Often, backend developers don’t want to build a “full SPA.” They just need to add a search box, a dynamic table, or a simple form to an existing admin page. Using React/Vue feels like bringing a tank to a knife fight.</p><p><strong>Dependency and Maintenance Hell</strong><br> Backend systems are already complex. Adding a modern frontend stack means introducing dozens (sometimes hundreds) of npm packages. Each one brings potential security updates, breaking changes, and CI/CD integration headaches.</p><h3>dagger.js: Designed for Simplicity</h3><p>So why does dagger.js shine here?</p><h3>1. Zero Build, Zero Config</h3><p>Drop a &lt;script&gt; into your page and you’re done. No Webpack, no Vite, no Babel. dagger.js runs directly in the browser, just like good old JavaScript.</p><h3>2. Purely Declarative, Zero API</h3><p>dagger.js works through HTML-like directives. Think *each, +click, *value. If you’ve ever used JSP, Thymeleaf, Blade, or Django templates, this will feel like home.</p><pre>&lt;ul&gt;<br>  &lt;li *each=&quot;items&quot;&gt;${ item }&lt;/li&gt;<br>&lt;/ul&gt;<br>&lt;button +click=&quot;addItem(item, items)&quot;&gt;Add&lt;/button&gt;</pre><p>No complex APIs to memorize — just write HTML with a touch of declarative sugar.</p><h3>3. Lightweight and Dependency-Free</h3><p>The whole framework is under 20KB. No third-party dependencies. You can embed it in any backend-generated HTML page without bloating your project.</p><h3>4. Built for Admin Systems</h3><p>Forms, tables, filters, buttons — the bread and butter of backend applications. dagger.js was born for these use cases. It gives you just enough power without forcing you into a whole new ecosystem.</p><h3>5. Incremental Adoption</h3><p>Unlike React or Angular, dagger.js doesn’t demand a “rewrite.” You can sprinkle it onto an existing page wherever you need interactivity. It’s progressive in the truest sense.</p><h3>Why dagger.js Feels Natural for Backend Developers</h3><p><strong>Familiar Mindset</strong>: It’s basically an HTML templating engine with client-side powers.</p><p><strong>No Environment Hassles</strong>: No node_modules, no package.json, no broken pipelines.</p><p><strong>Instant Productivity</strong>: Great for quick prototypes, internal tools, and MVPs.</p><p><strong>Low Maintenance</strong>: Small, dependency-free, easy to upgrade.</p><p>In short: dagger.js bridges the gap between <strong>backend simplicity</strong> and <strong>frontend interactivity</strong>.</p><h3>Conclusion</h3><p>For massive frontend projects, React, Vue, and Svelte remain excellent choices. But most backend developers don’t need that level of complexity. They need something that:</p><ul><li>Plays nicely with existing backend templates</li><li>Requires no build or tooling setup</li><li>Lets them add dynamic behavior in minutes, not weeks</li></ul><p>That’s exactly what <strong>dagger.js</strong> delivers.</p><p>It’s not just another frontend framework — it’s the framework that makes sense for backend developers who want power <strong>without the pain</strong>.</p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1beb3965d9b7" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/why-dagger-js-is-the-perfect-frontend-framework-for-backend-developers-1beb3965d9b7">Why dagger.js Is the Perfect Frontend Framework for Backend Developers</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[dagger.js: Understanding Nested Scopes the Easy Way]]></title>
            <link>https://javascript.plainenglish.io/dagger-js-understanding-nested-scopes-the-easy-way-6c304a36b57c?source=rss-5eba70a59475------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c304a36b57c</guid>
            <category><![CDATA[daggerjs]]></category>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Tony Peakman]]></dc:creator>
            <pubDate>Mon, 06 Oct 2025 01:06:43 GMT</pubDate>
            <atom:updated>2025-10-16T01:26:58.769Z</atom:updated>
            <content:encoded><![CDATA[<p>Front-end frameworks are powerful, but sometimes they hide simple truths under layers of complexity. One of those truths is <strong>scope</strong>: who owns which variable, and who gets to see it.</p><p>In <strong>dagger.js</strong>, scope is not just a concept you read about in JavaScript textbooks — it’s something you feel directly in your HTML. A single directive like +load can spin up a new scope, and suddenly your template starts “talking” to variables that didn’t exist a second ago.</p><p>Let’s take a closer look.</p><h3>The Problem: Which Value Wins?</h3><p>Imagine we have two nested containers, each with their own +load directive. Both define a variable called text. Who wins?</p><pre>&lt;div id=&quot;host1&quot; +load=&quot;{<br>    text: &#39;Hello dagger!&#39;,<br>    a: 1<br>}&quot;&gt;<br>    &lt;div id=&quot;host2&quot; +load=&quot;{<br>        text: &#39;Hi dagger!&#39;,<br>        b: 2<br>    }&quot;&gt;<br>      &lt;button id=&quot;btn&quot; +click=&quot;alert($scope.a + $scope.b)&quot;&gt;<br>        ${ $scope.text }<br>      &lt;/button&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;</pre><p>When rendered:</p><p>The button shows <strong>“Hi dagger!”</strong></p><p>Clicking the button pops up <strong>3</strong></p><p>So what happened?</p><ul><li>Inner scope’s text <strong>overrides</strong> the outer scope’s text.</li><li>Inner scope’s b=2 coexists with outer scope’s a=1.</li><li>Both values remain accessible at runtime.</li></ul><p>This is how scope in dagger.js works: the closest definition always takes precedence.</p><h3>Modeling It in Plain JavaScript</h3><p>Frameworks often feel like black boxes. But dagger.js is lightweight enough that we can model its behavior in plain JS. Let’s use an Immediately Invoked Function Expression (IIFE) to mimic what happens under the hood.</p><pre>(() =&gt; {<br>    let $scope = { // outer +load<br>        text: &#39;Hello dagger!&#39;,<br>        a: 1<br>    };<br>    { // inner +load<br>        $scope = Object.setPrototypeOf({<br>            text: &#39;Hi dagger!&#39;,<br>            b: 2<br>        }, $scope);<br>        const button = document.querySelector(&#39;#btn&#39;);<br>        button.innerText = $scope.text; // -&gt; &quot;Hi dagger!&quot;<br>        button.addEventListener(&#39;click&#39;, () =&gt; {<br>            alert($scope.a + $scope.b); // -&gt; 1 + 2 = 3<br>        });<br>    }<br>})();</pre><h3>Why Object.setPrototypeOf?</h3><p>Notice the trick: instead of mutating the same object with Object.assign, we create a <strong>new object</strong> whose prototype is the outer scope.</p><ul><li><strong>Override behavior:</strong> inner text shadows outer text.</li><li><strong>Inheritance:</strong> a is not defined inside, so the lookup climbs the prototype chain and finds a=1.</li><li><strong>Isolation:</strong> outer scope stays intact. Inner scope only shadows, it doesn’t destroy.</li></ul><p>This creates a clean <strong>scope chain</strong>, much like lexical scoping in JavaScript functions.</p><h3>Comparing Two Models</h3><p><strong>Object.assign approach</strong></p><ul><li>Flattens everything into a single object.</li><li>Easy to implement, but the outer scope can be permanently altered.</li></ul><p><strong>Object.setPrototypeOf approach</strong></p><ul><li>Builds a scope chain, layer by layer.</li><li>More faithful to the idea of nested scopes.</li><li>Safer, since the outer scope is never overwritten.</li></ul><p>dagger.js naturally leans toward the second model: minimal, expressive, and closer to how we already think about scopes in JavaScript.</p><h3>Why This Matters</h3><p>Nested scopes aren’t just an academic detail. They unlock:</p><ul><li><strong>Predictable rendering</strong>: inner values always win, but you don’t lose access to the outer ones.</li><li><strong>Composable components</strong>: each piece can define its own local state without worrying about stepping on neighbors.</li><li><strong>Debuggability</strong>: when something goes wrong, you can trace the scope chain instead of guessing which value got mutated.</li></ul><h3>Final Thoughts</h3><p>dagger.js doesn’t try to reinvent scoping — it just gives you the raw power of <strong>JavaScript’s lexical model</strong> right inside your HTML.</p><ul><li>Inner scopes override outer scopes.</li><li>Outer scopes remain accessible through the chain.</li><li>No build tools, no heavy runtime, just <strong>direct declarative power</strong>.</li></ul><p>That’s the beauty of dagger.js: it shows how far we can go by leaning on the browser’s own capabilities instead of layering on abstraction after abstraction.</p><p>Sometimes the simplest rules — like “nearest definition wins” — are the ones that make a framework feel natural.</p><p>👉 Want to play with it? Drop the sample into the <a href="https://codepen.io/dagger8224/pen/YzeNmRz">demo</a>, tweak the +load values, and see how dagger.js resolves your scopes in real time.</p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c304a36b57c" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/dagger-js-understanding-nested-scopes-the-easy-way-6c304a36b57c">dagger.js: Understanding Nested Scopes the Easy Way</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Forget Build Tools: dagger.js Brings Back the Simplicity of the Web]]></title>
            <link>https://javascript.plainenglish.io/forget-build-tools-dagger-js-brings-back-the-simplicity-of-the-web-9d98cb47bafd?source=rss-5eba70a59475------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d98cb47bafd</guid>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[framework]]></category>
            <dc:creator><![CDATA[Tony Peakman]]></dc:creator>
            <pubDate>Sun, 21 Sep 2025 09:43:58 GMT</pubDate>
            <atom:updated>2025-10-16T01:27:03.087Z</atom:updated>
            <content:encoded><![CDATA[<p>Frontend development has never been more powerful — or more complicated.<br> React, Vue, Angular, Svelte: each framework has pushed the web forward, but they’ve also buried us in build pipelines, config files, and dependency trees.</p><p>Sometimes you don’t want to set up a factory line just to ship a button.<br> You just want <strong>HTML + JS, running in the browser, now</strong>.</p><p>That’s where <strong>dagger.js</strong> comes in.</p><h3>The Problem with Modern Frontend</h3><p>Let’s face it:</p><ul><li><strong>Steep learning curve</strong>: React and Vue require weeks before a new dev feels productive.</li><li><strong>Build-step tax</strong>: Vite, Webpack, Babel — great tools, but a huge overhead for small projects.</li><li><strong>Dependency bloat</strong>: Dozens of packages that break at the worst time.</li><li><strong>Lock-in</strong>: Framework-specific APIs that make migrating nearly impossible.</li></ul><p>The paradox?<br> <strong>Websites in 2025 are slower than the ones from 1999 — even though our hardware is 100x faster.</strong></p><h3>dagger.js in a Nutshell</h3><p>dagger.js is a directive-driven, pure runtime framework with:</p><ul><li>Zero build step</li><li>No dependencies</li><li>Zero API surface</li><li>Tiny footprint</li></ul><p>Drop it into an HTML page and it just works. No bundler, no compiler, no install.</p><p>It’s the minimal cousin of Alpine.js — but even lighter.</p><h3>Example 1: The Counter</h3><p>The classic first step:</p><pre>&lt;div dg-cloak +load=&quot;{ count: 0 }&quot;&gt;<br>  &lt;button +click=&quot;count++&quot;&gt;Clicked: ${ count }&lt;/button&gt;<br>  &lt;button +click=&quot;count = 0&quot;&gt;click to reset&lt;/button&gt;<br>&lt;/div&gt;</pre><p>👉 <a href="https://codepen.io/dagger8224/pen/PwZwKPp?editors=1000">Live demo</a></p><p>That’s it. No npm install. No “Hello World” boilerplate. The code you see is the code that runs.</p><h3>Example 2: Handle click outside</h3><p>another simple demo, handle popover click:</p><pre>&lt;div dg-cloak class=&quot;popover-container&quot; +load=&quot;{ exist: false }&quot;&gt;<br>  &lt;button +click=&quot;exist = !exist&quot;&gt;<br>    Toggle Popover<br>  &lt;/button&gt;<br>  &lt;div class=&quot;popover&quot; *exist +click#outside=&quot;exist = false&quot;&gt;<br>    I&#39;m a popover!<br>  &lt;/div&gt;<br>&lt;/div&gt;</pre><p>👉 <a href="https://codepen.io/dagger8224/pen/MYaXvXo?editors=1000">Live demo</a></p><h3>How dagger.js compares:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*aO0H0R_JMZxwYwVG9nldSw.png" /></figure><p>dagger.js isn’t here to replace React or Vue.<br> It’s here to <strong>redefine the baseline</strong>: the simplest possible way to add interactivity to the web.</p><h3>The Hidden Risk: Supply Chain Attacks</h3><p>Modern frontend apps often depend on <strong>hundreds of npm packages</strong>. Even a “Hello World” in React can install megabytes of code you’ll never read or audit.</p><p>This complexity has a cost: <strong>supply chain attacks</strong>.</p><ul><li>Malicious code injected into popular npm packages has compromised thousands of apps.</li><li>Attackers exploit transitive dependencies — you didn’t install the bad package directly, but one of your dependencies did.</li><li>Teams now spend resources on dependency scanners, security audits, and patching — instead of building features.</li></ul><p>In other words: <strong>every dependency is a potential backdoor.</strong></p><h3>dagger.js and Security by Simplicity</h3><p>dagger.js takes a radically different path:</p><ul><li><strong>No npm install required</strong> — drop a script tag and go.</li><li><strong>Zero dependencies</strong> — no hidden transitive packages to worry about.</li><li><strong>Pure runtime</strong> — what you see in the source is what actually runs.</li></ul><p>By eliminating the package tree, dagger.js <strong>shrinks the attack surface to almost zero</strong>.<br> Security isn’t an afterthought — it’s built into the philosophy of simplicity.</p><h3>Where dagger.js Shines</h3><ul><li>Rapid Prototyping — Hackathons, MVPs, idea validation</li><li>Education — Teach students web dev without the build-tool rabbit hole</li><li>Internal Tools — Dashboards and CRUD apps that don’t need a 200MB node_modules folder</li><li>IoT / Edge Apps — Small, constrained environments</li></ul><h3>The Philosophy</h3><p>dagger.js is built on a simple question:<br> <strong>What if building for the web was as simple as it used to be?</strong></p><ul><li>Write once, run instantly</li><li>No bundler, no compiler, no CI/CD pipeline just to render a div</li><li>A framework so small you can read it all in one sitting</li></ul><p>It’s not about competing with React.<br> It’s about reminding us how the web can be — simple, direct, powerful.</p><h3>Join the Experiment</h3><p>dagger.js is still young. But the best time to get involved is now.</p><ul><li>Star the repo: <a href="https://github.com/dagger8224/dagger.js">https://github.com/dagger8224/dagger.js</a></li><li>Play with demos: <a href="https://codepen.io/dagger8224">https://codepen.io/dagger8224</a></li><li>Share feedback, ideas, or use cases</li></ul><p>dagger.js is not the next big framework.<br> It’s the next small one: simple, intuitive, and ready to use.</p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d98cb47bafd" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/forget-build-tools-dagger-js-brings-back-the-simplicity-of-the-web-9d98cb47bafd">Forget Build Tools: dagger.js Brings Back the Simplicity of the Web</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>