Date: Mon, 20 Nov 2017 19:24:02 +0000
<div>Canadian software engineer Bill Sourour recounts a tragic experience early in his developer career when writing code for a pharmaceutical company. He explores developer ethics, the responsibilities developers have, and the challenges they face in sticking to their values.</div> <div> </div> <div>Written by and read by Bill Sourour: <a href="https://twitter.com/billsourour">https://twitter.com/billsourour</a><br /> </div> <div>Original Article:</div> <div><a href="https://medium.freecodecamp.org/the-code-im-still-ashamed-of-e4c021dff55e" rel="noopener" target="_blank"> https://medium.freecodecamp.org/the-code-im-still-ashamed-of-e4c021dff55e</a> </div> <div> </div> <div>The Future of Programming by Bob Martin:</div> <div><a href="https://youtu.be/ecIWPzGEbFc" rel="noopener" target="_blank"> https://youtu.be/ecIWPzGEbFc</a> </div> <div> </div> <div>Business Insider Story:</div> <div>"Programmers are having a huge discussion about the unethical and illegal things they’ve been asked to do”</div> <div><a href="http://www.businessinsider.com/programmers-confess-unethical-illegal-tasks-asked-of-them-2016-11?op=1" rel="noopener" target="_blank"> http://www.businessinsider.com/programmers-confess-unethical-illegal-tasks-asked-of-them-2016-11?op=1</a></div> <div> </div> <div>CBC Interview</div> <div><a href="http://www.cbc.ca/radio/the180/stop-subsidizing-seniors-good-judges-can-make-bad-decisions-and-which-canadian-city-is-the-most-american-1.4028473/creating-a-code-of-ethics-for-coders-1.4028677" rel="noopener" target="_blank"> http://www.cbc.ca/radio/the180/stop-subsidizing-seniors-good-judges-can-make-bad-decisions-and-which-canadian-city-is-the-most-american-1.4028473/creating-a-code-of-ethics-for-coders-1.4028677</a></div> <div> </div> <div>Code Newbie Interview</div> <div><a href="https://www.codenewbie.org/podcast/the-ethics-of-coding" rel="noopener" target="_blank"> https://www.codenewbie.org/podcast/the-ethics-of-coding</a></div> <div> </div> <div>Developer Ethics on FCC Guide</div> <div><a href="https://guide.freecodecamp.org/developer-ethics" rel="noopener" target="_blank"> https://guide.freecodecamp.org/developer-ethics</a></div> <div> </div> <div>Learn to code for free at: <a href="https://www.freecodecamp.org">https://www.freecodecamp.org</a></div> <div> </div> <div>Music: "Sounds of Wonder" by Vangough: <a href="https://fcc.im/2yQOq0q">https://fcc.im/2yQOq0q</a></div> <div> </div> <div>Transcript: </div> <p><br /> If you write code for a living, there’s a chance that at some point in your career, someone will ask you to code something a little deceitful – if not outright unethical.</p> <p>This happened to me back in the year 2000. And it’s something I’ll never be able to forget.</p> <p>I wrote my first line of code at 6 years old. I’m no prodigy though. I had a lot of help from my dad at the time. But I was hooked. I loved it.</p> <p>By the time I was 15, I was working part-time for my dad’s consulting firm. I built websites and coded small components for business apps on weekends and in the summer.</p> <p>I was woefully underpaid. But as my dad still likes to point out, I got free room and board, and some pretty valuable work experience.</p> <p>Later, I managed to help fund a part of my education through a few freelance coding gigs. I built a couple of early e-commerce sites for some local small businesses.</p> <p>By age 21, I managed to land a full-time coding job with an interactive marketing firm in Toronto, Canada.</p> <p>The firm had been founded by a medical doctor and many of its clients were large pharmaceutical companies.</p> <p>In Canada, there are strict limits on how pharmaceutical companies can advertise prescription drugs directly to consumers.</p> <p>As a result, these companies would create websites that present general information about whatever symptoms their drugs were meant to address. Then, if a visitor could prove they had a prescription, they were given access to a patient portal with more specific info about the drug.</p> <p>The home page of edfactscanada.com circa 2001, via The Internet Archive</p> <p>One of the projects I was assigned to involved a drug that was targeted at women. The graphics and general style of the website made it clear that the client wanted to specifically target teenage girls.</p> <p>One of the features of this website was a quiz that asked girls a series of questions and recommended a type of drug based on their answers.</p> <p>Remember, this website was posing as a general information site. It was not clearly an advertisement for any particular drug.</p> <p>When I received the requirements, they contained the questions for the quiz, along with multiple choice answers for each question.</p> <p>Missing from the requirements was any indication of what I should do with the answers at the end of the quiz. So what rules determined what treatment the quiz would recommend?</p> <p>I spoke to the Account Manager about this. She emailed the client and got me the requirements. With those, I proceeded to code up the quiz.</p> <p>Before submitting the website to the client, my project manager decided to give it a quick test. She tried the quiz, then came over to my desk:</p> <p>“The quiz doesn’t work,” she said.</p> <p>“Oh. What’s broken?” I asked.</p> <p>“Well, it seems that no matter what I do, the quiz recommends the client’s drug as the best possible treatment. The only exception is if I say I’m allergic. Or if I say I am already taking it.”</p> <p>“Yes. That’s what the requirements say to do. Everything leads to the client’s drug.”</p> <p>“Oh. Okay. Cool.”</p> <p>And she was off.</p> <p>I wish I could tell you that when I first saw those requirements they bothered me. I wish I could tell you that it felt wrong to code something that was basically designed to trick young girls. But the truth is, I didn’t think much of it at the time. I had a job to do, and I did it.</p> <p>Nothing that we were doing was illegal. As the youngest developer on my team, I was making good money for my age. And in the end, I understood that the real purpose of the site was to push a particular drug. So, I chalked this tactic up to “marketing.”</p> <p>The client was extremely pleased with the site. So much so that their rep invited me and the entire team out to a fancy steak dinner.</p> <p>The day of the dinner, shortly before leaving the office, a colleague emailed me a link to a news report online. It was about a young girl who had taken the drug I’d built the website for.</p> <p>She had killed herself.</p> <p>It turned out that among the main side effects of that drug were severe depression and suicidal thoughts.</p> <p>The colleague who had emailed me didn’t show up to dinner.</p> <p>I still went. It was difficult and awkward. I never mentioned the news report. I just ate my steak quietly and tried to force a smile when I could.</p> <p>The next day, I called my sister. She was 19 at the time. We had discovered while working on the project that she had actually been prescribed the very drug I was building a site for.</p> <p>When we first talked about it, we thought the whole thing was a neat coincidence. Now, the tone of our conversation was very different. I advised her to get off the drug ASAP. Thankfully, she listened.</p> <p>There are a million and one ways for me to rationalize my part in later suicides and severe depression. Even today, there is ongoing litigation with former patients.</p> <p>It’s easy to make an argument that I had no part in it at all. Still, I’ve never felt okay about writing that code.</p> <p>Not long after that dinner, I resigned.</p> <p>As developers, we are often one of the last lines of defense against potentially dangerous and unethical practices.</p> <p>We’re approaching a time where software will drive the vehicle that transports your family to soccer practice. There are already AI programs that help doctors diagnose disease. It’s not hard to imagine them recommending prescription drugs soon, too.</p> <p>The more software continues to take over every aspect of our lives, the more important it will be for us to take a stand and ensure that our ethics are ever-present in our code.</p> <p>Since that day, I always try to think twice about the effects of my code before I write it. I hope that you will too.</p>