It’s been a while since I’ve written a post, mostly because I felt that between my three books and my blog posts, I had said everything I wanted to say about software testing. But things have changed! In the last year, AI has drastically changed the software development landscape. After working with various AI tools for a while, I now have a series of posts about AI queued up! In this post, we’ll take a look at the basics. When using AI, it’s important to continue using your brain. Here are some things to remember:

AI is not intelligent
In spite of its name, artificial intelligence is not actually intelligent. The AI agents we use are based on a Large Language Model (LLM), which is a database of trillions of words. When we ask an AI agent a question, it is answering based on the information in that LLM. It makes predictions based on training and previous interactions about what you are asking and what you might want next. Do not make the mistake of believing that the AI knows how to “think”. It knows how to fetch data, organize information, and make predictions.
AI can be wrong
An AI is only as good as the data it was trained upon, or the data it knows how to fetch. If that data is wrong, its answer will be wrong. To use a simple example, if there are 10 websites that say that Beethoven was born in 1775 and the AI reads from only those 10 websites, it will tell you that is Beethoven’s birth year. (It’s actually 1770.) When using AI, remember to verify its answers.
You get what you pay for with AI
Free versions of AI do a smaller amount of research than the paid versions to answer your questions, and they do less confirmation on their findings. The more computing power you pay for, the more sources the AI will search to have a greater level of certainty of the correct answer. When working with AI, remember to consider the level of service you are getting.
AI will lie to you
The legendary James Bach once did an exercise where he asked an AI to provide him with information about a page on his website. It confidently returned a response with great detail about the page. The page did not exist. This is called “hallucination”, and an AI will do this because it is programmed to give you an answer even if there isn’t one. It will find data to make guesses about what you are looking for. I’ve experienced AI hallucination when I’ve asked it to solve a UI automation problem and it has recommended that I use methods that don’t exist.
AI will agree with you
The opposite of the previous problem is that AI will agree with you whenever it can. It might stick to its opinion when you are obviously wrong, such as when you tell it that the sky is green, but if you ask it to do something in code that is not efficient or sensible, it might do it anyway because that’s what you requested. Keep this in mind when you are giving AI coding tasks, and periodically ask it if there is a better way to do what you are trying to accomplish.
AI will use too many words
AI has the tendency to provide wordy explanations for everything it does. This can quickly fill up your code and documentation with unnecessary text, which can make it hard for humans to read the code and interpret what is happening. And when AI generates documents, it tends to return institutional double-speak like “focusing engineering capacity on foundational platform investments that will unlock greater leverage and compound velocity over time” instead of using the simpler “prioritizing tech debt”. AI creations that are too wordy and obtuse are referred to as “workslop”, and workslop should be avoided so that software projects are clear, organized, and maintainable.
AI will do things you didn’t ask it to do
More than once, I have caught an AI agent I created doing something I didn’t ask it to do, such as create a Python script to make its work more efficient, or find a way to get an API key that I didn’t provide it with. Others have told me they have experienced this as well. This is not only annoying, it can also be dangerous, since the agent could get access to systems that it shouldn’t have access to. When working with AI, it’s important to set guardrails on what it is not allowed to do.
Use your brain when using AI
I am not saying to avoid AI. On the contrary, AI can be extremely useful and can save you massive amounts of time. But it’s important to be aware of AI’s tendencies, limitations, and dangers so you can use it wisely. In the coming weeks, I’ll be diving deeper into various AI applications with advice of how you can test it and use it.








