skysight-inc/HackerNews huggingface dataset:
> doesn't shoehorn OOP into an FP approach to UI

Functional UI is still need some sort of imperative shell [1] to manage state. You can use OOP and Remold just for "reactive" behaviour, and implement all state transitions inside object in a functional way. For example:

// Pure function
const addProduct = (order, product) => ({
total: order.total + product.price,
});

// Imperative state
class Order extends Remold {
state = {
total: 0
};

@act setState(newState) { this.state = newState; }

addProduct(p) { this.setState(addProduct(this.state, p)); }
}

> What are the advantages of this solution over features already in React (no need of Redux) such as context and the reduce hook?

From the React Documentation about Context feature [2]:

> Apply it sparingly because it makes component reuse more difficult.

With Remold you don't have any problems with component's reusability. You just attach pure component to an object and "connect" object's state into component's props:

// Pure component
const OrderWidget = ({ total }) => <div class="widget">{total}</div>;

// Pure function
const addProduct = (order, product) => ({
total: order.total + product.price,
});

// Imperative state
class Order extends Remold {
state = {
total: 0
};

@act setState(newState) { this.state = newState; }

addProduct(p) { this.setState(addProduct(this.state, p)); }

@mold(OrderWidget) asWidget() { return { total: this.state.total }; }
}

[1] https://www.destroyallsoftware.com/talks/boundaries

[2] https://reactjs.org/docs/context.html?no-cache=1#before-you-...
I'm not sure how that changes the understanding of the problem - no, they aren't guaranteed to profit forever (who is?). If the argument is "it's reasonable to abuse your employees unless you literally can't possibly ever run into financial trouble", it's a bad argument.
I totally agree with this. This culture of being expected to be present at work simply to pretend like you're working more needs to end immediately in every work place. It's just plain toxic.
http://www.indonesiamatters.com/wp-content/uploads/slum-home...

This is what poverty looks in Indonesia. If you’ve never visited the developing world it’s hard to comprehend what real poverty is.

You’re not getting a one bedroom apartment in indonesia on minimum wage. You get a mat in a slum.
Show HN: Lorem Picsum – Lorem Ipsum but for photos
If your wifi connection is MITMed, your adversary could MITM all the connections, even if you make hundreds.

If you have trouble imagining a user taking their wifi lightbulb to a coffee shop, imagine instead you're a device vendor and a customer is trying to MITM their own device to embarrass you in a Defcon presentation...
Reactjs-Popup (3kb)–React Popup, Modals, Tooltips and Menus – All in One
The only thing keeping Hong Kong's sovereignty (such as it is) is Taiwan. There is some understanding on the Chinese side that a full annexation of the territory would strengthen independence hardliners in Taiwan - which is the real prize because Taiwan is absolutely critical for Chinese national defense. If it wasn't for that, Hong Kong would have been wholly annexed by now.
Been experimenting using this to run legacy software and while it seems to work great with command line tools, as soon as you progress onto gui stuff you quickly run into missing functions and libs.

Still insanely cool though.
> A series of increasingly more dangerous traps should make sure only advanced people can access it. Death is a language all understand.

Congratulations, you've now made it appear that what the traps are guarding is valuable and worth the risk to get to.
Yes, I'm even close friends with a few. You know like you know in any other context. People usually tell you and show you. I've made many friends at work over the years.

The thing is, you have to care about people for them to like you. Be genuine with them, be there for them and don't be a dick. Have integrity. Allow them to know that you're a human being that makes mistakes, that you're imperfect and that's fine and you're comfortable with that in you (and others).

Ask for help when you need it, and offer it when you have it. Specially around things people really care about.

Also, and this is the hard part, work on yourself, on your self-esteem, on being better at dealing with your own emotional state. This transfer to others too and makes all the other stuff come easier.
Timex Is Making Watches in America Again
With the rapid pace of technological advancement, I think adult education will become increasingly important as labor needs evolve, although online courses are probably a better route for adults. Seems like there would be significant logistical and security issues associated with using facilities currently configured for small children (for example, furniture size, possible overlap of adult/child presence).
I don't know how people hired and paid by the government in place are automatically less suspicious than volunteers who just want to help the community. Yes, I have the opposite bias :)

