A software developer lost their job after using AI to write code that caused a big problem at work. The developer posted about the incident on Reddit,.