<?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: Tahirih Jaliri </title>
    <description>The latest articles on DEV Community by Tahirih Jaliri  (@ctahirih).</description>
    <link>https://dev.to/ctahirih</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%2F272587%2F466b7703-04a6-4d63-8ab4-bfc8ad083e56.jpg</url>
      <title>DEV Community: Tahirih Jaliri </title>
      <link>https://dev.to/ctahirih</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ctahirih"/>
    <language>en</language>
    <item>
      <title>Vibe Coding Meets Spec-Driven Development: The Best of Both Worlds</title>
      <dc:creator>Tahirih Jaliri </dc:creator>
      <pubDate>Tue, 26 May 2026 22:54:18 +0000</pubDate>
      <link>https://dev.to/ctahirih/vibe-coding-meets-spec-driven-development-the-best-of-both-worlds-3p0c</link>
      <guid>https://dev.to/ctahirih/vibe-coding-meets-spec-driven-development-the-best-of-both-worlds-3p0c</guid>
      <description>&lt;h4&gt;
  
  
  &lt;em&gt;Stop choosing between speed and structure, you don't have to.&lt;/em&gt;
&lt;/h4&gt;




&lt;h2&gt;
  
  
  The Tension Every Developer Feels
&lt;/h2&gt;

&lt;p&gt;If you've been coding with AI assistants lately, you've probably experienced both extremes.&lt;/p&gt;

&lt;p&gt;On one side: &lt;strong&gt;vibe coding&lt;/strong&gt;, you open a chat, describe what you want in plain English, and let the model run. It feels like magic. You ship fast, you stay in flow, and the dopamine hits are real.&lt;/p&gt;

&lt;p&gt;On the other side, there's a nagging feeling. The codebase starts to drift. A component does three things it shouldn't. A bug appears that you &lt;em&gt;swear&lt;/em&gt; you didn't introduce. You ask the AI to fix it, and it breaks something else. The vibes turn chaotic.&lt;/p&gt;

&lt;p&gt;Enter &lt;strong&gt;Spec-Driven Development (SDD)&lt;/strong&gt;, the idea that before you write (or generate) a single line of code, you write a specification: a clear, structured document that defines &lt;em&gt;what&lt;/em&gt; you're building, &lt;em&gt;why&lt;/em&gt;, and &lt;em&gt;how it should behave&lt;/em&gt;. It's not a new concept, but it's having a renaissance in the age of AI coding.&lt;/p&gt;

&lt;p&gt;The good news? You don't have to pick one. In fact, combining them is arguably the most productive way to build software today.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Is Vibe Coding, Really?
&lt;/h2&gt;

&lt;p&gt;The term was popularized by Andrej Karpathy in early 2025: &lt;em&gt;"There's a new kind of coding I call vibe coding, where you fully give in to the vibes, embrace exponentials, and forget that the code even exists."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;It's characterized by:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Prompt-first, code-second thinking&lt;/li&gt;
&lt;li&gt;High iteration speed&lt;/li&gt;
&lt;li&gt;Minimal upfront planning&lt;/li&gt;
&lt;li&gt;Trusting the model to fill in the blanks&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Vibe coding shines for &lt;strong&gt;prototyping&lt;/strong&gt;, &lt;strong&gt;exploration&lt;/strong&gt;, and &lt;strong&gt;solo projects&lt;/strong&gt; where speed matters more than maintainability. It's a legitimate and powerful workflow, but it has a ceiling.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Is Spec-Driven Development?
&lt;/h2&gt;

