126 karma · joined Oct 4, 2011 (15y ago) · 254 submissions
comment 14y ago · link · parent
What about people who DDoS attack you? Is that fine? No need to have any recourse there?
How about those that hack DNS to dupe people into visiting their site etc
Those are all "Open Internet", but they're also not very nice.
I don't think it's as clear cut as some make it.
I don't know if SOPA gets it right or wrong, or if the current laws are sufficient, but I'm glad we have some of those laws in place to make the internet a slightly nicer place.
comment 14y ago · link · parent
You can't reasonably support free speech in all instances, just like you can't reasonably support an "open internet" in all instances. There have to be some exceptions.
It's the listing of those exceptions and how you deal with them that's the tricky bit. So saying "I support an open internet" is just ignoring the issue.
comment 14y ago · link · parent
I'm against SOPA as much as the next guy, but it's a moot issue. Browsers will just release new versions that use alternate DNS systems or get past any 'blocks'.
There's nothing uglier than an internet hate/protest mob.
comment 14y ago · link · parent
Left hand side is a string, and "+" is string concatenation as well as addition. So '5' + 3 = '53' (String concatenation). Just as "Hello" + 1 would equal "Hello1". The right hand side is converted to a string.
Left hand side is a string, but "-" is subtraction for numbers. JS converts the '5' to a number, then subtracts. So '5' - 3 = 2 (Numerical subtraction).
That's the explanation, and it's not terribly hard to get past.
comment 14y ago · link · parent
Either '5' - 3 results in an error of some kind, or it evaluates to 2. There is no other logical outcome. Javascript chooses to do the latter.
I also disagree that starting language matters. It's like saying you need to have a steinway grand to learn the piano properly.
Learning is about learning what not to do just as much, if not more, than what to do.
Also if you learn to swim through syrup, imagine how fast you'll be when you try swimming through water...
comment 14y ago · link · parent
Logically, the only other thing that could happen is for an "error" or "exception" be thrown when you do
'5' - 3
There's really only 2 choices. Either convert the '5' to a number and subtract, or throw a hissy fit because it's a string.That's not perverse. It's very logical.
comment 14y ago · link · parent
In JavaScript:
'5' + 3 gives '53'
Whereas
'5' - 3 gives 2
That's just logical and obvious, since "+" is both numerical addition, and string concatenation, but "-" is only numerical subtraction, and the '5' starts out as a string.Every language has 'gotchas'. Doesn't really matter which you pick to learn first at all. The more important thing is that you don't give up. possibly there are languages that just make people want to give up, but I'd say perhaps they're not motivated enough to learn if that's the case.
I started out on BASIC, and after a while I decided it was a piece of shit language and learnt assembly. But it taught me programming which is what I wanted to learn. I'm really glad I learnt BASIC first... essentially I learnt to swim really fast through syrup, and then switched to swimming in water.
The good thing about javascript as a first language is that people can be programming in it immediately, in their browser. They have a built in REPL to help them, as well as a debugger, profiler, etc. They have numerous docs to look at, and if they go to any website they can check the source to see how it works. That's a big win.
comment 14y ago · link · parent
Do you really think the DNS entry for wikipedia.org will be removed? In the stupidly ridiculously rare event that it did, obviously they'd quickly remedy it, or we'd all just proxy through other countries etc, or it'd get mirrored onto other domains.
We had the same "The sky is falling" for the UKs "Digital Economy Bill". It's a ridiculous law, and is now being revised/investigated. ISPs are against it, and it'll never be enforced. People again wasted hours of their lives worrying about it.
comment 14y ago · link · parent
JS running on a general VM would be slower. That's against the interests of the user.
People should stop caring what language it is. If you really don't have the skill required to use Javascript, use something easier for you and get it to compile to JS.
I've really never understood developers that bitch and whine about programming languages all day.
Adding alternate languages to the browser does absolutely nothing for the user. It would only be there to appease the "I shall only develop in lisp" extremist developers.