skysight-inc/HackerNews huggingface dataset:
Very brave for you to offer 5 free cards (or any for that matter) -- when postcrossers find out you may run out of money quickly :) postcard exchange if a fairly popular hobby.
That's specifically why we've created our new official Redux Toolkit package - to simplify the incidental complexity that is not actually part of Redux itself. Try it for yourself :

https://redux-toolkit.js.org
MobX does not get enough love and has been around for a while

https://mobx.js.org/README.html
I just bought a new MacBook Pro. I don’t like it but I couldn’t think of a better alternative. I like OSX, been very used to it. I worked at MS and still hate windows (the default track everything philosophy is a big deal breaker). Linux for the desktop may come next year.

I really wish Microsoft listened to its customers and stops the track everything crap.
> you have a few milliseconds to capture the image

Most retail cameras are quite laggy. Even a top-spec 'pro' Canon 1DX II costing $6000 has a shutter response lag of 36ms at best ( and 55ms normally )
> which lead to instability in the nations that were too gullible

It still happens today. I spoke to some Canadians who served in Afghanistan. They initially liked having some Americans on patrol with them. The Americans could call in better air power. But the Americans started burning all the marijuana plants, which the locals had only started growing growing because they knew the Americans had been burning poppy fields.
If you are in a situation where you can quit your job for a couple of months, do it! Find a new job while you dive into your project. Just did it and detailed it here:
https://www.towardssoftware.com
Volkswagen and Porsche are both owned by The Volkswagen Group,
which in turn is largely owned by the Porsche family, so I guess you are both right.

https://en.wikipedia.org/wiki/Volkswagen_Group
Most functional languages have immutable persistent data structures that don't require a linear copy and are fairly efficient.

For example in clojure, sequences are implemented as 32-ary tries so insert/delete/update to any particular index will only cost around sizeOfNode * numParents=32 * log_32(n). This comes with a cost that indexing is now log_32(n) but it's usually a fair price to pay.

