r/programming • • Nov 20 '16

Programmers are having a huge discussion about the unethical and illegal things they’ve been asked to do

http://www.businessinsider.com/programmers-confess-unethical-illegal-tasks-asked-of-them-2016-11
5.3k Upvotes

1.2k comments sorted by

View all comments

Show parent comments

379

u/toobulkeh Nov 20 '16

Sure - but I think the point is "if you know, don't do it".

346

u/rmxz Nov 20 '16 edited Nov 22 '16

Sure - but I think the point is "if you know, don't do it".

But you never quite know:

  • Politician: "Hey - engineers, make an atom bomb to drop on military targets in Europe to stop some Nazis!"

  • Engineer: "OK - that sounds more good than evil."

  • Politician: "Hey - map guy - military targets are hard to hit and we can't find any more Nazis - please name two big residential areas in Japan before they surrender too...."

Or.

  • Teacher: "Write a program to calculate a bunch of primes...."

  • Programmer: "No - some prime numbers are illegal."

  • Teacher: "Well, then you don't get a good grade."

218

u/voi26 Nov 20 '16

some prime numbers are illegal

That's the most bizarre thing I've ever read. Why is it just limited to prime numbers? Couldn't any number be potentiall considered illegal in this case?

165

u/thegreatunclean Nov 20 '16

It isn't just primes but the most famous example of an "illegal number" (DeCSS) happens to be a prime by design. Allegedly it was so the number was interesting enough to be published independently but I've never heard of that being tested in any court.

22

u/voi26 Nov 20 '16

Thanks, that makes more sense. Also, I just realised that they never even said that only primes were illegal, that was completely an assumption that I made, so not their fault.

61

u/SrPeixinho Nov 20 '16

Many non prime numbers are illegal. Take the binary representation of any pirated software. It is an integer, and is illegal.

30

u/tripa Nov 21 '16

Why would the binary representation of pirated software be any different than that of the same but unpirated software? Is that one illegal too?

It's the color of bits all over again.

→ More replies (5)

19

u/addandsubtract Nov 21 '16

That's not how piracy works. The binary representation of software is the same on all devices, no matter if it's legal or illegally obtained / used. A pirated version is only the absence of a license to use said binary.

9

u/ClownFundamentals Nov 21 '16

Not necessarily. Counterexample: a version of Creative Suite that phones home to a pirate server instead of Adobe.

→ More replies (3)
→ More replies (2)
→ More replies (2)

13

u/Booty_Bumping Nov 20 '16

Couldn't any number be potentiall considered illegal in this case?

Apparently yes, if it is used in the cryptography of DRM software, at least under US law.

Edit: I don't think the linked wikipedia article is an accurate description of what an illegal prime is

4

u/BobHogan Nov 20 '16

Why is it just limited to prime numbers? Couldn't any number be potentiall considered illegal in this case?

Its not, that page links to a more general one on illegal numbers. I don't know why illegal prime numbers got their own page though

→ More replies (2)
→ More replies (7)

5

u/phire Nov 21 '16

some prime numbers are illegal

Sure, some prime numbers are illegal, but are any prime numbers unethical?

6

u/rmxz Nov 21 '16

Of course.

Some prime has a sequence of digits in the middle of it that matches a .jpg depicting unethical racist acts.

→ More replies (1)

4

u/mcprogrammer Nov 21 '16

2 seems pretty shady to me.

4

u/Aegeus Nov 21 '16

two big industrial areas in Japan

FTFY. Hiroshima and Nagasaki were chosen for their military value.

→ More replies (2)

8

u/Zarokima Nov 20 '16

Your first example shows a lot of ignorance surrounding WW2. First and foremost, Germany had already surrendered by the time the bombs were finished.

→ More replies (5)
→ More replies (5)

87

u/QuestionsEverythang Nov 20 '16

The National Society of Professional Engineers sets a standard code of ethics that engineers who consider themselves "professionals" must abide by. There's even sections of the FE and PE exams that talk about ethics. I think, given that as programmers we're also considered software engineers, these same standards should be upheld in a programming aspect.

73

u/gimme_treefiddy Nov 20 '16

as programmers we're also considered software engineers

Are we, cause if you start a discussion about that independently, there is a consensus, about that not being the case.

43

u/eiktyrner Nov 20 '16 edited Apr 09 '17

deleted 0.6676 What is ^^^this?

30

u/hamjim Nov 20 '16

I do have a degree in engineering (B. Engr.); but in some jurisdictions I can't legally call myself an engineer because I am not a registered Professional Engineer.

10

u/speedstix Nov 20 '16

This is truth, definitely like this in Canada. I've obtained mine half a year ago.

4

u/mirhagk Nov 21 '16

And the biggest problem is that for software being a professional engineer means basically nothing to employers, and it increases your own personal liability so it's usually a better idea to NOT get the p.eng.

The problem is that software developers absolutely do not follow the same kinds of professionalism that any other engineer does. The problem is that it's a lot more expensive to do software completely right, and doing it sorta right gets you most of the way there.

Routers routinely die, and we just power cycle them. Heck most production web servers just die randomly, and we deal with it by having a load balancer and having multiple instances.

Could you imagine a physical engineer spending 25% of his time maintaining a bridge that constantly starts falling apart that he built 3 years ago? No, that would be insane, that engineer would never work again. Yet that's the reality with software.

→ More replies (2)

3

u/jkfgrynyymuliyp Nov 21 '16

I think in most Common Law jurisdictions it's technically ok to call yourself an engineer. Accountant too I think. It's illegal to pretend you're a member of the professional body though.

→ More replies (2)
→ More replies (3)

8

u/speedstix Nov 20 '16

Here in Canada you need to get your engineering license to be called an engineer. You're not a engineer just by having engineering degree.

→ More replies (13)

18

u/argues_too_much Nov 20 '16 edited Nov 20 '16

there is a consensus, about that not being the case

That's not strictly true in every case. I have a Bachelor of Science (computing/networking related) and I'm able to be a member of my country's Institute of Engineers by agreement between the university and the institute specifically because of the degree I took, so I could perfectly reasonably call myself an engineer. There's no variation of "engineering" in the name of the degree.

→ More replies (3)
→ More replies (9)
→ More replies (10)