Problem Solving Across Domains
How the loop enters DSA, databases, backend, frontend, system design, ML and agentic engineering — the same questions, different next lessons.
Problem → Constraints → Pattern → Algorithm. The algorithm is the last step, and the step people start from. The constraints — how much data, how often it changes, what "fast enough" means — are what pick the pattern, and the pattern is what picks the algorithm.
Data → Access Patterns → Model → Index → Query. The database domain teaches models, indexes and query plans; this lesson is the step before — discovering that there is data, how it will be read and written, and only then which model and which index.
User Workflow → Request → Business Rules → State → Dependencies. The backend is where the workflow becomes a request, the request meets the rules, the rules change state, and the state depends on things outside the process. Each arrow is a question; the backend domain answers them.
User Goal → Interaction → State → UI. The screen is the last step. What the user is trying to do, the interactions that get them there, and the state each interaction reads and changes come first — and they decide the UI far better than a component library does.
Requirements → Scale → Bottlenecks → Architecture. Architecture is the last step, and the reflex starts there. The requirements say what must hold; the scale says how much load; the bottleneck is what actually breaks first under that load; the architecture is the smallest change that relieves it.
Business Problem → Target → Data → Metric → Model. The model is the last step, and the one the word "AI" makes people start from. The target is what you are actually predicting, the data is whether you can, the metric is what "good" means to the business — and the ML domain teaches each once they are named.
Agentic architecture should emerge from requirements, the way any architecture should. Do not start with a multi-agent system; start with one deterministic workflow and ask, at each step, why it is insufficient. The answer names the one place an agent is needed — or finds that none is.