logoalt Hacker News

altern8today at 3:48 PM2 repliesview on HN

Might be because there are less Swift projects to train with.

But I've seen Claude write crazy code in Python and JavaScript, too


Replies

ChrisMarshallNYtoday at 3:51 PM

My theory is that most of the Swift code in the public domain, is basically demo code. Short, idealized, code samples to demonstrate issues and solutions; much like you would see in StackOverflow.

PHP has huge, entire frameworks and systems, refined over years.

show 1 reply
graemeptoday at 3:53 PM

I do not know about crazy, but certainly sub-optimal. For example a loop over DB query results instead of modifying the code to work with a single query.

show 1 reply