How to effectively write quality code with AI