3 ms·
> because they reveal themselves the second you try to run that code. In dynamic languages, runtime errors like calling methods with inexistent arguments etc o
by woadwarrior01 2y ago
> because they reveal themselves the second you try to run that code.
In dynamic languages, runtime errors like calling methods with inexistent arguments etc only manifest when the block of code containing them is run and not all blocks of code are run at every invocation of the programs.
As usual, the defenses against this are extensive unit-test coverage and/or static typing.
- simonw 2y ago"... only manifest when the block of code containing them is run" Right, that's the exact point I make in my blog post: you have to TEST the code - not just with automated tests, you have to actually try it out yourself as well. https://simonwillison.net/2025/Mar/2/hallucinations-in-code/ https://simonwillison.net/2025/Mar/2/hallucinations-in-code/