&lt;p&gt;SDD is the practice of writing a machine-readable (and human-readable) specification &lt;em&gt;before&lt;/em&gt; implementation begins. A spec typically includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Goal&lt;/strong&gt;: What problem are we solving?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scope&lt;/strong&gt;: What's in and what's explicitly out?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Functional requirements&lt;/strong&gt;: What should the system do?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Non-functional requirements&lt;/strong&gt;: Performance, security, scalability constraints&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data models / API contracts&lt;/strong&gt;: The shape of the data&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Acceptance criteria&lt;/strong&gt;: How do we know it's done?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In an AI-assisted workflow, the spec becomes the &lt;strong&gt;single source of truth&lt;/strong&gt; you feed into every prompt. Instead of re-explaining context each time, you anchor the model to a document it can reference.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Each Approach Alone Falls Short
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Vibe Coding Without Specs
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;You: "Build me a user authentication system"
AI: *generates 300 lines of code*
You: "Actually add role-based access control"
AI: *refactors half the codebase*
You: "Wait, why is the session logic in the component?"
AI: "Good point, let me move it..."
You: *three hours later, untangling spaghetti*
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Without a spec, the AI optimizes for &lt;em&gt;your last message&lt;/em&gt;, not your actual goal. Every new prompt is a new negotiation with the model, and context drift is inevitable.&lt;/p&gt;

&lt;h3&gt;
  
  
  Spec-Driven Without the Vibe
&lt;/h3&gt;

&lt;p&gt;Heavy specification processes can kill momentum. Writing a 10-page PRD before you know if an idea even works is a trap. You over-engineer requirements for problems you haven't validated. The spec becomes a bureaucratic artifact nobody reads.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Hybrid Workflow: Spec First, Vibe Fast
&lt;/h2&gt;

&lt;p&gt;The sweet spot is a lightweight spec that guides rapid AI-assisted implementation. Here's how it works in practice:&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Write a Minimal Viable Spec (MVS)
&lt;/h3&gt;

&lt;p&gt;Before touching any AI coding tool, spend 15–30 minutes writing a short spec. It doesn't need to be formal, a markdown file works perfectly.&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;# Feature: User Authentication&lt;/span&gt;

&lt;span class="gu"&gt;## Goal&lt;/span&gt;
Allow users to register, log in, and manage sessions securely.

&lt;span class="gu"&gt;## Scope&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; IN: Email/password registration, JWT sessions, logout
&lt;span class="p"&gt;-&lt;/span&gt; OUT: OAuth, 2FA (next iteration)

&lt;span class="gu"&gt;## Data Model&lt;/span&gt;
User { id, email, passwordHash, createdAt, role: "user" | "admin" }
Session { token, userId, expiresAt }

&lt;span class="gu"&gt;## API Contracts&lt;/span&gt;
POST /auth/register  → { token, user }
POST /auth/login     → { token, user }
POST /auth/logout    → { success: boolean }
GET  /auth/me        → { user }

&lt;span class="gu"&gt;## Acceptance Criteria&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Passwords hashed with bcrypt (min 12 rounds)
&lt;span class="p"&gt;-&lt;/span&gt; JWT expires in 7 days
&lt;span class="p"&gt;-&lt;/span&gt; Invalid credentials return 401, never expose which field failed
&lt;span class="p"&gt;-&lt;/span&gt; Logout invalidates the token server-side
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. Two hundred words that prevent hours of confusion.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Use the Spec as Your Prompt Foundation
&lt;/h3&gt;

&lt;p&gt;Every AI prompt now starts with context from the spec:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Given this spec: [paste relevant section]

Implement the POST /auth/register endpoint. Use bcrypt for 
hashing and return a signed JWT. Follow the data model defined above.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The model is no longer guessing your intent, it's executing against a contract.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Vibe Within the Spec's Boundaries
&lt;/h3&gt;

&lt;p&gt;Once the structure is in place, let the vibes flow. Need to add error handling? Optimize a query? Style a component? You can move fast &lt;em&gt;because&lt;/em&gt; the foundation is solid. The spec sets the walls; the vibe coding furnishes the room.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Update the Spec When Requirements Change
&lt;/h3&gt;

