{"action":"created","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7600","repository_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7600/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7600/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7600/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/7600","id":141640989,"number":7600,"title":"This code should not pass the test :D","user":{"login":"mohammedzamakhan","id":2327532,"avatar_url":"https://avatars.githubusercontent.com/u/2327532?v=3","gravatar_id":"","url":"https://api.github.com/users/mohammedzamakhan","html_url":"https://github.com/mohammedzamakhan","followers_url":"https://api.github.com/users/mohammedzamakhan/followers","following_url":"https://api.github.com/users/mohammedzamakhan/following{/other_user}","gists_url":"https://api.github.com/users/mohammedzamakhan/gists{/gist_id}","starred_url":"https://api.github.com/users/mohammedzamakhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohammedzamakhan/subscriptions","organizations_url":"https://api.github.com/users/mohammedzamakhan/orgs","repos_url":"https://api.github.com/users/mohammedzamakhan/repos","events_url":"https://api.github.com/users/mohammedzamakhan/events{/privacy}","received_events_url":"https://api.github.com/users/mohammedzamakhan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-17T16:50:24Z","updated_at":"2016-03-18T09:25:06Z","closed_at":null,"body":"Challenge [Check for Palindromes](https://www.freecodecamp.com/challenges/check-for-palindromes#?solution=function%20palindrome(str)%20%7B%0A%20%20if(str%20%3D%3D%3D%20'not%20a%20palindrome'%20%7C%7C%20str%20%3D%3D%3D%20'nope'%20%7C%7C%20str%20%3D%3D%3D%20'almostomla'%20%7C%7C%20str%20%3D%3D%3D%20'1%20eye%20for%20of%201%20eye.')%20%7B%0A%20%20%20%20return%20false%3B%0A%20%20%7D%0A%20%20return%20true%3B%0A%7D%0A%0A%0A%0Apalindrome(%22eye%22)%3B%0A) has an issue.\r\nUser Agent is: <code>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36</code>.\r\nPlease describe how to reproduce this issue, and include links to screenshots if possible.\r\n\r\nMy code:\r\n```javascript\r\nfunction palindrome(str) {\r\n  if(str === 'not a palindrome' || str === 'nope' || str === 'almostomla' || str === '1 eye for of 1 eye.') {\r\n    return false;\r\n  }\r\n  return true;\r\n}\r\n\r\n\r\n\r\npalindrome(\"eye\");\r\n\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/comments/198273140","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/7600#issuecomment-198273140","issue_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7600","id":198273140,"user":{"login":"raisedadead","id":1884376,"avatar_url":"https://avatars.githubusercontent.com/u/1884376?v=3","gravatar_id":"","url":"https://api.github.com/users/raisedadead","html_url":"https://github.com/raisedadead","followers_url":"https://api.github.com/users/raisedadead/followers","following_url":"https://api.github.com/users/raisedadead/following{/other_user}","gists_url":"https://api.github.com/users/raisedadead/gists{/gist_id}","starred_url":"https://api.github.com/users/raisedadead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raisedadead/subscriptions","organizations_url":"https://api.github.com/users/raisedadead/orgs","repos_url":"https://api.github.com/users/raisedadead/repos","events_url":"https://api.github.com/users/raisedadead/events{/privacy}","received_events_url":"https://api.github.com/users/raisedadead/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T09:25:06Z","updated_at":"2016-03-18T09:25:06Z","body":"@sludge256 Interesting.\r\n\r\nThing is IMHO, if we do handle a couple of cases like this there will be a ton others similar when it comes to people intentionally wanting to pass the challenges.\r\nAnd after a point it will become really tedious to manage these cases.\r\n\r\nWhy would anyone genuinely interested in solving the challenge would do as such?\r\n\r\nWell, I do have a dirty/unfair way to avoid such scenarios:\r\n\r\n1. Add just one input test case that's not in the list (by [Obfuscating it](https://en.wikipedia.org/wiki/Obfuscation_(software))).\r\n2. When anyone does come up with scenarios like one stated in the issue (the test fails in background), we show a modal window:\r\n\r\n > Are you sure you are doing this challenge honestly?\r\n\r\n IDK, make the message a bit funnier.\r\n\r\nOf course our code is Open Source and anyone can go thru the code and bypass this anyway, but definitely it would prompt most to act more honestly?\r\n\r\nIDK, that's just my personal opinion, although I really really wouldnt want such a thing ever. I believe most of the campers and the community is dedicated to the curriculum. And this is simply not just a good way to do it for their sake."}}