skysight-inc/HackerNews huggingface dataset:
Similarly: over time almost every boolean becomes an enum. I'm a bit surprised the article doesn't mention enum parameters as a possible alternative to booleans.

In this example the call-site could instead look like `getUserMessages(userId, MessageStyle.SUMMARY)`. Naming the enum is always harder than naming the boolean but that's kinda the point.
It depends entirely on how much inertia there is on the shaft, in various forms. The example I was told about was a 200MW peltier, constructed such that rotating it backwards implies pushing back against the water. The shaft itself also had some sort of extra equipment on it, but I'm not sure of the details.

Well, when it was connected about 30 degrees out of phase, the entire unit pretty much exploded. It tore out of the concrete base, and was found to have rotated nearly halfway to the "correct" position.

I haven't seen anything nearly that dramatic myself, so I can't be sure how much it's exaggerated. There's probably a report somewhere.

And I love that party trick. There's no direct equivalence in DC transmission, of course, but I've done similar things with voltage-matching in Electrical Age. It always amazes me how much that game ends up reflecting reality.
Nope, Facebook was stolen by one person though.
>Agreed that they should show an interest before you embark on this. Finding joy in general education is more important than job skills for that age.

Thank you for including this in your comment. So many people are trying to force programming down kids' throats when the child may not even have an interest in it.

Programming is the future! Everyone needs to know how to code! Nearly everyone can write some piece of code for use in their every day life to make it easier! I disagree. Code is good for kids who have an interest in it, because after so many months of not doing it, the kids that didn't refresh the knowledge will be nearly at square one.
Another option is to use an enum, so it looks like getUserMessage(userId, MessageResultOption.FullMeesage). Even if there's only two options, it's more readable than a boolean.

I'd question this specific case in a different way, though: summary vs detail sounds like different object types, which means different return types and so there should be two different methods (eg: getUserMessageSummaries(userId) and getUserMessageDetail(userId) ). It's perhaps a bit more work up front, but when consuming this you don't end up with a bunch of properties that may or may not be null depending on how you called this (instead, they're just not there on the summary response), and in a typed language it will simply fail to compile (making your mistake very obvious).
I agree with the sibling, _this_ is also bad advice.

It really depends on the use case. For example:

* If date is used as a "low precision timestamp", then I'd advise to use full timestamp+tz and extract the date in presentation after applying tz adjustments.

* Sometimes date represents a sort of a fiscal date, which refers to a time period that captures business hours in a certain location. There it is a bit trickier, but slamming a tz on it is not an answer.

As for timestamps, stick to UTC if you can, but in any case keep TZ explicit. There are two many middlewares there that would be happy to assume a tz for you and give you hell.
Also:

• Matlab and MS Excel experience is a plus.

The req has been open since July of last year.
> Until India is able to reduce their population by 50% or more, their water shortages will continue to worsen.

you seem to be getting into full blown thanos mode here, probably you have seen this work somewhere before? can you please share?
The Secret Guide To Virualization Obfuscation In JavaScript
This is not a good article.

- It does not contain the actual ad (only quotes: “self-charging” “hybrid electric Corolla”). Unless the article it links contains the ad, in which case why is this a duplicate of that article?

- Most of it is just attacking hybrids and talking about why EV is superior (which isn't relevant to Toyota's ad, the supposed topic of the article). Spending half the article reminding us that a gas hybrid electric uses gas isn't constructive/informative/helpful.

- Continues this trend of using the Prius's sales figures to show EV's superiority. While ignoring that Toyota themselves expanded hybrids to well beyond the Prius product line: Hybrid Rav4, Hybrid Highlander, Hybrid Corolla, Hybrid Camry, Hybrid Avalon, Hybrid Mirai. None of which are a "Prius." It also ignores that the car industry has also adopted hybrid technology, providing much greater competition in the space (and the shift from small vehicles like the Prius to SUVs, which are also now available as hybrids, even up to Hybrid Minivans and soon Trucks).

