545 karma · joined Jan 27, 2012 (14y ago) · 405 submissions
comment 14y ago · link · parent
The rest of those are true but don't sound like problems.
comment 14y ago · link · parent
Say you were given some gene therapy at age 15 or so, and you will never die of natural causes. Would you take a pill at age 80 to end it?
The way the survey questions were asked must have just been terrible. I think what happens is people get this picture in their mind of someone that looks like a damned ghoulish skeleton if they live to be 150, which is just silly.
One of the commenters on the site was a good example. He said something along the lines of "people start losing their senses, things stop working..." etc. No. No they don't - these are the things that kill you which would not exist if we could allow people to live indefinitely.
That started as a concise response to you, and went on to be me venting about the subject. Of course I want to live forever!
comment 14y ago · link · parent
On the other hand, I've learned a lot of new distracting sites this way :(
comment 14y ago · link · parent
setTimeout( 100, imp.q) // DOESN'T DO ANYTHING, 100 is not a function
And if you thought about it for more than a few seconds, you would realize that the behavior of "this" makes sense and is less magical than in other languages. Since "imp.q" is not a function call, it is a reference to a function, you are simply passing in a function. Since javascript "classes" are just objects with function references, you can't somehow decide what object "this" should point at unless it is explicit. In the case of "foo.bar()", it is explicitly "foo". In the case of setTimeout( foo.bar, 100), all setTimeout gets is a function pointer with no notion of what this should be.
Anyway, the rest of your gripes just sound like you don't like untyped languages, which is personal preference and I guess I don't share your preference.
comment 14y ago · link · parent
And I've only been using it for a few years. It really isn't hard to get past the bad parts.
comment 14y ago · link · parent
JavaScript I not c. JavaScript is not Java. JavaScript is not python. If it was one of those languages it would be named that and there would be no JavaScript books, just dom and browser books.
But it is not those languages. It is different. If people don't learn the language they cannot be expected to write code.
People always bring up var for some reason. Why var? Why not closures? Javascript is often the first place programmers come across this concept and it always causes confusion and bugs at first. Should we get rid of them? Of course not!