TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

My Co-Founder threw away 90% of the code I wrote

21 pointsby imaginaryspaces4 months ago
TL;DR: This is an appreciation post for all those co-founders who take our messy, hacky code, and somehow transform it into maintainable, production-ready software.<p>Back in October, my co-founder and I started working on an ambitious project to automate the entire machine learning lifecycle. We split our PoC into two parts: ML model generation (my part) and data generation (his part), tackling them independently. Within weeks, we had cobbled together a solution that could generate datasets from problem descriptions and then train ML models with them. Rather than getting caught up in perfection, we deployed it to AWS, exposed it as an API, and started getting user feedback.<p>The response was encouraging, but users consistently asked to see under the hood. Given we were working with data, open-sourcing seemed like the natural next step. While part of me wanted to immediately throw our code onto Github, my co-founder wisely suggested we take a step back, review, and refactor the critical pieces first.<p>Here&#x27;s where it gets interesting: We decided to swap our codebases. I would review his data generation code, and he would tackle my ML model generation code. What followed was both humbling and enlightening.<p>His data generation code was a thing of beauty - meticulously documented, well-structured, and so clean that it took me just a couple of days to make minor tweaks for release. My code? Well... my co-founder spent over a week essentially rebuilding it from scratch while preserving the core functionality. In his typical gracious manner, he maintained the essence of what I&#x27;d built while making it actually maintainable.<p>Looking back, I basically threw spaghetti at the wall while my co-founder actually wrote real software. My code worked (somehow). Meanwhile, his codebase was like a well-organised library - everything in its place, properly documented, actually maintainable. Sure, we got our prototype out fast, but I&#x27;m pretty sure I owe him a few years of his life for having to deal with my &quot;creative&quot; approach to software engineering.<p>So here&#x27;s to all the co-founders out there who clean up after us &quot;move fast and break things&quot; developers. Your dedication to code quality might not always be visible to users, but it&#x27;s what transforms promising prototypes into lasting products.

3 comments

patatino4 months ago
Can you share snippets of both so we can compare? Would be interesting to see
评论 #42963212 未加载
scarface_744 months ago
Well done! I thought this was going to be a whining rant where you lacked enough self reflection to maybe see there was a reason that your cofounder did it. But you did just the opposite.
评论 #42963161 未加载
didip4 months ago
BTW, in this age of AI... Writing beautiful, well-documented, well-tested code is a lot less painful.<p>You should use it since you are in AI space :p
评论 #42965848 未加载