惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
The GitHub Blog
The GitHub Blog
I
InfoQ
A
About on SuperTechFans
GbyAI
GbyAI
宝玉的分享
宝玉的分享
爱范儿
爱范儿
博客园 - 【当耐特】
博客园 - 司徒正美
博客园 - 聂微东
P
Proofpoint News Feed
WordPress大学
WordPress大学
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
阮一峰的网络日志
阮一峰的网络日志
B
Blog RSS Feed
Jina AI
Jina AI
aimingoo的专栏
aimingoo的专栏
J
Java Code Geeks
博客园 - 叶小钗

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Why I Chose Hard Math Over AI for a 38,000 Ticker Financi...
Alex Vance · 2026-05-19 · via DEV Community

Why I Chose Hard Math Over AI for a 38,000 Ticker Financial Engine

In 2026, the pressure to "AI-wash" every product is immense. But when you are building a financial tool designed to project wealth over a 30-year horizon, "probabilistic" is just a fancy word for "wrong."

I recently shipped DividendFlow, a tax-aware compounding engine covering 38,000+ US tickers. Here is why I stripped out the AI agents and went back to strictly deterministic TypeScript logic.

The 0.1% Compounding Nightmare

In dividend growth investing, accuracy isn't a feature—it's the entire product. If an LLM "hallucinates" a dividend yield or miscalculates a tax bracket by just 0.1%, the error compounds. Over 20 years, that tiny glitch turns into a $50,000 discrepancy in the user's projected nest egg.

To solve the "Gross Yield Lie," we had to build a system that handles:

  1. Recursive DRIP Math: Calculating reinvestment on a net-of-tax basis every quarter.
  2. Tax Jurisdictions: Real-time mapping of US Federal/State, UK ISA, and Canadian TFSA rules.
  3. Data Normalization: Cleaning noisy payout history from institutional APIs.

The Tech Stack: Next.js 15 & Server-Side Math

We moved the core calculation engine to Next.js 15 Server Components. By doing the heavy lifting at the Edge/Server level, we achieved:

  • Sub-200ms Renders: Even with 30 years of monthly recursive calculations.
  • Zero Client-Side Bloat: The user's browser only receives the final coordinates for the "Snowball Effect" graph.
  • Deterministic State: No "vibe-coding." The math is immutable and verifiable.

Why "No-Login" is a Technical Moat

Most fintech SaaS tools force a Yodlee/SnapTrade integration. It's great for data harvesting, but terrible for user friction.

We decided on a "Utility-First" architecture:

  • No Database: User scenarios are encoded in URL parameters and LocalStorage.
  • Privacy by Design: We don't want your bank credentials. We just want to give you the math.
  • Scale: By avoiding a centralized DB for user profiles, the app scales horizontally without the traditional RDS bottlenecks.

Lessons from 38,000 Tickers

Indexing the entire US market taught me that data integrity is 90% of the work.
Standard APIs are messy. They report special dividends as regular yield, which fakes "Financial Freedom" dates. Our normalization layer acts as a "Truth Filter," ensuring that the compounding curve reflects recurring reality, not one-time spikes.

Conclusion

AI is great for writing boilerplate, but it’s a liability for domain logic in finance. If you're building tools where the output must be 100% predictable, stick to the hard math.

Test the deterministic engine at DividendFlow.org →


Are you building "Utility-First" apps? Let's discuss the trade-offs of no-login architectures in the comments.