skysight-inc/HackerNews huggingface dataset:
I'm definitely in the TDD-is-not-a-one-size-fits-all programming style camp and I'm glad to see a study that supports that conclusion. I was at Railsconf when DHH said his bit in 2014. My office and I followed the subsequent debates between him and Kent Beck (since my dev group was largely pro-TDD). Lots of anecdotal arguments. It's nice to see some more quantitative data on this!

In my programming experience I've found that I prefer to write tests AFTER I do development of a new feature. Oftentimes the implementation is in such flux that continually updating the test as I go along is tedious and kills the creative flow.

However, when it comes to fixing bugs in existing software, I find it more helpful to write a test that duplicates the bug FIRST, then code the solution.

If anything, the reason to recommend TDD is simply to enforce writing tests to begin with. It's so easy to get a feature working and gloss over testing it.

EDIT: What's up with liquidise's statement about commenting on TDD stories being bad practice? Do the TDD fanatics downvote to hell everything anti-TDD?
so what's your approach to ensuring the software you deploy is correct?
It would work with just the ?s if you had the right implementations of the error conversion functions. I have an example below.
That is based on a single study and not a fantastic one. I would be a bit skeptical of it.
The emails aren't usually stored encrypted - they have to be readable, after all. The hard drive could be encrypted, but that's separate from the emails themselves being encrypted.

The main email account of the United States Secretary of State was sitting on a non-government, not-very-well-physically-secured, not-even-all-that-well-electronically-secured email server. That's a really bad lapse (one that could significantly harm the US in various international situations, if any foreign government breached the server). It is also very much against the rules.

Worse is the "optics" of it. It at least looks like she did this so that nobody could use those emails against her during her run for president, because nobody could find them. That makes you wonder what kind of dirt was in them. It also looks like she thinks the rules are for other people, but not for her.
What about the non-elite supposedly non-mainstream media ? Like Fox News ? Who perpetrated a false story days before the election and came back to apologize for it ? They are real winners right ?
Maybe I'm missing your argument? I'm arguing moving to natural gas is a win regardless, even if it takes longer for the cost of solar to come down.
It's interesting thinking about the threat models of the way the U.S. is designed.

For example, when I voted in MA I didn't have to show ID or anything, just said my name and confirmed my address; I think the idea here is we're protecting from disenfranchising citizens who don't have IDs?

And there's no national ID because I think the founders didn't want there to be a single record of all citizens at the federal level? Or was it just a logistical reason? I know that was part of the reason the SSN system is so brittle and crappy - there was great pushback against a national database, but it still ended up as one, kind of, but it's a shitty one because it wasn't designed for it.

Another example is you don't really have a way to verify your vote was counted / tallied. Imagine if when you voted you got a UUID, and all votes were made public and searchable at the end of the election: UUID, Voting District, Vote.

This system would let everyone verify that their vote was counted and correct, and statistics could be done per voting district to try to make sure no extra votes were included. However, it's susceptible to vote-buying, which is a major part of the current election system's threat model.

But is that really still a concern? I feel like catching and prosecuting vote buying in my scenario is a lot easier than identifying large-scale vote fraud, hacking, or errors, in the current scenario. Or maybe there's a solution that fixes both?
iOS supports stuff like CalDAV, CardDAV, etc out of the box, which lets me choose any provider out there. Android doesn't. And most apps require payment and end up loosely integrated.
I can understand having some news outlets with a much higher threshold.

I still don't believe the term "100% certain" is meaningful. Maybe if they were to put a label on certain facts: "This fact is considered by our editorial board to be 93% certain." And maybe have a chart, so that figure can change over time.

I think there are better ways, and that there should be accountability. I just am not in favor of black and white terms for concepts that, to me, are purely shades of gray.
This makes rest of my statement even more true (lower resources costs -> cheaper electricity -> cheaper manufacturing of electric vehicles -> better business for Tesla).

All they need to do is keep being focused on their primary business, instead buying SolarCity.
He doesn't seem totally opposed to renewable energy sources:

"It should be the goal of the American people and their government to achieve energy independence as soon as possible. Energy independence means exploring and developing every possible energy source including wind, solar, nuclear and bio-fuels. A thriving market system will allow consumers to determine the best sources of energy for future consumption."

From https://www.scientificamerican.com/article/how-president-ele...
So, you're on the "Trump was lying his ass off, this shit would obviously never happen" train too then. Good to know, I guess. And what happens when the voters who took this promise literally find out and demand it? You don't think he'll cave some time before he needs their votes again in four years?
What are Trump's technology policy plans?
Giving that one a try too. Thanks for the link.
>underpaid Chinese workers in Italy or France

Believe me or no. Italian effective tax rate for a factory business is less than that in China.

