How Do I Develop Software?#
As someone who has around 3 years of experience in the software and FinTech industry, I typically use some of the tools and knowledge about software architecture that I learned there as a guiding light, while making adjustments based on the specific project at hand. For example, I recently created Perfect 20 from scratch using MVC, Defense in Depth, Test Driven Development (TDD), and Idempotency as guiding principles, where I used an agentic harness framework to help with speed and implementation.
I spent the first eight to ten hours or so planning out the project, the patterns, and the business logic for the entire application, which covered controller patterns, database design, and test design for the entire project. I carefully reviewed all material, configured .claude/CLAUDE.md, and added project specific skills to help reduce hallucinations. I set up .claude/RESUME_NEXT_SESSION.md and .claude/settings.json to deny certain folders or files and help with token usage. After I reviewed everything, I let Claude Code work on its own for a bit, using subagent driven development and paying close attention to any features or aspects of the software that I found crucial. After it was done with each big task, I typically did an initial read through of the code to make sure everything was going according to plan.
In general, I try to follow clean code principles. I try not to repeat the same patterns and reuse code wherever possible. I stay away from code files over 500 lines, and I try to create software that is decoupled and easy to test.
Testing from the Start#
I approach development with a testing mindset from the beginning. Alongside requirements and architecture, I consider expected behavior, failure cases, data boundaries, and how the system will be validated. I build and maintain unit, integration, API, and end-to-end tests as appropriate to the application, alongside manual and exploratory testing, and connect relevant automated checks to CI/CD.
This does not mean every change follows strict test-driven development or that every inherited system already has adequate coverage. In legacy systems, I assess the existing tests and add focused coverage around important workflows and planned changes where practical. The goal is to make validation part of development rather than leave it until the end.
GitHub is set up to only allow code that has been reviewed through a PR and has a linear history to make it to certain branches. I also use Dependabot and Gitleaks to help with dependency and secret management, respectively.
Documenting the Codebase#
As someone with a technical writing and QA background, I typically make sure the codebase is documented well enough that any developer could come in and help if needed. This means having documentation that clearly lays out the decisions and compromises made, the tech stack, whether or not CI/CD was used, and security considerations. It also includes flow diagrams to show how different features are connected to one another, and explains how the controllers are set up, how the testing environment is set up, the patterns used, and so on.
I do not think code should be documented too extensively inline. I think the code itself should explain itself as it goes along. I will, however, comment on the why when needed.
Investigating Bugs#
When a failure occurs, I first try to reproduce it and establish the expected behavior, the affected workflow, and the conditions under which it happens. I inspect the relevant code paths and run existing tests to narrow the investigation. Where coverage is missing, I use a small reproduction or targeted test to examine the behavior.
Depending on the problem, I use an IDE debugger to set breakpoints, step through execution, and inspect variables and the call stack. I review application and server logs, API requests and responses, database state, and environment configuration as needed. I consider whether the failure comes from application code, a test or assertion, test data, an external dependency, or the environment rather than assuming the first visible error identifies the cause.
When documentation is available and relevant, I use it to clarify intended behavior, configuration, and framework or API requirements. Where it is missing or incomplete, I rely on the implementation, observed behavior, focused experiments, and clarification from developers or stakeholders.
Once I identify a cause, I make or coordinate a targeted correction, add or update regression coverage where practical, and verify the result through focused retesting and the relevant broader checks. I document findings that will help explain the fix or make a similar issue easier to investigate later.
Designing Systems to Be Easier to Diagnose#
I also consider diagnosis before an incident occurs. When I control the implementation, I include useful logging, explicit error handling, request or correlation identifiers, and appropriate health checks and telemetry so failures can be investigated with evidence.
For example, in Perfect 20 I used OpenTelemetry and Azure Application Insights for logs, traces, and metrics, along with application and database health checks. I also added candidate-release smoke tests and documented rollback procedures. These are concrete parts of how I make the application easier to inspect during development, deployment, and operation.
I develop all software using Defense in Depth, which means ensuring there are layers of protection for any given point of failure. For an MVP, I focus primarily on issues mentioned in OWASP and follow STRIDE guidelines.
See also
Related work: Architecture and Design · Testing and Results · Parallel Scaling Analysis · Codegen-to-Documentation Pipeline
References: What Resources Do I Reference?