Some time after this incident…
There are some of us who are against this defiling order of jQuery. It is an unholy presence, of which must be exterminated. I therefore call on you, the loyal to The New Kingdom of Reformation, to create a program that will eliminate such resistance. All code must be validated and searched for ANY and EVERY trace of jQuery. And, of course, your submission needs to be short (there has been another budget cut, and, unfortunately, it was in the storage department). And it cannot have defiling characters.
To get you up to speed, a defiling character is any of the following characters: jJqQuUeErRyY$x0
. As has been said, the use of these characters is strictly prohibited, even in your own program. So don't use them. ALSO we're okay with dollar signs in numbers. So, anything of the form n+(.nn)*$
is O.K. (You still shouldn't use 0
.)
Your program/code/etc. must validate an input program. If it contains any defiling characters, you must output This programmer is guilty of Heresy. He must be burnt.
; if no such characters are found, you must output Program validated. Clearance level 2 given.
.
Bonuses and Penalties
- I personally admire the character the character
~
. For every two you use, I'll give you -1 byte. (i.e., every other~
is free.) - You may choose precisely one character from the excluded; you may then use this character in all of it's cases, HOWEVER: there is a +50% byte initial penalty, and then a +5 byte penalty for every instance of that character.
- -90% if you do not use any of the characters adjacent to
jquery
(just to be super safe) in your source code. These are (in addition):iIkKpPsSzZXdDfF
- -20% if, when given an invalid string, along with outputting the aforementioned text, you replace all invalid characters with
-
for a run of 1,*
with a run less than 10, and[]
with any longer run. - -50 bytes if you do not find
JavaScript/i
orSimplex
as having defiling characters.
Reference Implementation
function validate() {
var str = document.getElementById("input").value;
var str2 = str.replace(/[jquery0]/gi,"").replace(/x/g,"").replace(/(\d+\.*\d*\d*\$)|\$/g,"$1"); // thanks Doorknob!
var val;
if (str2 == str) {
val = "Program validated. Clearance level 2 given.";
} else {
val = "This programmer is guilty of Heresy. He must be burnt.";
}
document.getElementById("output").value = val;
}
textarea{width: 600px;}
<textarea id="input" onkeyup="validate()"></textarea>
<br><br>
<textarea id="output" disabled></textarea>
Ee
restriction will be tough... \$\endgroup\$Those who are blind cannot see, those who are deaf cannot speak. Those who use jQuery cannot be tolerated.
\$\endgroup\$