&lt;p&gt;This is the discipline that separates good hybrid workflows from bad ones. When scope changes (and it will), &lt;strong&gt;update the spec first&lt;/strong&gt;, then regenerate or refactor the code. Don't let the spec become stale documentation, it's a living contract.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Step 1: Edit spec.md → add OAuth section
Step 2: Prompt AI with updated spec section
Step 3: Let it implement
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  A Practical Example: Building a Task Manager
&lt;/h2&gt;

&lt;p&gt;Let's say you want to build a simple task manager. Here's how the hybrid approach plays out:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pure vibe approach:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Build a task manager with React and Node"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You'll get &lt;em&gt;something&lt;/em&gt;, but what database? What auth? What data model? You'll spend the next hour correcting assumptions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hybrid approach:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Write a 10-minute spec:&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;# Task Manager MVP&lt;/span&gt;

&lt;span class="gu"&gt;## Stack: React + Express + SQLite (simple, no Docker needed)&lt;/span&gt;
&lt;span class="gu"&gt;## Auth: None for MVP (single user, local app)&lt;/span&gt;

&lt;span class="gu"&gt;## Data Model&lt;/span&gt;
Task { id, title, status: "todo"|"in_progress"|"done", createdAt }

&lt;span class="gu"&gt;## UI Requirements&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; List view grouped by status
&lt;span class="p"&gt;-&lt;/span&gt; Add task via inline input
&lt;span class="p"&gt;-&lt;/span&gt; Drag or click to change status
&lt;span class="p"&gt;-&lt;/span&gt; No delete (archive instead)

&lt;span class="gu"&gt;## Out of Scope&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Multi-user, tags, due dates, notifications (v2)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now your AI prompts are laser-focused:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Using this spec, generate the Express API with SQLite. Only implement the endpoints needed for CRUD on tasks."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The result? Clean, predictable code that matches what you actually want.&lt;/p&gt;




&lt;h2&gt;
  
  
  Tools That Make This Workflow Shine
&lt;/h2&gt;

&lt;p&gt;The spec-then-vibe approach pairs beautifully with AI tools that support long context or file-based prompting:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Claude&lt;/strong&gt;: excellent at reasoning over long specs and maintaining consistency&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cursor / Windsurf&lt;/strong&gt;: load your spec as a project rule or context file&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Copilot Workspace&lt;/strong&gt;: spec-to-code is literally the core feature&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude Code&lt;/strong&gt;: ideal for feeding specs through the CLI and maintaining context across sessions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The key is making your spec &lt;em&gt;accessible&lt;/em&gt; to the AI at all times, not just in the first prompt.&lt;/p&gt;




&lt;h2&gt;
  
  
  When to Use Each Mode
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Situation&lt;/th&gt;
&lt;th&gt;Recommended Mode&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Exploring a new idea&lt;/td&gt;
&lt;td&gt;Pure vibe, validate fast&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Building a feature in a production codebase&lt;/td&gt;
&lt;td&gt;Spec first, always&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Solo weekend project&lt;/td&gt;
&lt;td&gt;Light spec (30 min max)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Team collaboration&lt;/td&gt;
&lt;td&gt;Full spec with acceptance criteria&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Debugging / fixing issues&lt;/td&gt;
&lt;td&gt;Vibe with the existing spec as context&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Greenfield product&lt;/td&gt;
&lt;td&gt;Spec-driven from day one&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  The Mindset Shift
&lt;/h2&gt;

&lt;p&gt;The biggest change isn't technical, it's philosophical. Vibe coding tempts you to treat the AI as an oracle: &lt;em&gt;just ask and receive&lt;/em&gt;. Spec-driven development reminds you that &lt;strong&gt;you are still the architect&lt;/strong&gt;. The AI is an extraordinary executor, but it needs direction.&lt;/p&gt;

&lt;p&gt;When you combine both, you get something powerful: the speed of vibe coding without the chaos, and the structure of specs without the bureaucracy.&lt;/p&gt;

