skysight-inc/HackerNews huggingface dataset:
The thing with 3rd party libs is, often there are no type defs, especially bleeding edge stuff :/

Also VSC often is flunky with picking up defs... sometimes you open a file and some are missing.

Or imports with numbers don't work.

On the other hand, using big libs like babylonjs is charming with all the auto complete :)
> Is it really Medicare, or medical insurance in general?

Medical insurance that works like Medicare obviously has the same problems. But imagine medical insurance where, instead of paying obscene premiums with a low deductible, you pay very low premiums with a deductible of several thousand dollars after which the insurance pays 80%. So if you get cancer you don't die of poverty but for pretty much anything else you're paying out of pocket, i.e. medical insurance, not a payment plan that hides true costs from everybody.

Now the thing that costs $10,000 in one place and $4,000 in the other place is a difference you care about, so you pay the $4,000 (and so does everybody else), causing total medical costs to fall. You also eliminate all the insurance paperwork in any year you don't blow the deductible, allowing doctors to lower their own costs significantly.
I tend to agree that the constitution is the wrong place, it should probably be a law.

But this has nothing to do with xenophobia, it's about the social order and norms that we have and that we will have in the future.

I like the freedoms I have and I don't want to give them up, neither do I want the Muslim living in Europe to give up his. Everyone can practice their religion and have their political views but with time they or their next generation will tend to assimilate, it's only natural.

I believe that allowing immigrants to remodel our society and culture in any way they desire will not have the effect that we'll merge and solve cultural issues. Instead they will build and create according to their own culture (which is also natural), live among themselves concentrated in some parts of the cities which will then turn into ghettos with high unemployment and this would in turn create radicalism on both sides.

There are already districts in some German cities where ethnic Germans are at risk if they enter. To me, this is clearly not the way to go.
If the article doesn't load, try opening it in an incognito window.
Saving emails does much the same thing at zero additional cost.

(Of course, if you save work emails and have to leave them behind if you change jobs, that can defeat the purpose.)
Mark Zuckerberg's Twitter and Pinterest Accounts Hacked from Linkedin Breach
Watch out. If you view it you are required to make everything else you view available for free.
> Forth routines are usually short so they don't need local variables.

Variables have to go somewhere. In a zero operand machine they go on the stack. Good luck finding them amidst all the confusing rolling, picking, duping, etc.

> Why?

Because the ALU is just laying there doing nothing while the stack is having it's spine manipulated (see above).
I don't typically find much value in an exception, checked or unchecked, that is passed up the chain more than one step. The ability to intelligently handle an exception other than by logging/swallowing it decreases very quickly with every step up the call chain. If I don't know what to do with an exception in a particular method it is highly unlikely the caller of that method will have more of a clue.

That's why I tend to catch all exceptions and then either produce a fallback value, or signal back to the caller by returning an Optional (if the only useful thing to tell it is that it wasn't possible to produce a value) or by throwing a new specifically tailored exception and making that checked. In either case, the caller must be explicit about what they want to do when things go wrong.
I can't answer the specifics of the Thiel/Bollea deal. But there are rules so whatever the deal is, we at least know the boundaries. One of the most important is that any third party funding a lawsuit can not interfere with the independence of the attorney-client relationship (that's a term of art, but there are many examples and actually cases to guide a lawyers behavior).

In Florida our contingency rule is 33% max pretrial and 40% max thereafter. There are other caps on different types of cases (i.e. Class actions).

One of the reasons contingency is so popular, I suppose like healthcare, people can't normally fund large lawsuits out of pocket. So while contingency helps people who otherwise could not afford lawsuits, it also has the consequence of lawyers being more selective on cases (so even winners might get passed, because a lawyer could theoretically lose money winning).

Answer? A platform like mine could really open the door to hybrid contingency/billable cases which is currently rarely used, but would be a great incentive for lawyers to take cases they might otherwise not be able to take financially.
They look similar to the Moeraki Boulders in New Zealand, also concretions which these might be too according to the article.

https://en.wikipedia.org/wiki/Moeraki_Boulders
Money is just an unit of account, and in this context rather uninteresting. I could give you a billion Reichsmark, and you would be no better off than you would have been if I gave you a roll of toilet paper.

