AAmit’s LibraryLEARN · PRACTISE · REFLECT

Strategy and innovation × Programming

Business lens: Strategy and innovation · Technology lens: Programming

Reading scope: Original synthetic business and computing application. Source links support technical background, not the invented organisations or arithmetic.

The decision before the code

A small repair company wants to introduce appointment deposits. Its strategic problem is missed appointments, but the owner initially asks a programmer to maximise deposits collected. Those are different objectives. Deposits might discourage reliable customers, increase refund disputes and improve apparent cash while reducing repeat business. Start with an explicit hypothesis: a clearly explained, refundable booking deposit may reduce avoidable no-shows without creating unacceptable exclusion. Specify the current service, customer group and test period before writing a rule. Innovation here means learning whether a changed offer creates useful value, not simply automating an existing assumption. A programme implements policy; it cannot decide whether that policy deserves customer trust.

Rules, functions and exceptions

Model an appointment as an identifier, slot, quoted service, deposit status and cancellation history. Keep the deposit calculation in a function separate from the booking screen. The function should receive a price and policy version and return the required amount; payment collection is a separate operation. Avoid floating-point surprises by representing money in integer paise for this bounded exercise. Reject negative amounts and missing policy versions. A manager-approved exception needs an explanation and authorisation record, rather than an unexplained zero. Distinguish a customer cancelling from the company being unable to attend. Test both paths. Software becomes useful when the organisation can explain the result and reproduce the rule that produced it.

A worked comparison with limits

The synthetic baseline has 200 bookings and 30 no-shows, a 15% no-show rate. A later trial has 160 bookings and 12 no-shows, a 7.5% rate. For this synthetic calculation, assume that every booking not classified as a no-show was completed, with no cancellations or other incomplete appointments. The rate has halved, but completed appointments changed from 170 to 148. If contribution per completed appointment is ₹500, contribution falls from ₹85,000 to ₹74,000 before refunds, implementation costs or alternative work are considered. This is not evidence that deposits caused the fall: seasonality, customer mix and available slots may differ. Record the denominator, refused bookings and dates. Treat the comparison as a warning against selecting one convenient success measure. A stronger experiment needs a suitable allocation procedure and protection for affected customers.

Departments and feedback ownership

Sales explains the offer before a customer commits. Operations records whether a technician actually arrived. Finance reconciles deposits, revenue and refunds without treating every receipt as earned revenue. The programmer owns validation and traceability of the implemented rule. Customer support records confusion and disputes using categories that can be reviewed without unnecessarily copying sensitive conversation text. The owner approves continuation or withdrawal of the trial. These responsibilities meet at a weekly review: reconcile a sample of bookings with receipts, cancellations and service outcomes. Give support a route to pause an obviously harmful booking flow. A dashboard can surface differences, but a human must decide which evidence is sufficient to change the policy.

Failure, correction and learning levels

Suppose a deposit callback is received twice and the programme sends two confirmations. Replaying an external message should not create a second booking; use a stable event identifier and a recorded outcome. Separately, an old policy version must remain available for resolving a dispute about an earlier appointment. Foundation learners explain the difference between a rule and a business objective. Undergraduate learners implement a pure calculation function and boundary tests. Postgraduate learners compare allocation options, missing denominators and refund incentives. Research learners propose a causal question about customer exclusion, define recruitment and measurement, and explain how the study could distinguish policy effects from changes in demand. These are tasks at different levels, not four claims of completed advanced teaching.

Nine questions and a portfolio

Who approves deposit exceptions? Whom might the policy exclude even when they need repair assistance? Whose appointment and payment records are being linked? What outcome would justify continuing the trial? Where is the policy version retained? When does a payment become refundable under the stated offer? Why did the team choose deposits instead of reminders? Which comparison would reveal a loss of completed work? How will a duplicate event be recognised? Build a two-page decision brief, a small table of booking events and a specification for the deposit function. Include a failed hypothesis and a stop condition. The portfolio should demonstrate the chain from customer problem to rule, evidence and managerial judgement, rather than reward the amount of code written.

Study questions and answers

Did the lower no-show rate prove that the trial improved business performance?

No. Under the stipulated assumption that all non-no-shows completed, baseline completion was 170 appointments and trial completion was 148. At ₹500 each, the synthetic contributions were ₹85,000 and ₹74,000. The rate improved while volume fell. This time-separated comparison does not establish causation; seasonality, customer mix and available slots remain plausible alternative explanations. Assess completions, refunds, exclusion and costs before making the strategic decision.

Marking guide: Credit 170 versus 148 completions and 85,000 versus 74,000 stipulated contribution. Require the rate/volume distinction and period or mix limitations; reject causal proof from the rate alone. Credit the stipulated completion assumption; without it, no-show counts alone do not determine completed appointments.

What should happen when the same payment callback arrives twice?

Use the stable event identity to recognise a previously processed callback and return its recorded outcome. Do not create another booking or treat the duplicate as new revenue. Test retries and failures separately, and reconcile the payment with the original booking.

Marking guide: Credit stable callback identity, recognition of prior processing and returning its recorded result without another booking/revenue effect. Require failure/retry testing and booking/payment reconciliation.

Who should approve an exception, and what evidence should be retained?

A designated business owner should approve policy exceptions. Retain the booking identity, policy version, reason and authorisation with proportionate access. The programmer implements the decision and validation; software should not invent a discretionary commercial policy.

Marking guide: Credit a designated business exception owner and retained booking ID, policy version, reason and authorisation under proportionate access. Distinguish policy approval from implementing code.

Practice task

Submit a deposit decision brief, event table, function specification and boundary-test plan. No payment service or live customer data is required.

Sources and further reading

  • SQLite transaction reference
    Scope: Public documentation on transaction behaviour; synthetic business cases below are our own. No course or certification review.

Related chapters

Interactive practice

Open workshop

Open interactive matrix reading