AWS Logo
Menu
How Amazon Q Developer Saved My App

How Amazon Q Developer Saved My App

...and got my code working!

Jen Looper
Amazon Employee
Published Aug 10, 2024
This article gives an idea of what we're looking for in blogposts for week 2's challenge. Short and sweet, but useful! The banner image is from Midjourney.
Recently I was working through building a custom ML model so that I can identify a very special set of images using a carefully curated dataset (to be revealed when I travel to India next month!). On the Academic Advocacy team, we have a sweet web app that's just right for this kind of thing, that students build in one of our workshops. It allows you to upload pictures and use Rekognition's inference capability to identify items in the images.
I knew where to grab the codebase for this app and build a quick demo, as I didn't want to design something new - but when I tried to run the web app locally, I came up with a dreaded blank screen and an error in console:
"Module Buffer" error
Bummer, I thought, back to the drawing board to debug.
But wait! Instead of panicking, I asked Amazon Q to give me an idea what was going on here. I opened up a chat console right in VS Code, and voila, I was given a hint:
Amazon Q in VS Code
Hints for a fix
With a little investigation, I learned that my version of Node allowed me to dispense with the Buffer import and refactor the function that calls it. Problem solved!
Thanks, Q! You even helped me rip out code and shorten a function!
Problem solved! To learn more about my project, come to my talks next month during Student Community Days in India and Nepal!
Learn more about these events on the Student Hub. And join us for the Generative AI Festival which is featured there!
 

Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.

Comments