skysight-inc/HackerNews huggingface dataset:
Original author here.

I get your point, but it's not really about not doing TDD right. It's about TDD evangelists - and I used to be one of those - advocating that people should use TDD despite those people not having the skills to do TDD "right". And my experience is that not only is doing TDD without those skills not a fun experience, the resulting code is worse than if you let those same developers write the code the way they are used to, and maybe spend some teaching time on refactoring because it's a more basic skill.
> Even if this is allowed/legal, it isn't exactly moral.

You go ahead and don't buy/return items. Moral or not, if it's legal and nets positive for me, I'm doing it. Billions of people around the world do the same thing. Are my moral wrong? Probably. At the end of the day, there is more money and happiness in my pocket.
I had never even heard of NIO before, probably because I don't watch Formula E racing. That EP9 electric supercar looks stunning. I look forward to watching the CEO's talk at some point (I don't have time for the live stream right now and I've probably missed it anyway).

So they seem to have the EV technology down. Their goal is an autonomous EV. I wonder how their autonomous technology stacks up, does anyone know?
As a former DOE lab employee, I can't even begin to imagine the hassle of changing operating contracts, although LANL has really been putting forth extraordinary effort to get the DOE to try.

What's most irritating is that the DOE use a broad brush and go overboard where it's easy and clearly don't do enough where it's hard. I had to attend ladder training before I was allowed to climb down under the 4' floor in my computer room and the rule was made that we had to use ladders all the time. You can't even fit the ladders in the tile holes, but the rule was on the books because it was "safe!". There were so many of those boneheaded rules, but these boneheads are allowed near plutonium to photograph it for no scientific purpose? Grrrrr
I stepped on my scales this morning and loaded up my Withing's app to check my charts only to see Nokia branding everywhere. I'm guessing I missed a communication on this, but it still felt a little violating to suddenly transfer my health data to "those phone guys".
Being around at the time, working on a site for a 1000 students at one college in 2004 actually did sound pretty cool.
Co-worker used inappropriate photo during company wide presentation
A few months ago, we had a company wide meeting. During the course of event, a co-worker whom I have been running into some disagreements, inserted a racially insensitive and homophobic image into his powerpoint slide (which I have a video recording of) that he claimed "randomly found on the internet" but it was more than a coincidence as it clearly resembled my face and my ethnicity. Why would he intentionally scour the internet for this specific ethnicity, gender and resembling face? I felt humiliated because the whole company started laughing (video recording clearly shows this).

Now I'm being asked for "anonymous" feedback, yet the last time I gave a low score for diversity (as a result of my co-worker's actions), the team was put into a room and me being the only minority there, it was extremely awkward and I could tell that people were avoiding looking at me. My interactions with the C-level executives began to feel off as if they were avoiding/ignoring me.
After that I noticed the tension increasing with other members of the team to the point that this co-worker will not even acknowledge me and the tension made it hard to work with this person.
Now I'm being asked to submit a feedback but I'm afraid to as I don't feel like they respect privacy at all. I feel depressed and suicidal since I need this job but the environment is becoming far too hostile as it seems this person has been going around speaking ill about me from the sudden shift in my daily interactions with people.

I'm panicking and I don't know what to do. This is a relatively well known local startup in Canada btw.
It is time to cut it off this type of brainwash mumbo jumbo .. when other people have different opinion, it is simply not civilized to invoke such an argument ..
You are not wrong. Nobody would argue that reasoning. But seeing what populism could leads to, and based on my experience in Hong Kong, I'm just a bit cynical that the reality probably won't turn out to be what it "should have been".
Tokyo has one of the world's best subway systems. Like New York's used to be, Tokyo's are still privatized; owned by three different competing private entities.

One big difference, besides upgrades and maintenance, in addition to ridership is the absence of a flat fee. On the other hand they ate self sustaining and keep updating their rolling stock as well as infrastructure.
I think this is the result of code coverage metrics that are often advocated. When you need some arbitrary level of coverage you have to write tests for glue code.