- Toyota has been pushing hybrid vehicles longer and further than anyone else. These vehicles have had a positive environmental impact (higher MpG, lower emissions, etc). This results in lower gas consumption.

"electrek" has always been an unapologetic Tesla advertising/propaganda wing. I don't know why people post it here. The actual quality of writing, research, and journalistic integrity remains extremely low.
If your application is future-dating items, like say clients entering appointments in a calendar, this will be very wrong. If a customer enters an appointment 6 months in the future, it will end up at the wrong time due to daylight savings time.

UTC is great for timestamps (when did this event happen) but not good for user-entered dates. You throw away useful information if you store in UTC.
I am fully aware of this, that's why I'm waiting until I own a home to get one. I have two kids.
Maybe I'm an idiot and don't understand the marketing lingo but what exactly is the use-case for this? Why among all of the tech companies is Facebook the one to create a crypto currency?

What do they plan on doing with this?
I would never ever ever ever trust PayPal, Spotify, Mastercard and the likes to manage my money.

It simply sounds like lots and lots and lots of happy little "accidents" and "bugs" waiting to happen for political opponents as they lose their livelihoods. The people who came up with the whole "Manifest Observable Behavior" and random "Suspended for Breach of Community Standards" violations have no place around anyone's money.

It's not even related to protecting a specific political ideology, we can see daily how these companies treat users regardless of any specific belief or opinion on politics. I would rather not get / see anyone deplatformed from owning money should something like this become big.
>They (especially JS) have a lot of weird design decisions that don't translate to other languages and don't map neatly onto problem spaces.

As someone who started with JS, I feel like this is a valid point, but also ... not really a big hurdle to overcome later down the line.

It's one of those things that is really apparent when comparing languages, but I'm not sure matters as far as learning goes. No doubt someone has run into someone who can't do anything outside JS, but I'm not sure that is all that common.

I feel like if you're at all capable, it's almost no hurdle, and the benefits of being easy to start, can do some front and back end work, are pretty big.
Timezone data should always be the actual timezone, not the offset. Offsets don't take into account the political nature of time. For example, in Europe in 2021, countries will cease to use daylight savings, changing their time offsets permanently.
Your comment does not even deserve thoughtful responses in my opinion. You are clearly uneducated on the subject and it's your responsibility, not ours, to fix that should you choose to.
Here Are Some of the Most Interesting YouTube Live Channels
Toyota, and several other manufacturers, have focused on hydrogen. It seemed as the perfect solution by offerings similar car cost and ranges. Prior to Tesla making even high end electric cars was theoretical. Even now battery powered cars do not have an obvious path to hitting 15k USD and 600km range. The weight to battery ratio is improving bit by bit, but not as fast as cost is improving.

Personaly the chance to charge at home means I would be willing to trade off range and cost for the lower running cost.
Atmospheres are useful, but are they a requirement for calling a planet life-friendly? Life on earth first developed in liquid oceans, not in the atmosphere.
It's more likely the rate of birth rate decrease will increase, rather than decrease. The countries hitting birth rate decreases over the last 50 years are seeing birth rate drops in a generation that took a century in Europe - and remember, not that long ago, Europe once had birth rates, illiteracy rates, and poverty as high as the poorest countries in the world today.

Moreover, the major causes of birth rate decrease, like vaccination and refrigeration (which strongly impacts food supply), aren't going away. Look at a country with a high birth rate today, and you'll still find people walking for miles with buckets full of the day's water for their household. And anywhere that indoor plumbing and clean tap water is universal, the birth rate is down to replacement level. There are fundamental causes for birth rate decrease, and they're not going away.

Frankly, I think you're clinging emotionally to the Malthusian model, not rationally.
Stripe are involved so I expect they'll make it easy to be a merchant.
It's the same as saying "if you don't like the country then leave it"
Does the white paper make clear how / if those rules can be changed in the future?
This was indeed the prevailing wisdom for some time. However, more recent research is somewhat more optimistic. Even an atmosphere 10% as dense as that of earth can circulate heat to the dark side efficiently enough, given the right composition. The night side temperature could be within the parameters required to sustain some form of life.

