<?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: xvdvlinux-coder</title>
    <description>The latest articles on DEV Community by xvdvlinux-coder (@xvdvlinuxcoder).</description>
    <link>https://dev.to/xvdvlinuxcoder</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%2F4095962%2F93921555-bb3e-439b-859c-2219b6a3a94c.png</url>
      <title>DEV Community: xvdvlinux-coder</title>
      <link>https://dev.to/xvdvlinuxcoder</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/xvdvlinuxcoder"/>
    <language>en</language>
    <item>
      <title>I built a lightweight language to fix what frustrates me about JavaScript</title>
      <dc:creator>xvdvlinux-coder</dc:creator>
      <pubDate>Wed, 26 Aug 2026 15:46:18 +0000</pubDate>
      <link>https://dev.to/xvdvlinuxcoder/i-built-a-lightweight-language-to-fix-what-frustrates-me-about-javascript-2ml2</link>
      <guid>https://dev.to/xvdvlinuxcoder/i-built-a-lightweight-language-to-fix-what-frustrates-me-about-javascript-2ml2</guid>
      <description>&lt;p&gt;Every time I start a small frontend project or write plain scripts, I find myself stuck between two frustrating extremes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Vanilla JavaScript&lt;/strong&gt; still carries decades of quirks: confusing equality rules (&lt;code&gt;==&lt;/code&gt; vs &lt;code&gt;===&lt;/code&gt;), multiple variable declarations, and verbose DOM APIs like &lt;code&gt;document.querySelector&lt;/code&gt; and &lt;code&gt;addEventListener&lt;/code&gt; repeated everywhere.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TypeScript&lt;/strong&gt; adds solid compile-time typing, but it brings heavy tooling friction: &lt;code&gt;tsconfig.json&lt;/code&gt; configurations, bundler setups, build plugins, and massive &lt;code&gt;node_modules&lt;/code&gt; before you write a single line. And at runtime, you are still writing the exact same verbose DOM boilerplate.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I wanted something clean in between. So I built &lt;strong&gt;Oriented-Direct&lt;/strong&gt; (&lt;code&gt;.osp&lt;/code&gt;), a language that compiles to standard JavaScript with zero external dependencies.&lt;/p&gt;




&lt;h2&gt;
  
  
  What does it look like?
&lt;/h2&gt;

&lt;p&gt;The syntax removes ambiguity and cuts down browser boilerplate:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;val submitBtn = @find("#submit");
val statusText = @id("status");

@on(submitBtn, "click", async (e) =&amp;gt; {
    @css(submitBtn, { opacity: "0.6" });
    @text(statusText, "Processing...");

    val res = await fetch("/api/data");
    @log("Done:", res);
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Key differences from standard JS:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No variable confusion&lt;/strong&gt;: Only &lt;code&gt;val&lt;/code&gt; (immutable) and &lt;code&gt;mut&lt;/code&gt; (mutable).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Strict equality&lt;/strong&gt;: &lt;code&gt;==&lt;/code&gt; and &lt;code&gt;!=&lt;/code&gt; always transpile to &lt;code&gt;===&lt;/code&gt; and &lt;code&gt;!==&lt;/code&gt;. No loose equality traps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Built-in DOM directives&lt;/strong&gt;: &lt;code&gt;@find&lt;/code&gt;, &lt;code&gt;@on&lt;/code&gt;, &lt;code&gt;@css&lt;/code&gt;, &lt;code&gt;@html&lt;/code&gt;, &lt;code&gt;@text&lt;/code&gt;, and &lt;code&gt;@emit&lt;/code&gt; directly in the grammar.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero-config toolchain&lt;/strong&gt;: It comes with its own bundler, dev server with live reload, and Base64-VLQ source map generator in ~5K lines of pure JavaScript.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because the syntax is so concise, it also cuts down token usage by ~33% when feeding code to AI agents and LLMs.&lt;/p&gt;




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

&lt;p&gt;You can run the dev server instantly with zero install:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @xvdxlinux/oriented-direct dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or install it globally:&lt;br&gt;
&lt;/p&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; &lt;span class="nt"&gt;-g&lt;/span&gt; @xvdxlinux/oriented-direct
ospc dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repo&lt;/strong&gt;: &lt;a href="https://github.com/xvdvlinux-coder/Oriented-Direct" rel="noopener noreferrer"&gt;https://github.com/xvdvlinux-coder/Oriented-Direct&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wiki&lt;/strong&gt;: &lt;a href="https://github.com/xvdvlinux-coder/Oriented-Direct/wiki" rel="noopener noreferrer"&gt;https://github.com/xvdvlinux-coder/Oriented-Direct/wiki&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;npm&lt;/strong&gt;: &lt;a href="https://www.npmjs.com/package/@xvdxlinux/oriented-direct" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/@xvdxlinux/oriented-direct&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Would love to hear your feedback on the syntax design and approach!&lt;/p&gt;



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

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>opensource</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
