maximusprime's comments

maximusprime | 14 years ago | on: GoDaddy supports SOPA, redditor proposes "Move your Domain Day"

So if a company starts infringing trademarks, polluting search engines en masse, tricking people into buying their rubbish, phishing their details, getting credit card details etc, you'd be fine with that?

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.

maximusprime | 14 years ago | on: GoDaddy supports SOPA, redditor proposes "Move your Domain Day"

What does "Open Internet" mean though?

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.

maximusprime | 14 years ago | on: GoDaddy supports SOPA, redditor proposes "Move your Domain Day"

Please can we at least try to ensure HN doesn't go the way of Reddit?

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.

maximusprime | 14 years ago | on: John Resig: JavaScript as a First Language

OK here's plain english simple explain...

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.

maximusprime | 14 years ago | on: John Resig: JavaScript as a First Language

See my comment below. It's not about being trapped in any mindset. It's about thinking logically.

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

maximusprime | 14 years ago | on: John Resig: JavaScript as a First Language

No it's not.

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.

maximusprime | 14 years ago | on: John Resig: JavaScript as a First Language

Disagree... for example from the link:

  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.

page 1