I just tried to use ChatGPT to generate a switch for comparing a byte[] with a known set of strings, switching on the length of the string and then doing equality checks. It produced code that looked right, except all of the sizes were totally wrong.

Lesson learned: don't use LLMs for anything numeric.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/headius/statuses/115731816962096689 on your instance and quote it. (Note that quoting is not supported in Mastodon.)