In France the counting process is open and anyone can observe it and report any irregularity. Also the way it is done, you have to have a conspiracy of a least 6 people if you want to meddle the result.

In practice, I've observed that rather than fanatics, volunteers are usually mild people who are just doing the work as a nice sunday activity who doubles as a democratic tradition. They are the same people you see picking up trash or doing other menial work for the community. Of course, my sampling rate is quite low, so take that as a grain of salt.
The point about both helping create the race to the bottom and also catering to those it leaves behind is, I think, an important and often overlooked one.

It's why Walmart is beloved in many of the small southern towns where I grew up. Sure it relentlessly exploited poor people elsewhere, but when you're poor yourself you can't help but be grateful for its low prices. And the belief that finally, finally someone is giving you the good end of that deal is terribly reassuring-- like maybe, for once, someone has your back.

This, of course, quickly assumes a political dimension. At the time conservatives (many of whom now back Trumpian protections, how times change) railed against the so-called "latte liberals" who supposedly fought Walmart from the comfort of their Mercedes-- not that anyone knew one of them personally, of course. And we, the rank and file, ate it up: we needed our cheap shoes, our cheap food, etc.

Now, as a liberal, when I hear people advocating for the breakup of Amazon or Google, I can't help but think back to how I would have felt about that when I was poorer, and when I didn't have the option of simply paying more for a better cause. I think I would have fought quite hard to keep my costs low, possibly to the point of voting against many of my other interests or beliefs. And especially in this era of polarization and high-stakes politics, I'm not sure it's a good idea to bet on people in general viewing that differently.
Yes, and who on earth says "cheerio, pip pip"? "Toodle pip" or "cheerio" or "pip pip" are acceptable.

Those PhD theses seem a little misguided (if well meaning) to me. Language is riddled with ambiguity - "panda eats shoots and leaves" for example. Despite that ambiguity we generally manage to get along. Teaching critical thinking in general might be a better idea than fixating on specific issues.
What makes you think that everyone has this mythical willpower? Is it the same belief as belief in rational market actors, or that eveyone makes decisions after carefully considering all of the concequences?

Face it, humans (you, me, bigshot CEOs) all act primarily based on simple emotional wants and desires, most of the time. I can guarantee you that there are a great deal of CEOs, maybe even some of whom you look up to, that spend too much time on facebook/linkedin/playing golf etc, know it, and yet do nothing about it.
> For example, let's say that I'm writing some cross-platform open source software

> OK, so now how do I compile/run/test the Mac version of my software -- without having that Mac?

You don't. Darling is not a suitable replacement for testing on a real Mac in exactly the same way WINE is not a suitable replacement for testing Windows software. A developer who thinks so is misguided.

Virtualising macOS would be more suitable, although the only way to do so without violating macOS' licence conditions is to run the virtualised OS on a Mac anyway. Even then, virtualised macOS lacks hardware accelerated graphics support, limiting the testing of GUI apps at least.

> Apple shouldn't sue you

There's no reason they would. Nothing of Apple's seems to be infringed, as the system seems only capable of running anything that Apple's open source Darwin OS can.

Even if the Darling project reimplemented some of Apple's proprietary frameworks, this could be done based on Apple's open source releases of things such as Core Foundation, etc. The reimplementations of things like AppKit, when done in the future, could even possibly be based on something like GNUstep — which would give that project a well-needed shot in the arm, to say the least.

> additional software for their platform ultimately benefits their platform

Firstly, any well-written cross-platform software is easily ported to macOS. This is most evident with software intended for FreeBSD but is equally possible with software that originates on Linux; see Homebrew, MacPorts, etc. for the plethora of utilities that began life on Linux but have since become cross-platform, or software made by GNU that is typically cross-platform by design.

