Hacker News new | past | comments | ask | show | jobs | submit | Apotheos's comments login

N of 1 but that's never happened to me and I cook most of my meals from scratch.


It seems disingenuous to imply that the effects of COVID are not worsened by a high body fat percentage and / or poor physical health.

COVID is not a fat persons disease, but as with most detrimental health episodes, the negative effects are greater in people with high body fat percentages.


I would say OP was pretty disingenuous in implying that this was merely "fat people feel better from diabetes drug", when clearly it's not that they "felt better", it was that the medication reduced incidence of long covid when given during infection.


What's the new way as of a few months ago? The docs way?


They may be referring to React 18 + Strict Mode meaning all useEffects can be called as many times as React wants. People before were writing code where useEffect on [] worked like onMount and was only called once.


The entire hooks "thing" felt like a case of the library authors being too clever.

Having components with lifecycle methods called at known times by the framework is a perfectly straightforward mental model. It's worked just fine since the beginning of time. iOS still uses it.

I remember investing hours (and days and weeks) migrating old code to the "new way" or trying to get some simple thing "working with hooks." Other than being able to share in the authors' feeling of smugness over the unnecessarily-convoluted mental model when we finally got it all working, I genuinely can't recall any value we got out of the whole investment.


I agree. Hooks felt to me like an attempt to go all-in on functional programming when components are perhaps easier for many people to think about as classes due to the unavoidable need to have state in the component. It seemed like an attempt at purism that, instead of making things simpler, made them, at least cognitively, a bit more complicated due to the irreducible complexity of state.


My experience has been the opposite. With hooks, it's now possible to decompose a concern and modularize it in full. Having logic for dealing with a concern spread over willMount/didMount/shouldUpdate/willUnmount was a total mess. It's bad enough with one concern, but if a component has 3 or 4 concerns that span across the lifecycle, it quickly became unwieldy. And for all the complains about people using `useEffect` wrong, I saw just as many people using setState calls in lifecycle methods and crazy things happening in mapStateToProps of class components.

In the end, hooks have greatly simplified things for me.


It turns out much of s/w development is a cult (many cults) with no basis for their teachings.


> Having components with lifecycle methods called at known times by the framework is a perfectly straightforward mental model. It's worked just fine since the beginning of time. iOS still uses it.

Android, too.


What's so infuriating about that is the documentation basically told people, hey instead of doing this, use useEffect the way you were using these methods.

So are the users wrong, or did you screw up?


> So are the users wrong, or did you screw up?

When you have to rewrite the documentation to basically tell the world "you're holding it wrong" then it says a lot about the thought that has (not) gone into designing the feature.

And that's why I think I'm done with React for now. It just does not spark joy.


If you're ignoring dependencies that should be on a call to `useEffect`, you're just making room for bugs.

If you're not properly tearing down what you're doing in an effect, you're just making room for bugs.

These have always been true of useEffect.


Then how do I emulate onMount now?


You have to use a useRef then inside your useEffect of [] you check if it is false and it it is you set it to true then run your code.

If anyone reads this and I am wrong please comment, but from what I can see that's the only solution.


I know we dumped AMP at The Daily Beast because revenue per page view went down significantly enough to negate any supposed benefits of using it.

If I remember correctly pageviews didn't increase when we used it, which was the idea as google would rank us higher.


My news site dumped AMP late last year also. We were doing a replatform and just didn't carry it over. Didn't see any appreciable changes in traffic or user behavior.


Problem with turning off AMP, it’s generally replaced with a page with even more ads, so the user suffers in that aspect.


Ads themselves aren't the core problem. It's the 10's of megabytes of superfluous javascript you're expected to download to read content with primarily text presentation. Put the marketing departments on the ark ship along with the telephone sanitizers and we'll all be better off.


> Put the marketing departments on the ark ship along with the telephone sanitizers and we'll all be better off.

... but we'll still have nice-looking hair :)


You don't just hit the 'reader' button/mode in your browser?


I block most javascript by default for a nicer 90's style web experience but there are times when I'm using a browser without addons or reader mode available. This is far faster than the supposed streamlining that AMP was claimed to provide. The most hostile web sites I encounter are the AMP pages on the Google assistant news feed.


But a lot of that JS is for ads and tracking/analytics, the latter of which also ties into ads and marketing.


