skysight-inc/HackerNews huggingface dataset:
> Just like US processor or SSD companies build things themselves?

China doesn't deliver cheap, high-quality NAND Flash. Nor do they make Intel chips. Nor do they make Qualcomm chips. Nor do they make even AMD chips (I mean sorta, IIRC China has licensed an AMD design but they aren't making Ryzen).

Micron Flash is made in Virginia: https://us.micron.com/micron-in-usa/us-jobs/college-recruiti...

Intel Chips are made in Oregon: http://www.infoworld.com/article/2672745/computer-hardware/i...

AMD Chips are made in New York (Subcontracted to GlobalFoundries): http://www.eetimes.com/document.asp?doc_id=1327435

As far as foreign companies go... Taiwan (TSMC aka Nvidia's contractor), Japan (Toshiba), and Korea (Samsung) are the other countries with 14nm or 10nm fabrication labs. Those are the US's rivals when it comes to high-tech. NOT China. Sorry to burst your bubble.

I think some of those companies build plants in Israel. So Israel deserves an honorable mention. Singapore too.

--------------

Ermmmm... yeah. The best of the best is made in the USA. I'm not saying "China quality is bad"... but the fact of the matter is that China does NOT own any 10nm fabrication facilities.

China's manufacturing is a step behind the USA's technologically. Its a LOT bigger however, so that's a thing. China just has so many damn people that they manage to brute-force a lot of solutions. But unless they begin to push innovative designs, they aren't going to make the best.

Most likely, China's cells will be a shock for the utility-space companies, who DONT require high-quality batteries to do important things. Again, there are plenty of uses of lower-tech MASS PRODUCED cells.

Ex: stick thousands of them into shipping containers and then hook them up to the grid. That's damn useful. Its just not useful for cars.
> Very few technical docs I've seen for "modern" software are of convincing quality.

There's a reason Technical Writer[0] is a profession in of itself, this stuff is much harder than people give it credit for.

[0]: https://en.wikipedia.org/wiki/Technical_writer
The article implies that the Chinese batteries will be of equal or better quality than the ones Tesla manufactures, which is a dubious assumption. Cheaper goods are a good thing for everyone, but I can't believe up front that China will be able to match the quality required for a Tesla vehicle.
His argument is basically that with tight coupling, TDD is too hard and time consuming to pay off.

But part of the point of TDD is ensure that all code is testable, and testable means loosely coupled.

So you can't start TDD'ing on a bad and tightly coupled legacy codebase. You can do it on a greenfield project however. Greenfield is very much the "lab environment" he talks about. You control everything.

With greenfield projects comes another reality though: you often have to explore and sketch a lot. TDD does not work well for writing a dozen sketch solutions to something and throwing out eleven.

And that to me is the main drawback of TDD: it works poorly for very young code bases and it works poorly for very old ones (that weren't loosely coupled to begin with). It's a very narrow window where you can start using TDD in a codebase and that's when the architecture is first set, but the codebase hasn't yet grown too coupled. Such a narrow window means it's not very popular, for good reason.
That seems to be an example of "parent is important factor in child's development though not in the way the parent intended" rather than "parent is not important factor in child's development".
But Ruby Koans is a tutorial on Ruby, not on TDD.
Finally being able to get rid of all my physical media was super satisfying. Cassettes, CDs, DVDs, Blu-rays. All sold to one of those buy-back places for pennies on the dollar. All the clutter--gone. All the heavy boxes to pack up and unpack every time I moved--gone. I couldn't imagine going back to collecting physical music doodads again, especially doodads as space-inefficient as vinyl. My huge bookshelf is next. I have PDF version of the most useful ones anyway...
Maybe they should cut the executive pay ten fold to keep the fiscal obligations to shareholders?
Absolutely, the Healthcare Lobby gets what they want, regardless of which party is in power.
This is not a copyright issue. Copyright was peripherally mentioned in the C&D and not the basis of the C&D. Copyright does not belong to Zillow, as they mentioned themselves directly in the C&D.
If you are that strict on your definition, yes you cannot TDD when fixing a bug. However all TDD advocates will tell you to write the test for the bug before fixing it. If the code was designed with TDD you will not have to refactor the code to write the test (though the test might be much bigger than it would need to be if the code was designed different). You seem to be describing working with legacy code though, not which is a different situation from TDD.
In order: no, no, no, no, definitely not.

Mind you - my personal view. I had some nice kit (e.g. Rega Planar 3) and loads of LPs but the convenience and consistent quality of digital completely won me over.

I don't use floppies for storage anymore either even though I found my first use of a 5.25" floppy in an Apple 2 quite exciting at the time.
Boy would I love to see a Jepsen test of this one.
What I love about Vinyl, compared to everything else, is that it's amazingly low-tech. You can build a playback device out of a sheet of paper and a needle. It won't sound great, but it will work.

On the flip side, in order to build a play back device for MP3 or CD from scratch you'll need electricity, massive amounts of highly specialised knowledge and realistically a chip fab.

This has no real practical relevance in the modern world, unless you're stranded on an island with nothing but a bunch of Vinyl, but I still like the thought.
This is amazing but is it the kind of business that can last for more than a few hundred thousand users? At a certain point people get none of the free deals, because too many are trying to book at once, right?
We also have this idea now that spending an afternoon with some tech is enough experience to share with others. Initial learning curve and "am I immediately as productive as I wish I was?" have somehow become key metrics.
Looks like yellow paint being sprayed out of the top of a spray paint can
I want to vouch for Matplotlib, I can see it gets a bad reputation when compared to these new shiny frameworks like plotly, but it's vastly more powerful.

If you are a researcher and you want to publish in B&W (something still very common in fields like Physics and Astrophysics), no other plotting library for Python comes near.

You can choose filling patterns, line patterns, annotate with LaTeX, etc. And, although hard, you can make your final product look as polished and perfect as you want (and as you are willing to take the time). No other library for Python comes near in these aspects.

There are simpler tools and it's easy to get a good enough looking plot, but if you want to get that perfect one exactly as you need, there's no way around Matplotlib (at least amongst the well known Python plotting libraries).
I have one of the new feature phones, it feels just like a gentle update on a 'real' Nokia phone from 10 years ago and is exactly what I wanted.
A public stdlib function to convert any text into mocking spongebob format
>imprison those who point out corruption,

To be fair, the current Chinese administration (Xi Jinping) identified back in 2012 corruption as one of the greatest threats to the Communist party (rightly so for any government imho) and began an unprecedented campaign to crack down on it.

https://en.wikipedia.org/wiki/Anti-corruption_campaign_under...
Quality will be noticibly shitty enough that there will still be a market for Tesla.
My understanding was that the Gigafactory was conceived out of necessity as least as much as opportunism. That is necessity for a large stable source for batteries over which Tesla has quality control. Had they been able to find that elsewhere, they wouldn't necessarily be in the battery-making business.

All that is to say, I think (hope) that Tesla doesn't see what is essentially a commodity business--albeit one with some innovation baked in--as a driver of their enterprise moving forward. As such I think they should welcome competition in that space.
High end NAND is made in China, but in factories owned by Korean, American, Japanese, and Taiwanese companies.
EPA: Pruitt will launch program to 'critique' climate science
China manages to make iPhones - it's entirely possible to make high quality goods there, if it's a priority for the folks paying the bills and they're willing to put some supply chain management into it. "Make me this as cheap as possible" being the only instruction won't get you there, of course.
Do you mean something like a star rating system that hotels use? (i.e. 3-star means ABC, 4-star means XYZ, etc.)
I think it largely depends on the recording and mastering process. I have lots of friends that use a fully analog process end to end, which changes the way you approach your sessions and the recording gear itself plays a huge part in the sound. You're then mixing and mastering for a playback medium that isn't just radio or mid-quality streaming on iPhone earbuds.

All of that has a very real impact on the end result and lots of old albums were recorded, mixed, and mastered for a fully analog playback medium.

If we're talking about music made in a fully digital studio and then pressed to vinyl at the end, then yeah, there really isn't a difference. Maybe it even sounds worse. But if your musicians and engineers are thinking about an entirely analog end result, then I do think it sounds different (and in my opinion better).
Good to see Brian & Scott on here. Crazy explosive growth over the past 18-24 months!

Great evolution of an MVP into a legitimate, mid-size business without taking tons of funding to do it.
Why aren’t you using Prettier?
It's almost like China is still a (huge) developing country! :)
On the other hand, tying government and industry together like that is likely to lead to bad outcomes from regulation. If everyone is pulling together, there will be pressure on environmental regulators to look the other way when there's an issue which will cost money. Even somewhere like France you had issues with nuclear, and expectations of transparency in China should be a lot lower.
I feel like it was a mistake to allow mixing the two styles inside the same function. I ran into enough issues with non-initialized returns during my adventures in Go to stop using named return parameters completely. To me, this feature has the same appeal as JavaScript's optional semicolons; or Pascals with-statements; convenience at the price of reliability and correctness.
What was true at one time isn't necessarily true at another of course. But it may be worth observing that in the 1980s there was a huge amount of hand-wringing over how Japan's government and industry partnerships around industrial policy were going to make the US uncompetitive. This led to projects like SEMATECH in the semiconductor field.

I do think government has a role to play in research and encouraging technology development generally. I'm far less convinced that it has to or should play a large direct role.
Wow. That's quite a nice setup you have. Do you find that you still get a regular stream of guests even though it's only short periods of time as opposed to a regular tenant?
I understood that. My point was that people who say "protein timing" are referring to consuming protein supplementation around the time that they work out, to maximize hypertrophy or performance.
Lol I don't believe it's worth my time to argue this further, since you haven't made any actual arguments, and you come off as kind of a jerk with all the unsupported claims, not responding to my points, and demanding that I do work for you. Sorry you are blind to this. If you want to understand your deficiencies in this area I'd recommend reading A Pattern Language by Christopher Alexander, followed by Design Patterns by the 'Gang of Four', then thinking about the connection between architectural pattern languages and cutting edge software design. Perhaps think about why programmers have taken the time to assemble libraries of anti-pattern examples specifically, analogous to McMansion Hell's.
My current issue with the animation module is that there is no way to clear an animation away. You can clear the figure, but the animation will redraw on top of the cleared figure. The only workaround is to delete the FuncAnimation object, but that is difficult to do in a language without deterministic destruction.
I like that SML isn't pure, isn't lazy and allows mutation. While it's less elegant theoretically, it's eminently more practical for real world conditions where it's easier to teach and reading about.

I've wondered quite a lot why SML/CML isn't more popular than it is. If we compare it to the darling that is golang, it is better in every way except inertia (which was about the same until the past year or two).
That is tempting. What's the frequency of the guests?
How is growing up outside of religion a more difficult path to freedom of religion than growing up within one?

Wouldn't growing up in one religion be more constraining to her with regard of all other religions?

There is one step from being non-religious to any religion, but to move from one religion to another you have on you the burden of having to leave your current religion.
I think this sums it up well. Most people have a difficult time distinguishing between well-reasoned, philosophically-sound thought and eloquent rhetoric. The former is hard to do and hard to find. The latter is available in spades.

My dad was lamenting the inability of young people to think critically. Maybe he's just a grumpy old man, but he seems to remember being trained in classical thought and critical thinking while in middle school, and notes the lack of such training even at the university level today. I think he's got a fair point.
Astronomer: Building a next-gen data infrastructure with Apache Mesos and DC/OS
This is pretty cool stuff. I have been working with Apache Flink where the computational model is exactly once (which is still hugely useful) but it still comes with caveats about duplicate messages downstream, which makes writing to downstream db or having multiple flink processes tricky. Often times this is done by windowing data and producing complete snapshots of that window (i.e. you need to keep all the state for a given window) such that the message downstream is idempotent and then aggregating windows together (which can be non trivial for certain aggregations).

Once flink (and other systems) support this, I think it will really be a game changer. It will allow for doing things like sending an increment downstream rather than needing to keep all that state. Instead of mostly seeing stream processing as a thing we do for analytic use cases, it can really become the backbone for streaming applications.

Event Sourcing/CQRS has been an idea for a while, but in practice, is difficult to do because to the inherent difficulty in dealing with message semantics and consistency (see https://data-artisans.com/blog/drivetribe-cqrs-apache-flink for a good write up about such an app). The ability to independently optimize for both reads and writes while also not having to make all messages be idempotent, in my mind, will make this feasible for a broad range of teams and won't require a huge amount of work in thinking up clever message formats or working through as many failure scenarios.

That being said, I fully expect this to bite hard when the caveats aren't understood (such as when interacting with external databases) and there are still other hard problems. Like creating a consistent down stream view of an app in terms of business events rather than hooking into a database transaction log.

Still though, I think these are the sort of solutions needed to make distributed systems easier, even though there are lots of caveats :)
But the only thing SE has to offer is other people's content. And I don't have a problem with them making money, but with not sharing any with the people who are the reason the site gets money. They're not even middlemen who take a cut, they're getting 100% of the revenue.
Does Apple Music do the same?

If they do, I'm having a hard time figuring out where I'd see it. There are no ads on Apple Music, at all, AFAICT. So to answer your question directly, I'm going with "no".
Just trying to work out how they claim Tesla will be "flooded". The forecasted demand in the article is going to outstrip both China's increase and Tesla's increase by 2024, and China's major market for their increase will be domestic, per the article.

Current demand: ~75 Gigawatt Hours (GWh)
2021 demand: ~160 GWh
2022 demand: ~195 GWh
2024 demand: ~290 GWh

So the market will need an additional 85GWh by 2021, 110GWh by 2022, and 215GWh by 2024.

Tesla is adding 35GWh by 2018. China is adding 120GWh by 2021. 120 + 35 = 155GWh < 215GWh.

Seems like Tesla will be in a really good spot. They'll have a > 10% share of a highly in demand product and likely be seen as one of the premium/high quality options.
On the Usability of Deploying HTTPS [pdf]
I feel some of the criticisms for this feature are a little exaggerated. I mean comments like "Also my hair gets paler and my body grows weak thinking about using defer with named return values" are borderline silly. Opinions of named returns aside, they're really aren't that hard to follow. Or at least if your function is genuinely that complex that you have a physical reaction when trying to parse a function with a named return then I'd suggest that function needs more refactoring beyond the initial critique.

A few direct counterarguments:

* Named returns doesn't change the nature of the return statement. In fact you can still use return with locally scoped variables even with named returns (example below).

// This is only an example of overriding the default return.
// I'm not suggesting people write code like this!

func StrToBool(s string) (b bool) {
if s == "true" {
return true
}
return
}

* "often long nature of Go functions" is purely a developer style. I prefer the methodology of breaking functions down to small logical units. Sure sometimes the cleanest code is a long function. But most of the code I write and collaborate with is more around 20 lines or less.

At the end of the day named returns do provide some benefit eg when writing public APIs so other users can see - at a glance - what inputs and what returns a particular function takes. But like any feature in any language, a bad developer will easily find ways to abuse it.
These are some pretty huge improvements to what was previously the weakest link in Kafka's API: the Producer.

However, it's important to note that this can only provide you with exactly-once semantics provided that the state/result/output of your consumer is itself stored in Kafka (as is the case with Kafka Streams).

Once you have a consumer that, for example, makes non-idempotent updates to a database, there's the potential for duplication: if the consumer exits after updating the database, but before committing the Kafka offsets. Alternatively, it can lead to "message loss" if you use transactions on the database, and the application exits after the offsets were committed, but before the database transaction was committed.

The traditional solution to this problem is to provide your own offset storage for this consumer within the database itself, and update these offsets in the same transaction as the database modifications. However, I'm not certain that, combined with the new Producer API, this would provide exactly-once semantics.

Even if it doesn't, it's still a huge improvement, and significantly reduces the situations under which duplicate messages can be received.
A Point. We seem to make a lot of cost-benefit analyses for every decision make instead of just doing something because it's good to do. We living in the age of matured internet seemed to be only interested in contents that could help us make a point (Read: ROI) during a discussion or debate unlike people earlier just wanted to know something with no reason. Hence triviality didn't come as a filter.
This definition of TDD either supposes that it is possible to write software with zero bugs using TDD, or that your project ceases to be TDD as soon as a bug is discovered, or any other change is required. I propose this definition is not very useful.
This article posted here last year has some excellent tips in advancing your bash-fu, many have been mentioned here but has some extras as well:

http://samrowe.com/wordpress/advancing-in-the-bash-shell
You mean like the heckler's veto that saw yummyfajitas leave? Because if you see a heckler's veto in the treatment of feminism here and I saw the death of hope for US politics in dang telling Stucchio to shut up about controversial topics the moderation team has a hard job.
Yeah, I am quite freaked out about all the other "stuff" that I'd have to deal with especially given some horror stories around my area.
Simple Command Line Tools with Scala Native
That's a great question. At a certain point... yes. But I think that number is much higher than a few hundred thousand users. If you think about departure cities X destination cities X available dates and times X number of seats, the number is huge. I'm not saying it won't happen, but I think we have a long ways to go before we reach that level.
From what I know, if you want to rise a responsible and 'good' human being you should allow it to be good and responsible in the first place.
It means not controlling. Controlling someone is taking over someones responsibilities.
Controlling someone is making him (not, ir)responsible.
> religion : would you teach him your religion because that’s what you beleive to be true, or let him search and choose for himself, knowing that if hou had taught him he has more chances to grow up having your beliefs, and if not he might end up in hell according to what you believe.

It's a fallacy to even suppose that children can be raised in an ideological vacuum. Religion is morality, history, worldview, behavior, traditions, habits and more all wrapped up into one. Why would I want to deprive them of all that especially if it s a faith I subscribe my life and salvation to, even if it were possible? If it were possible, I would be a complete fraud myself, something that I would think would be setting a terrible example to my children.
Changing the language: Why “developer” applies to all of us not just programmers
They hired a "computer guy" for "data entry". The computer guy develops a system to facilitate data entry, which is exactly what he was hired to do.

It's not like he developed a cool iPhone game in his spare time, unrelated to his job. The work was directly job related.
> The main problem I heard with briandear's example is that people apparently didn't understand the coverage they had purchased.

While that's true, a part of the reason is the complexity of policies, and exclusions for situations which people consider "common sense" to be covered. Situations which are medium risk, but part of people's everyday lives.

For example, my travel insurance does not cover accidents which are "a result of drug or alcohol influence". My laptop loss insurance does not cover theft if it is "left unattended in a room with public access".

It might make sense to exclude getting high on unknown drugs in Thailand and stabbing yourself, or leaving your laptop on a truck stop cafe table while going to the toilet.

But at the same time, having a few beers while on holiday, and leaving your laptop on your desk at a startup office are both things which reasonable, responsible people still often do. And would not expect to invalidate their insurance cover.

Unfortunately nobody could explain to me the precise details of these clauses - what counts as a "result of" or "public access".