skysight-inc/HackerNews huggingface dataset:
Those software errors fixed OTA: do you really imagine Tesla will provide that service for free over the next fifteen-twenty years?

Also, you mention no brake lines because of electromechanical brakes: this is not an EV feature. It's a luxury car feature. I'll bet you dollars to doughnuts the Model 3 has a braking system essentially identical to the one on a compact hybrid car.

"ICEs use many moving parts and explosions" - this is a stupid argument. Modern ICEs are incredibly reliable. You change the oil and oil filter every year, make sure the coolant level is fine, and you change spark plugs and timing belts twice per decade. None of that is expensive nor difficult, and that engine will keep on ticking for fifty years/hundreds of thousands of miles easily.
True. Although whenever I see a jQuery plugin like that I try to replace it with some combination of "components" [1]. There is a lot of progress in that area.

There are stuff like : File picker [2], dropdown [3], tip [4] for tooltips and many more.

1 : https://github.com/component

2 : https://github.com/component/file-picker

3 : https://github.com/component/dropdown

4 : http://component.github.io/tip/
On the other hand, on the gigantic proportions of the entire universe, even the largest star or blackhole is tiny in comparison. That makes me feel less insignificant because nothing is really significant on a cosmic scale.
I made a 3-page overview of calculus as an extra section of some notes for a class I'm teaching. Mostly to see if it could be done.

Here it is. https://www.dropbox.com/s/yp8ijkzir4h8rz9/Calculus%20in%20e%...

I'm REALLY sorry for the picture quality. I'll use a proper scanner later. My phone's camera and app are terrible.
That's exactly the point.
I am not a lawyer, but I think he has a good case if he decides to sue for wrongful termination. He basically did his job.
Yes of course, for new projects now and for the foreseeable. Its terse expressive fluent syntax alone is reason enough to use it for me. Nothing else comes close for ad-hoc dom work, and your user almost certainly has it cached already anyway.
You missed this quote under the picture: "University IT workers tried to crack the ransomware for more than a week before the payment".

BTW, are you implying that a strong CS university can break asymmetric encryption? Why is everybody assuming that hackers are stupid all the time, and only they are smart...
oh do our own hiring company lol ;)
V7 – the smallest embeddable JavaScript engine
Nice tool, I'm a fan already!
Very interesting Tesla's response:
1. The car was not brand new and was actually driven, which is horrible.
2. NHTSA did not investigate anything, they just asked us for the documents.
3. We don't ask customers to sign anything, just demand that they sign "the agreement".
4. We're the best. Customers are idiots.
5. We'll even publicly expose the identity of the customer for you to hate. Here is his name, address, and SSN. Have fun!
switch-case is often compiled to a table lookup, but if your expressions are constant (at least for the part where the table is being used), the latter is definitely less verbose.

So it is clearer if it right there in the executable code rather than hidden away in some moving part (the mapping data structure).

Following several levels of nested if/else is "clearer" than going to the right array index? I don't know what you mean by "hidden away in some moving part".
I've had a similar experience several times. I feel like in college I was mentally much faster, but lacked insight (and probably curiosity).

There have been several times when I've picked up an old math or CS textbook and read something I never really fully understood in college -- it almost instantly makes intuitive sense to me now -- 20 years later.

There's an old saying that college is wasted on the young... in many ways I believe it is true.
Yup. No shame here in using it.

It helps me get the job done quickly for projects when I don't need/want a framework.

It is well documented, organized, and lively ecosystem of devs, documentation, support options, and -- yes -- plugins.

It is a consistent and easy to understand API, and the breaking changes are well understood between versions.
The last image here shows why this car flew: http://electrek.co/2016/05/06/tesla-model-s-crash-large-crum...
Probably not (yet).

Music has the added complexity of being smeared across time, which I think will be a lot harder to crack.

It would be fun though, to pass a Garth Brookes track through a Deathspell Omega filter.
Millennials: How to Win Them Over for ECommerce Success
But what this company is doing is inherently dangerous for itself. The UK Data Protection Act is pretty darn strict about personal data and the Information Commissioner can and frequently does levy hefty fines for mistakes and breaches.

So lets just say I tell them that I have no social media presence and they dig up some accounts and tell the landlord I lied. Well, they have to justify their claim, they have to be able to conclusively prove it is mine. If they get anything wrong then all it takes is a complaint to the Information Commissioner stating this company is holding, processing and passing on inaccurate data about me to give them a little shock. A few too many complains would then probably trigger a severe audit by the commissioner.

Looking at it from a wider perspective. How are they processing and protecting information in general. How do they protect all the data they harvest from your social accounts? Are staff able to share the info for fun? is there access logging? How secure are their PCs? What do they do with your data after your tenancy ends? This is the sort of stuff a business like this cant afford to make mistakes with. If they do and people complain in big enough numbers it could negatively impact their business.

It's also worth noting that where religion, sexuality or health data is involved things get a little bit more serious as regards the DPA.

If I were dealing this company I would be quite happy to act in manner which would let them dig their own grave even if it impacted me.
Perth, Australia: 80th Data Center
"remotely possible" and "beyond reasonable doubt" are not equivalent.

Just because you had a problem, once, with a product doesn't mean the manufacturer made a mistake. Isn't it remotely possible that it's your mistake instead?
> Music has the added complexity of being smeared across time

But images are smeared across space in two dimensions. That's one dimension more than music.
I'm sure I personally have failed programming tests by doing too much (or not enough) "enterprise" programming in particular stuff that requires things like parsing a CSV file. Do you use a third party library, roll your own, just use string.split(",")? All three are good responses, personally unless the sample data has embedded quotes I've just added comments saying that I'd use a particular library[1] for this normally but I've used string.split as a quick and dirty hack.

At work we've stopped doing take away tests in part for just this reason. We do have a small pair programming test (fix some SOLID code smells in a small 10 line program) and we also don't expect folks to fix all of the problems within that code.

As a pair programming exercise you can almost walk someone through the first problem with the code (there are two big problems[2] plus four minor issues that you could find) and also you can guide the scale of the response they have to the issues (For example I might prompt them and say if you use mocking frameworks in your current job lets use that and you can talk me through how to use it)

We've had pretty good success with this and does seem to avoid some of talks a good talk but can't do developers.

[1] Getting the library onto the interviewers machine might be a really big issue their firewall might block access / maybe I can't send binaries to you due to your AV

[2] Since it's only 10 lines of code the issues are the sort of thing in the "real" world you might ignore but repeated across a code base would be a problem.
Could have been worse: He could have made 1000 functions two lines each.
I know of select shift Ford fusion that had a transmission slip problem (spoiler: later fixed by a software update) but Ford refused to acknowledge it as a problem that their own dealership's mechanic acknowledged until much later when they came up with that fix.

Pete didn't want to return the car. He didn't want to sue Ford. He kept getting non-answers for months.
Is that comparison supposed to show that jQuery is bad or what exactly? Because it's clear that jQuery is much more concise in every single case.
While true for writing books, I wouldn't consider code that doesn't pass a linter or compiler a useful part of one's portfolio. There is no editor equivalent who will fix your syntactic and semantic errors for you, and getting that right is an important part of your experience with a language/tool.
Semi off-topic, but I think there was an Easter egg in that part of the episode. A few seasons ago Monica had to give some bad news to Richard, and she changed into white clothing before talking to him. I don't remember exactly how it came up, but she said she changed because studies had shown that bad news was less upsetting when the messenger was wearing white.

When Monica was in her office looking at the beta, she was wearing a regular suit. When she shows up at Erlich's house (presumably soon after the last scene), she's changed into a white/cream colored sweater. I thought that was a nice callback to the earlier season.
Hiring Manager Perspective: Everyone lies, sorry.

As a candidate, I hate technical interviews. For the reasons above. As the poor schmuck asked to make the hiring decision, however, I've learned that I can't live without them.

My technical isn't complicated. A very basic SQL assignment (delivered to an audience which claims to know SQL) that is followed by a few broader database design / data process QA questions. Entire assignment is 100% job relevant (in fact, my SVP asked for a copy of the report it generates when he saw the problem on my whiteboard). I don't care about the details of syntax.

I do care, however, about candidates who produce SQL code which looks like the bastard love child of LISP and Java. About candidates who claim to know a skill but literally cannot write even basic syntax on the whiteboard. Who put "certificates" from Oracle on their bloody resume and break down under super gentle questioning and confess their tutor hasn't taught them JOINS (wtf ?) yet, never mind 5 years of claimed SQL experience at a big company on their resume.

The coding question is most definitely not an exercise in sadism. We validated it with several new hires who were confirmed to be "good at SQL". Average completion time: 2 minutes, generally with trolling about why do we waste our time with easy stuff.

That being said, my rejection rate from a basic coding interview is at least 50%, grading liberally and generally supported by several members of my team shaking their head about a candidate.

I've tried screening resumes, I've tried doing non-coding phone screens. IT DOESN'T WORK. Actually, all it does is eliminate the socially challenged and non-communicative (who actually tend to pass the whiteboard test) in favor of the liars.

And don't get me started about Python. Lest I bring up the Google-Motorola "I LUV Python heart heart heart" guy who didn't understand the difference between a list & dict.
Ask HN: How much Equity should I give my co-founder?
Hi guys I wrote the the whole backend and front end of my application(alone).

Is co-founder necessary (an investor is insisting it is)? if yes? how much equity should i give him? <10% ? 50%? what is ideal?
WTF? Keep your misogynist, mens' rights stuff to yourself, please.

Okay, not all men have rights in your eyes. Some are "legitimate extermination targets".

WTF again.

Flagged.
Thank god, it's not just me then.

I had an interview where the guy was staring at me like I was interrogated. I had to solve a problem of concatenating to arrays of integers and putting them in ascending order.

I was literally frozen and couldn't think and stood there like an idiot for 5 minutes whilst the guys was just staring at me, not making a sound.

I don't have to tell you I felt destroyed after that. I felt I was a good for nothing idiot and should go shovel dirt then develop software. I still shiver a bit when I think back.

The other things that I hate are the always reoccurring questions. Like what's an array; what's a map; what are the differences; etc...

Come on I've been developing for quite a while now. I've been a sysadmin before that. I'm working in IT for more then 10 years now. Do you really feel the need asking all these things?
The reason the site exists is explained on the site itself.
Given the extent to which Brexit campaigners talk about ending immigration, I don't think it's safe to assume that. After all, deporting all the Spanish people living in the UK would be great for the net migration statistics. And cause total chaos, but that doesn't seem to have registered with the Leave campaign.
I sometimes wonder whether hackathons are in some way an evolution of the LAN party (or the demo party).

