ENGINEERING 7 upvotes 2023

How we built a codegen solution for SDKs to create humanlike code

7 pts
Hacker News Signal
2023 · Shared by @jelambs
How we built a codegen solution for SDKs to create humanlike code by @jelambs

Retrospective Overview & Key Insights

Distilled reflections, business mechanics, and tactical takeaways:

In this technical retrospective (2023), @jelambs shares practical architectural lessons learned from running, scaling, or migrating production software under lean constraints.

Core Principles for Independent Builders:
1
Defaulting to simpler architectures (such as monolithic frameworks, SQLite, or managed VPS) prevents early engineering bankruptcy.
2
Evaluating true compute and egress costs reveals that high cloud bills can often be slashed by 80%+ through judicious re-platforming.
3
Code you write at 2 AM as a solo engineer must be easy to debug six months later without complex microservice dependencies.
Community Debate Themes:

HN engineers debated the tradeoffs between cloud convenience and raw server economics, database indexing strategies, and resisting premature architectural complexity.

Founder's Discussion Replies (@jelambs)

Direct clarifications and follow-up comments shared by the author during the live discussion:

OP @jelambs Original Author

We recently built our own codegen solution to automatically create, maintain, and document our backend SDKs so that we didn’t have to compromise on either quality or maintenance burden. Also see part one of the series where we discuss how compiler theory inspired our solution: https://stytch.com/blog/what-does-compiler-theory-have-to-do-with-auth/ ↗

HISTORICAL ERA Post-ZIRP & AI (2023–2026)
COMMUNITY SCORE 7 points
TOTAL DISCUSSIONS 1 comments
TOPICS & TECH STACK: