Choosing the tech stack and managing technical debt
Download checklist (.xlsx, 17 tasks)1. Core idea and principles#
Your tech stack is the set of languages, frameworks, hardware platforms, cloud services and tools you build on. In deeptech it spans more than web software: embedded processors, real-time operating systems, scientific computing libraries, simulation tools, lab instruments and data platforms.
Technical debt is the future cost of shortcuts taken today. Like financial debt, some is wise (borrowing speed to learn faster), but it charges interest: every later change takes longer, breaks more often or needs the one person who remembers how it works.
Principles for choosing a stack#
- Choose boring technology for everything except your core innovation. Spend your "novelty budget" where it gives you an edge.
- Pick what your team knows and what you can hire for, in your location.
- Prefer widely used, well-supported options with strong communities and long-term support.
- Think about the whole life: certification, supply availability (for chips and modules), long-term support and licences.
- Keep the core portable. Isolate your key algorithms from vendor-specific services.
- Write down decisions and why you made them.
Types of technical debt#
| Type | Example | When it's acceptable |
|---|---|---|
| Deliberate and prudent | "Ship the demo with hard-coded settings; fix before the pilot" | Early learning, with a dated plan to repay |
| Deliberate and reckless | "No time for tests, ever" | Never |
| Accidental | A design that made sense but no longer fits | Normal; repay as you learn |
| Research code in production | Lab scripts running a customer system | Only short-term, with a plan to rewrite |
| Dependency debt | Outdated libraries, unsupported chips or OS versions | Repay before security or supply risk bites |
| Data and model debt | Unversioned data, untracked model changes | Repay before scaling or regulated use (9.19) |
2. What the data says (November 2026)#
| Finding | Source |
|---|---|
| In a survey of developers and executives, the average developer spent 13.5 hours a week on technical debt and 3.8 hours on bad code, out of a 41.1-hour week: about 42% of their time | Stripe and Harris Poll, The Developer Coefficient (2018) |
| 52% of developers in the same survey named maintenance of legacy systems and technical debt as the biggest hindrance to productivity | Same survey |
| CIOs estimated technical debt at 20–40% of the value of their entire technology estate, and 60% felt it had risen over the previous three years | McKinsey survey of 50 CIOs, Tech debt: Reclaiming tech equity (2020) |
| Companies typically pay an extra 10–20% on top of a project's cost to deal with tech debt; about 30% of CIOs said more than 20% of their new-product budget was diverted to it | McKinsey, Breaking technical debt's vicious cycle |
| Companies in the top 20% for McKinsey's Tech Debt Score had 20% higher revenue growth than the bottom 20% | McKinsey, Demystifying digital dark matter |
These studies cover larger organisations. Startups have less debt in absolute terms, but it builds quickly and can block a pilot, a certification or due diligence.
What this means#
- Budget repayment time explicitly, often 10–20% of engineering capacity.
- Track debt like any other risk, with an owner and a date.
- Treat debt as a business issue: explain it in terms of speed, risk and cost.
3. How to do it#
Step 1. Map your stack layers#
List each layer and what you use or plan to use: hardware and chips, firmware and operating system, core algorithms, data and storage, cloud and infrastructure, applications and user interfaces, and development tools.
Step 2. Score options for each layer#
For each important decision, compare two or three options on:
| Criterion | Question |
|---|---|
| Team fit | Do we know it? Can we hire for it locally? |
| Maturity | Is it widely used, stable and well documented? |
| Support and life | Long-term support, vendor stability, chip or module availability for 5+ years |
| Performance fit | Does it meet real-time, power, accuracy or scale needs? |
| Cost | Licences, cloud spend at scale, development tools |
| Compliance | Certifiable for medical, automotive, defence or safety use? Export-controlled? |
| Lock-in | How hard would it be to switch later? |
Step 3. Record decisions#
Write a short architecture decision record (ADR) for each significant choice: context, options, decision, consequences. Store ADRs in the repository.
Step 4. Keep a debt register#
List known debt items with: description, impact (speed, risk, cost), owner, rough effort and the trigger or date for repaying. Review it in sprint planning.
Step 5. Repay regularly#
Reserve 10–20% of each sprint for debt and maintenance. Before big milestones (pilot, certification, fundraise), schedule a focused clean-up. Update dependencies on a regular cadence.
Step 6. Plan the research-to-production handover#
When research code becomes product code, rewrite or harden it: add tests, logging, error handling, configuration and documentation. Keep the research version for reference (9.01).
Worked example#
An agritech startup with a soil sensor, edge firmware and a cloud dashboard.
| Layer | Choice | Reason |
|---|---|---|
| Microcontroller | A widely used low-power ARM Cortex-M part with a long-term supply commitment | Supply security and large talent pool |
| Firmware | Zephyr RTOS in C | Open source, broad hardware support, over-the-air updates |
| Core algorithm | Python for research; ported to C for the device with matching tests | Fast iteration, then efficient deployment |
| Cloud | Managed services from one provider behind a thin internal interface | Speed now, with an exit path |
| Dashboard | A mainstream web framework the team knows | Fast hiring and development |
| Debt register | 14 items; top item is hard-coded calibration values | Scheduled for repayment before the 200-unit pilot |
4. Country notes#
India#
- Talent: large pools for Python, Java, JavaScript and embedded C; scarcer for specialised areas (FPGA, RF, photonics design tools). Choose stacks you can hire for in your city.
- Cloud credits: many startup programmes (including through DPIIT, incubators and cloud providers) offer credits; plan for costs after credits end.
- Data localisation: sector rules (for example, RBI rules on payment data) and government contracts may require data stored in India; check before choosing regions (4.13).
- Electronics: semiconductor and electronics incentive schemes may favour locally made components; check if you plan to sell to government (11.03, 17.08).
United States#
- Government and defence customers may need FedRAMP-authorised cloud services, CMMC compliance or NDAA-compliant components (for example, restrictions on some foreign-made chips, drones and cameras).
- Export controls can apply to encryption, advanced computing and some software (4.16).
United Kingdom#
- Public sector buyers often expect Cyber Essentials certification, and some require Cyber Essentials Plus.
- UK GDPR influences where and how personal data is stored (4.13).
Everywhere#
Check open source licences in your stack (2.16), and make sure dependency choices won't block certification for regulated markets (9.15).
5. Scripts, mistakes and sources#
Scripts#
Pushing back on a shiny new framework
"It looks great, and our novelty budget is already spent on the sensor algorithm. Let's use what we know for the dashboard and revisit in a year if there's a real need."
Explaining technical debt to the board
"We took shortcuts to hit the pilot date, which was the right call. They now slow every change by about a third. We're putting 20% of engineering time into repaying the top five items over the next two months, which will speed up the production release."
Recording a decision
"ADR-007: we chose Zephyr over a bare-metal loop because we need over-the-air updates and expect to change chips. Trade-off: more memory use. Revisit if we move to a smaller part."
Common mistakes#
- Choosing technology to impress rather than to deliver.
- Too many languages and frameworks for a small team.
- Research code silently becoming production code.
- Ignoring component supply life for hardware.
- No record of why decisions were made.
- Never scheduling debt repayment.
- Total rewrites when incremental fixes would do.
Related playbooks#
- 2.16 Open source or proprietary; 4.13 Data protection; 4.16 Export controls
- 8.17 Build, buy or partner; 9.01 Research to product roadmap; 9.05 Sprints and code review; 9.10 Supply chains and long-lead components; 9.15 Quality systems; 9.18 Security engineering; 9.19 AI/ML models and evals
Sources#
- Stripe and Harris Poll, The Developer Coefficient (September 2018) McKinsey, Tech debt: Reclaiming tech equity (October 2020)
- McKinsey, Breaking technical debt's vicious cycle to modernize your business (2023) McKinsey, Demystifying digital dark matter: A new standard to tame technical debt (2022)
- Martin Fowler, Technical Debt Quadrant (2009); Dan McKinley, Choose Boring Technology (2015)
This playbook is general information, not legal advice.