Module 02 · Lesson 2.3
Choosing Technology with Trade-offs
On this page
- What you will learn
- How to choose technology: fit, risk, skill and cost of change
- Why boring technology is often the best choice
- Worked scenario: Tidewell's technology choices
- Step-by-step workflow: choose technology with trade-offs
- Using an AI assistant as a challenger
- Conclusion and your next step
- Reusable prompt
- Expected output
- Common errors and fixes
- Validation checklist
- Hands-on exercise
- Knowledge check
- Frequently asked questions
- References
When you buy a tool for your kitchen, you do not pick the one that won a prize last month. You pick one that does the job, that you know how to use and that you can replace if it breaks. Choosing technology for a project works the same way.
In this lesson you learn to weigh fit, risk, team skill and the cost of changing your mind. You see why a well-known, boring choice is often the best one. You then follow Tidewell Physiotherapy's choices for language, framework and database, and learn to use an assistant as a challenger and not as the decider.
What you will learn
- Compare technology options using fit, risk, team skill and cost of change.
- Explain why well-known, boring technology is often the safer choice for a small team.
- Write a short trade-off statement that says what you gain and what you give up.
- Use an AI assistant to argue against a technology choice and then judge its arguments against your drivers.
Before you start
- Completed Choosing a System Shape, or have a chosen system shape of your own.
- Access to any capable AI assistant.
How to choose technology: fit, risk, skill and cost of change
A technology stack is the set of tools a system is built with: the programming language, the framework and the database, plus the smaller tools around them. A framework is a ready-made structure that gives you the common parts of an application, so you do not build them yourself. It is like a house frame that comes with the walls and doors in place.
Popular opinion is a poor guide. Ask four plain questions about each option instead.
| Question | Plain meaning | What to look for |
|---|---|---|
| Fit | Does it do what the drivers need, without heavy work? | A direct match to a driver, for example a database that can enforce one booking per slot. |
| Risk | What could go wrong, and how bad is it? | Tools that are young, rarely used, owned by one small company or hard to hire for. |
| Team skill | Can the people who will build and fix it work with it today? | Skills the team already has, and a large pool of people and answers online. |
| Cost of change | How hard is it to switch away later? | Whether your data and code are tied to this tool, or kept in common standards. |
The last question matters most for beginners. Some choices are like changing a lamp: easy to undo. Others are like moving the kitchen: costly. Spend your thinking time on the costly ones, such as the database and the language. Make the easy ones quickly.
- Trade-off
- Gaining one good thing by giving up another. Every real choice has one.
- Lock-in
- Being tied to one tool so that leaving it would cost a lot. It is like a phone contract with a heavy exit fee.
- Reversible choice
- A decision you can undo cheaply, so a wrong guess costs little.
Why boring technology is often the best choice
Boring technology means tools that many people have used for many years. Their faults are known, their documents are full of examples, and most questions already have answers. Boring does not mean old-fashioned. It means predictable.
This matters for driver D6: one developer, a small budget and a local contractor who will maintain the system later. A contractor can pick up a well-known stack quickly. An unusual one makes the contractor slower and more costly, or hard to find.
- Fewer surprises. Common problems have common fixes.
- Easier hiring. More people know the tool.
- Better assistant help. An assistant has seen far more examples of widely used tools, so its suggestions are usually better. They still need checking.
- Few moving parts. Each extra tool is one more thing to learn, update and fix.
Worked scenario: Tidewell's technology choices
Tidewell chose one deployable web application. Inside that shape, the stack is TypeScript, Next.js with the App Router, PostgreSQL, node-postgres (called pg) with plain SQL, and plain SQL migration files. Here is each choice with its driver and what is given up. For this program we assume the developer already reads TypeScript.
| Layer | Choice | Main driver | Set aside | What we give up |
|---|---|---|---|---|
| Language | TypeScript | D6: skills and ease of maintenance | Plain JavaScript; another language the developer knows less well | A small amount of extra typing and a type-checking step. |
| Framework | Next.js (App Router) | D2, D6: web pages that work on phones, pages and API in one project | A separate frontend and API (rejected in lesson 2.2) | Some framework rules to learn, and a framework that changes over time. |
| Database | PostgreSQL | D1, D4: transactions and uniqueness rules | A spreadsheet or file store; a simple embedded database; a document database | A database server to run and back up. |
| Database access | pg with plain SQL | D1, D6: the double-booking rule stays visible in SQL | An object-mapping tool (ORM) that hides the SQL | More typing for each query, and care to pass values safely. |
| Schema changes | Plain SQL migration files | D4, D6: a clear, reviewable history | A migration tool chosen now | No automatic tooling yet. You may adopt a tool later. |
A closer look at the database choice
A database is the hardest choice to undo, so give it the most thought. Driver D1 says two people cannot book the same slot. A transaction groups several steps so they all happen or none do, like paying at a till: either you pay and get the item, or neither. A uniqueness rule lets the database itself refuse a second booking for a taken slot. PostgreSQL offers both.
Several other tools offer both too. PostgreSQL wins here on boring grounds: it is widely used, widely hosted, and the owner can choose the region where it runs (D5). It is also well known to contractors. That fit with D1, D5 and D6 together is the reason, not the brand.
A closer look at plain SQL
An ORM is a layer that lets you work with database rows as if they were ordinary objects in your code. It can save typing. For Tidewell, plain SQL was chosen because the booking rules live partly in the database, and writing the SQL by hand keeps them in view. It is also a good way to learn what the database really does.
This is a judgement, not a rule. Many teams use an ORM happily. Write the trade-off in the record, so a later reader knows it was a choice and what would change it.
A trade-off statement
Choice: PostgreSQL as the system of record.
We gain: transactions and uniqueness rules that enforce NFR-01 (D1);
a widely known tool the local contractor can support (D6).
We give up: the simplicity of a file-based store; we must run
and back up a database server.
Revisit if: the clinic opens many sites and one database cannot
cope, or the owner requires a hosting region we cannot get.One short statement per choice. It names the gain, the loss and the trigger for a rethink.
Step-by-step workflow: choose technology with trade-offs
Step 1: Start from your drivers and system shape
List the drivers that touch technology, such as correctness, phones, data location and team skill.
What you should see: A short list of what the stack must satisfy.
Step 2: List the layers
Write the layers you must choose: language, framework, database, how code reaches the database, how the database changes over time.
What you should see: A table with one row per layer.
Step 3: Find two or three options per layer
Include the boring, widely used option and one alternative. Ask the assistant for alternatives, then cut the list to realistic ones.
What you should see: Real choices for each layer.
Step 4: Apply fit, risk, skill and cost of change
Answer the four questions for each option. Spend most time on the choices that are hardest to undo.
What you should see: A note on each option with its strengths and weaknesses.
Step 5: Pick, and write the trade-off
Choose one option per layer. Write what you gain, what you give up and what would make you revisit.
What you should see: A trade-off statement for each costly choice.
Step 6: Check the stack hangs together
Read the whole stack once. Do the tools work well with each other, and is the number of moving parts small enough for the team?
What you should see: A stack you can explain in a minute.
- Drivers
And the chosen shape
- Layers
Language, framework, database
- Options
Two or three each
- Four questions
Fit, risk, skill, change
- Trade-off
Gain, give up, revisit
- Stack
Checked as a whole
The hardest-to-undo choices get the most attention.
Using an AI assistant as a challenger
Assistants have read about many tools, so they make good challengers. Ask one to argue against your pick, to list how your choice usually fails, or to explain what the alternative would cost you. Ask it to be specific.
| Task | Assistant's part | Your part |
|---|---|---|
| Suggest alternatives | Lists other tools that meet the same driver, with a line on when each fits. | Cuts to those the team can support. |
| Argue against your choice | Gives the strongest reasons your pick may fail. | Judges each reason against your drivers, and keeps or changes the choice. |
| Explain a trade-off | Describes what you would gain and give up in plain words. | Checks the claims in current documentation. |
| Draft the trade-off statement | Turns your notes into the short form above. | Checks it says what you decided and nothing more. |
Conclusion and your next step
Choose technology by asking about fit, risk, team skill and the cost of change. Prefer well-known tools when the team is small. Write down what each choice gains and gives up, and use an assistant to argue against your pick, not to make it.
Your next step: write a trade-off statement for the database and the framework in your own capstone project. Then continue to Architecture Decision Records to record these choices properly.
For more, read the Architecture Decision Record Draft prompt, or the guide AI Pair Programming: How to Actually Work with an AI Coding Assistant.
Reusable prompt
Technology trade-off challenger
Argues against your technology choice for one layer and lists what you would gain and give up, with every tool fact flagged for checking.
You are a challenger for a technology choice. Do not decide for me and do not state prices, version numbers or limits as facts.
Fictional clinic: Tidewell Physiotherapy. Shape chosen: one deployable web application serving pages and a REST API.
Drivers: correct bookings when two people act at once (database with transactions and uniqueness rules); patients use phones; every change recorded; patient data held under the clinic's duties, owner chooses the hosting region; one developer with an assistant, a small budget, a local contractor will maintain it later.
Layer: database.
My choice: PostgreSQL, accessed with node-postgres and plain SQL, with plain SQL migration files.
Alternatives I have considered: a simple embedded database; a document database; an ORM on top of PostgreSQL.
Tasks:
1. Give the three strongest reasons my choice might be wrong for this project.
2. For each alternative, say in two sentences what I would gain and what I would give up.
3. Mark every statement about a tool "Needs checking" unless it is a general principle.
4. Suggest one event that should make me revisit this choice.Show the reusable template
Replace each {{placeholder}} with your own details.
You are a challenger for a technology choice. Do not decide for me and do not state prices, version numbers or limits as facts.
Context: {{organisation_and_system_shape}}
Drivers: {{architecture_drivers}}
Layer: {{layer}}.
My choice: {{my_choice}}
Alternatives I have considered: {{alternatives}}
Tasks:
1. Give the three strongest reasons my choice might be wrong for this project.
2. For each alternative, say in two sentences what I would gain and what I would give up.
3. Mark every statement about a tool "Needs checking" unless it is a general principle.
4. Suggest one event that should make me revisit this choice.Expected output and limitations
Three reasons the choice might be wrong, a two-sentence gain-and-loss note per alternative, tool facts marked 'Needs checking', and one revisit event.
Reasons it might be wrong:
1. You must run and back up a database server. Needs checking: what your chosen host includes.
2. Plain SQL means more code per query, and a mistake in passing values can open the door to attacks. General principle: always pass values as parameters.
3. If the clinic never grows, a simpler store may be enough.
Embedded database: gain simpler setup; give up some concurrency features. Needs checking.
ORM: gain less typing and typed results; give up some visibility of the SQL you run.
Revisit if: the clinic opens several sites and needs separate databases.Limitations to keep in mind
- The assistant's facts about tools can be out of date. Check each one in current documentation before you rely on it.
- Its reasons are generic. Some will not apply to a clinic with four physiotherapists.
- It may favour popular tools because it has seen more about them, which is not the same as being the right fit.
Common errors and how to fix them
A tool is chosen because it is new or popular.
Why it happens: Fashion felt like evidence.
Fix: Tie every choice to a driver. If you cannot name the driver, the choice is not yet justified.
Only the benefits are written down.
Why it happens: A decision felt like a sales pitch.
Fix: Add a 'we give up' line for every choice. A choice with no cost has probably not been examined.
The team's skills and the future maintainer are ignored.
Why it happens: Technology was judged only on its features.
Fix: Ask who will build, fix and extend it for the next three years, and choose tools they can support.
Validation checklist
Tick each item once you have confirmed it.
Hands-on exercise
A technology stack for Ferngate Cycle Repairs
Choose technology for Ferngate's parts and stock tool. Cover language, framework, database and how the code reaches the database. Write a technology table like Tidewell's, and a trade-off statement for the database.
You will need
- Your Ferngate drivers and chosen system shape from the last two lessons.
- Note: the workshop has one shared tablet, and the connection is often down.
- Note: the owner has little money and no technical staff.
- Note: the owner counts shelves every Friday, and the low-stock threshold is 'to be agreed'.
Acceptance criteria
Your work is done when every one of these is true.
Hints (2)
- Ask what a mechanic needs to see when the connection drops while recording a part.
- Ask who will fix it if something breaks, and what they know.
Show a model answer
A strong answer picks well-known tools and ties each one to a driver, such as using the same stack the course uses so that the owner can find help. It gives special attention to the database because it is hard to change, and states what is given up, such as running a database server. It notes that the unreliable connection is a real unknown, and treats any claim that a tool works offline as 'Needs checking' until tried. It does not name versions or prices, and it records a revisit trigger, such as a second workshop. It leaves the low-stock threshold as a decision for the owner.
Knowledge check
Choose an answer, then check it. Nothing is recorded — this is for you.
Show the answer and explanation
Answer: B. Fit with your own drivers is what counts. Popularity is tempting because it feels like safety, but a tool can be popular for problems you do not have. Rejecting it for being popular is just as unthinking.
Show the answer and explanation
Answer: B. The cost of change differs. A button library can be swapped with little risk, while moving data and rules to another database is slow and risky. Price is the tempting answer, but it is not the main reason, and buttons do matter to users; they are simply easier to change.
Show the answer and explanation
Answer: B. Limits and prices change, and an assistant can quote old ones with full confidence. Recording them as facts makes the decision wrong the day they change. Ignoring the assistant throws away a useful source of ideas that you can check.
Frequently asked questions
How do I choose a tech stack for a small project?
Start from your drivers, such as what must be correct, who will maintain it and what you can afford. Then compare two or three well-known options for each layer on fit, risk, team skill and cost of change. Pick the simplest one that meets the drivers.
What does boring technology mean?
It means tools that many people have used for years, so their faults and fixes are well known. It does not mean poor or outdated. For small teams it often saves time, because problems already have answers.
Should I use an ORM or write plain SQL?
Both work. An ORM saves typing and hides some database detail, while plain SQL keeps the exact queries in view and teaches how the database works. Choose by your team's skill and how much of your business rule lives in the database, and write the trade-off down.
Can an AI assistant pick my technology stack?
It can suggest options and argue against your choice, which is helpful. It does not know your team, budget or the owner's rules, and its facts about tools may be out of date. Decide yourself, and check its claims in current documentation.
- Written by
- PromptFable Editorial
- Last updated 19 Nov 2026
- Review
- Reviewed by Waseem Nadir, Technical Reviewer
- Last reviewed 27 Nov 2026
References
Primary sources for the technical details in this lesson. Vendor platforms change — check the official page if anything here looks different from what you see.
- Project structure and organization(opens in a new tab)
Next.js documentation · Official documentation · Describes how a Next.js project is laid out, including the App Router.
- PostgreSQL Documentation: Constraints(opens in a new tab)
PostgreSQL Global Development Group · Official documentation · Describes the uniqueness and other rules a database can enforce on its own.
- Evolutionary Database Design(opens in a new tab)
martinfowler.com · Background on changing a database in small steps, relevant to the cost of changing a data choice.
PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.