Better HN
topnewbestaskshowjobs
Log inSign up

wjmao88

137 karma · joined Jan 13, 2014 (12y ago) · 56 submissions

Submissions

comment 2y ago · link · parent

It is more like

A. light absorbed by solar panels that eventually turn into heat

B. light absorbed by the ground which pretty much all becomes heat

I'm pretty sure B is much greater than A.

comment 2y ago · link · parent

> They make the earth extremely hot as they absorb so much heat from the sun

What are you smoking? The sun is not sending more light to the places with solar panels. It just absorbs light that is already hitting earth. If anything it makes earth cooler as it absorbs light that would otherwise just hit the ground and make ground hotter.

comment 4y ago · link · parent

In the beginning everyone thought COVID is only droplet transmission and in that case regular masks work really well because it prevents someone carrying the virus from spreading dropdlets. It doesn't even have to be very tightly fitting because droplets will get attached to the fabric. Later there were some evidence that it can become aeresol in some high concentration situations like hospitals, but for all practical purposes in everyday life its droplet.

The problem is not that they are ineffective but that people followed them poorly. I've seen countless people wearing them super ineffectively like leaving their nose completely out, and many people when they wear surgical masks they don't bend the metal bar to fit to their nose and instead basically have like a canopy instead of a mask which of course doesn't do much.

comment 4y ago · link · parent

we could even have generated guid on the paper records that you can look up in a database to make sure your vote is being recorded correctly, without exposing any identifying information.

comment 4y ago · link · parent

"Tao" is an old translation with (I think) the Wade-Giles system, while "Dao" uses the correct consonant that matches the Mandarin pronounciation of that word.

comment 4y ago · link · parent

What are things that are OOP specific (as in not used at all in FP) other than inheritance?

comment 4y ago · link · parent

Its Conway's Law, Your code organization is a reflection of your engineering teams organization.

The number of repos you have should roughly be equal to how many autonomous engineering "groups" you can divide into that work largely independent of other groups. Anything a group touches should probably be in the same repo as everything else that the same group touches.

comment 4y ago · link · parent

If your whole file is semantically the default export, then why not?

There are advantages with default exports, e.g. you can name it at usage site the way you want without the `:` syntax. Also some things like `React.lazy` only works with default exports.

comment 4y ago · link · parent

<! is less than or not equal right? which is a strict subset of !=, since anything < by definition is !=

comment 4y ago · link · parent

I can see where you are coming from, but all the points you made are actually still relying on the mental health of a small group of indivduals. What prevents them from picking the cult of personality for personal gain over their public responsibility? Not to mention some of these people aren't even democratically elected. You don't need to look further than the current US republican support for Trump.

comment 4y ago · link · parent

I think any blanket policy that just apply the same rule to everybody is just lazy policy. A less lazy approach is provide the capability (through e.g. ISP or device manufacturer) to do so to parents/guardians and let them make the choice on an individual level.

Even for education, its much better to have options for home school or special needs school, than it is to just blanketly say all children must go to a regular school like every other child.

comment 4y ago · link · parent

I mean sure, you could blame cronyism for any ideology or systems because these ideologies were always presented, as the name implies, in an ideal situation. What is always important is the ability of that system to be fault tolerant in a not so ideal world, which is where capitalism fails and that is squarely on capitalism itself.

comment 5y ago · link · parent

Ironically, that article was written in a era where there weren't really boot camps, only CS Grads from actual universities, and in that article it specifically calls out many CS grads cannot code.

comment 5y ago · link · parent

Interestingly, Baidu had been selling moderator rights for boards on its Tieba (which is kind of the same as subreddits on reddit). It got lots of backlash especially after they sold mod rights for some cancer patient support group boards to, well, alternative medicine promoters.

comment 6y ago · link · parent

If the people who own the factories can make everything they want, then they have no incentive to expand their factories beyond what is necessary to give them what they want, and, unless their factories takes up all available resources, then what prevents other people from making their own factories? So everyone will just have enough factories to be self sufficient on their own.

