<?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: Glauber Portella</title>
    <description>The latest articles on DEV Community by Glauber Portella (@glauber_portella).</description>
    <link>https://dev.to/glauber_portella</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%2F2072995%2F3a6ee8db-56c6-4f9b-9077-127a4e31980b.jpg</url>
      <title>DEV Community: Glauber Portella</title>
      <link>https://dev.to/glauber_portella</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/glauber_portella"/>
    <language>en</language>
    <item>
      <title>SpecMD — What if Your Documentation Was Your Code?</title>
      <dc:creator>Glauber Portella</dc:creator>
      <pubDate>Sat, 20 Dec 2025 20:48:09 +0000</pubDate>
      <link>https://dev.to/glauber_portella/specmd-what-if-your-documentation-was-your-code-oed</link>
      <guid>https://dev.to/glauber_portella/specmd-what-if-your-documentation-was-your-code-oed</guid>
      <description>&lt;p&gt;One of the biggest pain points in software development is keeping documentation and code in sync.&lt;br&gt;
We document later, when we have time, when we remember, when the project “stabilizes” — and then it never does.&lt;/p&gt;

&lt;p&gt;But what if the flow was reversed?&lt;br&gt;
What if the documentation was the code?&lt;/p&gt;

&lt;p&gt;That’s the thinking behind SpecMD.&lt;/p&gt;

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

&lt;p&gt;Documentation is often:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;outdated&lt;/li&gt;
&lt;li&gt;ignored&lt;/li&gt;
&lt;li&gt;inconsistent with the actual code&lt;/li&gt;
&lt;li&gt;hard to maintain&lt;/li&gt;
&lt;li&gt;rarely trusted&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Meanwhile, the code is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the source of truth&lt;/li&gt;
&lt;li&gt;reliable&lt;/li&gt;
&lt;li&gt;but rarely immediately understandable&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These two worlds don’t have to be separate.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Idea: SpecMD
&lt;/h2&gt;

&lt;p&gt;SpecMD is an approach where documentation is written in Markdown, and that Markdown becomes the source of truth for how the software should behave.&lt;/p&gt;

&lt;p&gt;The idea is simple:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Write the intended behavior and rules in plain text&lt;/li&gt;
&lt;li&gt;That text becomes executable code&lt;/li&gt;
&lt;li&gt;The code validates that the implementation matches the document&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If documentation and implementation diverge:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The test fails&lt;/li&gt;
&lt;li&gt;The inconsistency is visible immediately&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;Imagine building software with these conditions:&lt;/p&gt;

&lt;p&gt;✔️ Every business rule in the documentation is automatically tested&lt;br&gt;
✔️ Docs become a living part of software development&lt;br&gt;
✔️ New developers learn behavior from Markdown, not tribal knowledge&lt;br&gt;
✔️ Changing a rule means changing the documentation&lt;br&gt;
✔️ Documentation can’t drift, because it validates the actual code&lt;/p&gt;

&lt;p&gt;That changes everything.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Simple Example
&lt;/h2&gt;

&lt;p&gt;A document line might say:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The user’s email address must be unique in the system.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That sentence becomes executable logic.&lt;/p&gt;

&lt;p&gt;If the implementation allows duplicates, the document surfaces the error.&lt;/p&gt;

&lt;p&gt;Documentation becomes enforcement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who Is This For?
&lt;/h2&gt;

&lt;p&gt;SpecMD can help teams that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;build critical systems&lt;/li&gt;
&lt;li&gt;manage large or distributed codebases&lt;/li&gt;
&lt;li&gt;onboard new developers often&lt;/li&gt;
&lt;li&gt;maintain complex business rules&lt;/li&gt;
&lt;li&gt;need reliable documentation trust&lt;/li&gt;
&lt;li&gt;want clarity and traceability&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you’ve suffered from stale documentation, this will resonate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the Full Article
&lt;/h2&gt;

&lt;p&gt;To dive deeper into the concept and see the bigger vision, here’s the full write-up:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://medium.com/@glauberportella/specmd-what-if-your-documentation-was-your-code-81d8af1e97a6" rel="noopener noreferrer"&gt;https://medium.com/@glauberportella/specmd-what-if-your-documentation-was-your-code-81d8af1e97a6&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub Open Research Project at&lt;/strong&gt;: &lt;a href="https://github.com/glauberportella/specmd" rel="noopener noreferrer"&gt;https://github.com/glauberportella/specmd&lt;/a&gt; &lt;/p&gt;

&lt;h2&gt;
  
  
  Let’s Talk
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What do you think?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Should documentation play a more active role in how we build software?&lt;/p&gt;

&lt;p&gt;Can description become execution?&lt;/p&gt;

&lt;p&gt;Drop your thoughts — I’d love to hear perspectives from other developers who’ve battled with this problem.&lt;/p&gt;

</description>
      <category>ia</category>
      <category>documentation</category>
      <category>llm</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