AMP never limited you from doing all that; it's just the method that is tweaked.

In my experience if a publisher chooses to make their main website a trash fire, their AMP version is too.

Nothing stopping a publisher doing their website right. Even with advertising: manage inventory first-party, don't track users off-site, base your ads on content.


That’s not true. The specification didn’t allow docked video ads that take up 50% of the space on the page.


But if you do all that right, then what benefit does AMP serve?


To the user? Absolutely none. You can make better sites without it.

To the publisher? Originally, some twisted incentive that you'd rank higher on mobile and then globally but IIRC this no longer exists and OG data is also used. AMP is a component library too now so I guess that could simplify development if they couldn't use anything else, because HTML is so hard.

To Google? A funnel away from in-house and management at larger publishers, and ideally into one of their AMP-supported models. AML is "open" now but it's still Google, innit.


Google can load an amp page instantly from a search result page since they can cache the data and pre-render before you click. No publisher can do that with their non-amp pages.


Problem is that adtech companies are extracting all the value from the news market

There seems to be a huge gap between what ad buyers pay, and what publishers receive (one study showed The Guardian got as little at 10c for each $ spent) so publishers end up adding nore ads to try to compensate


The Guardian manages [at least some of their inventory] first-party. Their products and rates are refreshingly transparent.

https://advertising.theguardian.com/

They may well use backup agencies for selling unfilled slots.


This is probably The Guardian study I was thinking of https://the-media-leader.com/where-did-the-money-go-guardian...

Says in the worst cases they only saw 30% of the revenue

Recent studies have shown even worse results for other publishers https://whatsnewinpublishing.com/how-much-publisher-revenue-...


It says that's the worst case for programmatic buys.

I don't know their business, but I suspect most of their big money ads are direct sales and they pocket the lot. It'd be interesting to break down their income by source.


Speaking of AMP and ads, fun fact! If you block ads, AMP purposely ads a few second delay to load all AMP pages. So in your scenario, the winning option is to install an ad blocker and avoid all AMP pages. :)


[citation needed]

And this is not a swipe. This really does need a citation. It's believable, but only just.


My own experience with load times as a user who blocks tons of scripts, and countless people citing it over the years. I've responded to them a bunch on HN, but here is one from 2018.

https://news.ycombinator.com/item?id=16733667


Ads pay for the content.

Do you think that journalists just work for free?


> Do you think that journalists just work for free?

Can you please edit swipes out of your comments to HN? We're trying for a different sort of forum here, as described at https://news.ycombinator.com/newsguidelines.html.


I don’t run an ad blocker for that reason. But there’s a limit to what is reasonable: https://www.baltimoresun.com/news/crime/bs-md-ci-cr-timothy-... https://www.baltimoresun.com/education/bs-md-student-voting-...


Journalist here: Yes I do think that journalists often work for free. Many, many journalists work for free until they "make it". It's sadly such a competitive field that it's the only way to get paid work down the line.

Regardless though, the most-critical local reporting I know of is funded without advertisement or paywalls. Both newsroom and freelance journalism funding happens through grants. Funny enough, the orgs that I'm never able to get freelance work through are orgs that have paywalls and significant ads. Lots of gatekeeping when you have advertisers to appease.


I block ads and subscribe to what I consume regularly, including journalism. The two ideas are not mutually exclusive. ;)


Ads aren’t bad. They’re a way to get content without needing to exchange money for it.

The user suffer more when the content goes away.


Exchanging money for goods and services is the entire basis of the economy. Ads force people to pay with their attention span, which seems to have serious consequences - the user is suffering from attention deficit far more than an imagined lack of content.


Well if money isn’t exchanged for the service of content (in some way), the content eventually goes away. The lack of content stops being imaginary.


Cool. Let me pay $20/month for an ad-free Internet (not just one site). I already have Youtube Premium.


This is like saying "Cool. Let me pay $10,000 for a Ferrari. I already have a tricycle."


I suspect YouTube alone makes up the majority of my casual browsing data volume.

You could even make it $100/month if you wanted.


That content is only ever produced out of monetary motivations is the biggest lie capitalism has sold us.


> Exchanging money for goods and services is the entire basis of the economy.

Sounds like advertising meets that description.

