August 13, 2020

Refactoring the base model for testing

hatkyinc

3+ days of work to get proper testing in.

After driving myself crazy while working vertically, trying to add the critical functionality, I decided it's time to go back and code tests. (honestly I didn't think I'd be doing tests this early on)
These testing made me refactor to a form that easy to test but also to understand and take a stance on more code design decisions. This should hopefully 🙏, make me progress faster with the rest of the code now, or at minimum keep a clear head doing just one thing and not bouncing around, context switching.

So the design turned around 4 levels deep (technically 3, but there are parallel parts)
What I got is like
(DB model<->repo lib)->Runnner helper->Leaf runners

For the runners there are some inter-dependencies as well

  • Leaf runner 1 preps the data for all other runners ->
  • Than I got data gathering runners ->
  • And the new runner type I was working depends on the data gathering ones.

That last one is exciting as it's actually going to finally be doing the thing this is built for, and I can start eating my own dogfood and see how bad it is.
I do expect to iterate a lot on the output of that one, but at least it would have it's first user ^^. (not that this even has hosting or anything.. or a website... just a domain and an email address..)

#usage_before_website

Today's Top Milestones
  • Happy moment - Got our first paid customer 🎉🎉
    As an indie hacker with 0% investment and 100% expertise, you would be able to empathize with why am I so happy. A few months ago, I started Micro Saa
  • $500 in sales after 2.5 months for TailwindCSS lib
    It took 2 months and 10 day after beta release of Zukoni UI library to reach $500 in sales. While that is not a significant number in terms of money b
  • Finished MVP
    After about 2 months I've finished building the MVP for textreel. I mainly worked on this in the evenings but managed to make pretty good progress. In
  • 🍾 First Response & Second Sale
    What a day, I got a response from my first customer in the meantime, second sale happened. I sold a bundle which includes both August and September da
  • $500+ this month
    Pandemic Times! Work from home! Having a micro mindset is important. I micro everything and offer some services to my customers doing Branding & Marke
  • Development started
    This isn't the exact date, but we started in May. The idea was around for a long time, but this time we decided that it worth trying to be a serious p
  • My first dollar on the Internet 💵
    This week I made my first dollar on the Internet without expecting it. I was writing an e-book about how to not waste your time on Twitter becaus I ha
  • Got retweeted by Jesse Itzler
    New to twitter with just 12 followers. Got retweeted by Jesse Itzler. I'd never considered Twitter seriously until I talked to Pete from No CS Degree
  • $5,000 MRR
    It's been almost 6 years of grinding, but StatusGator has crossed the $5k MRR threshold. Growth has been slow but steady the last few months and this
  • 1 year in
    https://soundssphere.com/blog/10-lessons-from-a-first-time-founder/ Here are the 10 most impactful things I've learned as a founder after 1 year runni