The Evolution of Automated Code Generation Tools: Advancements and Best Practices