It's a transaction of value - potential future customers via the service of advertising.


Sounds like it doesn't and you missed the point. There are two parties that matter: the reader and the website.

Instead of addressing that you introduced a third party, which works for the website as a service. Correct, but irrelevant.


It does not. Attention is a limited good, not capital. Capital is capital.


You've changed your definition.

Advertising is a service, it is fundamentally no different than any other service. We may find it annoying or distasteful, but it is a natural good from natural actors in a capitalist system.


Subsidizing products with your attention span is not a natural thing in a capitalist system. What a ridiculous idea. Advertising is a service, it should be paid for with capital, not used as a subsidy or alternate form of payment.


> Subsidizing products with your attention span is not a natural thing in a capitalist system

You're looking at the wrong thing as capital and the wrong thing as the service.

The service is customer sourcing and the capital is literally capital.

It is a very natural capitalist creation, self-evidently so.


I don't think I am. Internet users are not being fairly compensated for their data and unless you block the entire Facebook and Instagram namespaces, they track you whether or not you have consented.

The platforms are acting like feudal landlords, not capitalists.


First, I think you've simply identified a key feature of capitalism: exploitation of a resource.

Second, the market has spoken. Some of us feel we're being exploited by having our data harvested for the transaction of advertising, but most do not.


So is attention a resource or a capital equivalent? Doesn't seem like you've made up your mind on that.

> Some of us feel we're being exploited by having our data harvested for the transaction of advertising, but most do not.

Since FB and Google have monopolies in ppc marketing, I'm not sure how you'd reach this conclusion. The only way to opt out is to completely block them on your networks, there is no competing option.


> So is attention a resource or a capital equivalent? Doesn't seem like you've made up your mind on that.

It's both. Why would you think these are mutually exclusive?


You are correct overall that they are a legitimate way to trade for something with your attention but their application is so abused now. The push-back is worthwhile.


Ads don't have to be bad, but most are for a variety of reasons... jarring graphics, animation, unrelated to the content. If a news organization is showing a lot of junky ads then I'm going to assume it is a failing news organization.


I get your argument, but more ads mean more intrusive JS and longer load times, which make the user experience worse. But yes, of course one needs to weigh these two sides. Free content needs to be monetized.

And AMP is a downside for everyone, i think we can agree on that. Seems like content creators didnt even get any of the promised benefits out of it.


> And AMP is a downside for everyone, i think we can agree on that.

Wait, what? At the time it was introduced, it was literally the only counterbalance to the incentives of adding as many ads to your site as possible. Google has better ways of penalizing bad practices now, but that wasn't the case 7 years ago.


There's a German news site (I think Zeit?) that has an interesting approach. When you try to access the site, it gives you an explicit choice (between two buttons) between the site with ads or subscribing to the site.


I respect being given a conscious choice up front.

NPR used to do something similar for GDPR — either accept their cookies or view the site content in plain text.

(edit: probably not in line with GDPR but heyho)


NPR's plaintext site is one of the best news sites ever.

Obviously, if you visit a news article and select to be redirected to plaintext, they don't redirect you to that article on the plaintext page for that article, but to the homepage, which makes it inconvenient in the hopes you won't select that option again. But once you see where to insert the article ID, it's good.


Ads aren't, generally. Targeted advertising, however, is trash and needs to go away.


When I joined Talking Points Memo, AMP was the new "hot" thing. I fought hard to stop us from jumping on that train and I'm glad I did.


Dude do you even know what John Carmack contributed to the space? Take your own advice you gave to 15 those 15 year old boys and read a book on him.

And an aside: DOOM Eternal absolutely rocked. Please state your issues with it as well please list what you would consider an amazing FPS game.


Question for you, why would you ever roll coal?


Did not realize what the term meant. I do not roll coal.


Have always wanted to try and run a Matrix instance but the tutorials all seem just a bit out of my skill level.

Would love if there was a docker container to easily spin up an instance.



Flexbox Zombies is what you're looking for I think.


What even is this comment? What a weird projection on the commenter's part.

Love the part about calling out the price of a Switch, without considering that the parent might also spend tons of money on education as well.

To top if off the guy is an options trader! Lol!


Huh is C0D3 brand new? I've been going through full stack open but this is the first time I'm hearing about the other one.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: