Case Analysis: Professional Ethics and Deceptive Code in Pharmaceutical Marketing
Introduction
In “The Code I’m Still Ashamed Of,” software developer Bill Sourour reflects on an early career assignment where he was tasked with building an interactive quiz for a pharmaceutical website targeted at young women and teenage girls. Posing as an objective educational resource, the quiz was engineered so that regardless of how users answered the questions, it invariably recommended the client’s specific prescription drug as the optimal medical treatment. Sourour initially viewed the task merely as routine marketing and fulfilled the requirements without objection. Shortly thereafter, he learned that a teenage girl who was prescribed that drug had taken her own life due to severe side effects. This tragic outcome made Sourour realize that his code had actively deceived vulnerable users into seeking a specific medication under false pretenses. In this Case Analysis, I will argue that Confucian moral theory shows us that writing the quiz code was morally problematic because Sourour prioritized blind institutional compliance over his relational obligations to protect vulnerable users, and that Sourour should have pushed back against the unethical requirements and refused to implement a deceptive program because a professional’s ultimate duty is to uphold ethical relationships and safeguard public well-being over corporate profit.
Professional Codes of Ethics and Confucian Analysis
Professional codes of ethics in computing, such as those established by the Association for Computing Machinery (ACM) and the Institute of Electrical and Electronics Engineers (IEEE), establish explicit moral standards for software engineers. A central concept within these codes is the imperative to avoid harm, ensure public safety, and maintain honesty and trustworthiness in all professional deliverables. Software professionals hold specialized knowledge that average users do not possess, which creates a disparity in power and trust. Because the public relies on software to deliver accurate, non-manipulative information, computing codes of ethics strictly prohibit developers from creating deceptive systems or misleading user interfaces. Developers are expected to evaluate the potential real-world impacts of their work, uphold human dignity, and prioritize the public good over commercial or organizational interests. When faced with unethical commands from employers or clients, professional codes dictate that a developer has an ethical duty to express concern, request modifications, or ultimately refuse to write code that violates these fundamental principles.
When evaluating Sourour’s case through professional codes of ethics, it becomes evident that his actions were deeply problematic. The website was intentionally designed to masquerade as an unbiased health information portal, yet Sourour coded a quiz logic where every diagnostic path led exclusively to the client’s prescription medication. By building a tool that pretended to offer personalized medical advice while actually operating as a hidden advertisement, Sourour compromised the honesty and integrity demanded by computing codes of ethics. Even though his project manager and account manager approved the project, a developer’s ethical obligations under professional codes are not nullified by managerial approval or client demands.
Analyzing this failure through the lens of Confucian moral theory reinforces why writing the code was wrong and what Sourour should have done differently. Confucian ethics centers on staying on the proper path (dao) by properly fulfilling one’s relational roles. In the workplace, a developer does not just occupy a role relative to their boss; they also occupy a relational role toward the end-users who interact with their software. Confucianism emphasizes that acting within a role does not mean blindly following orders from superiors. Instead, it involves reflection and remonstrance, the moral duty to advise and challenge authority figures when their demands are unethical or harmful. By uncritically executing requirements that tricked young women into taking prescription drugs, Sourour failed to properly fill his role as a responsible developer. Rather than simply accepting the client’s deceptive specifications, a Confucian approach required Sourour to engage in constructive pushback. He should have pointed out the deceitful nature of the quiz logic to his project manager and advocated for a transparent diagnostic tool that genuinely helped users make informed medical decisions.
Armstrong’s Professional Ethics and Confucian Assessment
In his discussions on professional ethics, Walter Armstrong emphasizes that professionals possess specialized roles that carry unique moral requirements distinct from general everyday morality. A central concept in Armstrong’s framework is that entry into a profession grants individuals social power and authority, which in turn imposes special duties of care, transparency, and loyalty toward the clients and public they serve. Unlike standard marketplace interactions where buyer beware might apply, a professional relationship is built on specialized trust. Because non-experts cannot easily verify technical or medical claims, professionals are morally required to act as fiduciaries, safeguarding the health, rights, and autonomy of those who depend on their expertise. Armstrong argues that professionals cannot hide behind corporate orders or purely commercial goals to excuse actions that inflict harm or subvert public trust, because their specialized role fundamentally obligates them to uphold higher standards of integrity.
Applying Armstrong’s concept of professional duties to Sourour’s case highlights how the software developer failed to uphold his specialized ethical responsibilities. As a programmer working on a medical platform, Sourour was positioned as a technical professional whose work directly influenced public health outcomes. The young women taking the online quiz trusted that the software was providing legitimate, personalized medical feedback. By coding a rigid logic that systematically steered every user toward a single pharmaceutical product, Sourour abused his technical capability and violated the specialized duty of care inherent to professional practice. His initial justification—that he was simply doing a job he was paid to do under the banner of “marketing”, ignores Armstrong’s insight that professional responsibilities transcend basic commercial agreements.
Evaluated using Confucian ethics, Armstrong’s focus on professional duty aligns directly with the idea that moral choices are deeply contextual and rooted in maintaining proper social relationships. Under Confucianism, a person must consider the full situation and the specific people involved rather than relying on simple rules. In this context, the users of the website were young, potentially vulnerable women seeking medical guidance. Sourour’s relational obligation to these vulnerable users far outweighed his commercial duty to satisfy his boss or a paying client. Confucian theory asserts that staying on the dao requires treating others with appropriate care based on their relationship with you. By facilitating a corporate trap that exploited young girls’ health anxieties for profit, Sourour acted outside the proper boundaries of his role. Based on this Confucian assessment, the right course of action would have been for Sourour to refuse to write the deceptive code if his managers refused to alter the requirements. Refusing to implement predatory logic would have honored his role as a conscientious developer and maintained his moral integrity on the path.
Conclusion
In summary, analyzing Bill Sourour’s experience through professional codes of ethics and Armstrong’s framework reveals that coding the deceptive pharmaceutical quiz was a serious moral failure. Software developers possess specialized skills that directly impact human lives, creating a professional obligation to avoid harm, maintain honesty, and protect user autonomy. Confucian moral theory further demonstrates that Sourour’s actions were wrong because he prioritized blind obedience to his employer over his relational duty to protect vulnerable users, failing to exercise the necessary moral reflection and pushback that his role demanded. A potential objection to this argument is that as a young, low-level developer, Sourour lacked the institutional power to change corporate policy, and refusing to write the code would have simply resulted in another programmer doing it while risking his own employment. However, while organizational pressure is real, Confucianism reminds us that moral integrity cannot be compromised for personal convenience or corporate obedience. Acting ethically within a professional role requires standing up against harm even when it is difficult. The wider implication of this case is that technical workers must view themselves not merely as passive coders executing specifications, but as moral agents accountable for the social and human consequences of the software they create.