Secondly, Apple has been down the cross-platform road before, and none of its developers wanted a bar of it. Apps that are developed on other systems but not tested properly on macOS are always heavily criticised by macOS users as feeling foreign and un-Mac-like.

Back when Mac OS X was shiny and new, Apple offered three major platforms for developers: Cocoa, their C and Objective-C APIs inherited from NeXTSTEP; Carbon, their C and C++ APIs inherited from Classic Mac OS; and Java, a cross-platform offering to entice developers from other platforms, particularly Linux.

Apple deprecated their own Java in 2010 because (A) people really disliked using Java apps, even though Apple's implementation of the JVM was performant and had native support for Cocoa-style controls and (B) nobody was using it, with major preference going to Apple's own Cocoa and Carbon APIs.

Apple, and its userbase, prefer apps that are made with love and care _on_ Macs and _for_ Macs/iOS devices/Apple Watches/Apple TVs, respecting those platform conventions by being developed and tested on them.
Gatwick Airport flights diverted to Stansted after drone 'near miss'
> I don't think we should be ticketed for speeding.

I don't either, but current speeding laws allow cops to do so.

> I do think that we should be ticketed for "hazardous driving" (weaving in and out of cars, cutting people off, and other things that directly lead to wrecks), failure to stop at signs and lights, failure to yield when other cars present.*

I don't think we should be ticketed for any of these things, if they do not cause an accident. But if you are in an accident and it is found that you did any of these things, they should be valid factors to consider in assigning responsibility.

> There also have been many times in which I have driven significantly under the posted limit because the conditions severely prevented it.

Yes, I agree. In other words, you, exercising your judgment, have a much better knowledge of what is actually a safe speed than the lawmakers and bureaucrats that determined what went on the posted speed limit sign.
I work with suicidal physicists and programmers. We're all women. The men aren't doing great either but that's because they're expected to succeed and are given a disproportionate amount of work. We're expected to fail, left out of meetings relevant to our duties, and wither into obscurity with the excuse "well I asked everybody" time and again, forgotten and excluded.