Corporations and individuals create wealth, which benefits us all.
Yep!
My former employer even sold most of them to the employees. The only piece we needed to buy externally was a hard drive (for client's data security).
Google has collected vasts amount of information and they can recruit skill and develop almost any type of software they want.

It seems like a no brainer they're going to play an ever growing role in government.

How big a role do they play? What is the limits?
I'm not sure it's a fad, but it is definitely not ready for prime time.

I have a "smart washer" largely because the smarts came with the washer I wanted. The "smart" functionality is completely unusable. First, it can only be connected to the network via WPS. (And the reviewers for the smart phone app don't seem to be able to connect it even with WPS. I haven't tried.) Second, the actual functionality of the connected app is a joke. So why do they have smart functionality at all? My guess is marketing. Is anyone going to return their otherwise awesome washer because the smart functionality is crap? Probably not, since there is no washer or dryer with true smart functionality on the market. But having it on there as a feature might sell a couple units.

On the other hand, while a refrigerator that detects when I'm out of milk is useless now, I can imagine a future in which it then orders the milk for me, so I never have to worry about it. I honestly can't stand doing inventory and ordering/shopping every week. I would love for that process to be automated.
The Quest for a Perfect C++ Interview Question
I think if the one-word reply had been offered, it would say: "Dualism".

Dualism is a very lonely position around HN. You and I may be the only dualists here.
This website a good example what's wrong with a lot of open source software (and don't get me wrong, I love FOSS, in fact, I make a living out of it). Complete ignorance of form. There's plenty of awesome function and amazing minds behind it, but humans are visual beings and sites like this (completely unscannable) make it really difficult to separate what's important and what's not. The only reason to visit a site like this is if you're given a good blog post with a direct link.

Yes, I know it renders on everything properly, but that doesn't make it right, UX, after all is where most of the technological products fail - because users do not know how to use them properly - or at all. Apple and Tesla understand that.
It also depends on how deep do you want to go with language features.

Let's say you have existing ES2015 source code. You could start experimenting on a local machine and use a script to rename js files to ts. Run the TypeScript compiler and annotate some of the most used functions.

You can then check what is the experience of using those functions that have type annotations, what is the speed of the development, etc.

Sit down with colleagues, show what you have done and ask what do they think. You can then decide to proceed and stick with type annotations until you're sure. Use boy scouts rule: "Always leave the campground cleaner than you found it." aka add typings to the function declaration.
X1 Carbon is amazing (not that old!).

I just do not recommend the Yoga models, the specs look great, but they are insanely slow with huge presentation decks or big excel models.
"Introduction to TypeScript" by MicroSoft - a free (untimed) course

https://www.edx.org/course/introduction-typescript-microsoft...
Yeah, but unfortunately that software crap is going to stay with us for a long time.

Even I that usually bash C here, do use it when customers or a specific project requires it. I just try to follow all best practices to make it as safe as I can, ignoring third party code.

However I can convinced that Lisp Machines, Xerox PARC and Burroughs micro-architectures, Rational Ada Machines, i432, could have been much better.

Many times technology solutions fail not because they aren't good, rather the people aren't willing to invest the time they require to become good enough.

For example JavaScript JITs, if it wasn't for the research money that Google and other vendors are willing to invest, no one would believe they would achieve the execution speed they have nowadays.

I also remember when Z80 coders could easily outperform C, Pascal, Basic and Modula compilers for 8 bit micros.
Not only that, but Switzerland puts import fees on quite a number of food items. For instance, Swiss meat farmers are heavily protected, and that shows when you check the prices for meat in the supermarket or in a restaurant. A steak can cost three times as much as over the border in Germany.
What Is “Internet Use”?
As someone who lives in the Northeast the horror stories make the thermostat a non-starter. Even a tiny drop in reliability that could cause an outage in the winter isn't acceptable in exchange for a cool looking device that I can, on rare occasions, use to remotely change a setting that I forgot before leaving on a trip.

The current generation of Nest Protect actually seems pretty good--it's not nearly as bad with full volume false alarms as my previous one was when I open the oven door. But I basically don't care about the IoT aspect of it.
If you were his attorney, what would you tell him to say?
I just wish TS was based on CoffeeScript.
I see two issues in the article. I don't think that "being yourself" is the same thing as speaking without a filter, and I don't think that it requires someone to think of themselves as an unchanging entity.

> It worked. Next time people say, “just be yourself,” stop them in their tracks. No one wants to hear everything that’s in your head.

That last line is the core of the issue that I see. To me, an important aspect of "being myself" is living my life in my head, rather than through my actions. Acting out on everything I'm thinking would be distinctly un-self-like for me. I suspect that I'm just missing the point that the author's trying to make.
While I've had a decent time with a good friend, it's somewhat liberating to go alone.

