Live data from Hacker News

A Javascript journey with only six characters

jazcash.com

81–90 of 123 posts

Re: A Javascript journey with only six characters

#81

It's too bad that people were willing to ostracize Brendan Eich for not being a cookie-cutter silly-valley progressive. Oculus is facing that now. It's the new mccarthyism.

oh man totally. neither brendan eich nor palmer luckey have gotten any work ever since they were blackballed by silicon valley.

oh wait. they weren't was blackballed. and one has his own startup, the other is basically set for life.

oh wait. has either one of them appeared in from the a senate committee to defend themselves for false accusations of subverting the u.s. gov, or committing treason? without any evidence?

Re: A Javascript journey with only six characters

#83

Why do I feel like I have read this article a few years ago? I remember it, but it has 2016...

Because this technique was used to bypass EBay's JS blocker a while back.

Interesting, any chance you have a link to a writeup of that?

Re: A Javascript journey with only six characters

#84
post #63

I don't see the point of a programming language allowing itself braining fucking its users(developer) for serious use

If you don't like JavaScript's type coercion rules, fair enough. But if you're criticizing the fact that you can write JavaScript programs with nothing but punctuation characters, remember that no-one ever does so except as a joke, and that you can do ridiculous stuff in most languages. (Try Googling "obfuscated $YOUR_FAVORITE_LANGUAGE".)

Re: A Javascript journey with only six characters

#86

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 w…

For those of you too lazy to open up a Javascript console, it's a function that returns "42".

Re: A Javascript journey with only six characters

#87
post #37
post #34

Earlier quoted context omitted.

And how many users does your programming language have?

We would be better off if JavaScript didn't exist, so by that rationale I've contributed more than him by not creating a language.

You would be better off. I love JavaScript, it's my favorite language (I like things that are accessible to everyone), so I would be worse off.

Re: A Javascript journey with only six characters

#88
post #40

Earlier quoted context omitted.

ES6 lets you define functions like a => a * 2 Or (a, b, c) => a * b ^ c

That's succinct, but less clear than the Ruby version, imo, as you don't have any scope indicators required for the function body. JS: let f = (a,b,c) => a * b ^ c; f(2,3,4); vs. Ruby: f = ->(a,b,c) { a * b ^ c } f.(2,3,4) Ruby's shorter and clearer. But, when you use the Ruby lambda more than once in the code, you lose the brevity advantage, because of the "extra" dot. But, in Ruby I use methods more than lambdas, w…

> Ruby's shorter and clearer.

I would say the different is negligible here and claiming one is more clear than the other is purely preferential. Coming from a JS background the JS is more clear but not substantially enough for me to claim it is outright more clear a language syntax. Someone coming from a ruby background may argue the other direction.

Some languages are quite different but you are splitting hairs here and trying to be conclusive about it.

Re: A Javascript journey with only six characters

#89

It's too bad that people were willing to ostracize Brendan Eich for not being a cookie-cutter silly-valley progressive. Oculus is facing that now. It's the new mccarthyism.

It's hardly the new McCarthyism when there's no government force that leads the charge against private citizens, driving them to be unable to find any work in their field in the US. The public deciding that it doesn't want to support someone is an entirely different phenomenon. The public can still be wrong, of course, but there's no need to conflate the two situations.

They're both the phenomenon of policing thought and coercing others to publicly profess, or at least acquiesce to, only blessed opinions. It hardly matters, to this point, whether the behavior is centralized or emergent.

Re: A Javascript journey with only six characters

#90

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 w…

For those of you too lazy to open up a Javascript console, it's a function that returns "42".

It also alerts all the primes between 0 and its arg.
Post reply on HN