skysight-inc/HackerNews huggingface dataset:
California has this:

> Vehicles proceeding at a speed less than the flow of traffic and moving on a two-lane highway where passing is unsafe, must turn off the roadway at the nearest place designated as a turnout or wherever sufficient area for a safe turnout exists, if a line of 5 or more vehicles forms behind them.

https://www.dmv.ca.gov/portal/dmv/detail/pubs/hdbk/driver_ha...
How does that work? I haven’t seen the recent changes so I can’t say for sure, but AFAIK Goland and Rust error handling mostly amounts to line noise trying to recreate the control flow of exceptions (i.e. bubbling any errors up the call stack) (although Rust tries to make it more palatable using macros).
The set of natural numbers should have zero, otherwise it's not a ring. However, from the perspective of Peano's axioms, it doesn't matter as far as I am concerned what the symbols are called, as long as you have a successor function.

Apart from that, I agree that it depends whether you are counting [1] or doing something else.

[1] That's why I do HN references like this.
Everybody should have enough money not to have to work and live off the interest.
The acronym was initially based on stock growth and later some people started using it as a proxy for compensation.

Netflix has some of the highest all-cash compensation in the industry. Compensation is easily $450k+ in cash per year for a regular senior dev at Netflix.
And to add to that, domain experts who will work on this information are probably used to obtaining new knowledge reading email newsletters. They'll be fine.
Higgs Boson slide screenshots: https://fontsinuse.com/uses/11764/higgs-boson-discovery-anno...
The oldest surviving civilization is the Indian Saraswati civilization (aka as the Indus Valley civilization). The Saraswati civilization is about 30,000 years old & continues to this day.
I block ads and trackers where I can but also recognize the value in understanding how one's app is used.

So I'm curious how privacy-focused mods figure out which features users most want without being able to track users. It seems like a huge risk to remove a feature that could be your killer feature but you just don't know.
It was on HN about two weeks ago, I believe there is a lot of insight there https://news.ycombinator.com/item?id=21998632
The article is over 2 years old and Alfonso Dastis isn't the current foreign minister.

In any event Scottish Independence isn't going to happen anytime soon with Boris Johnson shutting down any possibility of an Indy Ref 2 last week.
I've interviewed many candidates in SV and many of them have strings of 6-18 month stints on their LinkedIn. It's extremely common; I'd almost even say it's the norm.

Before SV I lived in Denver and any job tenure less than 2 years was a huge red flag, and even less than 3 would raise an eye brow.
Get 1-Year Trial on All Business Tools You Need to Start Your Growth
"Until the Opium War of 1840–42 the European merchants and voyagers who reached the distant land of China had looked upon the Chinese with a good deal of awe as a people of superior culture."

Bullshit and Chinese Propaganda with their "5000 years old culture".

5000 years ago we are talking about bones inscribed with precursors of the Chinese writing system. Not bad, but compare this to the Pyramids at the same time?

Around the year 0 the Chinese culture was en par with the level of western culture and technology - speak Rome.

Only during the middle ages the west fell so far beyond and Chinese had indeed a superior level of technology, knowledge and administration. Things reversed again with the industrial revolution and the center of industrial GDP moved to the west again. Now since China and the rest of Asia has also industrialized and due to far more people in Asia, the center of world GDP has shifted back to the East.

If you can really talk about a "continuous civilization" for 5000, 3500 or even 2000 years is doubtful.

The experience from businessman with Chinese: 30 years ago they had an inferior complex because they were technological too far behind and a feeling of cultural superiority. Now the have the feeling of technological superiority combined with cultural superiority.

Chinese culture has a lot of strengths. But it also comes with a lot of weaknesses. I am skeptical about the "Chinese Century"
Surely it's only polite to allow the faster guys past before you do your thing. It doesn't really matter to me generally because few things on the highway annoy me, but it's sort of habit for me to not be in the way. So even if I'm doing 10 over and there's a chap coming up doing 20 over, I let him go before I go.