Most Italian shoe and fashion goods factories in Italy are owned by Chinese these days.
For me I try to read state sponsored/official news of several nations in publications like:

- rt

- bbc

- ny times

- xinhuanet

This gives each countries official position and the delta between them is usually useful info.

I also use twitter for curated feeds, which can be useful.

The guardian and intercept are also pretty good. I no longer trust the economist. While obviously biased, I do like ZeroHedge
tl;dr the recent studies proved that that you're testing first or last doesn't matter, provided you're frequently flipping between writing a test and writing code.

The author thinks that TDD is preferable because it helps you maintain discipline.

I personally think it's worthwhile besides that because it means you design the API before implementing, meaning it is cheaper to fix API design mistakes. IIRC this aspect wasn't actually tested in the studies (API signatures were given up front).
baz(foo).expect(format!("Cannot do baz, foo={}", foo)).bar().expect("Cannot do bar");
If Tesla’s not competitive, then it’s not competitive. I’m glad to see the government involvement being reduced. Let the free market handle things.
I don't think you understood my post; giving race as a parameter allows ML algorithms to detect and counteract human racism.

If an ML algorithm notices a disparity along e.g. racial lines, it's because it's actually there, not because a human imagined it.
Does anyone know what switching ASICs this uses? I'd guess https://www.broadcom.com/products/Switching/Data-Center/BCM5... but I don't see anything for sure.

Edit: https://code.facebook.com/posts/203733993317833/opening-desi... says the Wedge 100 does use the Tomahawk, so it'll be the same in Backpack.

The hardware looks a lot more sensible than 6-pack. The orthogonal connectors to vertical fabric cards is pretty similar an Arista 7324X or Cisco N9K. Good front-to-back airflow that way.
Any language that can read and write stdio is supported.
Sure, but there are plenty of parts of the world where this actually would be extremely useful. Complaining that a new technology isn't useful in 100% of cases is such an unhelpful position to take. Finding a solution that works in 10% of the world means the next solution only needs to worry about 90%. No one ever claimed that there would be one single solution to the problem they're attacking.
Ask HN: How to get an internship in a YC company
I am wondering about the best way to get an internship at a YC company given that they are either at a very early stage to look for interns or have a big enough network to hire interns through internal referrals. Is there a college recruiting event or something similar?