However, there are two conditions for that to happen: 1. That there are enough resources to build factories for everyone 2. Everyone have access to the knowledge and means to create those factories.

The way I see it, space exploration is vital in guaranteeing the first condition, and having an open forum of knowledge sharing and research is needed guarantees the second condition.

comment 6y ago · link · parent

Data from unknown sources should just be thoroughly checked where they enter js land to make sure they conform to type expectations. If they are, then relying on static type checking from that point on should be fine.

comment 6y ago · link · parent

> React state is scoped to the outer-most box, that way it doesn't change on every render

The state (of the hooks) for individual components are still scoped to that component only, its just stored in the "outer-most box", and the structure corresponds to the component tree. If a component unmounts and remounts, the prior state is lost.

comment 6y ago · link · parent

This syntax might look like it require less magic, but you still have to implement everything react does for hooks that takes care of re-rendering cycles.

comment 6y ago · link · parent

I would say the issue with symbols is why I had trouble with linear algebra in college, specifically dot and cross products. The fact that they used the same symbols as scaler multiplication and are also called products confused my mind so much.

comment 6y ago · link · parent

This is more of a risk-reward trade off that comes with anything that is more performant but more sophisticated. The same can be said about guns, but obviously the reward of having a gun is vastly greater than the risk of it malfunctioning.

comment 6y ago · link · parent

I don't think that's the right question to ask. It should be "Would they be happier if the tax to fund UBI was not levied"

comment 6y ago · link · parent

Wouldn't you be able to job hunt while taking the furlough scheme money?

comment 6y ago · link · parent

So I don't really understand this after reading the explanations.

1. You claim to have explained the height of the sticks "later". Maybe you had it explained in one of the paragraphs, but I just don't see it.

2. In the diagram that is supposed to illustrate the left sweeping part, it has fancy windows and doors but doesn't have anything to explain why the lines are drawn that way. The home page animation also didn't give me any insight on how that part is supposed to work.

comment 6y ago · link · parent

So now any space station can claim to be "moon-sized fortress"

comment 6y ago · link · parent

And that is part of the reason many people also criticizes the tipping system in US/Canada. An arguably broken system from another industry doesn't make for a good comparison.

comment 6y ago · link · parent

but its not the physician who is actuall making the decision, its the policy makers that actually made the decision that if you meet certain criterias then certain actions will be taken. The physician is only there as an advisor to assess whether you meet those criterias.

comment 6y ago · link · parent

The supply system for Europa Universalis (which is part of what I referred to as "other Paradox titles") is actually very barebone, consisting almost entirely of "you can only keep a certain number of troops in a province without attrition", where the number of troops depends on terrain, friendly/enemy territory, etc. Hearts of Iron has actual supply chain management.

As for Civilization, I've always treated it as a battle chess game rather than an actual strategy simulation game.

comment 6y ago · link · parent

The scale/scope of most of the RTS games is that of a battle, not that of a war.

I remember there was an old game, Napolean 1813, that has some level of supply management in the form of needing to build a chain of supply stations in different cities to support nearby troops. The map of that game stretches from Paris to Eastern Europe.

Another game that has supply management is Hearts of Iron, where the map is the entire world. I mostly play other Paradox grand strategy titles, but people have jokingly called Hearts of Iron the "Best supply chain similator game"

comment 7y ago · link · parent

Can you give some examples of those "pure genius"s?

comment 7y ago · link · parent

Hi Dan, this is great and I really like this. But, I think what made me appreciate this is mostly your algebraic effects blog post. My issue with the examples in the reactjs doc pages is that it compares a naive and (intentionally)buggy implementation to a working implementation, so to evaluate the benefits I have to mentally fix the buggy version with existing react and compare that to the working version. It would be easier to see the difference if it could have a working implementation with current react to compare to the implementation with concurrent react.

Also, I'd love to read something about why throwing promises was chosen over other possibilities.

12