Hacker News new | ask | show | jobs
by liuliu 592 days ago
For more complex tasks, asking it to write in a more comfortable language for that task and then translate to target language helps. Example: if you ask Claude to write code that generates UDP datagram for mDNS in Swift, it will fail flat. But if you ask for C and translate, it can succeed.

BTW, Python is usually the more comfortable language.