Code is meant to be rewritten

as reply to After six weeks

Perfect code is nearly impossible to write. Writing it on the first try even more so. That's why it's better not to even try get it right from the start. There is time to perfect it later.

First iteration of a product should be coded fast, disregarding any best practices or other quality constraints (except security, never skip that!). When you start you have a bunch of known unknowns. Both technical and non-technical. You might not know how to implement some feature or you might not know whether your users even care about such features. You will learn a lot during this process. Most valuable learnings might not be learning those things you knew you need to find out but the things you didn't even knew you didn't know.

Once you know what you are actually building and whether ot is indeed worth building it's time to start over. Now you should have enough information to get it right(ish). At least you know to avoid the dead ends and work around those. The second iteration should focus on stability and maintainability to make it easier to expand beyond the MVP. It's still too early to worry about scalability at this point. That can be left to the third iteration.
Replies to Code is meant to be rewritten
Actually I'm not worried about scalability yet. I just noticed that each feature got harder to write because I wasn't writing tests as I was going.

Lol which iteration are you on? Do you have pretty good test coverage on your proejct?
2021-01-18 19:46:19
I'm currently in the middle of doing the second rewrite again :D
2021-01-19 05:56:09
Wow so codebase number 3 then! What type of changes have been made? Database migrations? Route names? Etc... 

I'm not used to people writing new codebases unless they're changing the user interaction completely. Like I would only restart this codebase if I wanted to create adagia v2 --> totally different thing.

But you're saying for you example you're rewriting the code but keeping the interaction the same right? Just more clean code? 
2021-01-19 16:49:42
There should probably be a "reply to a comment with a post" - feature tooπŸ˜„
https://writestreak.team/post/-MRQspWIs9sYGpqTck1b
2021-01-19 19:02:03
we're on the same pagge with that ha
2021-01-19 23:13:13