- Abdellatif Abdelfattah
It's also partly a constitutional question. I want my friends and I to be able to share articles we find in whatever press on FB. I'll filter by friend. (Mea Culpa: I haven't read TFA yet, so I may be missing some context.)
Climate change is classic tragedy of the commons. It's the quintessential example of it.

There are two ways out of tragedy of the commons. The first is that everyone recognizes we're all better off not destroying the world with CO2 and everyone stops burning coal. That works perfectly fine if that's what everyone does.

But if you'll notice the comment I was responding to was arguing that not everybody would. Which is possible. In which case only the second option works, which is for the victims of harm to exert power until the perpetrators submit. And that can lead to war -- which is why everyone should stop burning coal now.
Also, regarding immigration, I get the impression many anti-immigration advocates are also opposed to increased skilled immigration--expanded H1Bs, allowing graduates to convert student visas to work visas, etc. Yet the economic argument there is even more clear: expanding the skilled workforce brings competitive advantages (even if one, as Trump appears to do, takes a zero-sum view of economic growth).

I think accusations of racism are not made quite so lightly. But Trump did claim that he saw "thousands of Muslims celebrating" in New Jersey after 9/11. He did claim illegal immigrants are "rapists and murderers", when statistically they commit fewer violent crimes than the control. The anti-immigration arguments often do take a racial tone, as when people complain about "press 2 for Spanish" or when a (Hispanic, yes) Trump supporter warned of "taco trucks on every corner".

I doubt racism is your motivation, or that of many supporters. But I am surprised and worried when Trump supporters don't identify the ambiguously (or, in the case of David Duke, not so ambiguously) racist motivations of their comrades-in-arms or their candidate himself.
I suspect that your belief that SV developers are overpaid is because of targeted media with the goal of underpaying developers outside of Silicon Valley.

If you're reading it, it's for you.
Proposals for a "single-payer" health care system like the NHS -- in which all citizens would pay into a single risk pool, which would cover most of their medical costs -- have been floated repeatedly in the US -- for example, as I recall, by Hillary Clinton during her husband's first term. They tend to be pretty popular with Democrats, AFAIK, but the Republicans have always bitterly opposed them.

The US actually has a single-payer health care system, called Medicare, for people 65 and older. It's wildly popular with the people who benefit from it, of both parties. It seems to be pretty well-run and to exert at least some useful downward pressure on costs. Extending it to all citizens doesn't seem like that big a leap to me. Of course it would all but obliterate the existing insurance industry, which has bought itself a lot of Congresscritters.

I think it would be a fascinating and hilarious irony if Trump came out supporting single-payer in the form of universal Medicare. I think the argument for having a single risk pool is very strong. And I don't see any other solution to the interlocking problems of containing costs (which are way out of hand here) and getting everyone insured.

Trump (whom I voted against, BTW) has shown he's not afraid to go against the Republican establishment. I think when he really looks at this problem he may come to this conclusion.
I've found that emacs mostly eliminates the need for a shell. Most of what I was doing can be handled by Magit, Dired, and Async shell commands. The only thing I really use the shell for these days in long running npm jobs.
I'll check it out! Thanks!
Parallel Database Streams in Custom Java 8 Thread Pools
Of course it was!

The point is that scientists took a "wait and see" approach instead of lambasting them for releasing results that was so obviously wrong while pointing out that it's absolutely impossible that matter can travel faster than light.
Vancouver plans to tax empty properties 1% of their assessed value
maybe (although I'm not really disagreeing with you). I'm more worried about continuing the increase of solar and other renewables.

I understand nat gas may be better and a temporary win... but I think the future should be renewables, and I'm concerned about policy changes that could damage and set back progress with solar, etc.

If solar is only competitive because of tax credits, then solar companies may have significant losses if those credits are discontinued.
Here's what to do about Facebook.

(1) permanently close your account. https://www.facebook.com/help/delete_account

(2) if you're like me and you can't do that, "unfriend" everybody except the people you work with. Delete all your affiliations and locations.

If enough people did this FB would have to do a little struggling to retain membership. That's the kind of incentive they need. Altruism demonstrably doesn't work, especially Sand Hill Road altruism.

(I help a couple of little nonprofits so it happens that I need a fb account.)
My only guess is they figure you can take the cable with you. Assuming the wall wart is easy to access to plug and unplug.
I think Tesla will do okay, they've got a solid product that stands on its own.

What I'm worried about is rooftop solar tiles. One of the thing that can make it cheaper than a traditional roof is that the whole thing will qualify for solar subsidies. If that goes away it could make things incredibly difficult for Solar City.
And yet subsidies for fossil fuels continue...
It does!

At launch, there were starter packages for Python, Java, C++, Scala, and Rust. There's a page describing how to add support for additional languages:

https://halite.io/advanced_writing_sp.php

A few days ago, one competitor submitted the C# package. I wrote the Clojure one today and should have it up soon.
I am using Neovim as well, it is just so much better than stock vim. It also have a built in terminal so no need for tmux.
“I'm Seeing the Slow Dismantling of GDS” (UK Government Digital Service)
I agree that it's not a lack of resources, but I don't think it's about OSX penetration. They don't seem to care much about OSX penetration anymore. If they did, they would make a wider range of OSX devices and sell them at a more competitive price or license it to other hardware makers who would do so so they could get OSX into more hands.

It's about control. Apple doesn't want YOU to replace OSX, they want to do it themselves with something they control, not let you gain control.
I think the talk of expanding coal production in particular was mostly talk aimed at a segment of the electorate (although I haven't followed Trump closely enough to realize the extent to which he realizes this).

The demise of Appalachian coal was mostly due to the rise of both natural gas and Wyoming coal, as well as exhaustion of readily available resources. Though Appalachian coal is higher grade, it requires expensive and dangerous mining practices such as room and pillar mining, mountaintop removal, or more traditional practices in increasingly small and geometrically complicated seams. The coal from Wyoming is basically at the surface and can be strip mined at scale very cheaply, with lots of automation.

Unconventional oil and gas production is also at odds with coal production. As you've said, oil can't get that much cheaper, and gas is pretty similar, and has more substitution with coal. Many of the restrictions on unconventional production (i.e. fracking regulations) are done at the state level, and given the concern over recent seismicity in associated with injection of post-fracking wastewater, the states probably won't budge that much. If as pro-oil a state agency as the Oklahoma Corporation Commission (the main regulatory agency in OK) is tamping down on production processes, there is very little a Trump administration can do to shift the needle.

Similarly, we (he) won't be able to simply deregulate and re-invigorate mining. Too much of the demand is based in China, and a trade war there will simply depress prices further. Additionally, many of the resources are in states that are not overly favorable to Trump, and the state EPAs have a lot of sway, especially in a more 'states rights' environment. Rare Earths, for example, are mostly found in the US near Las Vegas but across the state line in Mountain Pass, California. And NV isn't as red as it used to be either.

Lithium production could increase, but I think the problems there are there just aren't a lot of good sources, not environmental regulations. Lithium is tied up with salts or brine (salty water) from hypersaline lakes that dried up and concentrated metals that were already especially abundant due to particular geology. Lithium mining is often just pumping salty water out of aquifers or dredging it from lakeshores. It's not like copper or gold mining/processing that involves nasties like mercury and arsenic.

Trump's policies will probably mostly involve somewhat symbolic, macroeconomically insignificant, and locally damaging exploitation of currently off-limits areas like ANWR, offshore CA and the east coast, and possibly many of the new national monuments in the West that may have uranium or other metals.

Eliminating the tax incentives for renewables is also likely, but may not yield as much permanent damage as environmental degradation; some companies may lose market share or capitalization, some may bust, but this won't turn the tide.
> american exports

you mean all those empty intermodal containers that head out of our ports ?
Update: it looks like they don't have internships :/
Yes, the next major performance improvements will come from a JIT style machine, similar to what HHVM does.
To be fair, the TPP became unpopular enough with the general public that both major candidates promised to take stances against/pull out of it.
Have you tried hiring Erlang or Haskell developers? It's not like they don't exist. In fact, there are likely many developers that would love to take an Erlang or Haskell job, but there aren't that many opportunities.
Tesla needs to make desirable cars because otherwise the environmental reason alone is not sufficient for more people to make the move. Musk's goal is to get more people to use sustainable energy.
Indeed I am. What I want to convey is, between 2 sequence points, C is actually non-strict. Any effect is like unsafeInterleaveIO from Haskell. Which is why I rarely mix up effects together or with a computation in a single instruction.
Google Bans JSONView – Extension Contains a Serious Security Vulnerability
This is still a good example. The bird he is holding is a more important object than the other birds. It's a focal point. This is also true with the ship ropes cutting through the moon, if they don't the moon shape stands out more. Omit a toe so the foot looks like a foot, otherwise the toes are too small and look jumbled anyways.

There's even the building with the tree shadow. If the tree shadow was in the foreground it would not even be visible on the stamp. If the light source was really respected, the building would be casting a shadow on the entire scene and the building would probably look poorly lit itself. More than likely, the image was drawn based on a view where the light source created the best light on the building thus the shown shadow of the tree. However, that left the sky empty - so let's just draw in the sun and it looks great. Is it photo accurate? No, but it doesn't make it an error.
Closing graf:

Thiel made his contrarian bet, and he was right. Now he may discover how deeply unpopular it makes him.

And we all learned in school that being popular was more
important than being right....

(And for the pedants, I mean right as you see it, not as is fashionable with the popular cliques.)
Why exactly shouldn't it be beneficial if we let the market (the viewer) without any regulation decide which information should spread and which shouldn't?

If people prefer seeing outrageous stuff then let them have it.

The reason why governments and institutions want to control this is in order to control its people, all the other reasons given are just an attempt to mask this.
Heh, the "you don't need GUI" one is extremely underwhelming. Anybody who knows what terminal is already knows about all those commands and none of them is easier than a GUI. It could make more impact if it actually explained tasks that are harder to do in GUI than in the command line, such as massive renaming of the files, filtering files depending on content and so on.
What about just keeping out stories that are patently false? If I did an image search for cars, I wouldn't want a boat in there. If I did a search for news, I wouldn't want a fabricated story.
More people are slated to die from climate change than died in WWII. Countries will fight wars over this if it isn't settled peacefully first.
While that may happen, the frequency is so low (and would happen once, not every month), that it does not materially impact numbers in the billions.
Just off the top of my head:

- It causes wealth to consume it's own base, depreciating all assets faster even in lieu of inflation

- It disproportionately punishes seniors, who are asset rich and income poor.

- It encourages the wealthy to move and hide assets offshore just like they do with income.

- Double taxation: Wealth is already taxed when it is created

- Punishes asset rich, low income businesses like grocery stores, farms, etc.
Someone should create one for jQuery and Bootstrap
I guess it depends on whether you think that net metering is a subsidy and whose eyes are beholding the payments. Those tiles are generating electricity, why shouldn't they get paid same as large generators?
You say "do what makes you successful" after "I have never let my teams go full TDD".

If someone on your team is most successful with TDD, do you still not allow it?

re: writing 30% less code - I've found TDD can reduce my percentage of lines of code, as you suggested. Adherence to the "refactoring" part encourages that you reduce duplication, which in my experience has been easier to do with good test coverage.
It's a little late. The U.S. is already screwed by morons.
Not even a mention of TensorFlow or Torch?
They didn't necessarily actually contribute in that time though, presumably the list is of people who's contributions were merged into the release branch (or master during that timeframe, or... according to whatever workflow they're using).

Not to detract from your point though. It's an awesome language, I'm just learning it but enthusiastically so for sure!
So you're unaware of the open data center work that they have open sourced, which is innovative in countless ways?