Category Archives: Personal

Introducing Page-o-Mat

As I mentioned in my post about recurring journals, I decided to write a python program to create a PDF that implemented my riff on the Da Capo journal. I finished it enough to share, and put it on GitHub. It’s called Page-o-Mat.

To make it more generally useful, instead of hard-coding this particular journal, I made it read a configuration file that can be used to describe lots of journaling styles.

Right now, the paper and page types are what I needed for my 2023 journal. I am about to do a test-run with getting it printed on LuLu. After that, I might make some more page templates.

The config file is in YAML. You could just list each page you want one-by-one, but to make things easier, there are a few ways to create enumerated pages.

  • Any page could have a count, which just repeats that page
  • Any page can have a variant list, which repeats the page, setting a variable that can be used in titles
  • Pages can have lists of sub-pages, and so on.
  • Pages can have sections

In the code, it’s implemented with nested loops and recursion. The indices of those loops are exposed to the config to use in date math, so that any section of any page can have a date calculated for it. Most journals would probably have sequential dates, but a recurring journal wants you to keep cycling back to the beginning of the book, so the date math is fairly complicated.

There are documented examples in the repo that (hopefully) explain this better. Start with daily.yaml, which is just a 365 page daily journal. 2023-recurring-journal.yaml shows the more complex example.

June 2021 Blog Roundup

I took a few weeks off to travel, see friends and family, and get some rest.

WWDC was in the beginning of June, so I wrote about that:

I also wrote about software process and testing

I also took a break from podcasting, but made these in June:

I expect to have an episode Monday on taking breaks.

Write While True is a Prompt not a Companion

In March, I wrote this about the idea of a “companion” podcast that could be listened to while doing something (or learning something) related to what you were listening to:

This kind of podcast could not just be played in your regular playlists though—you need to be at your computer ready to listen. It could guide you in a vague way, so that you have to think in order to do the tasks, not just listen while you exercise.

At the time I was thinking about a programming podcast, and that somehow you listened while you were doing tasks it described.

But this ultimately turned into Write While True, which is a podcast that ends with a writing-related exercise that you do right after it’s over. So, not exactly what I thought it would be, but more of a prompt. I do believe in hacking your behavior via prompts, so this is good with me.

May 2021 Blog Roundup

I started the month writing about long-lived systems

But mostly, I wrote about how I think about personal finance:

The first post is about savings rate, so I made a spreadsheet and python script to help understand the effect I was describing

The second lesson was about increasing income, and I wrote two posts following up on that

Finally, I wanted to say a few words about excessive saving

And, I continued releasing Podcast episodes about writing

I’m doing a lot with SpriteKit and making tutorials on App-o-Mat as I go.

I Can’t Tweet

I write in this blog everyday, but I cannot come up with anything to say in Twitter. I think it’s because I think no one’s watching here.

I mean, no one’s watching on Twitter either. But that feels more like being ignored, where this place is just more secluded.

In episode 10 of Write While True, I talked about why I blog every day. It’s because I’m trying to build up a body of work, mostly not that great, in the hope that that helps me become a better writer. Also, I find it enjoyable in of itself, and it helps with my self-esteem to “do things”.

Twitter offers none of that. I don’t find it that enjoyable, and the instant judgement is the opposite of what I want.

How I Used the Net Worth Estimator


How I used it

Fifteen or so years ago, my wife and I built a spreadsheet model for ourselves that is a lot like this but tweaked for our specific situation. It was very simple.

We played with it until we found a savings scenario that was both doable and would help us reach our goals. We kept market return expectations low because that drove us to be serious about savings. The fact that we’ve been in a long bull market helped us, but we didn’t count on it.

Then, each year, we plugged in actual numbers. The model was a kind of benchmark—we could see what we needed to do in order to reach our goals.

When the market tanked in 2008, we could see what the eventual effect was. And, also we could see how the recovery brought it back in line.

So, use the model more as a benchmark or goal and track your actual numbers against it.

Once you have something you think is good, move the inputs around to see how sensitive the results are to each number. The main thing to notice is that there’s an inflection point where your savings grow or shrink after retirement.

My suggestion is to try very hard to get to the point where it grows. You can see that this is possible at a range of salaries, not just 6-figures, but requires that your expenses are in line.

I will also say, that being aggressive early and then adjusting later is a good strategy.

If the market tanks early, you are still in the mindset of low-expenses, so you get to take advantage of the dip and historically, it comes back. If the market out-performs, you had more money in it.

We looked at it once a year to see if we needed to adjust anything.

Disclaimer: I am not a financial professional and this is not financial advice. I don’t know your specific situation. Get professional advice from a fiduciary who will look at your specific situation.

Beating the Market Addendum: Taxes

A few days ago, I wrote about how programmers can beat the market in their investments

The key is to invest in yourself and either increase your value in the labor market or sell products. If you think of the extra income you earn as “market return”, then you can easily add a few percent to your overall return with minimal risk of downside.

