Using JSLint For Evil

ryantravistate · 14K views · 2011 · 2:45

Open on YouTube

Software practice, open source & careersTech pioneers & interviewsSoftware (other)talk

Why Hacker News recommends it

Linked in licensing threads as a short, funny story about the 'no evil' clause and IBM's request for an exception.

What it is

A three-minute clip in which Douglas Crockford explains why he allowed the JSLint reference implementation to be used for evil. It recounts the license clause and how corporate lawyers reacted.

Recommended by 2 HN commenters across 2 different months, 2013 to 2023.

What Hacker News said

Recommends computer · 2013-10 · on “How to Corrupt an SQLite Database File”

See this 3 minute presentation fragment about the "Do not use JSLint for Evil" license clause: [this video]

Recommends SonOfLilit · 2017-07 · on “Ask HN: Software licensing excluding military use?”

David Crockford puts a "don't use this for evil" clause in the license for all software he releases, creating some interesting situations: [this video] (2:44 and worth it)

Cites rogerbinns · 2013-05 · on “Show HN: What do you think of this short End User Licensing Agreement?”

That doesn't work at all if it is the actual wording. For point 1 you can find warranty wording in any number of open source or creative commons licenses. For the second, objectionable requires a definition. For example many would consider the US drone assassination program objectionable, and hence tar US companies and people with the same brush. Does that mean US companies and people can use the software? How many steps do they have to be removed (eg is providing the payroll software to the defense contractor a problem?) [LINK] [this video] Because of copyright laws, people can do virtually nothing with software. If you actually want to give the user freedoms - see [LINK] - then pick a well know

Cites tlrobinson · 2020-07 · on “Does saying “Fuck You AWS” constitute offensive content?”

This reminds me of Douglas Crockford's classic story about the JSLint license containing a "The software shall be used for Good, not Evil" clause: [this video]

Cites easton · 2021-04 · on “SQLite Plus: Missing SQLite functions”

That's what I was talking about. Crawford said in a talk he had to make an amended licenses for corporations (namely, IBM), who had lawyers that needed to be able to get around the evil restriction. [this video]

Critical btilly · 2023-11 · on “In the bad old days we had Punchcards. How did people deal with that?”

When you know that history, IBM asking for an exemption to the JSLint license becomes less funny. Watch [this video] (2 minutes) to hear the story from the developer's point of view. Then consider how many totalitarian states today are using IBM computers to track their population. The developer might not realize it, but IBM lawyers absolutely know that they can be fairly accused of using JSLint for evil.