DEV Community

Cover image for Code is Cheap, Accuracy is Luxury: Why I Refused to Use LLMs for a 38,000 Ticker Engine
Alex Vance
Alex Vance

Posted on • Originally published at dividendflow.org

Code is Cheap, Accuracy is Luxury: Why I Refused to Use LLMs for a 38,000 Ticker Engine

Code is Cheap, Accuracy is Luxury

There is a thread on Hacker News right now titled "What should we do when code is cheap?". The sentiment is clear: LLMs have turned syntax into a commodity.

At the same time, another dev is asking if his $48,000 GPU server was worth the investment.

We are living in an era of "Agentic Overkill." Everyone is burning tokens and capital to generate massive amounts of "vibe-based" code. But when you are building a financial engine designed to project a user's life savings over 30 years, cheap code is a liability.

I recently shipped DividendFlowโ€”a tax-aware compounding engine for 38,000+ tickers. Here is why I rejected the AI-agent hype to focus on deterministic precision.


1. The "Hallucination Tax" in Compounding

In dividend growth investing (DGI), we deal with the Snowball Effect. The math is recursive.

If an AI agent "vibrates" a calculation and gets the dividend yield or the tax bracket wrong by just 0.1%, that error doesn't stay small. It compounds. Over a 20-year horizon, that tiny "vibe-coding" glitch results in a $50,000 discrepancy in the projected portfolio.

In FinTech, a 99% accurate model is 100% useless.

The Decision: I stripped all LLM-based logic from the core math. Instead of asking an agent to "interpret" tax laws, I wrote a strictly deterministic TypeScript engine that maps:

  • US Federal/State Qualified Dividend logic.
  • UK ISA tax-free environments.
  • Canadian TFSA compounding rules.

2. Why $48k in GPUs is Overkill for Logic

You don't need a cluster of H100s to calculate financial freedom. You need efficient architecture.

By using Next.js 15 Server Components, I moved the heavy lifting of 240+ monthly compounding iterations to the Edge.

  • Latency: Under 200ms.
  • Cost: Near zero (running on standard Vercel infra).
  • Scalability: Because the math is deterministic and the state is handled via URL parameters (No DB bottlenecks), the app can handle a spike from Product Hunt without breaking a sweat.

3. Cleaning the "API Slop"

Institutional data is noisy. APIs often report one-time "Special Dividends" as regular recurring yield.

If you feed this "slop" into an AI agent, it will happily project a 50% yield for the next 30 years, telling the user theyโ€™ll be a billionaire by Tuesday.

I built a Normalization Layer that acts as a truth filter. It audits 38,000+ tickers to ensure the "Snowball" is based on recurring reality, not corporate anomalies.


The Shift: From Author to Editor

As developers in 2026, our job is shifting. We are no longer just "writers of code." We are Architects of Verification.

When code is cheap, the only thing that remains expensive is Trust.

I built DividendFlow with a "No-Login, No-Bank-Link" policy because I wanted to prove that you can deliver institutional-grade value without harvesting a single byte of user data.

Technical Takeaway:

Don't let the "AI Vibes" distract you from the fundamentals. Sometimes, the most high-tech solution is just a very fast, very accurate, and very private piece of deterministic code.

Experience the deterministic engine:
๐Ÿ‘‰ DividendFlow.org


Are we over-relying on probabilistic models for deterministic problems? Letโ€™s fight it out in the comments.

Top comments (0)