skysight-inc/HackerNews huggingface dataset:
Then I've misunderstood. My apologies.

I think you're right. A lot of people are afraid of being poor. Of losing everything and being on the street. They forget that they can just get a job and start again, really. They're lowest point is a $100k+ job, right?

I really do hope young people are taking bigger risks and starting something for themselves. I'm 34 but my brother-in-law is 24. I'm bringing him into my business because I need him to understand that selling his time for money is a bad investment, among other things.

Thanks for clarifying.
I guess Trump does have a point...
Yeah haha I read GBPRR and thought "Oh no is this another law the EU wants to introduce?"
Bluebird’s Bad-Practice Docs
Am I the only one who sees the release date and think "Cute, they released it on Pi Day :)"
Show HN: 1% Management Fees – Mobile Real Estate Crowdfunding
2-3x on EBITDA is a pretty common multiplier for small businesses earning less than $500k/year. Especially if that EBITDA doesn’t include an owner taking a salary.

You can only really achieve 10x+ for companies that proce they’re growing or have reached significant and stable profitability.
There's also a notion of failure mode for improperly tuned apps. This is certainly a personal preference, but I prefer true failures over constraint failures. I'd rather OOM in golang than run out of threads in my Java execution context while having plenty of free memory. At least when starting out.
But in this case you didn't change your mind. You dislike old Java but like new Java.
Nobody seems to point out the obvious fallacy of the "right to protect yourself". If having that right actually results in being more likely to be harmed, or harm someone else, having that right is an unacceptable public safety risk.

A common argument against gun control ("should we ban hammers next?") is obviously fallacious when you compare it to an even more extreme comparison ("should we ban private ownership of nuclear weapons?"). It's obvious that some "weapons" are ok because they aren't a big public safety risk, whereas other "weapons" are a gigantic public safety risk. Guns are quite obviously a significant risk to public safety, as the murder statistics demonstrate.
The Party is decentralized as well - the distinction between state and party institutions is fuzzy in the Chinese system.
Bioterrorism strongly depends on the incubation period. Probably safe on Mars. Rogue nanotech - not unless it has AI. (Though gray goo is not considered very realistic nowadays, as we've realized just how hard even regular nanotech is, and how hostile the natural environment is to nano-scale mechanisms.)

Nuclear war is the big one. Mars colonization would be less about preserving human life, per se, and more about preserving an operational duplicate of the peak state of human civilization.
3D Terrain Generation with Perlin Noise in Processing [video]
I meant more along the lines of "what if we give eminent domain just a bit more bite?"
I think at least in some circumstances you can. Take photography for example. Most photographers can produce a decent shot if given enough time. So something like Instagram is saturated with stunning photos with a dozen likes and no comments. What’s a photographer to do to get noticed? Lo and behold, they can shoot a famous model or ten. The shots are just as good as their sister’s boyfriend’s cousin’s, maybe the modeling is slightly better. But the mere fact that the Instagram-famous model shared the photo and vouched for the wonderful experience will immediately bring more attention to the photographer. Most models in this case won’t just do it for free, so you will be buying this attention. But it is worth it because if you do this enough times, you will get a huge following eventually. Then you can start expanding out from Instagram into other venues. Art shows, magazines, etc. Again, your photography may be “average” (compared to other competent photographers), but your marketing + your cash is what really propels this forward. Do this for a decade or two and chances are you can get gigs that would make you a household name.
FYI, I downvoted the parent because of the tone of the first sentence.
Why can't Mexico perform the basic state function of protecting its citizens from organized violence?

Drug rehab may sound like a panacea, but as it's practiced and administered in America, rehab centers seem to respond to their perverse incentive to treat addicts enough to get them out the door and relapsed back into treatment.

I think we're doing a lot to treat addiction, but Mexico can't count on us to solve the hard problem of addiction. Mexico would be much better served by doing the comparatively easy task of reducing corruption and violence rates to something that reflects its status as a middle-income country with European institutions. Simply making it harder for cartels to thrive and for Mexican politicians/police to profit off of drugs would reduce the amount of drug pushing here in America.
Anarchy, Bitcoin, and Murder in Acapulco
How not to get banned by media.net Ad network
Slashdot was more like a cross between something like lobste.rs (in its focus on 'nerds') and reddit (in its wide range of discussion subjects) than it resembled HN. It was a far more easygoing and 'fun' place in what was in many ways a more 'fun' time compared to the often overdone seriousness of this place and time. It was at /. that many of the vices and virtues of the tech-related internet forum world came into being, from the shit-posting natalie-portman-with-hot-grits-down-wherever-they-went trolls to sometimes surprisingly insightful comments on current issues. There were no self-important VC-chasing startup tycoons, at least not in the earlier years. While there was quite a bit of group-think - e.g. the well-known operating system from Redmond, WA was not popular and anything related to it or the company behind it was generally ridiculed - those who spoke outside of the group were not shunned as they are here and now, just teased and made fun of.
Their mirroring page suggests they most likely use Apache.

"NOTE: Some of our maintainers prefer to use web servers other than Apache, such as Nginx. While this is permitted (as long as everything ultimately works as directed), we do not officially support these setups at this time"

http://php.net/mirroring.php
> Unit test suites would break all the time for silly reasons, like someone optimizing a function would mean a spy wouldn't get called with the same intermediary data, and you'd have to stop and go fix the test code that was now broken, even though the actual code worked as intended.

Can you or others speak more about this? I was taught that verifying function calls for spies/mocks was good practice. But, I encountered this problem just the other day when I refactored some Java code for a personal project. Everything still worked perfectly, but, exactly as you said, the intermediate function calls changed so the tests would fail due to spies/mocks calling different "unexpected" functions.

I'm an intermediate programmer so can someone with more experience fill me in with what's best practice here and why? Do I update the test code to reflect the new intermediate function calls? But this whole approach now seems silly since a refactoring that doesn't affect the ultimate behavior of the function that is under test will break the test and that seems wrong. So do I instead not verify function calls when using spies/mocks? In that case, what is the use case for verifying spies/mocks?
Could you elaborate here please? I'm trying to learn qt at the moment.
Wow, that was an excellent post. I love that they ended up contributing back to a couple projects as they found bugs or lack of functionality with them.
>However, there is a loophole. In a country of nearly 132 million people, there is only one shop that sells firearms, which is located in Mexico City. ... This high level of unregistered firearms has been attributed to Mexico’s proximity with the United States, as thousands of gun retailers sit just over the border.

It sounds like it's the Mexicans that need a wall to protect themselves from U.S. firearms!
Tesla Had 3 Times as Many OSHA Violations as the 10 Largest US Plants Combined
Node.js Logging Made Right
That still leaves the prisoners having to purchase music again if they want to listen to it in prison, despite that being the only reason for the original transaction in the first place.
It's ~200 miles each way from SF to Tahoe. I imagine that's a pretty important number for people considering an electric SUV.

Model 3 advertises a 325mi range, and Musk says the Y will get about 10% less than the 3.
If that is true, then Canada should have exactly the same problem.
I put together an "XKCD" theme for Anvil that works quite nicely:

https://anvil.works/blog/xkcd-style-apps
I was also highly dubious of the whole indentation thing until I started using coffeescript.
Reported murders.
We mostly do not know what happens in Africa
Ok it’s 50m now, still speaking about earth orbit
I am pleased to see that this was done without macros, even custom derives. There are a couple of macros in the library to make some use cases easier, but they aren't essential.

There is a tendency in the Rust community to reach for macros as soon as anything a bit complicated or verbose comes up. I think this most often ends up sacrificing true understandability on the altar of a slick surface syntax, and it doesn't help us write or understand well in the long run.
Hunting for Unused CSS and JavaScript
There's Now a Certification to Tell If USA Milk Is from 100% Grass-Fed Cows
> says the same photographs are made up of 'multiple shots'

On Reddit or in the PetaPixel article? As in the latter the only reference I see to multiple shots is for a panorama (which is possibly the least-controversial way of combining multiple exposures).

> r/earthporn which specifically is for real scenes that look like real life

Is it? There’s nothing in the subreddit’s rules about that. In fact its rules specifically state: “Panoramas, Image Stacks, Composites, and images edited via Photoshop or similar software are allowed”.
A Romantic Modernist
The integration tests that you are describing behave much like I would expect unit tests to behave. Give an input, assert the results (return value or state change). The example of optimizations breaking the unit test could be either a poor test (If the function doesn't need to call that intermediate with that data, why is it being tested?). Oftentimes the spy is added to the test because there is unnecessary tight coupling between two units.

This isn't to say that integration tests aren't great, too. They all tell different stories. I like unit tests, as they force me to think about modules as units. If a unit is hard to test or brittle, it may need more attention to its design.
Of course one thing not brought about social welfare is that isn't a choice of to pay or not but to pay now vs pay later no matter what you do - in addition to humanitarian and reputation impacts.

It is harder to calculate given hard numbers only exist if things go wrong.

Not paying for vaccination or hygenic programs leads to outbreaks which are expensive to contain and not containing leads to even more.
Even literally leaving people to die in the street still generates expenses
Gtk is also increasingly focusing on horrible xml UI's and treating the code API as a second class citizen, at least in documentation.
These are US murders, they've just been outsourced to make the war on drugs look good.
With the altitude change I wouldn't expect 200 miles of range to be sufficient for SF->Tahoe, reverse might work.
The mentiones how they are building in redundancies and not running serveral of the links at full capacity to prevent just such a situation.
Yeah central american in general is a shithole. In Bolivia we are having trouble with colombians bringing in a ton of violence to the streets. To the point where hitmen tried to gun down people leaving their apartment complexes and being killed themselves, left on the sidewalk for everyone to see.

Evo certainly didn't help with narcos coming up big league since his illegitimate presidency.

These degenerates come to Bolivia and cause mayhem on a scale the people of my country and the police are not used to. https://www.youtube.com/watch?v=iSFQQzV24CE
> Why can't Mexico perform the basic state function of protecting its citizens from organized violence?

The drug cartel has better funding. This is why you see El Chapo housed in the US and not Mexico anymore.
No, it is a pain when you have to type it on anything but a computer.
Both countries could benefit from an EU-style NAFTA that allows for truly free movement of people and goods (no passports, no tariffs, no customs inspections, etc) between borders. Today that proposal would probably be problematic, but the U.S. Mexico and Canada should be pursuing "ever closer union" to borrow the EU's phrase.
But state machine and communication protocols.. aren't they isomorphic ?
Nasa Live: Official Stream of Nasa TV
I have the same experience. Integration tests are the best. They test only what really matters and allow you to keep flexibility over implementation details.

When your TDD approach revolves around integration tests, you have complete freedom to add, remove and shift around internal components. Having the flexibility to keep moving around the guts of a system to bring it closer to its intended behavior is what software engineering is all about.

This is also how evolution works; the guts and organs of every living creature were never independently tested by nature.

Nature only cares about very high-level functionality; can this specimen survive long enough to reproduce? Yes. Ok, then it works! It doesn't matter that this creature has ended up with intestines which are 1.5 meters long; that's an implementation detail. The specimen is good because it works within all imposed external/environmental constraints.

That's why there are so many different species in the world; when a system has well defined external requirements, it's possible to find many solutions (of varying complexity) which can perfectly meet those requirements.
I would assume Canada has much stronger border control than Mexico.
Yes, competitive democratic political system with minimalist federal government that is used only to solve issues that need a monopoly to be solved, everything else can and should be done by free unregulated market. But if you want people to have some sort of safety net, it's a separate issue. And government can be used for that, as a middleman to help organize financing of those safety net. But government is never tho most efficient player on the market, so it should not be a part of the solution.

And US and most western countries don't have all of this at the same time. Some countries have competitive democracies(US not one of them) some have kind of minimal/efficient governments. Some not that regulated markets. But no one has all at the same time.
I think most would agree that integration tests are better. The problem is they tend to be slower. Having to initialize the system appropriately for every test (e.g. writing to the database) tends to limit the number of tests you can have.

Unit tests scale a lot better. That's why most generally use a pyramid structure: lots of unit tests, a moderate amount integration tests, and a few end-to-end tests.
You needn't recognize one's humanity to exploit their capital...
It's nothing new, GLADE has been a thing since the late 1990s.
What's changed is that the "foreign competition" are winning to the point that "local businesses" are closing. Exactly the same thing that drives calls for protectionism in physical goods industries.
While I'm a big fan of Rust, excluding Java because "JVM" is kinda laughable. It's not hard to run at all. You package everything into a jar then run a single command. As easy to get working as a JS backend.

If their complaints are about GC tuning, is it not the same thing as tuning the GC in Js/Go? Java still had arguably the more mature GC of any language
S 3 X Y

This was intentional and I'm just now catching on, right?
> Topped by Brazil with 42,000 deaths, the macabre list is followed by the United States, Mexico, Colombia, Venezuela and Guatemala.

All the countries mentioned aside from United States seem to suffer from gang warfare, or even civil war. That it is so high for Latin America is perhaps not surprising. Unfortunately, the US doesn't seem to have that excuse.

Also, are we undercounting murders by other countries by differentiating between civilian vs non-civilian? That could be affecting the statistics.
> Too frequently, code would change and mocks would need to change with it, removing a good chunk of the benefit of having the code under test.

A lot of people overuse mocks when testing. In fact, using mocks enforces coupling between different methods because a lot of people use them to assert that a method with a specific name was called with specific parameters or they create one that asserts a method with a certain name returns a certain value. So when one wants to refactor, they not only have change the code; they need to update all the mocks that reference it as well.

I've found that a better way to structure code is to take the result of an external dependency and pass it in as a parameter to a method that will process it. Then when I unit test that method, I just pass in what I expect from that dependency and assert on the return value of that method. I don't try to unit test the outer method that calls the dependency by creating a mock call for it.

> Then I started writing integration testing while working on converting a bunch of code recently, and it has been eye-opening. Instead of testing individual models and functions, I was testing the API response and DB changes, and who really cares what the code in the middle does and how it interfaces with other internal code?

It makes it easier to isolate the cause of the error rather than having to search to the entire call chain to find it (especially if it's a logic error that doesn't result in an exception). Plus, integration test suites take a lot longer to run and can have timing issues due to caching or other reasons which can result in sporadic failures.
I doubt $25k is feasible in the short term.. maybe in 10 years due to production efficiencies but then we'd also be factoring in inflation so it could be a wash. But even more exciting is how much more advanced autonomous will be in 10 years - it might even not make sense to own your own vehicle, just summon one instead.
Yeah, it's unfortunate. Rather than a solution that could be adopted outside of CCI, this is only useful in those configs. So as soon as you use them in your org with this product, you have to reinvent the wheel to get the same functionality in any other CI that a different team might be using.
Isn't this default better for average Joe that runs a Java desktop app, and developers that deploy apps should know how to change this defaults?
Thanks imperialism. Things would probably be better if right wing dictatorships weren't supported with arms and money for decades. Maybe economic conditions for their people would be better leading to less crime. Don't tell that to US mining, agricultural, or oil concerns or the anti-communists in the Pentagon.

Let's just stay asleep and dream dreams of Venezuelan oil.

https://www.kcet.org/shows/democracy-now/bolton-pushes-priva...
If it is important to the operation of the function, from an outsider perspective, the intermediate call should be tested. Oftentimes this isn't the case, though. Most often, I see intermediate calls spied/mocked when they have side effects to be avoided. This is actually a sign of tight coupling between modules, and patterns like dependency injection can help make it easier to test.

The trick for me is focusing on what the unit does from a consumers perspective. Avoid testing implementation details (unless they are important side effects), and test the behavior that does not change. If you do that, then refactoring becomes easier, because tests will only break when the contract of the unit changes.
I mean, they already closed down La Marina...
> If American guns are the problem, why aren't the gun homicide rates higher in the United States than Mexico?

One of the answers is money. USA has more of it - for policing, for prisons, for making sure corruption and taking bribes from crime is less of an attractive choice. More poverty and profits of drug trafficking push the homicide numbers up in Mexico.

Of course American guns are not the whole problem but they are the problem alright. Here in Canada from 50 to 75% of illegal guns come from south of border.
Sometimes Bees Sleep in Flowers
The only reason the Model 3 is named that is Ford owns "Model E" and said that Tesla couldn't use it.

And yes, this has been Musk's plan since the Roadster.
I believe Canada and Mexico both have more guns per capita than the USA does, but one has less gun violence than the USA and the other has more...feel free to look it up and double check me on that though my brain is rusty and I think I last looked into it around Y2K.
Source!? Falcon 9 cost is not even public is it? Your number is wayyyy too high to match with current SpaceX economics I think.
https://mynoise.net/NoiseMachines/cafeRestaurantNoiseGenerat... is oddly helpful. The unintelligible babble sounds cover up real chatter.
That's a pretty good tactic.

Our government is entirely responsible for the rise of organized crime and corrupt officials in Mexico with respect to the War on Drugs, just as we were responsible for:

* the rise of organized crime and crack cocaine in California in the 80's when we were also caught proliferating drugs and firearms into Los Angeles to fund radical terrorist groups

* the rise of organized crime and corrupt officials in New York and Chicago after the Prohibition movement

* the rise of organized crime and terrorist cells in the Middle East after repeated meddling in foreign affairs in the pursuance of economic dominance and control of resources

* the rise of organized crime and corrupt officials in parts of South America where both the War on Drugs and staging of coups and election meddling have wreaked havoc on the population

But instead, we can use this as a way to convince people that American citizens have too much easy access to firearms. Because it's really in our best economic interest that only police, criminals and criminal organizations have guns. I would be surprised if the CIA wasn't in some level behind this report, with their sterling track record.
Static Type Checking.

I used to think Node.js was the greatest thing ever. I won't bother explaining the benefits but suffice it to say I much prefer writing a server in Java compared to node.

I think it takes getting burned at least once for new developers to understand why a lot of seasoned developers like types.

Over time I've realized that there's a simple principle that applies to a lot of stuff in software and engineering in general:

"The bigger something is, the more structure it needs"

Writing a quick script or small application? Sure use Python, use Node, it doesn't matter, but as size increases, structure needs to increase to stop complexity from exploding.

It doesn't just apply to typing either. The bigger a project is, the more you'll want frameworks, abstractions, tests, etc.

If you look around this principle applies to a lot of things in life too, for example the bigger a company is, the more structure is added (stuff like HR, job roles, etc...).

As a corollary, the inverse of the principle is:

"Don't add too much structure to a small thing"
> Er, they actually worked fine on Maemo/Meego.

Maemo was basically a full Linux though. It was closer to desktop squeezed into a mobile screen than a mobile platform, so lots of things could be compiled and "just work".