Live data from Hacker News

A Javascript journey with only six characters

jazcash.com

11–20 of 123 posts

Re: A Javascript journey with only six characters

#11
The 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

#12
post #5

this 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/

some how the link to http://aem1k.com/aurebesh.js/ is missing, where he takes this one step further.

Re: A Javascript journey with only six characters

#13

The 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

Oh sorry, how could I miss that :( Fixed it now

Re: A Javascript journey with only six characters

#14
This 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

#15

This 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?

With something like flowtype.org.

Re: A Javascript journey with only six characters

#16
post #10
post #5

this 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...

I imagine it could be largely mitigated by compression

Re: A Javascript journey with only six characters

#18

This 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?

Keep it straight in your head, and use strict comparison.

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

#19
I'm a fan of Javascript. It has proper lambdas, true lexical scope, will soon have TCO, and is a really flexable language.

But 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
Post reply on HN