Better HN
topnewbestaskshowjobs
Log inSign up

candydance

138 karma · joined Sep 9, 2013 (13y ago) · 35 submissions

Submissions

comment 13y ago · link · parent

If they actually do a recall/replacement I'll be extremely impressed.

comment 13y ago · link · parent

Uh, no. He specifically mentioned that running in the browser is why JS is so widely used, even though the language itself is worse than alternatives.

>The single redeeming feature of JS is that it's implemented in all current browsers. If it wasn't for that fact I doubt anyone would have cared much.

>Everything it can do another language can do better, except run in a browser

That's the exact opposite of dismissing a key aspect of Javascript's value, that's explicitly acknowledging it.

comment 13y ago · link · parent

The associative arrays in JS are simpler than objects in Java but the expressiveness means you need to be aware of all the different types of type coercion and how it all interacts at runtime. I don't think this is that difficult but it's no more difficult to lay out your data before runtime. I think this is a wash that goes to the dynamic vs static debate which we all know can be argued about for days.

You're leaving out prototypes which I find much more complicated than Java Classes.

comment 13y ago · link · parent

>I didn't mean bigger in the sense that you need to know more to be able to use it

Ah ok, well I can see why we have differing opinions because that's exactly what I mean :)

I mean base language including corner-cases, not any of the libraries (even if they're included in the SDK). I think they'd both be huge if we included libraries, since I'd lump in DOM manipulation and something like JQuery into Javascript if Java gets the SDK libraries.

comment 13y ago · link · parent

I'll give you generics. Statics, method visibility vs global/local/self. Interfaces, abstract classes, inner classes vs metatables. Data-structures apart from array are implemented on top of the language, array vs tables. Iterators are implemented on top of the language vs lua where they are part of the language. Checked exceptions can just be cast to Exception and ignored. Annotations are optional. Threads vs coroutines.

Yes, comparable to Lua. I'd probably not say it's smaller than Lua but I would say it's not greatly larger than it.

comment 13y ago · link · parent

Please expand your response, I don't understand what you mean when you say they are "the same thing".

comment 13y ago · link · parent

I didn't see a point, just a bunch of facts and a smarmy, self-righteous turn-about comment. If I could downvote it, I would.

The parent comment said "Javascript is a bad language but it's incredibly useful because it's in every browser." and you just agreed with him after writing a bunch of sarcastic drek.

comment 13y ago · link · parent

Why do you think Java is bigger?

From my perspective, Java has, effectively, structs (well defined groups of data) and a few primitive types, and a class system which is dead simple. It's tiny, comparable to Lua imo.

It's more restrictive, sure, but the dynamic-ness of Javascript is a hindrance when it comes to language spec because the base language functions need to be able to interpret all the different primitive types. There's stacks and stacks of corner cases to remember while Java just says "Nope, wrong type".

comment 13y ago · link · parent

FWIW, it didn't for me. And that's fine too.

What I use dropbox for: Lazy backup system (all my important code is symlinked there, sharing small files (<20mb) over the net

What I use USB drives for: Sharing large files (>100mb) between local computers, liveUSBs

comment 13y ago · link · parent

>Is there nothing positive the NSA/US Government can tell us about these tactics that wont compromise their mission?

They probably think that they can just stay silent and the public outrage will quietly sizzle out.

It's certainly looking like that stance will be justified.

comment 13y ago · link · parent

Ehhh, no. That's how dropbox works. If you delete a file it stays in the cloud for a month before it's fully deleted. You can use the web interface to do a proper delete, but the interface makes it clear what you are doing.

Not only that but dropbox keeps a few revisions for you if you happen to overwrite the file.

I've NEVER heard anyone complain about these features before.

comment 13y ago · link · parent

The google drive already has access to the local filesystem, so that is a not a good reason to not have a local copy of the data.

comment 13y ago · link · parent

Now unbalance it a bit, if the 6'2" can't hold a conversation he's going to fail. This means that holding a conversation is more important.

Same thing if he's not well groomed, same thing if he's out of shape. Same thing good career vs unemployed.

And these are all things that can be improved if you work at it.

Height is an advantage, but it's not the most important one.

comment 13y ago · link · parent

I never said height is worth nothing. Height is A factor, not THE factor.

comment 13y ago · link · parent

Exactly. The most successful lothario in my university class was a short guy who went to the gym 5 days a week, had exceptional grooming and was extremely confident/comfortable around women. Height is a very small factor in these things.

Not to mention fringe benefits of being short. Relatively, EVERYTHING IS BIGGER. This idea alone makes me want to try being smaller for a day. Fitting on beds, fitting in airplanes, all food portions are bigger, cars are more spacious.

Also, you'll live longer statistically.

comment 13y ago · link · parent

Yes on prestige. Last I checked lawyers make an excellent living here too. University fees are less crippling because you aren't forced to make repayments unless you are earning over a certain amount.

comment 13y ago · link · parent

>>Whereas someone who is, say, 6'2" will be attractive to women solely on the virtue of being tall.

Lol no. As a 6'2" man with social anxiety, being tall is not some magical doorway to getting the ladies.

Effort is more important, grooming is more important, being able to hold a conversation is more important, etc.

edit: I'm not saying height isn't an advantage. I'm saying that there are MANY other factors which matter MUCH more than just height.

comment 13y ago · link · parent

Lawyers are on the higher end of status things. In line with commerce peeps and engineers.

If I was to make a ball-park guess, fewer people sue each other here, so there are fewer lawyers and the career path stays prestigious.

comment 13y ago · link · parent

Everyone thinks they can drive without risking themselves harm though, otherwise no one would ever get in a car.

Accidents happen to other people... until they don't.

comment 13y ago · link · parent

Including the IP of the "mario" character?

comment 13y ago · link · parent

This is a pretty awesome talk. I wish he expanded on the "array of records" thing and how he implemented it.

Maybe an array of key-value pairs?

comment 13y ago · link · parent

They'd just buy up another VID, the names associated with VIDs don't need to be unique.

comment 13y ago · link · parent

Since a USB device gets paired with a driver through a VID/PID pair, buying a single VID allows you access to 65536 PIDs for that VID. They give out the PIDs for free but hold on to the VID for themselves.

FTDI own a bunch of VIDs which are associated with "FTDI" devices. If you ask FTDI they'll reserve a small block of PIDs for you to use for your own products that use the FTDI USB chips. 8 PIDs cut out of a 65536 block is not a significant cost.

I'm surprised that VTM still allows them to do it though, maybe it's a special case because you're using their IC.

The problem is that VTM maintains an "official" list of VID/PID owners, so that they can keep drivers on seperate IDs and prevent clashes for users. Most hobbyists just pick a random VID/PID for their personal projects and hope for the best, but for small scale hobby releases it's problematic since "technically" they are going against the terms of service for the USB protocol. Sometimes there will be clashes if people pick random numbers, and VTM hates that.

http://www.ftdichip.com/Support/Knowledgebase/index.html?can...

comment 13y ago · link · parent

Have them in pairs or teams, war games style.

Guy1 "Sir, we're losing money much faster than predicted, turn your key"

Guy2 "It could just be market variance"

Guy1 pulls out gun "Turn your key, sir"

comment 13y ago · link · parent

I was thinking about this too. That "pay us 300 dollars in bitcoins to get a key to your data" virus could be like that.

If the payment -> key sent part was automated then money would just build up in the bitcoin account over time.

comment 13y ago · link · parent

It is much easier than you might imagine but it's not very "fun". To be able to dependably solve a cube you'll need to know a few algorithms for swapping key pieces around without effecting the rest of the cube. If you can remember those algorithms then you can solve any cube.

http://www.wikihow.com/Solve-a-Rubik%27s-Cube-%28Easy-Move-N...

comment 13y ago · link · parent

"Any headline which ends in a question mark can be answered by the word no."

I had to look it up, so this might save some others the trouble.

comment 13y ago · link · parent

>The internet fixes that, because it's easier to maintain a core of enthusiasts, even if they are spread out over long distances.

The internet also fixes the problem of sourcing supplies for a niche craft. It wasn't that long ago that you had to use giant mail order catalogs to get stuff shipped to you, and it'd be rare to get stuff sent internationally unless you happened to know a friend in the desired country who'd act as a middleman.

12