In javascript, immutable.js implement these same ideas (as least according to these talks where they talk about index tries and hash array mapped tries: https://youtu.be/I7IdS-PbEgI?t=456)

If you want native support, javascript engines are actually free to swap out their implementation of arrays! I know they already do depending on whether they think your array is sparse("holey") or not: https://github.com/v8/v8/blob/8.1.81/src/builtins/builtins-a.... I also vaguely recall someone saying that unshift (push to front) is automatically optimized by switching to a deque/circular buffer but I might be remembering wrong. Anyway, they can make these optimizations in a distant future but I don't think do today.
Both the Turkey EV (TOGG) and the Vietnamese EV (VinFast) are prototype cars made by Pinafarina in Italy, I believe. They're not as fully homegrown as one might think.
Redux was such a mental overhead for me when I started out with it. The amount of boilerplate code that I had to write for the project I worked on was very frustrating. What helped me truly understand the concept was Elm.

These days I ask junior devs to learn Elm for a few days. We still use Redux, I will not choose it for new projects.
Context is a useful tool, but its only purpose is to make value accessible to deeply nested components. It's not even a state management tool - you have to manage whatever state you want to put into that context, by yourself.

The useState and useReducer hooks start to resemble Redux a bit more when used together with context, but they definitely do not replace Redux.

For more details, see these posts :

- https://daveceddia.com/context-api-vs-redux/

- https://www.simplethread.com/cant-replace-redux-with-hooks/

- https://staleclosures.dev/from-redux-to-hooks-case-study/

- https://medium.com/javascript-scene/do-react-hooks-replace-r...

- https://dev.to/chrisachard/can-you-replace-redux-with-react-...
The difference is that we now have a once-a-century fire every Friday.
Given that many data people run across is tabular, I appreciate your advice about the importance of statistics. Also kudos for mentioning hypothesis testing (no one in this thread mentioned it). Lastly, I’d add that ML practitioners will gain a lot by listening to statisticians and economists on the issue of data quality, e.g. selection bias.

That said, I am not as cynical about “machine learning.” ML and “data science” brought the importance of prediction front and center, i.e. can you fit a model that accurately predict the target value given a previously seen input? This point is made by the recently published stats textbook Computer Age Statistical Inference (Efron and Hastie).

In some applications, it may be beneficial to choose black box models with high predictive accuracy, as the goal for these applications is prediction, not interpreting individual model coefficients.
I was hoping it was carefully written enough to not be flagged. I think it's an important debate for the technology community to work through. I do recognize it's a sensitive issue especially (with the risk of racism if not handled carefully).

I hoped it would count as "evidence of some interesting new phenomenon", especially since the United Front Work Department (and the post-1989 patriotic education system) is rarely discussed. In contrast to the featured article, which by itself does not really meet the guidelines for being on-topic (especially since it similar articles have been posted the last few months). Alas.
Absolutely. For most projects it is more than enough. If you have a basic CRUD app with token authentication you can get away with using that. There has been better form support thanks to new libraries coming out recently so I don't see reason to learn redux is, as was pointed out by other commenters, very verbose and requires a lot of boilerplate code to get started.

The context API is baked in, no external lib required. If you can afford to update your react codebase to the latest version without major breaking changes I would totally migrate to the context API.
When I'm explaining these concepts, I find myself apologizing for the names, usually by stealing the quip "the math people got here first". Programmers usually take commonplace words and tack on an extra technical definition: list, string, class, object. Semigroup and catamorphism stand out as non-ideomatic names. If they had been called combiner and fold they might have seen more widespread use.
The only solutions suggested is thinly wailed communism...
Automate the Boring Stuff with Python (2015)
Please try out our new official Redux Toolkit package, which will help simplify your Redux logic considerably:

https://redux-toolkit.js.org
It's fine to acknowledge that politics and "playing the game" is inescapably important in modern industry. It is not fine to be comfortable with that, and it's very much to your credit that you're not. Don't try to suppress that feeling.

I believe it is both naive to ignore politics, and immoral to fullheartedly embrace them. You need to be wise enough to play the game, and self-aware enough to step outside of it when possible.

There's a moral aspect there -- the idea that power and organization shouldn't be tied to those kinds of petty, exclusionary games. But there's also a very practical aspect, because if you ever find yourself acting as a manager and making critical decisions, being able to look behind the game will allow you to make better, more pragmatic choices and to surround yourself with people who are actually productive and actually increase team cohesion -- not just who are popular or good at making flashy contributions.
>when people said something and I had learned before, instead of diminishing their statement by saying I knew that, I should say something like "wow that's cool"

Sure, "I know that" isn't great either, but hopefully there's some way of dealing with that situation (which happens constantly in everyday conversation) without lying like that. Seems like manipulating the other person to me, not treating them as a person just like you. Imagine the roles swapped. Would you want the other person to pretend and be condescending, or to be honest? Saying "Wow that's cool" when you don't at all mean it, an honest, real conversation can never get started.
Just for reference, you should know that the more-or-less minimum feature size for a biological structure is about 100 nm: https://en.wikipedia.org/wiki/DNA#/media/File:DNA_nanostruct...

that's only about 100x smaller than contemporary transistor features, so realistically there is a upper limit to the energy benefit of biocomputing structures which is about 10,000x, based on energy typically scales with size squared.
If you move over one country and look at The Netherlands, you’ll see a lot of the same things hold true there, yet Tesla (and other EVs) are wildly successful there. Key differences are EV tax breaks and excellent public charging infrastructure in a smaller, denser country making EV ownership practical and economic. The same people absolutely do drive EVs and use public transport, usually combined with some bicycle rides mixed in.
This is the correct progression IMHO. I can tell you’ve been in industry because it mimics my experiences.

Always start with a simple model and see how far you can get. Most of the improvements I’ve seen comes from “working the data” anyway. You will be surprised how much you can improve model performance just by working the data, or improving the quality of the underlying data alone. Also simple models give you a “baseline”. What is the point of reaching for neural networks if you don’t have a baseline performance metric to compare against? XGBoost is a godsend. It trains extremely quickly and is surprisingly difficult to beat in practice.

As you say, constantly sharpen your saw with regards to probability theory and mathematics in general. There is simply no way around this in the long run.
Agreed. I love stacking the months like that and turning it into a never-ending river of days, looks like it'd be easier to estimate the length of time between two different months.
https://www.bloomberg.com/news/features/2018-08-30/shenzhen-...

Shenzhen has a modern smart grid designed to accommodate EV charging. It seems likely that BYD and other Chinese EV makers will quickly take over the global vehicle industry. It is the end of an era for european car makers, killed off by environmental regulation and penalties, and EV subsidies
You can rebuild a 4 cylinder engine for under a $1000 dollars. Maybe half that in an area where labor is cheap. In 5 years, replacing a battery pack will still be 5x or 10x that.
Every single point in this comment is wrong and yet it is the highest voted comment here.

1) They didn't stop all R&D except how to cheat on emissions tests. They cheated on emissions tests but their R&D remains very high.

