Better HN
topnewbestaskshowjobs
Log inSign up

consteval

1,210 karma · joined Jul 19, 2024 (2y ago) · 1,613 submissions

Submissions

comment 2y ago · link · parent

> I struggle to find any substantial arguments against the js language

The biggest problem with JavaScript is that it's an extremely footgunny language. IMO, of the C++ variety, but probably worse.

1. The type system is unsound and complicated. Often times things "work" but silently do something unexpected. The implicit type conversion thing is just one example, but I know you've seen "NaN" on a page or "Object object" on a page. Things can pass through and produce zero errors, but give weird results.

2. JS has two NULLs - null and undefined. The error checking around these is fragile and inherently more complex than what you'd find in even C++.

3. JS has an awful standard library. This is footgunny because then basic functionality needs to be reimplemented, so now basic container types have bugs.

4. JS has no sane error handling. Exceptions are half-baked and barely used, which sounds good until you remember you can't reliably do errors-as-values because JS has no sane type system. So it's mostly the wild wild west of error handling.

5. The APIs for interacting with the DOM are verbose and footgunny. Again things can look as though they work but they won't quite. We develop tools like JSX to get around this, but that means we take all the downsides of that too.

6. Typescript is not a savior. Typescript has an okay-ish type system but it's overly complex. Languages with nominal typing like C# are often safer (no ducks slipping through), but they're also easier to work with. You don't need to do type Olympics for most languages that are statically typed, but you do in TS. This also doesn't address the problem of libraries not properly supporting typescript (footgun), so you often mix highly typed code with free-for-all code, and that's asking for trouble. And it will become trouble, because TS has no runtime constraints.

comment 2y ago · link · parent

The only arguments against abortion are ones of morality. They lean heavily into religion, and when they don't, they focus on "saving lives".

By dismantling the moral perspective as incorrect, because it is, I dismantle the entire anti-choice landscape. Which is really the trouble with moral arguments to begin with.

There CAN be other arguments here. Arguments of personhood. But nobody does those, because those require more thinking. The supreme court certainly didn't. Fetuses aren't considered people, and yet they are granted one (1) right purely to satisfy the anti-choice crowd.

comment 2y ago · link · parent

You can do all those things, just in less time. Which is a different skill set I admit.

But, for example, high school AP English exam is 3 45 minute essays (plus multiple choice). You have the read the passages, compare/contrast, etc.

comment 2y ago · link · parent

> fixing your diet

What the fuck do you guys think GLP-1 inhibitors do? Why even bother posting if you don't understand the most surface level of what I'm saying.

> drinking habits

GLP-1 inhibitors have also been shown to reduce drinking and smoking. It's essentially an anti-addiction drug.

It's very easy to sit on a throne when you don't have a food addiction. For those who do, it's not as simple as "durrr eat better". Come on guys we have to start putting that meat sack between our ears to use.

We've been trying, and ONLY been trying, the "discipline" approach for the entirety of the obesity epidemic. And it is not working. Point blank, this is not an effective method of treating obesity or diabetes.

If that's your suggestion, it's obvious you don't actually know what's going on. Which is fine, but then perhaps silence would do you some good. Less embarrassment that way.

comment 2y ago · link · parent

> Overeating is caused by lack of movement and bad diet

Is this some kind of joke? A bad diet doesn't cause overeating - overeating IS the bad diet. Also not moving doesn't cause overeating, because how could it? What, I sit down and suddenly a burrito appears in my hands?

The cause of overeating is a propensity to overconsume, i.e. you have an addiction. Diet and exercise address the SYMPTOMS, but not the ROOT CAUSE. You STILL have an addiction. In the exact same way someone who is sober is STILL an alcoholic.

Because drinking alcohol is not actually the root cause of alcoholism. The root cause is an addiction to alcohol. You can't get rid of the addiction, but you can treat the symptoms - by never drinking, by being sober. But you did not address the root cause.

By my logical analysis, I conclude GLP-1 inhibitors better address the root cause than diet and exercise. To further strengthen my point, you've more or less admitted this by pointed out you've been obese "multiple times". If you had addressed the root cause this would be impossible! But you did not address the root cause but merely the symptoms via diet and exercise. You still had the addiction, so when you slipped you became obese again. This cannot happen while taking a GLP-1 inhibitor because you no longer have the extreme desire to eat. Even when you lost weight, you still had the extreme desire to eat.

comment 2y ago · link · parent

Ansible + Docker. The only "catch" is you still have to manage the host. It's trivial with Debian stable, and really the goal is to have a little on the host as possible and as much containerized as possible, so you can automate.

comment 2y ago · link · parent

> People don't have broken minds from corporate jobs

I would just like to say I wholeheartedly disagree.

A LOT of the much older people I know are struggling really, really bad. I'm talking conspiracies, abject misery, downright delusion. The trouble with "broken minds" is that you can't see it. If you could, your mind wouldn't be broken!

comment 2y ago · link · parent

It's frustrating too because deployment technologies and tools continue to get better and better. It's never been easier to deploy an application + database to some arbitrary computer. You can do it declaratively, no SSH, no random shell scripts, no suspicious fiddling.

Also, sidenote: but for small stuff you can just deploy in your home. I've done it before. It's really not that scary, and odds are you have a computer laying around. The only "spooky" part is relying on my ISP router. I don't trust that thing, but that can be fixed.

comment 2y ago · link · parent

I don't think that you necessarily need lexical locality, rather you need specification. And interfaces are just an easy way to make a specification. The problem with "too much" lexical locality is that now you have to search DEEP into stacks to figure out what really going on.

The whole point of specifications is trying to extract the most requirements in the least amount of time. With more "top level" interfaces and tools like DI you can do that, but certainly you can take it too far. A single function, I'd say, is way too far.

comment 2y ago · link · parent

> That meant as much meat as they could hunt or raise plus whatever else

The human diet has been a very, very small minority meat. Because meat is hard to get.

And prehistoric game meat is also not the same as farm meat. Beef and pork contain high amount of saturated fat, but game antelope would contain much less and would have unsaturated fat. Meat of that time is really closer to avocado than meat of our time.

> Regardless of what you "think", that is the reality

I'm glad to see everyone is being civil.

But if we come back down to Earth, you'll realize diabetes is reversed 95% of time when Ozempic is used.

Do those people eat carbs? Yes, they do. Is 95% a higher success rate than whatever pathetic adherence rate a miserable existence like ketosis has? Yes, it is.

If for 99.9999% of all of human history our diets consisted of almost exclusively carbohydrates, I don't think we're following the right path here.

Just because ketosis reversed diabetes DOES NOT mean it address the root cause. It could be purely incidental. And it's also a piss-poor treatment. Because it sucks, and nobody wants to do it, so they try it and then lose a foot or two.

We should stick to real medications, such as insulin and Ozempic. The granola-brained can continue their keto.

comment 2y ago · link · parent

Or, rephrased, the doctor would rather prevent you from dying by giving you insulin as opposed to saying "just stop being fat lol" and then you lose both of your legs.

comment 2y ago · link · parent

> That's clearly double unhealthy behavior and will bring unintended consequences

Consider: GPL-1 inhibitors are actually root-cause solutions, and diet/exercise are not root cause solutions.

That's because the cause of obesity is not eating. The cause of obesity is a propensity to overeat. The cause begins in your brain and automatic responses, not on the table or the gym.

That's why you and I can eat, be satisfied, and not be obese.

Diet/exercise doesn't address the root cause. It fixes the symptom - obesity. But those people are still addicts, and if they fall off then they're off and will become obese again, much like an alcoholic. This diet "rubber banding" is extremely common.

Ozempic and others address the root cause, by lowering the desire or propensity to eat, perhaps closer to that of someone with a normal brain and normal regulation.

comment 2y ago · link · parent

Our bodies and responses were "designed" for such a system where obesity is impossible. The mechanisms that power obesity are vital for the survival of the human race.

The agriculture revolution only happened 10,000 years ago. This is all very new to us.

comment 2y ago · link · parent

> personal responsibility problem

The implication here is that somewhere along the way in the last 50-ish years people just lost the ability to have discipline. All at once. Across the entire globe.

Does that sound reasonable to you? Keep in mind 50 years ago almost everyone smoked.

Personal responsibility has not changed. I don't understand how people can say this when the problem is to such a widespread degree.

comment 2y ago · link · parent

Dying in a diabetic coma is just one thing. Diabetes and other metabolic disorders are all very closely related. We're talking dozens of severe, deadly, and lifespan reducing illnesses. Odds are if you're diabetic long term you're also obese, and have atherosclerosis, and high blood pressure, and high cholesterol, etc.

comment 2y ago · link · parent