You don't have to do that, and I won't judge you for it. It just seems like a harmlessly nice thing to do for your fellow driver.

And it's rare to be in a situation where it's reasonable for you to overtake at 5 mph more than the other car while there are +20s whizzing by so it doesn't seem like it's really something that needs defending.
The old C way was returning an error indicator and providing the error code in the global variable errno(), which has ... issues.
Like this: https://en.wikipedia.org/wiki/Astronomical_year_numbering
Until you become a PersonOfInterest to them.
I think actually for some reason lutris binaries don't work that well with fedora or something - but hard to tell.
A few more steps and you'd have reinvented functional programming.
The Subtle Art of avoiding blame and taking responsibility
The camera was invented and this became a problem for public figures. It became more of a problem with digital photography. Much more of a problem with camera phones. And became the privacy nightmare we are now dealing with around the rise of Twitter and Instagram.
Is it the shoes? A simple proposal for regulating footwear in road running
Rundeck: Enable Self-Service Operations
> The Year Everything Crashed

Which year?

> If you were using computers in the years that followed you remember the time well even if you didn’t know the reason; a lot of software that had been stable and solid before started crashing and misbehaving.

I think I missed this.
Wuhan Nurse Alleges over 90k Are Infected with Coronavirus
This is how it's done in Rust. panic macro unwinds stack for tracebacks, there's std::panic::catch_unwind, but panic can be compiled to be aborts to do away with stack unwinding, error handling is meant to be done with Result<T, E> type, whereas panic is meant for unrecoverable errors
Yeah this is also why the west coast of Denmark is full of wind mills
Friend's bike got stolen off Muni while he was on it. I'm not going to do that. I was car free in SD for almost a decade. It was good, but this is also good.
Elon will do it for 10% of the cost, it will have the size of a sidewalk /s
Honestly I would be pretty annoyed if I was your friend or family member.
C# Snippet collection – 30 seconds of code
Sort of, I’d have no issue with software RAID. VMWare however has exactly ZERO software raid options so on servers you are limited to HyperV it seems.
> With a notebook, you get the chance to load the data, view it, clean it where needed, view it again, analyze it, model it and do anything else you need to it.

In a good data-oriented IDE like RStudio you get to do all of those things and write code which can be saved as plain text and can be version controlled well under git which you can't do well with Jupyter.

R folks have to be the best indicator in this case because they have access to a good IDE and they have good support for Jupyter. Their use is overwhelmingly in plain text files in RStudio, a small portion of rmarkdown notebooks and pretty much no one user R in Jupyter.
I love the way Elixir/Erlang handles this, personally.

If the error is expected/should be handled, just add the error to your pattern match and handle it right there (or bubble it up, if appropriate).

Truly exceptional situations where something "should never happen" won't be pattern matched against, BEAM will crash the process, and your supervisor will get you back to a good state.

Feels so much cleaner than either exceptions everywhere or easy-to-ignore error values.
We don’t need to produce more in the western world. Taxing animal protein heavily would curtail existing overconsumption.
That’s based on what we found of once humans started writing. Civilisation have been going on long before that. Many cultures like Hindus preferred oral methods to written books so no single person/object has the power.
Having said that. China did give the world lot of things and I respect them food it.
https://en.wiktionary.org/wiki/expect#Verb

> Expect: 1. To look for (mentally); to look forward to, as to something that is believed to be about to happen or come; to have a previous apprehension of, whether of good or evil; to look for with some confidence; to anticipate; -- often followed by an infinitive, sometimes by a clause (with, or without, that).

I expect the government to erode my rights.

> Expect: 2. To consider obligatory or required.

I expect the government to respect my rights.
It really depends on your work relationship with your manager and peers. If you have a great manager i’m sure they’ll be understanding enough to balance work responsibilities that you can go through the rough patch without resorting to quitting.

I can only imagine what you’re going through. As others have said, give yourself permission to feel. It’s okay to cry, to be angry (don’t break things tho) to feel like shit, to have a bit of insomnia.

Surround yourself with close friends, be easy on yourself and remember that time heals most wounds.
I wonder how connected our deep desire for culture (community) is connected to having far right/left views.
Didn’t Java require all exceptions be declared in the method signature? (Haven’t used it in years.)

I think that’s the best solution. You declare what error conditions could arise, but not using magic numbers. The caller can then decide whether to handle them or pass them to its caller etc.

I agree that unexpected exceptions (like it’s possible in C# and possibly others, you can just throw whatever whenever) are far from optimal.
This doesn't mean that Intel hasn't been affected negatively by the resurgence of AMD in the processor business. AMD is taking several billion dollars of revenue, and every dollar of that costs Intel much more than $1. A noticeable part of AMD's newfound competitiveness comes from the various performance taxes that Intel has had to pay for speculative execution mitigation.

It's worth noting, too, that Intel has diversified-- the processor business is only one very important business to Intel.
My IT Department even refused to enable Cloud SQL for App Maker to run. It killed off all hopes to use it
If that was true, no one would pay Apple its 30% oligopoly rent. It‘s also not necessarily safe if you consider my Wikipedia example. Apple devices are the perfect censorship vector.

And finally it‘s a pointlessly circular argument if we‘re talking about whether or not gatekeeping on the Web is stronger than on iOS.
See here: https://news.ycombinator.com/item?id=22167267
> The relevant number here is the cost to repave, not reconstruct, which is about $330,000-$350,000 per mile for a minor arterial road in a rural or urban area.

Sounds a tad more expensive than it needs to be. Skimming search results for my country (.fi), I get numbers ranging from 30 000 to 50 000 eur per kilometer. I know murican roads are wider, but I don't think they're that much wider. And I don't think we're particularly effective or cheap at doing it..
Good point, but your question also has an issue:

If my answer is "2", you have no idea if it's almost 1, or almost 3, which is a huge span.

I think a better question would be "how long did you stay with your previous employer".
Well lp0 would catch fire, but it wasn't as bad as using throw!
I've thought of it as being extra tedious.
>> Text after a blank line that is indented by two or more spaces is reproduced verbatim. (This is intended for code.)

This is constantly being (mis-)used for quotes. Verbatim is really hard to read on mobile (due to horizontal scrollbars) , so other people usually repost the quote as an umformatted answer to the original post. I like HN's minimalistic design, but that's one thing I wish was improved (e.g. by providing a different way to quote things).
Reading about the GDP of India and China, both two were the richest countries in the world before Mughal and British invasions. There was a reason they called India the jewel in the crown, it was the biggest transfer of wealth from the east to the west
> I don't get why anyone one who knows how to use an IDE would ever use a notebook,

The Python IDEs for data science are mostly garbage - if you have any recommendations, I'm all ears because I really don't like notebooks but still keep switching between jupyter and vscode depending on what I'm working on.
No problem, it was more of a general comment really. Thank you!
My preferred quoting method on HN is to prefix with > and italicize:

> I like HN's minimalistic design, but that's one thing I wish was improved (e.g. by providing a different way to quote things).
Me too! M4 from London to Cardiff for the Ryder Cup. Had lived in Texas for years, was fresh off the plane and forgot it wasn't legal.

No mercy shown! Jokes on them though I never paid the ticket and I'm never going to.
Continuous civilisatiins can exist for that long if they aren't targetted by the greed of invaders, in this case there weren't large scale invasions big enough to topple it
I am not sure I saw any IPv6-with-NAT deployment in the wild, which is probably a good thing.

Then, yes, I really mean it. Or at the very least provide a way to punch holes trough the firewall from the inside, like UPNP does.

The Internet is completely asymmetric in how users are expected to open connections nowadays, probably thanks to big tech. If I have a p2p chat app, I would like to be able to use it at my friend's place with his Wi-Fi without relying on external servers, for instance. Same for mobile networks: my carrier has deployed IPv6 on its network, but I have no mean to open ports to the outside, for SSH or similar.

The abuses I can see without firewall are:

* sending broken packets: there should still be a firewall rejecting invalid traffic

* hosting servers on public Internet hotspots: yes, that could be an issue. But is it really?

* incoming connections could drain battery a lot faster for mobile devices (including rejected ones). A remotely configurable firewall would be nice for these.

* it would expose all sorts of services not meant to be exposed, or with security flaws, to the internet. How about we accept that this is an issue that needs to be solved at the root? You wouldn't empty the pond because your boat is leaking? Though I agree that blocking-by-default lowers the attack surface, not everyone wants it.
Trump's Travel Ban Could Extend to Africa's Top Tech Country Nigeria
So not an option against the competition that has no issues supporting Windows as first class citizen.
Initially yes, but this is somewhat unpopular these days as it means you have to daisy chain a new exception all the way up the stack if you can't handle it locally.

Most have switched to runtime exceptions, which are more flexible in that regard.
Wuhan Coronavirus (2019-nCoV) Global Cases (by Johns Hopkins CSSE) [1]

1. https://gisanddata.maps.arcgis.com/apps/opsdashboard/index.h...
A 1.5 to 2 year stints seem totally fair to me. A number of 6-month stints would raise questions from me, personally. I still wouldn't rule out such a candidate, but would proceed with caution.
When 'pair programming' was chucked in as an example of one of the worst things that happened to programming I lost interest.

Back up your assertions with facts. If you don't have facts use good truthful examples.

Too much opinion and conjecture isn't useful.
I set up a home movie system on a very old unused laptop. Installed Linux (Xfce) on it because it is very lightweight and connected it to my TV with HDMI. Now I can watch downloaded movies, but also stream on YouTube, Amazon, Netflix etc. on one device without having to jump between UIs with their various kinks. Very happy with this, because it was free and works better than anything I had before.
You can go back if you like but I think being an employee suits me better ...
US State Department advisories:

Travel Alert Level 4 Do Not Travel to Hubei - Tue, 28 Jan 2020

Travel Alert Level 3 Reconsider Travel to China - Tue, 28 Jan 2020

Health Alert Update – Novel Coronavirus in China - Sun, 26 Jan 2020

China Travel Advisory Update: Level 4 – Do Not Travel to Hubei Province - Fri, 24 Jan 2020
Portuguese universities aren't the only ones, I am pretty sure many of the other European ones do the same.

Also, I actually learned C++ during high school, back when C++ARM was the only "standard", and most C compilers still did a mix of K&R and C89.

Nowadays many high schools do stuff with Raspeberry PI and Arduinos (Processing is just C++).

And you have books like these available https://www.amazon.de/f%C3%BCr-Kids-Grundlagen-Spieleprogram...
"First they came for the socialists, and I did not speak out because I was not a socialist.

Then they came for the trade unionists, and I did not speak out because I was not a trade unionist.
Then they came for the Jews, and I did not speak out because I was not a Jew.
Then they came for me—and there was no one left to speak for me."

https://en.wikipedia.org/wiki/First_they_came_...
No. Only a certain subset, known as “checked exceptions” (as opposed to “runtime” exceptions), need to be in the signature.

In what may come as a surprise, checked exceptions are actually frowned upon in modern java (e.g. new stdlib apis tend to avoid them). They do not compose very well with the rest of the type system (e.g. you cannot write a ”map” function that is polymorphic over checked exception types)—or at the very least, do not compose as well as some other patterns, like Optionals
I found out a few days ago when an, interesting, related question was posted on bioinformatics.stackexchange.com : Why does the Wuhan coronavirus genome end in aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (33 a's)? [0]

[0]: https://bioinformatics.stackexchange.com/questions/11227/why...
One Size Fits No-One
This is very good, I work with a number of data scientist notebook users and your findings closely echo the common complaints I hear.

What are your thoughts on the best way to address these things?
Wow. Blast from the past. We used it in our Psychology Dept. to find out if users could perceive 3D images through simulated 3D rotation of the 2D lines on the device. This was in 1984 and I was the student intern software developer. They put the project on hold at some point.
Checked exceptions sound good on paper. In practice I think I re-threw every checked exception as unchecked.

In retrospect I feel like 'handling' exceptions is a myth. If you knew how to handle them, they wouldn't be exceptional.
Can you change that contractually in the US? I know here you can. And if you are a freelancer, you can have default company terms which say you own it all, even when paid. I had very few changing that default contract and my last few paid jobs rather did a ‘partnership’ as in shared ownership for a lower hourly with an option to buy outright for shares and/or money at a later date.

There are more ways to skin a cat. I am not sure big ( especially software) companies (in other, more litigious countries than mine) would entertain things like this, but if you do not try...

For instance, I did a small intranet for a very large company (for my country); because it was not their core business, and as such they did not care if we kept the (c) or sold the source to others as long as they had eternal perpetual rights to do whatever with it as long as they do not sell or use it outside their company. They reasoned that if I have more clients, they might get features and/or bugfixes for free. They did, up to some point and it made me turn my 1 man services company into a product company with staff. Which was fun but a steep learning curve, especially with regards to the money required for the growth of such a company.

Their lawyers made up a very fair contract (again this was not their core business so they genuinely knew they would never want to sell this themselves) which had clauses to protect them and us if they exited etc.

I had this happen far more often; at the right level, many companies, especially none software companies, will be up for this if they benefit financially or otherwise. Recently (different company; only services again) I had a large car maker suggesting we sell a small LoB app we made for them to their competitors so they would, again, share the financial pain of bugfixes and intellectual gain of new features. Kind of a product/services mix without the pressure of roadmaps, growth etc (all companies pay per hour and get all versions, including forks for others, but not forks by others unless the other parties specifically agree). So kind of contained-closed-open-source way of working, which is far easier for the corp lawyers to wrap their heads around than throwing things into the actual open. Also the quality demands code, community wise, are far less important. Let’s be real; most LoB software is a burning heap of crap; usually first put together parttime by someone of the departmental business and then passed to an external company when growing out of bounds (getting too much uptake internally). This time we could basically do a rewrite, but that is not always the case (remember; my business is being paid for every single hour).
The keyword, and exceptions, are orthogonal concepts that this post is conflating. The real issue this post has is with exceptions (and in particular user-defined exceptions, though I'm not really sure why this matters because you can always (ab)use system exceptions if you have a way to reliably trigger them). You can still use the `throw` keyword with other error-handling models, such as with Swift's Errors.
My comment was meant as opposed to relying on fossil fuels imported from other nations; Europe as a whole imports 87% of it's oil [0], most of which comes from Russia [1]. If the same capital would be spent on renewable domestic energy generation, it would lead to a more stable economy in the long term, as well the benefits of local jobs and not funding countries with questionable regimes (where a lot of oil comes from).

It's a completely different story for the US. As I understand, domestic reserves are expected to last until the mid 2030s, but that assumes no new reserves will be discovered. Unfortunately as a lot of our technology comes from the US, it means the world as a whole is pretty dependent on the US energy economy and their political decisions regarding sustainability.

[0] https://ec.europa.eu/eurostat/statistics-explained/index.php...

[1] https://ec.europa.eu/eurostat/statistics-explained/index.php...
What I truly wonder is, does hopping between positions within one employer count as job hopping? If I stay with company X for 5 years, but every year, I have switched a position ( e.g. tech support engineer -> QE -> software engineer -> Evangelist -> manager), would that disadvantage me on the job market?

Or would I get bonus points for wanting to stick with the company X?