Recent submissions

Comment · 7 days ago
Uncommon? How many people have a phone in their pocket? Any app that functions offline (for when you don't have cell service) and syncs between devices essentially has distributed nodes minting data.
Comment · 8 days ago
Indeed. There are a couple billion devices on the planet for which this is a common requirement.
Comment · 9 days ago
...if you work specifically on web applications with a centralized database.

Some of us don't, so these types of universal proclamations are rather unhelpful.

Comment · 1 month ago
People are being intentionally obtuse in order to find something to get mad about.

Obviously offering add-ons to your own product is not the same as "showing ads" by any common understanding of the term.

Otherwise literally every app that offers a free version or trial with some form of paid upgrade would be considered "showing ads" because there's an upgrade button somewhere in the app.

If you're going to call that "showing ads" then I would argue you've overloaded the definition to the point where it becomes meaningless.

Comment · 1 month ago
I don't understand the question. If the model built both apps why wouldn't it also be building the new features on both platforms at the same time?

Alternatively, point the model at your git repo for platform A, read the diffs since release X and implement the same changes on platform B?

Comment · 2 months ago
You're framing it as lucky timing but if Microsoft had tried to ship a smartphone in 2006 with the same available technology it still would have flopped.
Comment · 2 months ago
> technology wasn’t there

Until Apple developed it. Those early iPhones employed a lot of tricks to squeeze usability, battery life, and performance out of underpowered devices.

Prior smartphone attempts mostly applied PC-centric concepts to the device, it’s no surprise they ended up failing.

Comment · 3 months ago
It's worth nothing that all of the studies you linked were performed only on children. It is entirely plausible that DXM is effective in adults but not children because of the difference in dosage or measurement (studies on children often rely on parental surveys).
Comment · 3 months ago
> This article uses the trick where you pick studies that support your argument and ignore all of the studies that disagree with it.

It's even worse than that, they appear not to have actually read the analysis they cited because two of the three studies on DXM found it was effective in adults. The same efficacy was not found in children but there are other very plausible explanations for this (difference in dosage and measurement techniques).

Comment · 3 months ago
I don't know if OP changed their link but the one currently in their post (https://pubmed.ncbi.nlm.nih.gov/37232330/) did find DXM to be effective:

"Using objective and subject assessment tools validated in pediatric populations, this study provided evidence of the antitussive efficacy of DXM in children, aged 6–11 years, at the current OTC monograph dose and labeled indication. Compared with placebo, DXM treatment reduced cough rates 21.0% over 24 h (primary endpoint) and 25.5% during daytime/awake hours. In addition, children treated with DXM reported greater reductions in cough severity and frequency in the mornings and afternoons over 3 days than children treated with placebo. These treatment effects were statistically significant despite the study not reaching its planned sample size and are medically relevant."

Also as I mentioned in another comment, the author of original article misrepresents the findings of their own citation. DXM was found to be effective in adults, just not children.

Comment · 3 months ago
> Most studies have found that dextromethorphan performs the same as a placebo

The citation linked does not support this claim. In fact it suggests the opposite:

"Dextromethorphan was tested in three of the included studies (Lee 2000; Parvez 1996; Pavesi 2001). One report on a series of three successive studies on a total of 451 adults favoured dextromethorphan 30 mg given in a single dose to placebo in terms of cough counts (measured through cough acoustic signals using a microphone on the nose) and subjective visual analogue scales (Parvez 1996). Differences in mean changes of cough counts between active treatment and placebo varied from 19% to 36% (P value < 0.05) in the three studies (up to a net difference of eight to 10 coughing bouts every 30 minutes). This study did not report on side effects.

A study involving 44 participants tested a single 30 mg dose of dextromethorphan versus placebo (Lee 2000). Both treatment groups showed a decline in cough frequency (from 50 to 19 per 10‐minute period in the active treatment arm compared with 42 to 20.5 in the placebo arm, P value = 0.38 at 180 minutes follow‐up). Mean subjective cough scores showed a decline from 2.0 to 1.0 in the active treatment group compared to a decline from 2.0 to 1.5 in the placebo group (mean difference in decline in cough scores 0.5 at 180 minutes, P value = 0.08).

Pavesi and colleagues also tested a single 30 mg dose of dextromethorphan versus placebo (Pavesi 2001). Outcomes were measured through a three‐hour continuous cough recording, measuring cough bouts, cough components, cough effort, cough intensity and cough latency. Average treatment difference was 12% to 17% in favour of dextromethorphan for cough bouts (P value = 0.004), cough components (P value = 0.003) and cough effort (P value = 0.001), with an increase in cough latency (P value = 0.002)."

Two out of the three studies found DXM was effective in adults. The studies did not find the same efficacy in children but that could be due to differences in dosage (adult dosage is 30mg, child doses vary based on body weight) or in measurement techniques (as far as I can tell the child studies measured results via parental survey as opposed to more objective techniques like cough recordings).

Comment · 3 months ago
Even if you replace ORM generated queries with hand generated queries or LLM generated queries you're still missing a huge chunk of functionality provided by an ORM.

For my projects I would say that the majority of the value an ORM delivers occurs after the query has returned from the database.

But for some reason everyone focuses on query generation as if it were the only feature of an ORM.

Comment · 3 months ago
I mean there are plenty of projects that don't fit this description, where the database is just a persistence layer for your objects and the database should be subservient to application code.
Comment · 3 months ago
> Even when you had to do this manually, it was a very minor effort. A one time thing.

Maybe if you’re fetching data from a single table… once you start joining across multiple tables and need deduplicate your result rows it gets pretty annoying to do it by hand though.

Comment · 3 months ago
Your comment comes across like saying "why would I use an impact driver when my screwdriver does everything I need?"

If you don't actually need those features then obviously an ORM will offer less value to you. That doesn't mean ORMs aren't useful tools, they just aren't useful for the problems you work on.

I tend to work on projects where those features are useful and if the ORM didn't provide them out of the box then I would need to build them myself. In other words using a query builder alone does not adequately solve the problems I need to solve.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton