Working with AI

(htmx.org)

36 points | by comma_at 5 hours ago ago

9 comments

  • jdlshore an hour ago ago

    Carson’s experience matches mine: AI is good at analysis and boilerplate, but not good at the kind of critical thinking necessary for good designs. If it were human, I would say that it jumps to solutions to quickly, rather than stepping back to consider the big picture and how everything should fit together to make a cohesive whole.

    It’s not human, of course, and I think this problem actually relates to the fact that LLMs don’t have a world model. They don’t study and think through a design in the way that humans do. They don’t form a mental model of how everything fits together and how that design can be tweaked to most elegantly support a change.

    I suspect that this is a fundamental limitation of LLMs, and that design will remain a weak point until some sort of bespoke design AI is bolted onto the side. In the meantime, we’ve got a lot of people producing a lot of code very quickly, and I think the debt in that code is going to be a millstone around our necks for a long time to come.

  • thorum 4 hours ago ago

    Interesting read! Creating tests is highlighted as something Claude did well, but it strikes me that all the weaker rejected solutions could have been avoided if it were really good at designing intelligent tests for itself. For example, the first solution “was very specific to the reported bug and wouldn’t have fixed the general case” and the third suggestion “prevented the perfectly valid use of as conversion expressions in go commands as well”. I imagine both of these cases could have been noticed and avoided by the agent if it had planned out adequate tests ahead of time.

  • recursivedoubts 5 hours ago ago

    hello all, this is an article I wrote up on my interaction with an agent, Claude, in fixing a bug in the hyperscript parser

    it was a rather mundane bug, but i thought the interaction was interesting and worth analyzing to show where AI is very strong and where it is not as strong

  • waffletower 4 hours ago ago

    I disagree with the trope -- (AI effects) "the slow dulling of our intellects". I am old enough to remember my career change, being a developer in the Apple ecosystem, confident with Objective-C and native system libraries in iOS and MacOS. I changed direction using a very different software stack in cloud services as a data engineer with deep utilization of Clojure. I have personal projects that I occasionally would return to in the former world -- often a decade or more later. I saw what I forgot immediately; but soon after, with engagement, I saw how quickly I was able to remember. Extended use of AI for me has exactly this footprint. Even "use it or lose it" is wrong -- "use it when you need to" is honestly more like it -- the brain is plastic. Some AI fears are warranted, this isn't one of them.

  • nsonha 3 hours ago ago

    AI makes the case for htmx, we don't have to think about the spaghetti code, AI does it for us /s

  • varun_ch 5 hours ago ago

    maybe slightly unrelated but the new htmx homepage (https://four.htmx.org/) feels a little ironic, seemingly written with tailwindcss and a full JS ecosystem Astro build system. It also has the ‘vibey’ ‘hypey’ landing page design that’s hard to describe but you’ll find on any web framework, rather than dropping you to docs like the old site.

    Compared to the original simple HTML site it’s really surprising to see from the grugbrain.dev author!

    • recursivedoubts 5 hours ago ago

      :) i let a younger person on the core team create the new website for something different

      it is using astro, we are scaling down the use of tailwind (I wanted to give it a try, but didn't really click with it.)

      I don't mind someone doing something kind of fun with the website and trying something new out, I know some people don't like it but some people do. All good.

      • varun_ch 4 hours ago ago

        that’s fair! It definitely looks good and modern!! I just wonder if it compromises the initial impressions of the project in some way.

      • mistrial9 4 hours ago ago

        isnt it obvious that some web sites will become unreadable without serious machine assistance, while classical HTML web standards have some fallback path to read by a human ?

        clear text with minimal markup has many desirable properties IMHO