How to use GenAI as an engineer
Day 7 of a hands-on, non-technical guide for executives
Start with the Introduction to series . This is Day 7
Today’s exercise makes sense only if you are somewhat technical (an engineer, a product manager, etc.). Still, I recommend you try this because it shows where white collar work in many domains is headed.
At the most basic level, you can ask questions and get answers. That’s like a chatbot. But there are higher levels that you should be aware of.
Level 1: Using Google Search
At the most basic level, you can simply query for code. For example, go to Google and search:
python code to get logprobs from openaiYou can copy-paste this into your editor, but using a coding assistant goes so much more than that.
Level 2: Using Claude Code
At the next level, you can use code as an artifact and keep modifying it.
Go to https://claude.ai/ and type in the same query:
python code to get logprobs from openaiNow, have it edit the code in a rather simple way:
instead of 2.718, use math.eNow, make it make a more meaningful change that involves complete redesign:
rewrite this code to work in conjunction with structured outputs. I want a single method that will take the input, the desired output structure as a Pydantic object, and return a Pydantic object along with the average logprob for each data elementLevel 3: Using within IDE
Level 2 is good for 0–1 use cases where you are building a new feature. But what if you want to update existing code? This is where AI assistants with IDE-integration like Cursor, Windsurf, Augment, GitHub Copilot, etc. start to shine.
Programmers can do things like pasting in an error message and asking the AI tool how they would fix the error. Or attaching a screenshot of their current UI and asking the AI what to modify to change the order in which different UI components appear.
Try this with Gemini CLI, since it can be helpful for interacting with all kinds of files on your local drive, beyond just programming.
- Install Gemini CLI following the instructions at https://github.com/google-gemini/gemini-cli
- git clone some code repository, perhaps https://github.com/lakshmanok/generative-ai-design-patterns/
- Issue the command in Gemini to go to that directory
Go to the project generative-ai-design-patterns4. Ask questions about the repository. Try this:
what is the user interface flow in the app?4. Make some change to it (I’ve already made this change, so you have to try something else)
Conclusion
I hope that you tried each of the steps above, and that you tried it until you were happy with the results. What surprised you about how capable the technology is? What surprised you about the errors that it still produces?
Links to Full Series
Day 0: Introduction to series
- Day 1: Use GenAI as a secretary
- Day 2: Use GenAI as an executive assistant
- Day 3: Use GenAI as a librarian
- Day 4: Use GenAI as an analyst
- Day 5: Use GenAI as a researcher
- Day 6: Use GenAI as a sparring partner
- Day 7: Use GenAI as an engineer (this page)