It may be different in dynamic languages, but in statically compiled ones the compiler does all the testing required for glue code.
I can assure you that New Yorkers, perhaps uniquely in all of America, care deeply about transportation infrastructure. The problem is that the MTA (which runs the New York City subway, mind you) is inexplicably run at the state level, meaning decisions about NYC public transit are made in Albany, three hours away. And naturally the state as a whole is not willing to invest as much money into the subway as NYC itself would be, even though the majority of the state's tax revenue comes from NYC and its metro area. It's your classic case of the urban center subsidizing the rest of the people in the state and not getting anything for it in return. There's actually a New York City secessionist movement (from NY state, not the US) for reasons along these lines.
But even at Medicaid rates, the cost of healthcare in the US is higher than other countries.

Are you suggesting that the gov't is swayed by the demands of for-profit companies?
I hate fib as an interview question as well, but for the record the non-recursive while loop implementation is preferable till tail call recursion lands in major browsers.
- Cyber Insurance -

Lifetime offer: 99% discount if you switch to Linux.
Your description does not resemble TDD as I learned it and practice it.

> As such the tests often end up containing bugs

All code contains bugs, but we do not abandon programming. Having statements of behaviour from outside and inside the solution increases the chances that one will reveal a meaningful difference from the other.

> I just think the 100% test coverage TDD dogma is oversold and doesn't really work well in practice.

I work for Pivotal, one of the most outspokenly pro-TDD shops in the industry. I have, quite literally, never seen or heard any engineer mention test coverage ever.

> Of course I am not a fan of "methodologies" in general. I see them as attempts to replace thinking with rote formula.

I see them as a starting point. The expert mind sees possibility, but the novice mind needs certainty.
That's the story we hear occasionally, but according to TFA "starting and stopping natural gas plants is costlier and more difficult than shutting down [and, presumably, starting up] solar panels" so they just leave those running without regard to daily peaks. I'm not sure how we ever got sold on a technology with those characteristics being a good "peaker", but hey! utilities execs are good at their jobs, when their jobs are correctly understood to be screwing over the customer.

Your anti-market bias is reversed in this case. The market [EDIT: for investments] doesn't want these new plants, because they're wasteful and bad for the environment. Therefore, they're bad investments that will only be made if the public is forced against its will to make them.
> Extending the TCP paradigms (basically retries and acks) to messaging is not hard

> Just ack after you commit locally.

wait ... what is this "retry" and "ack"? is this so that the sender knows not to send the message again? that sounds suspiciously familiar ...

I mean, come on, you're just describing a framework you wrote that handles "at least once delivery" plus "idempotent operations" for the programmer. That's fine. It's marketing to say it's "exactly once". You're just arguing over what to call it.
Companies go public for 2 reasons: 1) as a way for funders and investors to cash out or 2) to raise money since their other sources have dried out.

If the ipo was not enough, I doubt they will be able to raise any more money at any reasonable valuation. They have a tough road ahead.
I love living in NYC. Have you actually spent any appreciable amount of time here? You're reading a lot into a joke in an news article.
Flip it around - courts decide not to apply arbitration provisions because it involves giving up a key right (jury trial), so they find that there was no meeting of the minds in the TOS given the manner it was presented. Essentially, if a browsewrap TOS is not presently prominently enough to let you to make an educated decision on waiving your right to a jury trial, you get to keep your right to a jury trial.

You dont have this situation when the issue is whether you have the ability to use a provider's images for non-permitted purposes. Your right to use someone's images how you like is not nearly as important as your right to a jury trial. I'm not aware of any case where non-arbitration provisions of a TOS were not applied due to browsewrap reasons, if you are aware of any I'd love to see them.

