skysight-inc/HackerNews huggingface dataset:
The restaurant industry is a top contender for worst investment of time, money and effort. Wether you're opening a restaurant or want to work in one. Low profitability coupled with high demand on worker skill and efficiency makes sure you can never relax. Yes, restaurant work is highly skilled in order to deliver high quality food at acceptable speed. Restaurants not requiring skills do not offer any career advancement, but top restaurants requiring skills do not offer much of a career either.

Restaurant work is easy to get in to without having to submit yourself to academic humiliation and corporate humiliation, and since good workers are always wanted, you'll always have a job if you show good work ethic, whereas in other industries your job mostly depends on politicizing at the workplace.

But honestly, the restaurant sector I wouldn't recommend for anybody. The only way to expect a reasonable return on your efforts is to have your own place - and then you'll be working for your landlords who'll keep increasing the rent if they see you're being successful, or wasting decades paying interest on a mortgage. And since customers don't accept higher prices, you can't offer higher salaries. Then you start resenting your employees because they won't stay with you for a long time, and you're always rotating the roster.

Or maybe you have the money to buy a restaurant property in a good location outright. But then the question is: If you have that money, why not continue doing the thing that made you that money instead of investing in the worst sector?

Covid was the wake-up call. A huge part of remaining restaurant workers got laid off or put on "pause" without a salary. They realized that they were expendable to the employers and to the industry, so got new jobs and new careers. No matter what jobs they got, it was guaranteed better than their former restaurant job. With the added bonus that you can actually advance in your career and pay when you're getting more skilled at the job.

I don't know what the future holds for restaurants and eating. Maybe more mix-in with show business, so that people have more incentive to visit and don't mind paying a higher price? Maybe people start learning better to cook? It's not difficult. Maybe better quality microwave/air fryer food, in refrigerators instead of in freezers at the supermarket?
I'm curious, what native apps that are also available a web app do you store an offline copy of on your NAS? And which do you deny access to in your firewall?
The market rate is established by observing the sales that have taken place. If the sale price continues to be the same five years later, the market rate hasn't changed. You would not end up being paid an "under market rate" just because five years have elapsed. You would still be paid the market rate.

An under market rate would only be significant to outside interests. If I am paying someone $20 per hour and you want to pay the same person $10 per hour, then the $10 per hour offer would be under market rate. However, if for some reason the employee jumped ship and accepted your $10 per hour offer, you would not be paying an under market rate. $10 per hour would become the new market rate.
I used to think this, that the obesity thing was just a function of an increase in calorie consumption and a drop off in physical activity. I just can't take this view seriously anymore. When you look around today, there are body types that never existed prior to the 1970s - at least at any kind of scale. Comparing pictures of family gatherings from the 1950s through the 1970s, and then to the 1990s and beyond and there's such a stark, shocking difference. Two of my cousins had gastric bypass surgery (before they passed away), and there was never a real change in their diet or exercise (one was a cop, so it's not like he didn't get exercise). Something is poisoning us in America, and if there was one issue presidential candidates should be talking about that should be an easy bipartisan win it's health and fitness.
I think bhouston is talking more about poisoniing one’s own body with microplastics, whereas you’re talking about polluting the environment.
I work in cybersecurity so that feels quite fulfilling when you constantly secure companies and government against external threats.
Don't cans have a plastic lining on the inside so that the liquid doesn't touch the metal? Same goes for paper from what another commenter said about paper straws.

Heck I wouldn't trust paper food packaging because I'm not sure they would use a wax liner instead of some fancy PFAS forever chemical.
So, it turns out that the world will not stopping using oil in the foreseeable future? Colour me surprised.
A big problem for desalination is the brine, the highly saline solution left over after the fresh water is removed. You can't just dump it in the sea again, because its high salt content will kill all of the fish, coral, kelp, etc. So you end up with a large retention pond full of dangerous water until it dries up, then the salt is put in a landfill. It's pretty far from sustainable.
if all the keys are unknown until runtime then I guess the dict makes sense

I don't think it makes much sense in the example code given
There is always the option to build a ton of solar and desalination capacity.

At least for those regions closer to the sea level.
Failures due to creep deformation are pretty common in solder joints - driven by residual stresses created during assembly which persist over a long time, and eventually lead to cracks forming (stress relief - but not so good for the connection).

Usually not an issue at room temperature, but it can happen - solder has a low melting point.

In the case of the observatory, the failure happened in zinc components, which has a fairly low melting point.

Turbine blades are just one of the most extreme examples, it's really hard to make a metal that resists creep in that environment.
That Java comparison may soon become dated when JDK 21 hits stable in a few weeks.
All these apps could be written in Qt and would then work on all platforms.
This is by one the dudes who invented story points, and is really worth a read: https://ronjeffries.com/articles/019-01ff/story-points/Index...

It explains what they were aimed to solve, and acknowledges their modern day abuse. If you read Extreme Programming Explained ed 2, you see Kent Beck acknowledging them as an early experiment that they decided wasn’t useful.
Microplastics are, quite literally, everywhere.
Are you on Earth? Congrats, you are eating, breathing, and drinking microplastics.

They've been leeching into the environment for so long that you are no longer just concerned about primary sources contaminating your air, food, and water.

It's homogenized, from the deepest parts of the ocean to the tops of the highest mountains, there are microplastics. It's completely penetrated the food cycle.

If you want to avoid drinking microplastics, you'll have to explicitly remove it from your water.

If you want to avoid eating microplastics... I guess grow your own food in a hermetically sealed bubble and water it with your filtered water.
Nvidia Reports Q2 Earnings: $13B Revenue Sets Record on Data Center Demand
You are correct, but I still feel like we need a better way of making cross-platform desktop applications than just wrapping a webapp into a bunch of bloat.
Web technologies were never meant for this and it pains me to see a messaging desktop app clog up 100s of MB of memory
I do.

I have seen ton of time wasted due to the wrong abstraction.

Through it's a question about how much and what you duplicate.

Which means I somewhat partially agree with the articles which is more well nounced then the title implies.

One of the most common case of bad de-duplication is doing so with code which happens to be mostly same but there is nothing on a business logic pov which makes it the same.

Or code which differs mainly in points which the language used needs a lot of complexity to abstract over.

In my experience having a more power full type system, like in Scala, Haskell or Rust one one side has the benefit of making the refactoring much less bug prone, but also are easier to go into the "abstraction introduces too much complexity" territory. In the end using a type system _appropriately_ is a skill. One some which some technical very skilled people are missing.

Through what I also realized is that with strict type system a "top down abstractions" using e.g. custom traits/interfaces/abstract classes tend to be much more likely to cause issues compared to composite bottom up abstractions using closures to fill in the missing part. Sadly this kind of abstraction while simple in the simple case are also prone to need some limited degree of higher kindred typing in the less simple case. This is putting limits on how much you can practically apply them in many languages (or it accidental becoming to complex due to missing intuitive notation for the limited higher kindred type parts needed).

Through the most important thing for many projects is to make the code easy to change. And with this I mean changing the source code, not having complicated abstractions allowing you to use the same source code in many different ways even through you only do use it in one way at any point in time.
The Astonishing Vastness of Mind Space: Coexisting with AI Superintelligence
here is a study on the negative effects on aquatic life:

"In aquatic invertebrates, microplastics cause a decline in feeding behavior and fertility, slow down larval growth and development, increase oxygen consumption, and stimulate the production of reactive oxygen species. In fish, the microplastics may cause structural damage to the intestine, liver, gills, and brain, while affecting metabolic balance, behavior, and fertility; the degree of these harmful effects depends on the particle sizes and doses, as well as the exposure parameters"

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9205308/
This the one area the administration should go after instead of alcohol or whatever else they think they’re doing. By addressing obesity, making it uncool, taxing the living daylights out of sugary additives, etc they would save more lives than the lives combined in all their other feel-good, virtue signaling efforts[1]they sound nice and all but in thd end this effort would actually save a many more lives.

[1]gas stoves and ranges, overhead fans, etc. and of course when they released a trial balloon they accused people of conspiracy theory thinking -but here we are. Meanwhile sweeteners and fillers are everywhere.
i’m very excited for the next generation of photonics accelerators, like https://lightmatter.co/ to give massive compute speedups for linear algebra
I've only skimmed some of the code, but fwiw, anyone can read their code for each framework that's benchmarked here: https://github.com/TechEmpower/FrameworkBenchmarks/tree/mast...

There's also a good amount of active discussion going on here: https://github.com/TechEmpower/FrameworkBenchmarks/discussio...

Here's the code for the JS (just-js) benchmark: https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast...

And here's the code for the Python uvicorn benchmark: https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast...

From some light skimming, the JS and Python code doesn't look particularly abnormal or overly-optimized.
Main menu is the top left button inside the extension. In that menu you can enter Settings. Then in settings you can click the category to see a list of other categories, or use the arrows.
Even if studies like this one come from a particular political slant, it's really hard to look at the data and discern that there was some combination of specific/actionable conditions, policies, and population behaviors that could have served as magic bullets for better long-term outcomes.
China Reaches Peak Gasoline in Milestone for Electric Vehicles
I prefer doing this directly in a registry/factory class, eg:

