Using Artificial Intelligence Wisely in Development

By William Pereira ·

Being a programmer involves more than just solving problems: it is about how you evolve and adapt in an environment of constant innovation. In a landscape where artificial intelligence becomes increasingly present, those who learn to use it intelligently find a powerful partner to expand their skills and efficiency.

This article is about day-to-day practices for using AI — how to apply it in order to evolve. It complements the article How Each Dev Profile Uses AI, which looks at the difference in experience between junior, mid-level, senior, and tech lead.

Every beginner programmer may have found themselves caught up, often, in an almost universal habit: copying and pasting code, hoping everything works magically, without understanding exactly what happens behind the scenes. This “it will probably work” approach is almost a mix of logic and magical thinking. And who has not done it? It is tempting, especially when we are starting out.

I speak from experience. Having worked with development and programming for over 16 years, I know this path well, and I will share a bit of that experience here.

The Evolution of Learning: From Forums and Tutorials to the Use of Artificial Intelligence

Early in my career, Stack Overflow, Reddit, programming forums, and Google searches were the norm for quickly finding answers and code examples. We reached a phase where YouTube and the wave of tutorials, especially with the growth of instructors from India, became almost indispensable sources. How many times did we follow a step-by-step tutorial and, for some reason, the code did not work on our machine?

For those who did not go through that, maybe they were lucky enough to have good mentors or the privilege of investing in physical technical books. Others simply gave up along the way. The reality is that the tools for learning programming have always been evolving and becoming more accessible.

Today, the arrival of Artificial Intelligence (AI) has brought a new paradigm. “Copy and paste” gained a new dimension: if before we trusted forums and tutorials, today we can interact with an AI that suggests, refactors, explains, and even writes code from natural language descriptions.

Technology will not replace humans, but humans who do not use it will be replaced by those who do.

How to Use Artificial Intelligence Intelligently

Even with the advances of AI, which make development easier, there are practices for using it intelligently. Below, I highlight some effective ways to take advantage of AI to grow as a developer:

1. Write Pseudocode

Before asking AI for help, draft what you want to accomplish in pseudocode or with detailed descriptions. Instead of writing the final code directly, try to structure the logic clearly.

Suppose you want to build a function to calculate BMI. Instead of asking AI directly for the code, write something like “A function that receives weight and height, calculates BMI by dividing weight by height squared, and returns a message according to the index.” This helps the AI understand exactly what you expect.

Developing this skill helps organize ideas and increases the chances of getting an AI response that truly meets your needs, in addition to promoting a deeper understanding of the concepts.

2. Experiment with Incomplete Code

Write what you can or know so far, even if the code is incomplete or wrong, and ask the AI to fix it and explain what is missing.

Imagine you are creating an API in Node.js but do not know how to set up the middleware. Write the part you know and ask the AI to review it and complete it with explanations of what is being added.

This practice lets you understand what is wrong, encouraging active learning. Every error is an opportunity to understand the mechanics of the language or the tool.

3. Refactoring and Code Improvement

Write the code yourself and then ask the AI to refactor it or improve its readability and efficiency.

If you developed a simple search function that walks through an array of objects but feel it is slow, ask the AI to optimize the function. It may suggest a more efficient implementation, such as using binary search algorithms if the array is sorted.

By seeing different versions of your code, you learn to adopt better practices and more efficient structures, gradually incorporating these techniques into your own repertoire.

4. Clarify Conceptual Doubts

Instead of just asking it to solve the problem, use AI to clarify fundamental concepts you do not fully master yet.

If you are implementing JWT authentication and do not quite understand how tokens are generated and verified, ask the AI about the process, including what “digital signature” means and how security is guaranteed. It can provide a more detailed explanation than you would find in a quick search.

This helps consolidate theoretical knowledge, which is the basis for understanding and solving future problems on your own, without depending entirely on digital assistants.

5. Combine AI with the Official Documentation

Consult the official documentation while using AI to get explanations and practical examples. With AI, you can ask questions about specific terms or methods from the documentation.

When working with a library like Pandas, read the documentation to understand functions such as merge() or groupby() and ask the AI for practical usage examples in specific scenarios, such as merging two dataframes based on a common key.

This practice creates a solid and reliable learning foundation, helping you understand the correct use of tools and technologies straight from the source.

6. Write Tests for Validation

Even if the AI generated the code, write tests to verify that it works as expected and covers the planned use cases.

Suppose the AI helped you develop a function to validate emails. Write tests that ensure it accepts correct formats and rejects addresses with invalid characters. If the function fails a test, ask the AI to review the logic.

This not only improves the security and quality of the code but also helps you understand the behavior of the software and identify possible weak points that may have gone unnoticed.

Conclusion

Technology evolves at an accelerated pace, and there is no doubt that other innovations will still emerge to influence our routine as developers. Artificial intelligence is only the beginning of this transformation. Staying up to date, however, goes far beyond following trends — it is a matter of survival and professional relevance.

Technology can be both our ally and our enemy. It depends on how we use it. Those who learn to use AI and other tools consciously and intelligently will always be one step ahead. In the future, new technologies will certainly be incorporated into the day-to-day of development. Preparing for that and adopting a posture of continuous learning is what will guarantee not only our adaptation but our constant growth in our careers.

Back to blog