EFF's argument would be totally valid if Zillow was trying to force McMansion into arbitration. That's not the issue here, and it's misleading to start off with "your TOS are unenforceable [because courts have declined to apply arbitration provisions in certain browsewrap TOS contexts]"
Tell HN: Blockchain Hack
I would like to advise fellow Bitcoiners that our crypto currency team has identified a somewhat serious flaw with the Bitcoin block chain that affects all Bitcoin wallets and Bitcoin transactions.
We are currently compiling a report on this bug and will be submitting the report to the Bitcoin dev team once completed.
Once the Bitcoin dev team have replicated and fixed the bug, we will submit our report and findings here. Please stay tuned.
It seems that Nokia is trying to make up for their missed shot at smartphones by aiming at every emerging, cool market.

I know Nokia is a strong brand, but I doubt that is the proper way for them to get back to being loved company.
Not taking any sides, but this whole "HN is more mature than reddit on these topics" meme is wrong and out-dated. I mean, goodness, look at this thread (well, if you have showdead on at least).
Can we stop with "accusing someone" thread? I did no such thing yet you appear to be accusing me of that. I clearly and repeatedly said "I don't know". That's not accusing someone of something.

And as for "posting it online for all to see", umm, it's right there in the search results. In the titles, you don't even have to click down one level. I didn't post that stuff, he did when he joined linkedin and all the other social/business stuff. The whole point of all that stuff is to advertise who you are and what you can do. All I did was say what his advertised career is and what his age is, something that any of us can get in 10 seconds. If that is crossing some line, that's a pretty arbitrary and pointless line. You are making it sound like I found his social security number and posted it and I did no such thing.

This all could have been a non issue if tptacek did what most people would have done and said "I'm a nerd and I like reading papers about this stuff" or "my background includes this stuff". But he didn't, and hasn't, and that still feels weird to me. People who are into stuff typically love talking about it and that includes talking about why they love it, how they learned it, who they learned it from, etc.

Something felt off. So I asked. If I, a software/hardware guy, was making claims that global warming isn't a thing someone would eventually ask how I knew that. This is exactly like that. And he hasn't answered that question. He could totally shut this whole thread down with a simple answer to a simple question. It's sort of strange he hasn't. I don't get it.

Whatever, I gotta go, my stupid puppy is trying to eat my chickens.
> It's not a capital problem, it's a mismanagement problem

Do you have any evidence of this?

Being a naïve Californian, I would assume that there are plenty of variables other than management (labor costs, union membership, labor laws, cultural status of subway workers, legal statues, building requirements, vendors and their rates) that could plausibly represent most of the difference.
I've built a such a scale using a raspberry Pi 3 and a Wii balance board. Step on the scale and it sends to my phone where an app records it in Samsung health.

It's still a work in progress but it's functional.
Just use a Google Sheets or other online doc and a normal scale. It's so much faster in my experience to use a normal scale, read the number, then pop open the sheet (it can be a direct link on your homescreen) and type in the weight on a new line vs. fumbling with bluetooth connections, horrible apps, etc. Your data is never locked in to a service and you can graph, chart, analyze, etc. as much as you want too.
"What were you spraying Roundup for?" - to kill weeds.

"Given that it might be carcinogenic" - didn't know that until reading about that here - the main point of my earlier comment.

"it may be worth discontinuing usage" - no shit 8)
"The tests get in the way. Because my design does not have low coupling, I end up with tests that also do not have low coupling. This means that if I change the behavior of how class <x> works, I often have to fix tests for other classes.
Because I don’t have low coupling, I need to use mocks or other tests doubles often. Tests are good to the extent that the tests use the code in precisely the same way the real system uses the code. As soon as I introduce mocks, I now have a test that only works as long as that mock faithfully matches the behavior of the real system. If I have lots of mocks – and since I don’t have low coupling, I need lots of mocks – then I’m going to have cases where the behavior does not match. This will either show up as a broken test, or a missed regression."

Simply comment them out temporarily?

"Design on the fly is a learned skill. If you don’t have the refactoring skills to drive it, it is possible that the design you reach through TDD is going to be worse than if you spent 15 minutes doing up-front design."

