When I start a large technical project, I try to find a manageable first piece that I can build in isolation and use to see progress early. My terminal emulator is a concrete example of this approach.
I can spend hours -- sometimes days -- waffling over the right starting point.
For my terminal emulator, the large components I knew I would need included terminal parsing, running and managing a shell process, font rendering, grid rendering, input handling (keyboard/mouse).
There are hundreds of relatively large sub-projects on the path to "done."
If I began with the goal of a launchable terminal that could run Neovim, I'd probably lose interest a month or two in.
Instead, I look for a realistic project where I can see results as soon as possible.
- Possible first subprojects for a terminal include VT parsing (parsing terminal escape sequences), blank-window rendering (opening a window and drawing a blank canvas), and child-process launching (starting a shell, setting up the TTY, and reading output such as the initial prompt).
At the outset, I don't try to enumerate all the large sub-projects; I get an idea of the rough shape the project will take and find something I can build in isolation and physically see producing results.
With less experience, or in a domain I'm unfamiliar with, I take a best guess and expect there is a higher likelihood I'll throw my work away at some point.
Early work can be hard to see: with VT parsing, I can't see it work without also hooking up a UI of some sort.
Database-schema and minimal-API work can face the same visibility problem without a client, CLI, or GUI. A UI can make early results visible, but I usually begin with backend work and will eventually face backend challenges even if I start with a UI.
For various reasons, I rarely start frontend first and usually start backend first.
The best tool I identify for getting past the early-visibility problem is automated testing (usually unit testing at this stage).
Automated tests let me run code and see that it works, and they are good hygiene. For a non-graphical first subproject, I look for work that can be tested without too much fuss so tests make results visible.
For my terminal, I chose VT parsing first; give it some example input as a string, expect some parsed action or event as output.
Seeing test progress such as 1 test passed; 4 tests passed; 13 tests passed is exciting to me: the code runs and works, and I am progressing on a critical sub-component of a larger project.
Even with unknown unknowns, the goal of starting with a launchable terminal that could run Neovim just sounds too big to me.
For that launchable-terminal goal, I can see a path involving rendering a GUI, process launching, terminal parsing and state management.
Applying my filter for realistic projects with results I can see quickly shrinks the number of viable sub-projects dramatically.
This is the phase where experience helps the most: more experienced engineers can more effectively picture a project's rough shape and identify how its subcomponents fit together.
Early work tends not to be very visible, which makes tangible results difficult to see.
I use this page to capture how I approach staying motivated and finishing large technical work, whether I’m starting a project, implementing a big feature, or beginning a large refactor.
My post about this approach was dated June 1, 2023.
My goal with early sub-projects is a good enough sub-component that lets me move toward a demo, rather than a finished sub-component.
I try to build one or two demos per week, intermixed with automated test feedback.
Building a demo provides invaluable product feedback, even when it is not fully functional.
For my terminal demo, I built a shell script to run some command, capture its output, feed it to my VT parser, and output everything it parsed (or couldn't).
I used the temporary CLI to run man, ls, and vim and see my parser work or break.
The day or two I spent building the CLI demo helped me see progress and stay motivated.
For personal projects, I recommend that I build only what you need as you need it and adopt your software as quickly as possible.
For my terminal, my initial goal was to load my shell configuration (fish) and from there being able to launch and use Neovim.
I initially omitted scrolling, mouse selection, search, tabs/splits from my terminal.
During initial use, I found that my arrow keys didn't do anything, there were subtle (but workflow-breaking) rendering bugs.
- My iterative method begins: Decompose a large problem into smaller problems. I make each small problem visibly testable, solve it only enough to advance a demo, build runnable demos early, prioritize functionality that lets me adopt the software, and revisit components as needed.
I don't think you need to ship a project for it to be successful; shipping is too large an event to motivate me long-term.
I have followed this general pattern on personal projects, group projects, work projects, school projects.
Seeing results motivates me really strongly, and I have built my work style around that.
I have tried to work only at companies that build or sell products that I would use; that is a personal choice.
My preferred way of learning is to read reference material cover to cover, nearly the opposite of how I approach building.
For early work, I may use in-memory contents, built-in data structures such as dictionaries, and require all inputs/outputs up front rather than build for future needs immediately.
I don't let future improvements I know I'll have to make stop me from moving on to the next thing.
Building only what I need as I need it applies more to my personal projects than to work-assigned projects.
I'm always more motivated working on a problem I'm experiencing myself.
I think if a product designed for me doesn't work for me, it's very likely not going to work well for others, either.
For my terminal, I focused on only the escape sequences those programs used and only rendering the font I use daily.
I started using my terminal as a daily driver to find the features I had omitted or forgotten.
When I abandoned using my terminal after a false start, it gave me tangible tasks to work on next.
Each small problem in my process must have some clear way I can see the results of my work.
I think everyone needs to find some process to reinforce their motivation in a healthy way.
A method that works really well for me is to continuously see real results and to order my work based on that.
When I break down large tasks into chunks that result in tangible forward progress, I tend to finish my work and retain my excitement throughout the project.
As a broad generalization, I’ve not found an engineer who doesn’t get excited by a good demo, and the goal is to always give yourself a good demo.
People are motivated and driven in different ways, so I acknowledge that this may not work for you.
I am not claiming that anything I say in this post is novel; I see it as sharing aspects with well-known software engineering or management practices.
I use my terminal emulator project as an example because it gives me realistic, concrete experience to share, is unrelated to my professional work, and is recent enough to be fresh in my mind.
I am not shaming anyone for not completing projects; if you’re having fun and feel accomplished, or simply don’t care, good for you.
I aim this post at people who want to finish projects more or learn how I strive to finish projects more.
I find large technical projects difficult to stay motivated for and complete, whether they are new projects, big features, or large refactors.
The first few weeks of a new project can be a time when you can’t wait to get on the computer to work.
Over time, people can get distracted or make excuses and work on a project less.
For real work, people may slog painfully to the finish line; for fun projects, they may later look back and remember what could have been.
As a broad generalization, I’ve not found an engineer who doesn’t get excited by a good demo.