class Registry:
constructors = {}

@classmethod
def register(cls, other):
# you can do it by an implicit property or the class name in simple cases. It's better not to use implementation details here, eg you should use an explicit class attribute
# you can also verify that the other class holds certain invariants here, so it fails immediately
cls.constructors[other.__name__] = other
# cls.contructors[other.name] = other

@classmethod
def from_name(cls, name):
# error handling code here
return cls.constructors[name]

# in something.py
@Registry.register
class Something:
def __init__(self, foo, bar=None):
self.foo = foo
self.bar = None

# In something_test.py
import something
import registry

smth = registry.from_name("Something")

s = smth('foo', bar=2)

You'll want to have a registry for each base class (they largely all look the same except for the invariant checks), but this way you don't have to update a map, you just add the decorator to new classes as you build them. It also allows classes to be completely unaware of the registry and focus on their actual task.

Additionally, the invariant checking can do all sorts of things that you can't do with a base class, eg making sure that overridden properties are still properties, checking that class attributes follow whatever formatting convention you have, etc etc
That's pretty nice. I don't want Epic but I tried HoloISO and it's a little on the clunky side.

I don't understand why they would expose a Grub delay by default on a gaming system.
Yes, so offer an alternative.

How will you keep everyone from dying from food-borne illnesses? What about all the items we manufacture that REQUIRE plastics?

We're not using them just because it's fun and we like loading people with plastic bits.

It would be better if disease magically didn't exist too but that's a useless thing to say.
Oh wow, It's exciting to see this pop up on HN. I'm Dave, founder of ToDesktop. Feel free to reply to this and I'm happy to answer any questions :).
Brine is just water plus the salt that was in the seawater before. You have to dilute it and spread it.

But, sufficiently diluted, it’s just seawater.