But everybody has good intentions. God forbid I forget that
Now there is a regrade system that lets you ask for more partial credit if you feel that the autograder was too harsh. That being said, its still relatively easy to get a lot of points off for a small mistake :(. You definitely have to be really careful during 213 exams but thankfully there's plenty of time to redo all the questions 2 or 3 times.
So it's a reference, not a pedagogical tool then?

A reference implies you already know the topic and just want an index to jog your memory for things you can't hold all in your head at once.

That is different than a pedagogical tool. If so, you shouldn't recommend it to those want to learn the topic.
One Canadian Doctor Kept Thalidomide’s Harm from America
So you’re going to run 5 $50K side projects by yourself, including maintenance, support, marketing, feature addition etc?
The built-in module cgitb does this.
Nuxt: The Hard Parts
If this 1MB free hosting ever became popular enough it'd be just as bad as all the other centralized sites.

This reads as condemning someone because of the actions of others. Like if I said to you: If I hire you, you'll just steal my source code like Levandowski did when he was at Google.

I don't think anyone would appreciate the second statement.. but you seem eager to condemn the motivations of this project without learning a single thing about the founder and his ethics or motivations.
I don't know what the best approach is. I would like to think that downplaying gender helps, but minorities find it hard to find good role models, people "like them" that they can identify with, etc. Actively downplaying gender and officially excluding gender signaling in headlines seems to make it all the harder for women to find things they can relate to.

I honestly don't know what the best path forward is. I do know that excess criticism of minority signals often actively shits all over expressions of pride and attempts to connect while nominally pretending to be righteous indignation on the part of mistreated underdogs.
Internet Explorer is a compatibility solution. It is there to run the old stuff. It is still kept secure but it is not getting any new features, there is Edge for that.

The statistics you quote are meaningless. Go to another statistics provider and you will get different stats again. Include mobile and Safari suddenly becomes rather major.

Supporting a depreciated browser is not the way to go. This has to be understood, the methodology of where the stats comes from is also mysterious, given how much of he internet is click fraud bots who knows what is what?
I can compare drivers running red lights to cyclists running red lights based on my experience. I don't believe there's any hard data on this.

From what I can tell, drivers tend to run red lights either because the light just changed and they couldn't stop in time or because they're distracted. In contrast, cyclists who run red lights tend to wait for traffic to clear. I didn't realize the difference until I tried talking to cyclists who run red lights (not recommended by the way; they tend to be jerks). So in that sense the two are not comparable.

Plus, as bikes tend to weigh less and travel less fast than cars, the potential for harm for a cyclist running a red light is greatly reduced compared against a driver running a red light.

Here are some helmet cam videos that I took that show red light running drivers:

https://www.youtube.com/watch?v=TTv_3D-1ehA

https://www.youtube.com/watch?v=JispW0pTQGA

After the first video, I saw that the driver stopped nearby, so I went to speak with them. They admitted they were distracted. I have no idea what happened in the second video. If I were not paying attention in both cases I would not be writing this post now. In contrast, if a cyclist did the same then I'd probably be here.

That's not to say that all cyclists who run red lights look carefully. Here's a helmet cam video that I took which shows a cyclist brazenly running a red light in a way that I think is particularly dangerous:

https://www.youtube.com/watch?v=mHRA4060C-k

And here's a more recent video of mine showing a Bird scooter rider running a red light:

https://drive.google.com/open?id=19Bl1ZhMvxbLliIyNkNe_Aj3QWD...

(Apologies for the language.)

This last one was probably the most dangerous time someone ran a red light that I've personally seen. I was wearing a high-viz jacket at the time and find it hard to believe they would not see me if they looked. They might have been blinded by the sun.

As for speeding being safer, sure, that's true sometimes, but what's the net effect? Just focusing on the good isn't representative.

I also sometimes see people bring the time saved from speeding into consideration, but in my experience speeding doesn't save much time unless you're on the highway. If you're in a more densely populated area with traffic lights, your speed is more limited by the traffic lights than anything else. I know this as a cyclist because it's not uncommon for me to see the same people at each light during my commute. The effective traffic speed is doable for a cyclist. Speeding won't get you there faster.
Isn't the reason we don't have these cheap fusion projects because they don't produce usable fusion? Otherwise why would ITER have cost $20B?
Is your point of contention the "your code review/acceptance test." as the only time investment?
Have looked at it. It provides more negatives than pluses. Waiting months or years for someone to review every curriculum change would completely kill us.
Top Vue Admin Templates
I know it is reification but most companies end in banrkruptcy.

In all seriousness I have noticed that "business value tunnel vision" is one of the surest ways to run a company into the ground in many if not most fields and Wall Street keeps pushing it anyway to nobody's benefit. The fundamentals of the field are what you have to care about or else you will have a really bad time.
Yes, you could. You'd probably receive a ban instantly, not have people engaging with you and upvoting you. You'd certainly not be able to do that for weeks (since some of these I've opened at random still post in t_d).

I don't know who you're trying to fool by claiming this shit isn't common on t_d, but you're not fooling anyone.
If you just list off random things every period in history can be a dystopia
One could argue that they are economically fascist. Semi free market with industries that answer to the state.
> I've argued before with my leadership that, if we really wanted something done better/faster, we shouldn't be promoting the folks that did it out of the position for the next go around

This is similar to what Fred Brooks suggests in the "Surgical Team" chapter of "Mythical Man Month", although he's a bit harsh, I'll grant that:

> if a 200-man project has 25 managers who are the most competent and experienced programmers, fire the 175 troops and put the managers back to programming.

EDIT: We were also talking about it yesterday here at HN: https://news.ycombinator.com/item?id=19763562
Nice work, looks awesome! Curious whether you could use this to upload files directly to google cloud storage without having a server in the middle?
So what do you do if you only get lukewarm 'yes'? Wait forever?
A few years ago, the company I worked at was switching from offices to an 'open floor plan', and the noise and anxiety dropped my productivity to near zero, so I tendered my resignation. It was the longest I'd ever held a job (and still is), so I didn't enjoy leaving, but I had no choice.

My coworkers held a little going-away party for me, and gave me a custom trophy they'd had made with my (IRC) name on it -- just for being me.

So I feel confident in saying that, back when I worked in software, my coworkers enjoyed my presence, and management put up with me.
Wonder what would happen if you send a letter back to the current state comptroller. That sounds pretty awful, but wow, it eventually just magically goes to the state somehow. That sounds just as odd as it disappearing, especially since it's been "frozen" for years, one could say gaining interest for money that's not their own.
Everyone who's interpreting this in the context of full-time work / the traditional notion of "10x programmer" (i.e. ~every toplevel commenter) should read the abstract:

> A "hero" project is one where 80% or more of the contributions are made by the 20% of the developers... We identify the heroes developer communities in 1100+ open source GitHub projects.

(emphasis mine)

Of course nearly every Github project is going to have heroes--we call them "maintainers." This study is totally unsurprising and totally non-generalizable to professional teams working on proprietary software.

The use of the term "heroes" in the abstract is massively misleading and tendentious, IMO.
Even ten years ago, I doubt it was an unpaid internship. They weren’t common in tech going all the way back to dotcom. And if it was a paid internship, labor law doesn’t care. As far as it’s concerned that’s a job like any other.
The section on linear algebra moves quickly. I don't see how a book including extra prerequisite material is an example of it being half-baked or rushed. Surely that would actually be an example of the opposite? That section is a nice reference to have immediately available for things like SVD and PCA.
Especially for MacOs, where you can expect apps to stop working after a new new major OS versions, this is really nice. Meanwhile, Microsoft maintains an amazing degree of compatibility. I haven't tried, but I have a feeling Office 97 works in Windows 10.
Right, but Let's Encrypt certificates are only valid for 90 days. And there's loads of electronics in the world that's been powered off for more than 90 days :)
And that's fine. I think I lean toward your reasoning, more or less. Though what I WANT to do is take concerns about consolidated media seriously while also undercutting the free-speech argument that seems backward-engineered specifically just to defend trolling.

If we can all agree (not that we should, but if we DID agree) that there are platforms that are de-facto public spaces, and we want to take away their ability to moderate the way they currently do, then let's work to make them actual public utilties/spaces/whatevers, so that the standards they are subjected to are formalized and not pushed and pulled by weird momentary energies of this or that internet controversy.

Or work to decentralize them, again, so that the issue of how moderation happens isn't just attached to this weirdly specific cultural moment where it's hard to figure out the sincerity of the motivations.

Or just reject the whole argument outright.
This looks really cool! It seems like it's just what I've been looking for lately, without realizing it. Will look more into this when I get back from vacation. Thanks for sharing and showing.
That line of reasoning sounds backwards.

The benefits would be clean, limitless energy and why is it likely that it will have a high capital cost and why wouldn't that be dwarfed by the availability of clean, limitless energy?

Claiming that somehow storage for renewables is a much more useful goal sounds more like ideology than anything.

Take the money currently going into solar and wind and put it to use there instead.

Solar and wind will never provide anything even close to what is needed for the energy needs of future generations or for any kind of progress in ex space exploration.
I was left out of important meetings, asked questions that no one answered and would get in trouble for not knowing something from a meeting I wasn’t invited to. Super fun.
What a fucking moron.
Adam Langley's Roughtime protocol[1] largely solves some (but not all types) of time malfeasance, and a variant of it is already an IETF draft specification[2]. There is also NTS, which is secure NTP and provides some protections, but not nearly as many.

[1]: https://roughtime.googlesource.com/roughtime/

[2]: https://tools.ietf.org/html/draft-roughtime-aanchal-01