News for hackers. Stuff that matters.

taylorlunt

Re:What ORMs have taught me: just learn SQL (2014) on Sunday July 05, 2026 @10:54AM (#48794740)
Yes, there is a middle ground. Elixir's Ecto does this well.

Database rows map to structs. But it doesn't try to figure out how to mutate the data for you to keep the struct in sync with the database. All mutations are explicit using changesets (which can also be used for other non-database purposes, like validating user input for an API.)

There is no implicit preloading of data. You have to explicitly preload.

Data is never fetched implicitly. You have to call Repo.all or Repo.one or something.

It has a query DSL that's a thin wrapper over SQL. It's well-designed and I've never had a problem with it.

This reminds me of the recent Claude Imagine, which passed quietly through most people's radars, but let you create web interfaces of any kind on the fly. There was no JS code generated. Instead, any time the user clicked a button, the AI would manually update the page accordingly. It was also slow and terrible, but a fun idea.
Re:Vibe Engineering on Tuesday October 07, 2025 @10:58PM (#45511579)
I agree, prototyping seems like a great use-case.
Re:Vibe Engineering on Tuesday October 07, 2025 @10:46PM (#45511505)
These seem like a lot of great ways to work around the limitations of LLMs. But I'm curious what people here think. Do any career software engineers here see more than a 10% boost to their coding productivity with LLMs?

I see how if you can't really code, or you're new to a domain, then it can make a huge difference getting you started, but if you know what you're doing I find you hit a wall pretty quickly trying to get it to actually do stuff. Sometimes things can go smoothly for a while, but you end up having to micromanage the output of the agent too much to bother. Or sacrifice code quality.

Re:Why do LLMs freak out over the seahorse emoji? on Monday October 06, 2025 @01:48AM (#45488027)
I have a pet theory that LLMs being confused about what they just wrote is why they use so many em dashes. It's a good way to conceptually pivot at any point -- or not.
Elixir handles all of this pretty well, for example differentiating between Date, Time, NaiveDateTime (a date and time), and DateTime (a date and time in a particular timezone). The Timex library is a great improvement too.

JS has libraries that make the problem easier too. Though you'll never find a magic library that makes all the complexity disappear, because at the end of the day, you do need to tell the computer whether you mean 7 pm on the wall clock of where the users happen to be, 7 pm on a specific date in a specific time zone, etc. and doing math between dates is inherently complex with e.g. daylight savings changes. You might end up creating a datetime that doesn't exist (which Elixir handles well).

Re:You People Keep Contradicting Yourselves on Thursday July 03, 2025 @11:30AM (#44456079)
I have personally no interest in the actual debate the two were engaged in.
Re:You People Keep Contradicting Yourselves on Thursday July 03, 2025 @11:28AM (#44456063)
Ha, I'm certainly not expecting my writing to change human nature! I feel more like David Attenborough or something, watching nature from the outside and commenting on things for the edutainment of my audience. Maybe some of the people who read the post will change their own behaviour, but it would never be enough to make a dent.
Re:You People Keep Contradicting Yourselves on Thursday July 03, 2025 @11:25AM (#44456029)
I pointed out in the article that this is the system working as intended. Getting a meeting with a VC is not the same thing as getting an investment. And if you're getting thousands of emails, it makes sense to prioritize the most impressive-sounding people as opposed to choosing randomly or something.

There was also no control for this experiment, so we don't know what the alternative even looks like.

Re:You People Keep Contradicting Yourselves on Thursday July 03, 2025 @11:18AM (#44455941)
This is a strange response for someone demanding generosity and charity from others.
Re:You People Keep Contradicting Yourselves on Thursday July 03, 2025 @01:03AM (#44451784)
Thank you!
Re:Betterbird: a fine-tuned version of Mozilla Thunderbird on Wednesday September 21, 2022 @10:59AM (#32926109)
I stopped using Thunderbird on Linux when it deleted all of my RSS feeds.
Re:Ask HN: Reasonable scope for a beginner web dev? on Friday June 17, 2022 @12:28AM (#31774121)
Shopify is used for this sort of thing, supports payment with Stripe, and you can integrate it with Django. Should be straightforward.
Re:Things that used to be hard and are now easy on Monday February 21, 2022 @10:33AM (#30416950)
The mean quality goes down, but the total number of games above a certain threshold goes up, which makes discoverability a bigger problem than it used to be, but, assuming we can solve that problem, makes the gaming industry better.
It isn't.
You've never spent much time around lower IQ people, I take it. The type of people who drive trucks, or bag groceries, and will never be able to do more than that. Good people, most of them, of course. But allergic to logical, deliberate thought, and barely capable of it when they try. Not everyone can do basic math, and many of those who can't, have no problem booking a hotel.

These CAPTCHAs require more thought than the platform otherwise does, therefore it will gate some people from using the platform.

Re:I Miss RSS on Thursday January 06, 2022 @02:25PM (#29828588)
Vivaldi has support for RSS feeds now. Vivaldi has been getting better and better. I urge anyone who hasn't tried it in the last year or two to check it out. It's the new Opera.
Re:Adding is favoured over subtracting in problem solving on Friday April 09, 2021 @12:03AM (#26746567)
I wrote about this here: https://taylor.gl/blog/6/

It seems to be psychologically easier to justify adding things than removing them.

Re:Complexity No Bar to AI on Sunday February 21, 2021 @05:30PM (#26217958)
Note that a mouse does not need to solve the problem from scratch like a computer does. They are born with a general solution to the problem of movement in their brain, which has been arrived at by evolution.

To replicate this, you can't expect to get away with only replicating the complexity of the mouse. You potentially need a computer with as much complexity as the evolutionary algorithm which led to the mouse's movement algorithm.

Re:Statement on New York Times Article on Sunday February 14, 2021 @11:44AM (#26133796)
Part of the problem with journalism is they're expected to publish regularly, even when they have nothing to say.
Re:How to walk upright and stop living in a cave on Thursday November 05, 2020 @03:17AM (#24996511)
It is, however, exorbitant on the scale of my wallet.
Re:How to walk upright and stop living in a cave on Thursday October 29, 2020 @12:24PM (#24932194)
Is it possible that you have not yet formed the kind of temporal associations I mentioned in the article?
Re:How to walk upright and stop living in a cave on Thursday October 29, 2020 @12:21PM (#24932152)
Here's a massive meta-analysis of tens of thousands of participants finding a reduction in mortality associated with vitamin D supplementation:

https://www.cochranelibrary.com/cdsr/doi/10.1002/14651858.CD...

Vitamin D + calcium supplementation for bone health in middle-aged or older people:

https://link.springer.com/article/10.1007/s00198-015-3386-5

But you're right that some of the benefit of "vitamin D" will be associated with going outside. I outlined several reasons in my article: the outdoors has brighter lights, lower carbon dioxide, etc., which are good for our health.

Re:How to walk upright and stop living in a cave on Thursday October 29, 2020 @05:53AM (#24928771)
Unfortunately, from what I've heard at least, it takes less than an hour to again return to your carbon dioxide equilibrium.

Older »