In a sense, it’s the same effect as water evaporating over the ocean:
Water goes out and salt remains.
I took a pee on the Canadian side so take that eying up the lakes. How many lakes you guys going to run dry?
How to Be Happier Without Trying
We've seen all the major players have downtimes up to days in some cases (AWS had some like 10h outages). We've seen Cloud services lose data permanently. In practice, there's no hard-limit guarantee at all.
I'm a DevOps engineer. I totally buy duplication is better than the wrong abstraction but I'd like to nuance it: duplication is better than an abstraction used by two disparate parties (groups of people that don't talk to each other).

This is in agreement with Conway's law, which absolutely governs everything I do. I work on a DevOps team that supports several different development teams all working on different things. The code I write for those teams I often duplicate along team boundary lines. Build scripts, for example, I write and I put them in each team's git repository. These might look very similar. This allows the scripts to grow and change and evolve according to the different teams needs without the teams needing to talk to each other.

"Proper duplication" goes back to separation of concern. If you have two different concerns (using the lens of Conway's law, two very different teams) using the same code, perhaps they should not be using the same code because that is not a separation of concern. Separate the concerns by separating the code paths both concerns use.

This type of duplication is praised in more depth on wingolog[1]. I highly recommend reading it as something every engineer should read.

It's very important to know when to duplicate and when not to do so, because duplicating it the wrong time can lead to pain, but not duplicating can lead to pain also.

1: https://wingolog.org/archives/2015/11/09/embracing-conways-l...
Is there no existing population that has been minimally affected by these 2 factors ?

A controlled study is impossible to do, but the correlations and trend lines should show up when comparing across different population wide exposures to PFAs and microplastics.

That's another reason I think it is important to keep granular data of localized IQ, fertility, and trends in reproductive choice. People are worried about what it will reveal. We should instead be worried about what we're missing.
It looks like a well executed product, but I believe the future is to move towards running in the browser only, rather than browser wrappers for the desktop. For example, isn't just visiting a URL in your browser so much more easy and convenient than having to have an installer? Isn't it nice to use the already-installed browser rather than ship a full browser engine with the app?

We put our money where our mouth is as we develop Construct[1], a fully browser-based game development editor. It's only available in the browser. You can install it in Chrome and Edge so it looks much like a locally installed app. We actually used to have an NW.js wrapper for things like file system access, but browsers now support enough features (including the File System Access API in Chrome/Edge) that we retired the NW.js wrapper and just do everything 100% in the browser now. It works great for us and I think it will only get better.

[1] https://www.construct.net
Tracking Babies Using Baby Buddy
Because this isn't cost-competitive on a per-gallon basis versus continuing to do business as usual, and the environmental impact of any kind of desalinization can be shockingly negative depending on how the waste output is managed. The process produces a hyper-concentrated sludge of minerals/metals/whatever else was in the water that's toxic to basically anything living. You don't want to just drop it in landfills to leach into ground water / spread on the surface, and piping it out to sea ends up creating a massive dead zone around the outlet.
> Even if you manage to find something that is somewhat relevant to the real world, like green energy research, chances are it might be something highly technical, abstract, and difficult to relate back to the final product.

As someone lucky enough to have found a programming job in an organization that is dedicated to something I believe in, I can confirm this perspective. The big picture mission helps keep me motivated, but my day-to-day is pretty abstracted from that mission.

My advice to OP would be to try to diversify your sources of fulfillment. That may be unsatisfying advice - I know that there was a time in my life that I would have rejected it - but from where I stand now, it is the most reliable path to overall happiness.
Absolutely!

My coworkers are able to depend upon me while I enjoy providing levity, coaching, and a fantastic work environment.

My family is provided for and my children have me nearby while I am working remotely. I am making amazing money by pushing plastic down in a particular sequence.

In the event anything is ever dull I bring a good attitude, shining disposition, and an effort to reframe the situation into favor of those who surround me.
I have to say I’m pretty sick of scrum meetings and regular formal sprints. 80%+ of the meetings feel like a waste of time only adding context switching.

You could argue that such teams / enterprises just aren’t doing it right and that may well be true - but it’s what’s we’ve ended up with.

I long for the days of a (small!) daily standup coupled with simple Kanban and an issue backlog.
> Do you have studies showing that plastic begins to distintegrate immediately

It's an area of active research, so ... I don't. If you find something, let me know.

https://www.nist.gov/news-events/news/2022/04/nist-study-sho...

NIST Study Shows Everyday Plastic Products Release Trillions of Microscopic Particles Into Water

... when plastic products were exposed to hot water, they released trillions of nanoparticles per liter into the water ...

https://pubmed.ncbi.nlm.nih.gov/37343248/

Assessing the Release of Microplastics and Nanoplastics from Plastic Containers and Reusable Food Pouches: Implications for Human Health

... microwave heating caused the highest release of microplastics and nanoplastics into food compared to other usage scenarios such as refrigeration or room-temperature storage. Some containers could release as many as 4.22 million microplastic and 2.11 billion nanoplastic particles from only one square centimeter of plastic area within 3 min of microwave heating.

https://www.nature.com/articles/s43016-020-00171-y

Microplastic release from the degradation of polypropylene feeding bottles during infant formula preparation

https://www.theguardian.com/environment/2018/mar/15/micropla...

WHO launches health review after microplastics found in 90% of bottled water

Researchers find levels of plastic fibres in popular bottled water brands could be twice as high as those found in tap water
> There are many instances I've encountered where two pieces of code coincided to look similar at a certain point in time. As the codebase evolved, so did the two pieces of code, their usage and their dependencies, until the similarity was almost gone

https://connascence.io/
They have now shifted to saying that they're part of the clean energy revolution or something of that sort. I started seeing commercials with this rhetoric a few years ago, but I see even more now.
Google and the viral web, brain-computer interface lets woman ‘speak’
I really don't get your replies and why their tone has to be the way it is but, have it your way. I tried.
> a lot of it is the food environment surrounding people

Yup. It is hard to pull all the factors apart because they contribute to each other. If you are obese, I understand it screws up your hormones which makes it easier to stay obese. Also if you have exposure to chemicals which cause you to have a tendency towards being obese you are more likely to seek out a bad food environment - e.g. crave McDonald's fries, etc.

So you sort of just need to work on each factor and over time, it will change. For many, we already have significantly accumulations of forever chemicals or microplastics so it may take a generation to truly fix.
Suggestions exist that the tiny hairs inside our ears are used for sensing the sound, low cysteine levels in normal hair is associated with brittle hair[1]
Zinc also binds to cysteine to make structures in the body, like zinc fingers, and binds with histidine for myleoid cells like mast cells and remylination of the nervous system.

so are low zinc, cysteine and histidine levels a factor for tinnitus?

[1] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1176799/
Boiling water remains the most effective way of clearing the water of microorganisms (better than any filter), but does nothing for nonbiological contaminants.

Ideally, you do both. Personally, I'm comfortable with just the filter. In hundreds of trips into the wilderness, the only time I've suffered from contaminated water (giardia -- don't recommend) was when I accidentally drank some unfiltered water. Fortunately, I didn't develop any symptoms until I was back from the trip.