&lt;p&gt;Think of it this way: &lt;strong&gt;specs are the map, vibe coding is the engine&lt;/strong&gt;. You can drive fast, but you still need to know where you're going.&lt;/p&gt;




&lt;h2&gt;
  
  
  Getting Started Today
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Next time you start a feature, write a 15-minute spec in markdown&lt;/li&gt;
&lt;li&gt;Include: goal, scope boundaries, data model, and acceptance criteria&lt;/li&gt;
&lt;li&gt;Paste the relevant section into every AI prompt&lt;/li&gt;
&lt;li&gt;Update the spec &lt;em&gt;before&lt;/em&gt; you update the code when things change&lt;/li&gt;
&lt;li&gt;Ship fast within those boundaries&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You'll be surprised how much less time you spend fixing AI hallucinations,  and how much more time you spend shipping things that actually work.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Have you tried combining vibe coding with specs? What's your workflow? Drop a comment below, I'd love to hear how others are navigating this.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>vibecoding</category>
      <category>sdd</category>
      <category>programming</category>
    </item>
    <item>
      <title>Exploring the Pros and Cons of Standalone Components in Angular</title>
      <dc:creator>Tahirih Jaliri </dc:creator>
      <pubDate>Thu, 09 Nov 2023 23:41:26 +0000</pubDate>
      <link>https://dev.to/ctahirih/exploring-the-pros-and-cons-of-standalone-components-in-angular-3433</link>
      <guid>https://dev.to/ctahirih/exploring-the-pros-and-cons-of-standalone-components-in-angular-3433</guid>
      <description>&lt;p&gt;Web development has made incredible progress over the years. I still recall the days when I development on JQuery and things often felt chaotic. With the advent of reactive programming and new development paradigms, it has become significantly more straightforward for developers to craft code that is not only cleaner but also more sustainable and scalable.&lt;br&gt;
Angular, with its comprehensive toolkit, empowers developers to build dynamic and scalable web applications. Among its arsenal of features, standalone components stand out as a versatile tool for code organization. In this article, we'll dissect the advantages and disadvantages of integrating standalone components into your Angular projects.&lt;/p&gt;

&lt;h2&gt;
  
  
  Advantages:
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Reusability and Modularity:
&lt;/h3&gt;

&lt;p&gt;Standalone components encapsulate specific functionalities, promoting reusability. This modularity allows developers to integrate components seamlessly across various parts of the application or even across distinct projects.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Easy Maintenance:
&lt;/h3&gt;

&lt;p&gt;Isolating functionality within standalone components simplifies maintenance and updates. Changes or bug fixes in one component do not affect others, reducing the risk of unintended consequences.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Clear Separation of Concerns:
&lt;/h3&gt;

&lt;p&gt;Standalone components adhere to the Single Responsibility Principle (SRP), focusing on specific tasks or features. This promotes a clear separation of concerns, making code more organized and easier to understand.&lt;/p&gt;

&lt;h2&gt;
  
  
  Disadvantages:
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Potential Overhead:
&lt;/h3&gt;

&lt;p&gt;In smaller applications, the use of standalone components might introduce unnecessary complexity. The overhead of creating and managing numerous components can outweigh the benefits.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Communication Overhead:
&lt;/h3&gt;

&lt;p&gt;While standalone components promote isolation, they may require additional effort to communicate with other parts of the application. This can lead to increased complexity in managing state and passing data between components.&lt;/p&gt;




&lt;p&gt;Standalone components in Angular are a powerful tool for building modular and maintainable applications. By understanding their benefits and potential drawbacks, developers can leverage them effectively to create robust and scalable projects. Remember, the key lies in striking a balance and applying them judiciously according to the specific needs of your application.&lt;br&gt;
Have you had the chance to dive into Standalone components? What are your thoughts on this approach?&lt;/p&gt;

</description>
      <category>angular</category>
      <category>frontend</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
