People and organisational behaviour × Programming
Business lens: People and organisational behaviour · Technology lens: Programming
Reading scope: Original synthetic teaching; selected primary background and same-author checks are not independent validation.
Code changes who does repetitive work
A fictional administrator writes a Python script to clean customer names. The script saves typing, but its automatic replacements merge two distinct customers with similar names. Programming for business begins with the work being assisted and the consequences of a mistake. A rule that is easy to express in code may not capture the judgement a clerk uses when comparing records. Computing can perform a defined transformation consistently and flag uncertain cases. People must decide which transformations are justified, which need review and how a person affected by an incorrect result can obtain a correction.
Consult the people who know exceptions
Customer service describes spelling variations, Finance identifies invoice relationships, the administrator explains the old manual process and the programmer documents the new rules. A consultation should include difficult examples rather than only clean rows. Separate formatting changes from identity decisions: trimming surrounding spaces is different from deciding that two records refer to the same customer. Record the original value and the reason for a proposed merge. The manager needs to understand the review demand created by uncertainty. A script should not shift all exceptions to an already overloaded employee while the programmer reports that the automated task is complete.
Worked cleaning review
A synthetic file has 100 records. The script confidently formats 70, flags 20 for identity review and leaves ten unchanged because the format is unsupported. Automated formatting coverage is 70%. A reviewer resolves 12 of the 20 flagged cases after comparing invented evidence. Resolved records then total 82/100 = 82%, while eight flagged and ten unsupported cases remain. Assume each of the twelve successfully resolved cases takes three minutes: those resolutions use 36 minutes. Any effort spent on the eight still-unresolved review cases is unspecified, so 36 minutes is not necessarily total review effort. The 82% figure is a count of completed exercise decisions, not an accuracy estimate. To estimate accuracy, the learner would need an appropriate independently checked reference set and a defined error measure.
Errors should help the next person
A script that silently skips a row may produce a plausible output file and leave the administrator unaware of missing work. Report the input count, output count and unresolved categories. An error message should identify the relevant record without exposing unnecessary personal information. The official Python tutorial provides free technical background on exceptions; this case does not copy that material or claim that exception handling alone makes a business process safe. Local offices may depend on one spreadsheet expert, while global teams need maintainable shared code. Both should consider who can understand and repair the script when its author is unavailable.
Cleaning lesson extension
Use the existing Python cleaning lesson with 100 invented records and three disposition categories. Preserve originals, write a review file and reproduce the 82-record result after twelve documented resolutions. Add one deliberately malformed value and confirm that the script reports it without dropping the rest of the file unnoticed. Your portfolio should include an administrator-readable summary and a handover note. This extends an existing bounded lesson; it is not a production customer-data run. Distinguish formatting tests from evidence about identity, and do not count a flagged case as resolved merely because an output row was written.
Question words for automation
Who maintains the script and Whom should a reviewer consult? Whose customer record might be merged incorrectly? What transformation is authorised, Where is the original retained and When should a rule stop for review? Why does a similar name fail to establish identity? Which unsupported format needs a new test? How can the administrator reconcile every input row? These questions connect programming with communication, handover and managerial judgement. They help the learner explain both the technical rule and the human decision it assists.
Levels and research
Foundation learners distinguish formatting from identity using two fictional names. Undergraduate learners calculate the 82% resolution count and 36 minutes of review. Postgraduate learners critique silent failures, maintenance dependence and unsupported accuracy claims. Research learners propose an evaluation with a defined reference set, disagreement handling and confidentiality before studying real records. A DBA contribution could examine how exception reporting changes trust in office automation. For retention, reconstruct the 100-record partition and describe why a script that processes every row can still fail to solve the business task correctly.
Study questions and answers
How many records remain unresolved?
Eight flagged and ten unsupported cases: 18 of 100 remain unresolved.
Marking guide: Credit eight flagged plus ten unsupported =eighteen unresolved among 100.
What review effort is stated?
Twelve resolved cases at three minutes each use 36 minutes.
Marking guide: Credit twelve resolutions times three minutes =36 assumed review minutes.
Why is 82% not an accuracy estimate?
It measures completed dispositions. Accuracy requires an appropriate checked reference and a defined error criterion.
Marking guide: 82% measures dispositions, not accuracy; require checked reference and error definition.
Practice task
Clean 100 fictional records with retained originals, review categories and an administrator-readable handover.
Practice bridge
- Clean 100 fictional records with retained originals, review categories and an administrator-readable handover.
- Reproduce the stated arithmetic, change one valid assumption and distinguish actual lesson observations from the invented case.
Boundary: Original synthetic teaching connected to an existing bounded or guided lesson. No new executable fixture, catalogue lab or external platform execution claimed.
Sources and further reading
- Python tutorial: Errors and Exceptions
Scope: Free official technical tutorial checked; no business-process validation implied.
Access: Free public reading; selected access/background check only. - OpenStax Organizational Behavior: introductory learning page
Scope: Free reading entry point; directory/introductory access checked, not a complete book review. Original cases do not reproduce textbook content.
Access: Free public reading; selected access/background check only.