Using LLMs for Coding: Common Pitfalls and How to Use Them Effectively