It does depend a lot on the hackathon - many these days are very business-oriented. :(

...but there are still some where people show up just to experiment with technology - to prototype something quickly and understand whether a technical idea has potential and where the dragons are.

(These are definitely my favourite hackathons. If anyone knows of any like this around London, let me know. I'm hopeful that http://www.hackthesenses.com/ might be one!)
The best marketing is that which does not require a huge budget -- when Apple stores are pilgrimage destinations, when you can get millions of people to actively tune in to watch a two and a half hour long infomercial every year, you don't need, say, million-dollar Super Bowl ads. That does not mean it's not very intentional, and it's definitely still marketing.
What do they bring to the table? Business knowledge? Marketing? Anything? That would decide what they are worth.
XML. For HTML jQuery is rarely worth the dependency any more for me, but trying to consistently parse and manipulate XML with vanilla JS across browsers feels like working with HTML did five years ago.

I know XML is not cool any more, but sometimes you don't have a choice.
Fair enough, I retract my name-calling.
For me it was the NDA, and Tesla's attempt to brush it off in this latest statement has not improved things. The agreement they sought was far broader than they now claim.
I have not flagged it, so I am speculating. But users flagging stories is the most common reason stories with a lot of points leave the front page.

These types of stories tend to get user flags for two reasons: they are more voyeaurism than news, and the actual discussions often become flame wars. Also note that I am not a mod, I've just been here for a while.
There are some systemic issues at play -- issues not related to this particular person or incident -- that you raise.

You say that the best course of action is not to say anything. If this is true, and I believe it is, what would be the point of having an Inspector General? I think that working in a government agency would come with some sort of requirement that you cooperate with those people in the agency who are there to make it better. If not? What are you there for?

If the server and its file systems were vulnerable, that's a problem. But, still, we have to ask "compared to what?"

I believe now you are saying that each political person (?) who joins an agency should make their own private decision about network security and take action appropriately. Perhaps this is true, but only in extreme cases? I'm not sure. I don't think this is anywhere near an extreme case.

Political appointees should be agents of change, yes. I think we agree on that. But to be an agent of change, it requires you to, well, change something. In every case I've ever seen where a large organization changes, some people were let go, disciplined, demoted. It's just a rule of large numbers of people that the older and worse the org is, the more of a shakeup there has to be.

Federal agencies don't run like that. You could take any of a dozen different scandals over the last couple of decades -- for the most part, nobody got fired.

So what really happens is that the higher ups in an agency really run it, the political folks are there to provide political cover, and a collusion forms between lifelong bureaucrats and the political appointees. As a member of one federal agency told me, the first rule is that we never appear in the press. Political systems exist for political reasons.

I'm not sure what the correct course of action here should have been. I know, however, that it's extremely difficult to set an example for employees if you disregard the rules you don't like. I also know that employees have a lot more say in what an organization is like than management. This is not a good situation for any organization to be in.
Trying it right now and I love it 0/
Interviewing is about putting on the dance. Juggle some balls on a unicycle etc. It's a rite of passage to what may be a cool job but you have to jump through the hoops like a dolphin.
But with how easy it is to deploy ransomware and how frequently you can get a major hit, it's a pretty pyrrhic victory to not pay. Right now there's no reason to not keep on shooting out ransomware - it's an impersonal, easy to deploy, low cost, scalable form of malware which has a very high and noticeable impact on end-users, who often have little to no recourse or means of mitigating the damage. It's of virtually no risk to the persons deploying the ransomware to deploy the software or collect the money. With other ransom scenarios, the cost and risk to the attacker is far greater for every part of the ransom act; refusal to pay has a greater cost to the attacker in every which way. There is no such cost with ransomware at the moment, aside from the initial financial venture to get/make the software.

Knowing that the ransomware folk are just going to keep on spamming their software against institution after institution, is it really worth the potential cost of the lost data? If it's student data, is it worth ruining students' academic careers over a principled stand? Is it worth losing a novel you've been working on for 8+ years? Is it worth losing business documents that could cripple your business?

It's not as clear cut with ransomware as it is with other forms of ransom and extortion just because of how stinking' easy it is to do ransomware.
I started using "vanilla" js, then created a method as a name for the huge `[].prototype.slice.call(document.querySelectorAll(selector))`

Then as I continued adding useful methods such as ajax() (no, in vanilla js it's not "solved") and turning events off (also non-trivial) I ended up with a jquery alternative:

> http://umbrellajs.com/

It's not exactly the same, but most methods are the same or highly compatible. For example, the append() method is extended so this does what you'd expect it to do, generate a list with first, second and third items:

u('<ul>').append(text => `<li>${text}</li>`, ['first', 'second', 'third']);
What is the smallest subset of characters than can run any possible JavaScript code?
Investing in Open Source startups
I want this guy to interview me. Even if there is no job. I'm sure I'd feel a million dollars by going through the process.
In HBO's 'Silicon Valley,' the Comedy Is Inspired by Real-Life Tech Culture
I'm surprised that there's no youmightnotneedprintf.com
Had this very conversation today - I still like jQuery as previously it was extremely useful for projects (circa 2011).

I haven't really used it in the last 4 years as most of my projects have had frameworks in place.

I definitely think it still has it's place - it is more concise and reads a lot nicer in many cases than vanilla JS for DOM manipulation and AJAX requests.
Goggle-fu - I like that. It should go on my resume.

Still as I wrote on one of the other replies. Yes, you use an API, but you still provide evidence of coding, because you have to write the application, which calls the API.

It was a small piece of code, which took a number from the command line and spat out in the other format. You still have to know everything else to get it to work. Reading input, writing output, etc...
I don't think it's a question of necessity, it's just more convenient and usually a lot less code than doing the same thing without it.
Awww no engineers here can enlighten me into how to turn Compliance into something people want (#1 rule in her post) :(
An open-source (and privacy friendly) alternative to Waze
> like user input, you just moved your single if statement in the method out to every call site.

I guess the author would argue that the boolean should be pushed up to UI code. Arguably that domain logic belongs in the UI. Possibly a utility method in the UI package.

That being said, with all patterns there are exceptions. Following something to absolute purity is going to result in unclear code - polymorphism purity can rapidly cause a spaghetti codebase. Even GoF patterns can easily result in messy code. All patterns are blueprints, not rules.

On the topic of boolean values, I'm becoming more and more convinced by the anti-bool pattern. Normally this involves using an enum (usually bit field) when you first declare a parameter.

FileOptions options = FileOptions.None;
options |= temporary.checked ? FileOptions.Temporary : FileOptions.None;
options |= encrypted.checked ? FileOptions.Encrypted : FileOptions.None;
FileUtils.createFile("name_temp.txt", "file contents", options);

createFile now includes an 'if' and is at odds with anti-if (which is a pattern that I agree with). This is exactly my point, irrespective of whether you use multiple methods (createFile, createTemporaryFile, createEncryptedTemporaryFile, etc.) or polymorphism (File, TemporaryFile, etc.); you're going to end up with unclear code. Increasing clarity is the whole purpose of patterns. Composition (which bitfields are a form of) is the clear winner here and so the anti-if pattern has to be eliminated.
"super confusing because the examples are rubbish and do nothing to help the site's argument", solid analysis
Doesn't the USB-C standard already have a well-defined way of connecting an analog headphone, using only a passive adapter? Download the standard and scroll to the end, it's an appendix. IIRC, it can even be used while charging, with the correct passive adapter.

The question then only becomes, is the phone's DAC connected to the USB-C connector, or did the manufacturer omit it to save a few traces in the board? Did anyone test that Moto-Z with a passive USB-C to 3.5mm socket adapter, to see what happens?
Could you make a Photography portfolio without any photographs?

You're allowed to include sketches, because you have time to make those for personal projects. But no photographs because they're all proprietary.
If an interview like that can be gamed by "memorizing blurbs" then it wasn't done correctly. A properly conducted interview will see the interviewer tugging at threads to go deeper. At some point they will crack because memorization won't be enough. Unless of course they are anpathological liar, but those are rare enough that I would ignore the posssibility at the interview stage.