Furthermore, tidal locking is dependent on oceans and atmosphere, and can take many billions of years to occur, or even never. Mercury has plenty of time to tidally lock but is in a 3:2 resonance with the sun. There are even other options; for example, moons of gas giants within the habitable zone would be tidally locked to their primary and thus have a day-night cycle.
I've interviewed over 900 developers. I can tell you in terms of soft skills you are in the bottom 1% for sure, at least based on my sample. I can only recall a handful of people who made me feel the way you make people feel when you talk to them.

Learn to understand people from diverse cultures and their accents. And when you don't understand them, don't be so rude about it. Of all the people I've met in my career, you are probably bottom 5 in terms of fit for a leadership position.

You don't even have a thing that you're interested in. "Anything that's programming" is a horrible thing to say when someone is trying to get a picture of you as a developer.
86% of workers do not trust employers with their biometric data
> it is just ordinary vandalism

It's not even that bad ordinary vandalism is a lot harder to revert. They should just fix the UI and let the end user pick the version like most api documentation.

If op wrote an autobiography it would be 31, to be fair I could do the same.
Yeah, it's a good point. I like the idea of some kind of demo. I guess just the full app minus the ability to save projects?

Appreciate the feedback.
Confessions of a Professional Fake Shopper
Obviously, I'm not disagreeing per se.

What I'm arguing, though, is that the market making "algorithm" is highly intransparent.
It could definitely help a lot of unbanked people. But that seems to be a nice benefit rather than the core mission.
> So far there are 28 partners, including payment networks like Visa and Mastercard; fintech firms like PayPal, Coinbase and Stripe; VCs like Thrive and Andreessen Horowitz; NGOs like Kiva and Women’s World Banking; telecoms like Vodafone; and software services like eBay, Lyft, Uber and Spotify.

There are many companies that would have made a huge deal if this was their proposal: think, for example, Amazon, Ikea, AliExpress.

And, of course, they are competitors. But if the facebook proposal is really that open source, open capital, and anyone can join the fund, can be heard, can vote and can implement the transactions on their plattaform... well, take just Amazon or Aliexpress and it will be good news for consumers worldwide.

Governments, on the other hand, won't like that that much. I don't know if they will be able to regulate/outlaw such currency, and there will come hard times of legal battles over it. But, for the first time, I see a real and strong use for criptocoins.
What if you're building a $350M machine that weighs many tons, located deep inside a concrete facility and will never ever be moved? The people who operate this machine years in the future will read a date on a log file or database table and make decisions that could affect the lives of millions of people, all of whom live in the same time zone with said machine.

I don't want these people to be forced to convert UTC in their heads when there is no reason for it except for some abstract rule created by someone who doesn't know the first thing about this machine and its purpose, or the people who live there.
> The car needs to cover at least 99% of trips, making me refuel only during 1 out of 100 trips. Some people will even demand covering 99.9% of trips.

Most households have multiple cars, and most (90%) of people's commutes are less than 50 miles (75 km). So for most households, having one car that is EV with a range of (say) 150 miles will cover your most common situation: getting to work and back. It would also probably cover a good portion of errand running on weekends.

The second car can either be full-ICE, or a hybrid. If the latter, if it has a 100 mile battery range, it would also basically be EV-only for commuting.

Personally I'm off the opinion that all vehicles should be full-EV by default, and have an option for a range extender (small generator) for those that need extra distance.
This is unreasonably rosy. Acidification of the ocean and ecological breakdown from overly rapid environmental change appears likely to cause a catastrophic failure of the food chain. Rapid change is necessary. The status quo is not OK.
Can someone help me understand how Libra or other cryptos for that matter can actually be used? Who will accept the coin as a form of payment? Can these ever be used to buy essentials (food, clothes, shelter)? It doesn't seem so at the moment, and until then, I find it hard to imagine businesses or individuals would be happy to accept Libra as a form of payment.
> I find basically any other language or platform except Go lacking and unpleasant in this regard, due to the viral nature of asynchronous functions

