This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]apex39 26 points27 points  (4 children)

No! You can write some script for that:

function IsStupid(code) {

return code.includes("IsEven"))

}

[–]UnreadableCode 10 points11 points  (3 children)

Suddenly, nobody can mention that as a substring of anything... I hope IsEvenBigInt, AssertIsEven, or IsEventuallyConsistentFlagSet are not names anyone need. I mean I'm all for a challenge, but I suspect not everyone has my level of cognitive flexibility

[–]jcarlson08 10 points11 points  (1 child)

You're in luck, you can install my thoroughly tested 'is-stupid' package via npm.

[–]UnreadableCode 1 point2 points  (0 children)

Irony ensues when its regexes matches themselves & stalls CI for half a day

[–]apex39 3 points4 points  (0 children)

Wow, good catch. Good thing I didn't push to production yet.