The more that we have AI trawling our writing, the more important I think it is to realize that AI is part of the audience.
I have been thinking about writing more "cookbook" style posts so that users and AI have good modern examples to look at. CSS-tricks is a great example. It has good code and and is easy to search.
One thing that articles that include code need to tag good and bad examples. AI will get better at recognizing the bad, but we should have more comments that say "This is bad. Use the better pattern."