I don't quite understand how TDD means you skip up-front design.
I wouldn't necessarily conclude that they only have one year's worth of runway. Many companies state that they are funded for the next 12 months. It can be pretty boilerplate. See comparison of Blue Apron vs. Apple below.

Blue Apron (1):

We believe that our existing cash and cash equivalents, together with cash generated from operations and available borrowing capacity under our revolving credit facility, will be sufficient to meet our anticipated cash needs for at least the next 12 months.

Apple (2):

The Company believes its existing balances of cash, cash equivalents and marketable securities will be sufficient to satisfy its working capital needs, capital asset purchases, outstanding commitments and other liquidity requirements associated with its existing operations over the next 12 months.

(1) https://www.sec.gov/Archives/edgar/data/1701114/000104746917...

(2) https://www.sec.gov/Archives/edgar/data/320193/0001628280160...
Better than the age of "never IPO that way our employees can't cash out their shares and leave".
It's tinder, it's easy.

As you can see in his article, just ask her on a date and get her number. It takes about 3 messages.
I am not sure you are really replying to my comment. I said nothing about CCP being what, I am defending Chinese people's behavior, and rebuttal the ideas that Chinese people are a group of "extreme communism supporter who happily enjoy the value of freedom and hide their true color".

CCP does much worse things than you western people even remotely understood. That does not mean that Chinese people are spies/extremist/...

> suppression of knowledge about the "June Fourth Incident" and it really blows my mind.

This is correct and true. And governments around world are learning quickly. That's the part we all should be aware.

> Today, in China, Falun Gong practitioners are being imprisoned and having their organs harvested.

I am not sure where you got this "fact"... This is a well-known fabricated lie of the Falun Gong leaders... Again, I cannot prove that no such thing, just as I cannot proven that there wasn't human organ harvesting in US. I can only say that all the sources to claim the existence of such thing is not true.

> The people who comprise the CCP are scary.

CCP has 80MM members. Please do not randomly exaggerate fact... If 80MM people are skilled practitioner of CCP tricks, China will already be the master of the world before 1987...

> What is the world gives someone the right to try to lie to a whole nation of billions of people?

No one. And no Chinese people or very few of them think CCP has the right either.

> To define a false reality and insist with strength of law that it's real?

Not sure what do you mean by "false reality".

> The incredible grotesque arrogance of the thing!

No clue what "grotesque arrogance" refers to.

> And what a mind-fk for a nation to do to itself!?

Please, do not mix CCP and Chinese people. People do not align themselves 100% at all time with the government or the party.

> But then I think, what would I do, how far would I go, to prevent another Taiping Rebellion?

Interesting. If you read CCP's propaganda, Taiping Rebellion is proclaimed as the righteous movement of the people to overthrow a corrupted government.

While in reality, Taiping Rebellion is more like a group of manic that causes havoc across the nation. It brings no advance to anything, and killed 10MM+ people. And is considered a setback to the overall progress of Chinese society.
> Other parts of the US are much less allergic to discipline in development.

I see TDD as a practice that requires a lot of discipline.