But the astute among you might have realized that income is tax disadvantaged vs. capital gains (from stock returns). And, that if you buy and hold stocks, then you can defer taxes. But if you make income, you need to pay taxes immediately.

And since I am advocating you getting side income or raises, this extra income is at your highest income tax bracket.

DISCLAIMER: I am not a CPA or financial advisor and even so, it is May 2021, so everything I am saying is possibly not true if you are reading this in the future. Also, this is US only. Check with your accountant to see what the effect is to you personally. Also, I am intentionally simplifying some things because the actual tax law is way more complex than this.

Also, my original article and this one assumes you are a programmer, which is why my salaries in the example are 100k and over 140k. A lot of this math doesn’t work unless your salary is in that range. At lower income, long term capital gains tax is 0%.

For this analysis, I am assuming you are single. The numbers are different if you are married, but the idea is the same.

Here’s an example:

Let’s say you make a salary of $100k, and you get $10k of extra income. If you are single, that $10k has federal tax of about 24% and FICA of 7.65% (you may also have state taxes). If you get this money via consulting or selling products, you pay another 7.65%. The total rounds up to 40%. (BTW, I know it’s more complicated than this, but this number is approximate)

But if you buy and hold stocks that go up an extra $10k over the market, your tax bill is $0. You only pay tax if you sell stocks. So, eventually, when you do sell them, it will probably be 15% long-term capital gains. Again, it’s more complicated than this, and in 2031, when you sell, who knows what the tax law will be, but 15% is our current best guess.

So, of the extra $10k, you keep about $6k if it’s side income, $6.8k if it’s a raise, and eventually $8.5k if it’s market gain.

Now, if you day trade stocks or bitcoin and don’t hold your positions for a year, then the gains are taxed at the same rate as wage income, so 24% in our case (no FICA). So you keep $7.6k instead of $8.5k.

You still pay less tax trading, but the good news is that it’s not that simple. 

I’m ignoring state tax, because mostly that’s a wash, but you need to check because in Massachusetts, short-term gains get taxed at 7% more than wage income (12% vs 5%). I live in Florida, which doesn’t tax income or gains. So, it could make a big difference depending on where you live.

The biggest tax savings are from maxing out your social security tax.

I used $100k base salary, but in 2021, if you make $142.8k, you max out your social security tax and only pay the Medicare portion on your side income, so that’s 2.9% instead of 15.3%. Your tax bracket is about the same, so now you pay 27% of the total vs. 24% for a day-trader. If the new income is a raise, then you pay 1.45%, so a total of 25.45%.

If your new income is a raise, you can further lower your taxes by increasing your 401k (or other tax deferred) contribution. If you get a $10k raise, and can put all of that in the 401k, then your tax rate is 1.45% for Medicare. 

To be fair, as long as you have enough wage income, you could effectively do this with your market return by contributing the equivalent amount of wages, so it’s a wash. But I want to mention it because it’s the first thing you should consider doing with extra income no matter how you get it.

If you make the money on the side, you can lower your taxes in ways that don’t apply to market returns.

There’s a QBI deduction of 20% on net business income. So, you only pay tax on $8k of the side income. So it’s an effective rate of ~22%. 

Now we just beat the day traders who pay ~24%. 

But what about the stock pickers that buy and hold? We still have to make $11k for each $10k they make (again, that’s not hard).

Even if you max out your 401k, you can put 20% of your net business income in a solo 401k (or other business tax deferred vehicle).

So, if you make $10K, you could put $2k in the solo 401k, deduct $1.6k (QBI) and only pay the 24% tax on $6.4k and another 2.9% on the $10k. So your effective take-away is about $8.2k, with an effective tax of 18%.

Remember, this is all approximate, I am not a CPA and there are more things to take into account. For example, you eventually pay tax in retirement on the money in the 401k.

Also, I didn’t take any normal business deductions into account, like home-office, computer, tech books or courses, business group membership fees, etc. If you can deduct about 5% of the income, your effective tax rate on the side income is lower than 15%.

But the takeaway is that you can get your tax bill in the same range of the day traders with extra wage income if you already max out your Social Security contributions. It’s not as tax-disadvantaged as it seems at first.

The traders pay something between 15%-24% depending on how long they hold, and you pay something between 18% and 27% if you max out Social Security at your day job. And you can get it even lower with business deductions.

You do need to add another 12.4% if you don’t max out SS—so go get a raise to get you closer to maxing out.

Of course, you lose the option of negative tax that comes from stock picking losses, but we can live with that.

My Second Lesson in Personal Finance

Last week, I wrote about the first lesson that made a big difference in how I thought about personal finance. Namely, that savings rate is a big driver to outcomes, and that it is very much in your control. Along with that is the binary outcome of whether your savings grow or shrink in retirement and the divergent net worth results you will have as a result of that.