That's...odd, because while Go lacks that issue, it was by no means unique among languages or frameworks in that regard when it was introduced, and isn't now, either.
The sort of deeper understanding I'm talking about will actually integrate that as a point in a more comprehensive picture, rather than thinking of it as some sort exceptional case. To the extent that you have a model in your head where that point doesn't fit (and, I assume, believe that would somehow challenge the model in my head), I'd say that is also a point to consider and ponder and try to integrate, rather than having it sit outside of the model that only fits a fraction of the code out there, and has places where it actively mismatches existing code bases.
And just to be clear, there will be transaction fees for using the platform.
I always visualized that the tidal locking to be sort of like meshed gears, such that the one revolution around itself is same as a rotation around the star/planet if its a satellite.

But that shouldn't affect the day/night in this case right? Since we are talking about planets not satellites of planets and they are light sources not just reflecting light from the star. Can you please correct where I am wrong?
I enjoyed reading that. I recognized a lot of things I used to do and a lot of things I currently do. It's nice to gain perspective on that.
The point I wanted to make was in fact that there is no such increase in ability. I was not claiming that I was able to see reality myself. On the contrary, it is most likely an impossible task.

In absolute terms we are all on the same level of understanding as a homeless man ranting at the bus stop.

The idea that we are tragically bereft of meaning because we are somehow too perceptive unlike those other people is an absurd fantasy.
> I begin to wonder whether the demise of the city was really caused by the government subsidies of the suburban lifestyle.

To be frank, I think nothing has been as destructive as zoning. Here in Hamilton, Ontario, I'm in a single-family zoned area, and the two closest consumer businesses are a brewery (with outlet), about 200m away, and a couple convenience stores, 600m away. The brewery is only there because of a specific zoning bylaw. Most everything else is more than 1.2km away or farther.
Clojure’s “Bean” for ClojureScript
could you expand on why you see an aggregator like Paytm a closed financial ecosystem?
Glitch is amazing. It solves the development environment problem better than anything else I've ever seen - you can spin up a new environment entirely from your web browser without installing anything, and seconds later you have a dynamic website that other people can visit.

It's also a really great learning community, thanks to their "remix" feature (like forking on GitHub).
That's a good question and point. Absence of deep time and natural selection seems one possible answer.
I am kind of new to all coding. Can you explain what is wrong with that code?
They're legal in Brazil, yet we don't have any treatment for depression based on them.
It's almost as if they don't yet see cryptocurrencies as a threat.
Maybe I’m reading this wrong but, how do you know?

The whole process looks like a test with no control experiment (i.e. a set of interviews with a more popular stack).

Don’t get me wrong, I’m quite sure Carlos is an amazing engineer, but I don’t think your stack has much to do with it
If those services are made by me or my team, I would usually run them on my machine. However, if they are made by a different team, I usually create a mock server of sorts to be able to run it locally with no dependencies for most of the dev. This allows my team to not be dependant on other teams.
My flow is usually to work on this mocked server while I develop a feature, and then before making a pull request testing on the real thing.
I found a good 70% of the dev work I do can be done in those conditions.
Of course, that's something you'll be able to pull on a greenfield project, not on an existing giant codebase with billions of API.
The Texan Who Won a Nobel for His Cancer Breakthrough
I'm not experienced enough to give a proper critique of go, but I can say that as a non-cs major learning to code, I found go wonderful to work with. Type system is good enough to catch errors and understand code at a glance, yet not overly cumbersome. The language syntax strikes the right balance of verbosity. The only thing I don't like is the way errors are handled.
> I'd say parent's comment still stands though

That people will appreciate Go because a tool is written in it? I'm dubious.