Re: "why everyone is questioning why you are there by yourself": This may depend on the area. I lived in Boston for a while and people seemed openly hostile about solo guys. I remember I went to the Enormous Room (RIP: http://www.yelp.com/biz/the-enormous-room-cambridge) one night by myself and got questioned multiple times why I was alone there... The funny thing is that 2 friends I know randomly showed up there on the same night, so I didn't actually end up alone after all... I just go alone sometimes because it is freeing.
There are uses for maps that that don't even involve cars at all! I know I've spend a fair amount of time just browsing around.
I've read that ARM Cortex-M0 and M0+ cores do not support it. Why on earth isn't it in all ARM cores?
I rarely comment but this story makes me happy enough to do so. I'm a former H1-B with an American Masters degree in STEM. I think this conviction will go a long way in making the system fairer.

Here is what happened. H1-Bs must be legally employed all (well most of) the time they are in the USA. To get past that rule, these H1-B shops act as employers and then farm out the employees to other companies. Employers need to pay H1-Bs at least the prevailing wage that is mentioned in their H1-B application. This employer did not. Instead, they reduced wages when the employees were on the bench. That is the violation that they have been convicted for. So this conviction is not that much about H1-B's replacing American workers as much as it is about an unethical employer paying his employees less than the promised wage.

Usually, people who join this kind of shop are people who have not been able to land a direct employer on their own and desperately want to stay in the USA. This judgment will go a long way in correcting the system because now all shops (and there are many!) that run this scam will close down. That, in turn, will decrease the number of people who end up applying for H1-Bs without a real employer. Hopefully, that will improve the perception around genuine H1-B VISA holders.
I am in the same boat as the poster. The main reasons I use typescript instead of scala.js are the vast amount of definition files already made (the scala.js translator of these leaves a lot to be desired), and the fact that it's closer to the es6 community which makes maintenance, contributions, and adoption much more likely. So basically because you stay closer to the JS world.

The only downside is lack of "isomorphic" code reuse which I gladly accept anyways because I rarely see server and client side code reuse as beneficial beyond simple models and validation.
Like we don't have enough trouble with people clicking links in phishing emails, why in the name of all that's holy would we want to train users to click on any 'interesting' link in a marketing cold-caller's email signature?
This might be interesting to some:

The big tech companies in the Bay area may initially hire recent international student graduates on F-1 OPT status and then attempt to apply for their H-1B. If this fails the common approach is to move them to Europe (usually Dublin) to work there for a year. After that time they can return on L-1 (company internal transfer) visas.

Note that these candidates are extremely competitive in terms of performance, don't replace anyone, and are paid the same kind of salaries as any other highly qualified individuals.
It's pretty obvious visually, you take the exclusive disjunct (a^b -> yellow) divide by two (>>1 -> bright yellow) and then add the intersection (a&b -> green) you use the full intersection because in the basic method (a+b / 2) they would each add their own half of the intersection.

https://imgur.com/PUT4G9Z
And also every other political group, in any situation. And, in this context, eg the dangers of pure democracy, almost every political thinker that's ever existed.
Thank you! That makes a lot of sense.
Forbes.... Wont even go there
Mark Zuckerberg's Social Media Accounts Have Been Hacked. Password? “dadada”
Have you ever learned Smalltalk?

Thanks to support for blocks (lambda), Smalltalk collections already had LINQ style programming, aka algorithm.h support, for example.

Nice link.
Good point! I used similar categorising as Anders Hejlberg used in the JavaScript Jabber podcast (https://devchat.tv/js-jabber/209-jsj-typescript-with-anders-...). For those who don't like audio, he basically referred TypeScript being superset of JavaScript, unlike some other languages.
Those reasons, while understandable, shouldn't stop alleged victims with contacting LE anyway. Humiliation sucks, and distrust is understandable, but letting a rapist go unpunished for their crimes due to silence is worse.
I've bought a lot of "IoT" devices (going back to the days of X10) and yeah lot of them are utterly useless, but so were a lot of dotcom startups in 1999.

The thing I've realized, which may be obvious, is that first and foremost the device needs to work well in its "unconnected" form. Examples:

* Hue/LIFX/etc suck because most of the time I just want to flip a light switch, not pull out my iPhone to control it. I'm a fan of Z-Wave (or whatever) switch replacements that function just fine as regular switches, or I can turn off every light in my house through a wall controller, Alexa, or my iPhone. But if that secondary system fails I can still control my lights.

* Withings scales are great, because it works well as a simple scale, but also records my weight so I can go back and look at trends, etc.

* I like Dropcams because they're super easy, though I wish it weren't locked to a proprietary service
It doesn't look to me like that's why Nest failed?
It's a visual programming language similar to Max msp, but focused on visuals and sensors. Windows only (DX9/DX11).

Free download, only pay if using commercially.
Exactly! Thanks for this insightful comment.
If you don't want to use regular expressions for matching exceptions, you can simply calculate hash code of exception class name and, possibly, of it's cause and message and pass it downstream.
Where can I find more information about the theories that claim companies exist to be communist?

I don't buy the "first to win argument", but it would seem useful to take multiple approaches to solving the same or similar problems.
To drive a car, one does not necessarily need to know the mechanics of how the engine works. This question falls in the same bucket because you're asking the candidate to come up with something that he'll never need to do. C++ 11 and Boost already provides the facilities to use smart pointers.
Or it will be the auto companies that turn out to get there in the best incremental practical way.

I know this is probably a minority opinion here, but one plausible scenario is that 5 or 10 years from now, Google will come to the realization that full no steering wheel autonomy is still "just over the horizon" and, in the face of declining ad revenues (or whatever), the whole effort gets ramped down.
Show HN: Vagrant-bash-completion – Bash completion for Vagrant
Easy to talk about how you'd do it, but I don't see any boxes of connectors in your living room.

The factory is probably going to recreate the drawing in their own tools anyway, even if you send them a STEP file. They can use a sketch on a napkin for that purpose, as long as the critical dimensions and tolerances are stated.
> humans are visual beings

Yep, it's important for a site to be easy to skim, but beyond that, you'd be surprised at how little people care about or note good design. I mean, you're posting this on Hacker News, which can't even be bothered to set a reasonable text column width.
The amount is irrelevant, since you are making the same percentage on whatever sum investment. I think you are using a non-technical definition of liquidity: I can convert ETFs or stocks into cash almost immediately. So for example, it is easy to scale down or to move money from stocks to bonds. The house is immovable property in all senses of the word. It is difficult to convert to cash or to move (in case of political upheaval, for example).

Your last point ignores the significant costs associated with 1. amortization and 2. the liquidity problem. First, given a neutral market, the house decays in value: appliances need fixing, floors, heaters, boilers etc. We are just used to rising prices due to speculation, but nothing guarantees the upward trend. Second, consider the cost of converting cash into house and the other way around: mortgage fees, interest, buying and selling fees, plus real estate taxes.

The New York Times has an excellent calculator on buying vs. renting. The math just does not support your conclusions. Buying wins out after 10-15 years GIVEN an upward real estate market. With any downturns, renting wins out indefinitely. Include the risk of investing into a single instrument (all you money is in the house) plus the stresses of ownership (shit goes wrong all the time and costs you money) and the picture is not so clear at all.
Did they actually refer explicitly to "natural selection"? Because while natural selection has indeed produced some impressive results, it did so over billions of years, and not terribly efficiently, so I wouldn't generally consider it a model to be emulated, unless Google is really optimistic about how long the company is going to be around.
The OPT as been extended to 24 months now. But sadly, one can't go from OPT to Greencard. I would have to go through H1B, which is stupid.

Also, the cap is only an issue because the system is getting abused. Even then, it's stupid to give out the visa through lottery once the cap is reached.
It'd be nice for him to have disclosed that fact in his article.

It's a shame he'd rather flamewar over "best language" than honestly discussing the issues of both.
Swiss Voters Reject Basic $2,500 Income Proposal at Nationwide Referendum
That last line is hilarious & sad!
Rob is exactly right that you should use --outDir

You should aim for deployment process where outDir would be in .gitignore and building of the JS files would happen on a build server.
I habitually exceed the speed limit, drive very aggressively, take turns very quickly, regularly drive on canyon roads pushing my vehicle close to the limits, and have never caused an accident. What should my insurance rate be?

It's currently very low as I'm a safe driver according to the records (no accidents, no points, no tickets in the past few years).

If the insurance company tracked my driving, I'd be paying much much more, even though I'm not actually costing them any more, while "safe" drivers (who regularly impede traffic and push others to make more risky maneuvers; consider the Prius in the left lane on 101 going 5 under) would get cheaper rates.

This would also kill the sports car industry. A very small number of sports car buyers ever drive their car on the track. Most have fun away from cops, on the streets. If you knew that you couldn't exceed the speed limit, corner with more than 0.2g of force, etc without getting a ticket in the mail or otherwise penalized, it would surely keep people in compliance for the most part, but utterly destroy any demand for vehicles capable of exceeding those limits.

I don't doubt that these types of changes are coming, which is why I choose to have fun now. Back in my day, they used to let us actually pilot our own vehicles!
Well in my case there is no sim in the slot, so i can't say i care.
As codablah said: the availability of type definitions is a major difference in ease of use.
The other reason is that I can add a specialised frontend dev to the team and reasonably expect them to be able to work in Typescript.
Your feedback is fair, but does if anything particular to do with FOSS vs software websites in general ? Beyond perhaps that bad UX can kill a business faster than a volunteer project, so bad commercial websites tend to disappear
It definitely does, and I wouldn't be surprised if big companies did not do it directly. I'd theorize that the tiny apps people download for games or little cat pictures unkowningly integrate this functionality as a dependency of advertising SDKs they use to make $0.10 CPC then the ad middlemen sell it back to the bigger companies.
Selling Nest makes tons of sense. It's probably still valuable to someone who thought of buying when Google did, and Nest adds very little to Google's IoT/home-automation platform, which is more likely to be Android-based. Moreover it is unclear if, all else being equal, thermostats would be very high on Google's IoT priorities.