The next big lesson I got was from reading Ramit Sethi’s I Will Teach You to be Rich. By the time I had read this (I was 39), my finances were pretty much in order, and most of the book was more of a reinforcement that I was doing the right thing. It’s also a very entertaining read.

However, I did get one thing—a change in mindset to focussing on income over expenses to increase savings.

Look at the Net Worth spreadsheet. If you set it to a fairly high earner, say 100k to start and a savings rate of 20%, then at 39, they need to save around 28k.

This is aggressive. It would be hard to do much more. If you pay 30% for taxes and 25% for rent, you only have 25% left for everything else. It’s hard to imagine that you could find another 10,000 in savings.

But, finding another $10,000 in income is really not that hard for a programmer.

The book (and his site and blog) give many examples, but simply asking for a raise is probably the simplest and most likely to work. If you get into a habit of renegotiating every year, the combined effect compounds.

His other suggestion is side income. If you are a programmer, there are many ways you could do this. I tried many things over the years. In order of income success:

  1. Advisory consulting on software projects
  2. Programming side-gigs
  3. An Excel add-in
  4. Tutoring/Coaching programmers (I mostly do this for free, but I charged people that could afford it or where their company paid)
  5. Writing a book
  6. Writing for Smashing
  7. Add-ins for niche software (including for a future employer)
  8. iOS Apps (they are all free now, but early App Store was more amenable to paid apps)
  9. iOS Skillshare classes

Over my career, I made significant side income directly from this, which I mostly saved. In addition, many of these things directly altered the course of my career and led to better jobs.

For example, writing apps led to getting a book deal and becoming an iOS programmer with at least some credentials. That helped me get consulting gigs when I did it full-time (or on the side) and was a factor in getting hired by Trello (along with, possibly, the add-ins I made for FogBugz and CityDesk).

The Day I Learned About Personal Finance

When I was in my early twenties, I got a call from a financial advisor asking if we could have a meeting to discuss my finances. I would say at that point (compared to now) I knew very little, but I did save a lot, maxed out my 401k, and didn’t have any debt. But, aside from the 401k, my money was just in a bank.

I agreed to have coffee with him.

Over the phone he took a bunch of information from me. My age, my salary, my savings, etc, and then at the meeting, he brought a small spiral bound book with a personalized plan.

I can tell you right now, that that plan was probably not good. He, almost certainly, was not a fiduciary, and the mutual funds he wanted to put me in probably had high fees.

One page of that book, though, changed my life.

It was a line graph. The x-axis went from 1995 to 2055 or age 25 to 85. The y-value was my predicted net-worth. This was the result of using my expected salary growth, my savings rate, expense growth, my current net worth, inflation guesses, expected return, etc. You can find many such calculators on the web or do it yourself in Excel.

It was as you would imagine, an exponential growth curve that results from compound interest as long as returns and savings grow with respect to expenses and inflation.

The part that surprised me was that at 2035, when I would turn 65 and presumably retire, the curve had a noticeable notch, but still basically grew, but on a different exponential curve.

I asked how it could still go up after I retire, and he explained that at that point my investments would make more each year than I needed to spend, so they would keep growing.

I recreated the shape here.

In my mind, the red line was what I was going for—it’s not a bad outcome. He showed me that the blue line was not only possible, but actually, I was already headed there if I kept my savings rate. Most of the assumptions were fairly conservative. The only difference between those lines is expense growth (or, in other words, savings growth).

I honestly didn’t hear anything else he said that day. Look at what a difference it makes.

Assuming that you are not a stock-picking genius (spoiler alert: you’re not), and you are getting market returns from index funds, the only variable you control is savings rate. Of course, there are several components of savings rate, which I’ll talk about soon.

April Blog Roundup

This month I realized that this blog is easier to keep up with if I just document my projects. I released episodes 4, 5, 6, and 7 of my podcast about writing. I also wrote articles about how I am self-hosting it, using S3 for the media, and how I get simple stats.

I also wrote an article about Bicycle, an open-source library I am working on with a couple of friends, and I’ve been writing articles about WatchKit on App-o-Mat. And this post itself is an example of just documenting my projects.

Most of the articles I write for this space are about software development and processes.

  • In Defense of Tech Debt encourages you to just think of tech debt as a cost which might be acceptable.
  • But, I think Tech Debt Happens to You most of the time because of dependencies.
  • And then in Timing Your Tech Debt Payments, I compare payments to servicing interest and paying down principal and offer a best time to do the latter.
  • In It’s Bad, Now What?, I talk about pre-planning actions for when monitoring shows problems
  • In Assume the Failure, I recommend framing all risks as your own failures, not external ones, so that you can personally mitigate them.
  • In Mitigating the Mitigations, I show how you can’t wait until a risk materializes to do your mitigation plan. It might be something you need to do somewhat in parallel.

And, I wrote some articles on gaining expertise

I have been thinking about the great works in software and software writing as I think about where I want to spend my time. I think there’s an interesting cycle of making -> tool making -> making with the tool, where the result is content in a new medium.