AI is great for coding small fragments of code or writing short functions in various programming languages like Bash, C++, Python, etc.
It can quickly generate examples of code using features of different languages, along with wrappers that serve as mini-unit tests.
AI excels as a shortcut reference tool by providing fast and accurate information if the required documentation is available and the query is well-defined.
However, AI may struggle with writing complex logic that requires human reasoning, as seen in the example of creating a complicated regular expression.