The TDD equivalent of crossing every t and dotting every i requires sustained attention and intention.
>Today, HK's GDP is barely 3% of China's, and the ports of Shanghai and Shenzhen together have 3x the throughput of HK. (Just have a look at these pictures:

I am really waiting for a NY Times article that has some angle about what China can teach us, not what they should learn from us.

For the last 30 years we have been getting continuous dispatches that Communism with Chinese characteristics will fail into economic collapse, that it's an enormous bubble, that the economy can't grow without democracy, that Hong Kong needs to be a model of democracy for the rest of China, etc. This mainly comes out of the "official narrative" mouth pieces known as the New York Times and the Washington Post. Whenever I see nytimes.com in the sourcee I'm always thinking, ok what's the new angle that everyone's supposed to believe now? It would be better if they just gave the byline to someone at the State Department or the CIA.
12 Websites That Pay You $70 to Write a Blog Post or Article
Explain?

"...look at this thread."
I would rather run a sustainable & profitable 100M company than a unicorn billion dollar company with 12 months of runway.
I'm not a coder but from listening around here. What if a government agency took the lead to develop a safer open source operating system. With the knowledge they have regarding attack vectors. they would seem to have elevated insight n what to avoid.
Ssl_logger: Decrypts and Logs a Process's SSL Traffic on Linux and MacOS
I'm actually just coming across this at work. I work for a large media company and I'm petitioning in this capex round to build assistant (alexa, google assistant, siri, snips, etc) apps for the different brands including radio.

The radio brands have streams that pass through Akamai into html and other sdk players that remove CORS protections, sometimes as the only way they function.

Can you list a few good resources for dealing with these situations, or point a guy in the right direction?
So I went into my O'Reilly publisher dashboard to examine purchasing trends over the last 6 months (in my earlier comment I noted monthly sales for individual titles are often more than Safari revenue).

Since November 2016, Safari sales have actually picked up a lot, sometimes 2x or 3x the same level as one year earlier, and there were no individual ebook sales in April 2017.

As a publisher, I'm impressed, but there could be other factors that explain these trends. I am also apprehensive about whether the upward Safari trend will continue ...
Your claim was not that Google or Apple can update their software at will, it was specifically that Google or Apple can read existing WhatsApp messages that have been already sent (particularly ones that utilize e2e). This is not something that security engineers agree with on record. Can you find a cadre of security engineers that agree with that?

Further, there is the implication in your comment that Android and iOS are less secure than some other format (assumedly a linux or bsd variant desktop OS) for secure messaging. I'd be shocked if you could find a group of security engineers that even agreed with that. You certainly will find lots of them that disagree, so its in question at least.

I'd go further and suggest that if I made the proposition that from a security perspective you were best served by using e2e encrypted WhatsApp purely from an iOS or Chromebook that I'd gain more agreement from the security community than any other proposition about messaging formats other than "don't use electronic messaging for secret things".
Who Delivers and Offers Catering of the Best Mexican Food in Vancouver BC
But the application still has to deal with processing the same message twice if it dies before ACK.
Blockchain bug
I would like to advise fellow Bitcoiners that our crypto currency team has identified a somewhat serious flaw with the Bitcoin block chain that affects all Bitcoin wallets and Bitcoin transactions. We are currently compiling a report on this bug and will be submitting the report to the Bitcoin dev team once completed. Once the Bitcoin dev team have replicated and fixed the bug, we will submit our report and findings here. Please stay tuned.
If Disney came up with it's own over the top service with Disney media library + sports rights that would be so dominant.

I'm just imagining ESPN figuring out how to own the Cable + Internet broadcast rights, whereas Amazon would only be able to bid for the internet rights. That alone gives them a huge advantage. Unless the sports leagues decide to split who gets what (which would be amazing for the consumer).
Interestingly enough, as a front end dev this was one of the few questions I agree with (though I'd present it differently).

I wind up doing a ton of array/collection manipulation in my daily work, and I'd want to make sure any new members of the team could at least speak the same language.
that'd be around half as a first order approximation.
It's worth noting that the Qing Dynasty ceded Hong Kong Island and Kowloon to the UK in perpetuity. The lease was for the the New Territories, without which it was generally accepted the city would not be viable. Hong Kong was (and still is) dependent on the Chinese mainland for imports of natural resources such as fresh water, so if the Chinese decided to play hardball the British had few options. And that's not even considering the possibility of China deciding to retake Hong Kong by force.
Diminishing returns, running spam botnets is already so risky that making more enemies by graduating to ransomware probably doesn't make a perceptible difference. Do you go to prison for 25 years or 30?

Sure, you could probably deter ransomware by sending DEVGRU to murder the authors, but I doubt it's worth the political shitstorm that'd follow.