I use Kafka on a daily basis and read its source code with regularity to better understand its behaviour. and while I love what Kafka can handle, and how resilient it is, it doesn't enamour me more, or less, of Scala. What I love about Kafka has little to do with the language and everything to do with the architecture and design of the system.

Go is probably more readable than a lot of the legacy Scala in Kafka admittedly (although their new Scala and Java code is far more readable) which I guess could convince people to give it a try.
Wouldn't an ocean vaporise somewhat automatically to create an atmosphere of there wasn't one already?
No, the ledger is open. It's just that the transaction data is encrypted so only the recipient can decrypt it, and accompanied by a zero-knowledge proof so the money supply retains its integrity even with the encryption in place.
I used to be all in with Meteor, but MDG just dropped it, so naturally a lot of us dropped it too. Now they're all into Apollo, but I heard they're pivoting away from that as well and heavily changing what it currently is so I don't know.
Time · Technichal Sourcery
i actually think the term is accurate. cryptocurrency = currency based on cryptography. we need a different term for "decentralized/trustless currency"
Finally, a tiny slap in the arm for a company that siphoned all our trade secrets. To little to late
> Conceptually this is a bank, but with no interest returned to users, no financial oversight from governments, controlled by Silicon Valley's top companies.

I disagree that this is "conceptually" a bank. Facebook's business model isn't lending out the reserves. If it was, banking regulation would apply.

Also, in a modern bank, reserves are maybe 10%, and you get less than zero percent interest after inflation for that risk exposure.

We've all seen in the past on how well "financial oversight" worked. At this point, I think I'd honestly rather put my money with Facebook than many of those actual banks out there. Facebook is at least a profitable company in its own right.
How to Read Code: Eight Things to Remember
If you have very specific design constraints, please don't use advice from random people on the internet as though it's absolute gospel.
Private money is not a new thing. In fact, the predecessor to paper money was retail bank issued notes. I think it's still the case in Scotland: https://en.m.wikipedia.org/wiki/Banknotes_of_Scotland

The concept of nationalized central banks is new.
Facebook Blockchain: A Moral Obligation
I'm super grateful that my first exposure to programming (high school in Eastern Europe, 10+ years ago) was in C++. I don't think we even did a lot of C++ specific stuff so it was probably closer to C but using cout instead of printf. Covered things from if-statements and loops to sorting and tree-searching algorithms. It doesn't sound flashy and it somehow goes against the trend to try to make learning exciting, but it lays a really nice foundation in your learning.
Urgent Care centers do not have hospital privileges and cannot admit to the hospital.

That surprises me since (at least in my area of the Chicago suburbs) all of the urgent care centers I've seen are associated with hospitals or hospital networks. I have no experience with their admitting capabilities though, having never actually used one.
The worst morale-boosting gesture I've experienced
All of the National Grid forecast scenarios assume >30M electric vehicles in 2050. You might be confusing the peak power demand (in GW) with the total energy consumption (measured in GWh/TWh).

Clearly if everyone charged their vehicles at peak times there'd be problems meeting demand. But that's not the case: EV charging is a flexible demand, and with "smart" chargers and incentives in place to encourage off-peak/overnight charging, demand peaks can be managed.

Here's the link to the full Future Energy Scenarios document where you can dig in to the figures in great detail:

http://fes.nationalgrid.com/fes-document/
I agree, to a point. I've done my fair share of interviews (as an interviewer) with a vast number of candidates, from different backgrounds. With the little data from this experience (on purpose not calling this an "experiment"), I definitely saw a much higher S/R.
This is a bunch of nonsense. Actual banks are corporations like Facebook and they're far scarier.
First Amendment doesn’t apply to private operator running public-access channels
I've never been a fan of the "what color is your function" essay, because it implies that Go is in some sort of unique space. In fact, Go just uses threads. There's no semantic difference between Go and pthreads. The only difference is that Go has a particularly idiosyncratic userland implementation of them.
String Vibration Physics Animation with React