2) Both BMW (the i series) and Porsche have got excellent electric cars.

3) Tesla hadn't destroyed the German manufacturers. They are all profitable and sell more cars than Tesla

I'm a big Tesla fan, but there's no need to make stuff up. The German manufacturers have challenges, but they remain successful, innovative companies.
One section of this tutorial is 3.5 hours on how to make a basic clone of agar.io

https://www.udemy.com/course/socketio-with-websockets-the-de...

I'd suggest checking out similar types of tutorials -- clones of popular browser games, to see how different ones are built, and how to approach the various aspects of creating one.
> within a hair of (deservedly) being charged with a felony by the FBI. He basically said he did something stupid 10 years ago, had learned a lesson, made amends, etc

Was it a work-related alleged offense? If not, sounds a little extreme to not hire someone because of an allegation that happened 10 years ago that they weren't even charged with.
This is true, but not what I was responding to, which was parent post about replacement cost. The low maintenance is one of the main reasons I drive a BEV. But the high replacement costs is a major factor in why I lease it.
Depends on what you're doing. Scott Wlaschin did the best modern take on that here: https://fsharpforfunandprofit.com/posts/13-ways-of-looking-a.... It shows incrementally going from a purely (haha) procedural implementation all the way up to brain-exploding free monads, all doing essentially the same thing: a basic implementation of the old turtle game.