To me, this just doesn't add up. For virtually all of human history, the human diet is mostly carbohydrates. If anything, we eat less carbs than we used to - instead, we now eat more saturated fats and protein, due to ready access to farm meats.

Prehistoric humans however (that is, before the agricultural revolution) consumed most of their carbs through fruits, nuts, and vegetables. It's estimated their diet probably consisted of around 100 grams of fiber a day, as opposed to the typical 2 grams people eat today. Fiber slowly the blood glucose elevation by quite a lot.

I don't think simply cutting out carbs is the answer or even sustainable. I think it makes much more sense to gravitate towards a diet of more whole food, which contain more fiber and thus don't raise blood glucose as severely. Carbs are important, and we've been eating them forever.

comment 2y ago · link · parent

I think this is what Rust does, if I remember correctly, it provides APIs in string to enumerate the characters accurately. That meaning, not necessarily byte by byte.

comment 2y ago · link · parent

> discipline and hard work

Well the ozempic helps you do the discipline and hard work. You don't take ozempic, eat everything, and get skinny. No, it makes it easier to diet and exercise.

For some they don't need the "motivation". For others, their mind is constantly under attack and pushed to eat, like an addict. For them it can be very helpful.

comment 2y ago · link · parent

Because statistically it's unlikely you stay that way. If you do, then great.

comment 2y ago · link · parent

That's what the ozempic is for. And it's a double whammy - because it stops the new-fangled nicotine addiction pipelines.

comment 2y ago · link · parent

People prefer the chips because their brains are broken and they have a fixation on tasty foods. It clogs their thoughts processes - basically, they have an addiction.

If you don't care much for food then you don't mind eating the carrots and you don't mind losing the chips. If your entire life is food, then you do mind.

comment 2y ago · link · parent

Ozempic directly address an unhealthy diet, particularly a diet of overconsumption. That's actually, like, all it addresses.

comment 2y ago · link · parent

> vary wildly depending on genes

Being born with worse attributes doesn't mean those attributes are out of the equation. A lot of people die much younger than they should just by poor luck, with little or no control on their end.

If you happen to have higher bone density and higher muscle mass just because you have higher testosterone, you're still better off. Sometimes people just get the short end of the stick. That doesn't necessarily mean BMI doesn't work.

I've even met smokers, smokers! Who have better cardiovascular health than me and are skinnier. Which really fucking sucks for me.

comment 2y ago · link · parent

Ozempic doesn't cause that, losing weight via diet does. Weight Watchers moms get the same thing.

The only people who don't are people who lose weight through resistance training. Which is a small minority - because we have a HUGE diet culture!

comment 2y ago · link · parent

I cannot possibly even imagine how this could be the case, considering just how deadly and miserable obesity is. I don't see how we can hypothetically "solve" obesity and then go back to an obese population because the drug makes you nauseous or something. And that's not even considering the, what I can only assume to be, trillions of dollars of healthcare cost savings over time.

comment 2y ago · link · parent

The prices you're getting are fake, whether you know it or not. Because you're not the one paying.

This is why it's sometimes cheaper to have no insurance than insurance.

comment 2y ago · link · parent

But the point of healthcare is to help people not die, regardless of if they can pay or not. We have a problem then, because outcomes don't line up.

If anything, healthcare and insurance have almost completely perpendicular incentives. No wonder then we have the world's most inefficient system.

comment 2y ago · link · parent

> the job would be done by someone who took a personal interest in the subject and didn't need to be paid for reporting it

I think we already have this, it's marketing and advertising. People are happy to report on things they care about, even burning money to report on it. It's just that the reason they care is because it's their thing, and they want you to buy it.

comment 2y ago · link · parent

That's not what the rule is. The rule is you get X amount of money, maximally, to spend on a meal.

From the employer standpoint it makes absolutely no difference if you got to a cheap place or an expensive place, because the rule is X amount. So you'd be stupid to go to a cheap place.

And the concept of having to eat it is stupid on the surface.

What happens if you get full, and you have to take some home? Are you now fired? No, right? But you broke the rules?

You require some amount of leniency. If you follow rules hard and fast, it will backfire. It also creates perverse incentives. Like I said, I'm incentivized to buy as much food as possible and as expensive as possible.

I agree some of these employees probably did deserve to be fired. I don't think Meta handled it well though, and I do think this ultimately hurts them orders of magnitude more than anyone else. Often, we justify self-destruction because we're right. Nobody really cares how right you are when you hurt yourself.

1
222324
54