A Javascript journey with only six characters
11–20 of 123 posts
Re: A Javascript journey with only six characters
#12this is insane. someone should create a js obfuscator that converts human readable code to this.
It is linked at the end of the article: http://www.jsfuck.com/
Re: A Javascript journey with only six characters
#13The title is incorrect; you need "!" and the only reason why I clicked on the article was that doing it without "!" would be a BIG deal. The title of the original article is "A Javascript journey with only six characters" and the topic has been posted/reposted and explained more times than I can count on HN
Re: A Javascript journey with only six characters
#14https://existentialtype.wordpress.com/2011/03/19/dynamic-lan...
A string is a Boolean is a number is a function, and braindead conversions can happen without anyone noticing. How does one keep their sanity using a language like that?
Re: A Javascript journey with only six characters
#15This is an extreme demonstration of the validity of a delightfully snarky blog post by Robert Harper on how dynamic typing is actually static typing using a unitype: https://existentialtype.wordpress.com/2011/03/19/dynamic-lan... A string is a Boolean is a number is a function, and braindead conversions can happen without anyone noticing. How does one keep their sanity using a language like that?
Re: A Javascript journey with only six characters
#16this is insane. someone should create a js obfuscator that converts human readable code to this.
this would obviously be a fun thing to do, but I wonder how much larger the code will get via this means of obfuscating. Maybe space isn't a concern in your use case though...
Re: A Javascript journey with only six characters
#17Re: A Javascript journey with only six characters
#18This is an extreme demonstration of the validity of a delightfully snarky blog post by Robert Harper on how dynamic typing is actually static typing using a unitype: https://existentialtype.wordpress.com/2011/03/19/dynamic-lan... A string is a Boolean is a number is a function, and braindead conversions can happen without anyone noticing. How does one keep their sanity using a language like that?
Hey, at least when JS implicitly converts your types, it actually does type conversion, rather than merely casting them, so you often get what you want (looking at you, C).
Re: A Javascript journey with only six characters
#19But it's not without its warts, and this is one of the worst. Although it's sometimes fun to mess with, nonetheless.
To see this taken to one of its logical extremes, check out If Hemmingway Wrote Javascript's entry for Douglas Adams:
// Here I am, brain the size of a planet, and they ask me to write JavaScript...
function kevinTheNumberMentioner(_){
l=[]
/* mostly harmless --> */ with(l) {
// sorry about all this, my babel fish has a headache today...
for (ll=!+[]+!![];ll