My take is you should know all these, and choose the appropriate level for what you're doing. You don't need to crank it up to 13 everywhere just because it's there. I spend most of my time (web apis, business logic) around level 7. If you dial the abstraction level too far up, not only does the code seem confusing, but it's also easy to paint yourself into an abstraction corner, where a new requirement comes in that breaks the abstraction, so you end up either tearing it down and rebuilding it completely, or building up a terrible "spaghetti abstraction" which is the worst kind of spaghetti. It's a bit ironic to think that abstractions are exactly what's supposed to prevent you from being painted into a corner, but it can happen easily. (https://www.sandimetz.com/blog/2016/1/20/the-wrong-abstracti... is a good reference).

When writing things like compilers, the abstraction level can comfortably go higher. In fact it should. It makes challenging logic far easier to reason about and more consistent to specify and implement when you can think about it mathematically. Other things like rules engines and such can live comfortably in between the two. Conversely when writing timing-critical device code then the appropriate level of abstraction is much lower. A good reference for this style is the k8s PV code. Note the comments starting on line 55 (tldr: DO NOT SIMPLIFY THIS CODE) https://github.com/kubernetes/kubernetes/blob/ec2e767e593953...

So as developers we have to determine what the appropriate level of abstraction should be for our use cases. In fact I'd offer that's one of the most important parts of software design. But it's important to know all of them so we can choose accordingly.
I still know people who love Instagram or WhatsApp but they hate Facebook. Little do they know both apps are owned by Facebook, and that's the problem Facebook keeps acquiring their threats, their competitors that's monopoly and seriously they're dangerous. Many people still don't know YouTube is owned by Google. This is a problem!
Yes, I came across this while browsing theoldreader.com/

I have way too many feeds that I don't really read, but I subscribe to.
No 17, see a therapist. Who would have thought?
Not a holy cow, but simplistic "capitalism is bad" arguments are done to death and teach us nothing new.

From the guidelines:

Eschew flamebait. Don't introduce flamewar topics unless you have something genuinely new to say. Avoid unrelated controversies and generic tangents.

If you had anything new to say about the topic, that could teach people new things and lead to interesting and productive discussions, you could expect a much better reaction.
The thing that gets me is electricity is EVERYWHERE in the developed world.

There are already libraries and other public places that slap a couple of EV chargers in the parking lot.

This was never feasible with gasoline.

It seems that when EV's are common enough, we may reach a tipping point where EV chargers are as ubiquitous as parking meters and free/paid wifi at current business establishments.

Today, a cafe almost can't stay in business without offering WiFi and laptop chargers.

The same may happen with EV charging.

Also, once EV battery capacity doubles (not far-fetched) the density of chargers will become even less important.

And, at that point, ICE cars will be at a staggering disadvantage to EV's, because it easier to put a paid charger in every parking space than it is to expand the ubiquity of gas stations.

And it's also harder to boost the range of ICE vehicles.
there is bipartisan support for defending the trade deficit through military expansion, so there is no political will to be gained by drawing attention to this. there is a lot of discussion of this on macro econ podcasts.
> German automakers not only stopped their R&D to develop the next generation of cars.

https://www.statista.com/statistics/346985/research-and-deve...
Why does Nissan have a battery pack replacement program if they never need to be replaced?

https://electrek.co/2018/03/26/nissan-leaf-battery-pack-repl...
Eh? And now compare with a Honda Civic or a Toyota Camry. Even among just the higher end those three are not nearly as big in market share as they are in Germany - in the US they are just one more model to compete, in Germany they own most of that market.So it does not exactly tell us much if Tesla sold more there. So in sum, I don't see how you are refuting the parent commenter.
As part of the exact employment contract, a researcher's work may be patented by the institute they work for (with the researcher being remunerated for this).

Biomedical patents are not trivial software patents. Billions of dollars of investment goes into developing a single new therapy. The molecular structure of medicine can often be easily replicated once discovered, so patents are a key part of commercializing new medicine and techniques. (See the CRISPR-Cas9 patent debacle.) Taking the right to patent some work away from the institute it was developed at means theft of the licensing fees derived from the patent, and an impact on an institute's ability to keep funding R&D.
No, I used them professionally for years, and still do for Windows development. What's your point?
Education has always been my top priority
UBI is just an excuse to do the real fix, and that's tax the wealthy and the corporations their fair share.

It's ridiculous my tax rate is over 30% while wealthy people has it at 15%, and Amazon has it at 0%. That's the real problem! Yang wants to give people #1kBro so they can shut up about the real issue here is tax fairness.
I found the philosophy communicated by mobx-state-tree to be a lot clearer than redux (particularly stuff around patches, snapshots and async flows): https://mobx-state-tree.js.org/intro/philosophy
Paywall - what’s your point?
Ask HN: Have you found success and a good work life balance?
It seems that people need to sacrifice life outside of work to make it in the software industry. Has anyone made it and maintained a healthy work life balance?
Free VPN Applications for 2020
While not German I need to highlight the fact that in Germany power generation relies much less to fossil and nuclear than in the US, roughly 1/3 less (~30% compared to ~82%, see links below)
That makes Germany a bit more advanced on the generation part but also more expensive - without going into the nuclear debate here. So it is not apples to apples comparison at the end of the day

https://www.eia.gov/tools/faqs/faq.php?id=427&t=3
https://www.cleanenergywire.org/factsheets/germanys-energy-c...
Glowing red?

As an Amateur Blacksmith (and lifetime member of the Blacksmiths Guild of the Potomac), I was taught that color meant you were hitting 500-600 degrees Fahrenheit, which is usually about the lowest temperature you normally want to have when working on a piece of metal.

If you’re hitting those kinds of temperatures, I’d think you would need some substantial work done on the thermo electric components to keep them from melting, much less being able to operate.

Or am I missing something obvious here?
One of my normal rounds - hope he's in it for 10 more!
AT&T makes changes in response to activist investor push
It's a stats set of Daimler R&D spending from 2011 to 2018 (no paywall with a Google referrer, sorry). It's about doubled in the time, and that looks about the same for the other big ones, I think, certainly some googling on BMW R&D etc. would suggest so.

Personally, I don't think emissions test cheating takes your R&D from 3 bn. to 7 bn, so the parent's comment seems to be oversimplifying or wrong.
You could try reading Deborah Tannen's classic You Just Don't Understand. I used to recommend it to everyone in a relationship I met! It's about different communication styles of men and women (and a lot more). Her previous book That's Not What I Meant! was about different communication styles of different cultures, but everyone was so interested in the gender chapter she wrote a great book about that. Epic insights on every page.
Did you read the whole thing?
George Church has put his name on a ton of questionable ventures over the past 5 years.

People in the know in biotech double check any deal with his name on it.
"VW e-Up!"

Oh dear, that name doesn't translate well into British English. Sounds like it's made in Yorkshire..
> The Germany car industry should have seen the writing on the wall

But that does not change anything!

The point is less workers will be needed. What difference does it make to "see the writing on the wall"? I don't even see any reason to look into the claim itself - it's completely irrelevant. Even if they adapt perfectly and Germany becomes a happy 100% electrical-car country, we will lose a lot of employment in the car industry.
tbqh that's a lot less readable and a lot less intuitive
Check out Svelte. Essentially reactivity baked into the compiler so you don't have to use observables everywhere.
Tokei [1] provides interesting stats as well.

[1] https://github.com/XAMPPRocky/tokei
I wasn't trying to make a special significance by looking back exactly four years -- I picked 2016 as a starting point because I felt that it gave enough context to show that the big drop in December 2018 was a little blip in what is actually a huge uptrend.
Adaptive Web Applications with React and Redux
Good idea. How about a flat tax with no loopholes? Seems fair to me.
Dunno. Perhaps there’s more functionality than the core but all it is is a plain JavaScript object that you “update” that you can access from different parts of your app.

It really isn’t that complicated.
Why Blockchain Is Changing Banking
The point is when the military picks all its own leaders, it winds up with the sort of leaders & develops the sort of culture that leads to the military conducting a coup against the normal government which it was supposed to be subject to.
No, that's just making excuses. The Audi e-tron is in no way aimed at the same segment as the Model 3.

The Audi e-tron and the Jaguar I-Pace both outsell the Model X and the Model S in Europe. The e-tron and the I-Pace are doing well for what they are: expensive luxury vehicles.
or Rematch.

http://rematch.github.io/
Moral relativism isn't a great argument to make - it's like saying it's ok to nuke Nagasaki and Hiroshima because Japanese did horrific things at Nanking. If the case was laughably weak, it would have been laughed off.

The problem is that if the super rich and powerful are allowed to blatantly show their middle finger to the law and profit, it creates distrust in government which historically resolves through revolution or nowadays in more peaceful countries resolves through election of unsavoury leaders to positions of power.

Doing a runner will probably irrevocably lose him a lot of popular support from people willing to give him the benefit of doubt no matter what PR dog and pony show he puts up. So looks like he's going to be in Lebanon for the next decade.
I can assure you the secret sauce in "exploiting" tax law is almost never in choosing one thing or another during filing (there should only be one optimal answer once the facts are already created), but in tax planning. The tax software even hints at that. Paying for tax filing itself is basically a low-level scam.