Nathan Peck’s Post

View profile for Nathan Peck, graphic

Senior Developer Advocate, Generative AI at Amazon Web Services (AWS)

Today I built something I'd never built before, with the help of generative AI. I gave Amazon Q the challenging task of coming up with an algorithm to place windows on screen while minimizing overlap with other existing windows. Amazon Q was able to suggest several different approaches for finding best fit placements for rectangles, and when I asked for more info on one of the approaches, it even gave me a handy function for calculating the area of overlap between two rectangles. From there it was a simple task of gluing together the AI generated strategy and integrating it into my codebase. I was able to implement much of the needed code just by typing comments and letting CodeWhisperer autocomplete the code I needed. See the results below. By the way this is also a sneak preview of an in-progress mini game I'm developing, built on the Amazon Bedrock API. I'm challenging myself to think beyond the text chat box and build something that uses generative AI, but doesn't feel like a chat interface.

Ousseynou Ngom

AWS Cloud and DevOps Engineer at SkaleteK

3mo

Hey Nathan Peck I tried to message you to fix an error. In your demo in aws copilot (greeter, greeting and name service), the dockerfile was not working, it displays error to acces the ECR repository. To fix this I have removed the public repo and use this: FROM node:18 AS build WORKDIR /srv ADD package.json . RUN npm install FROM node:18-slim COPY --from=build /srv . ADD . . EXPOSE 3000 CMD ["node", "index.js"] And I do this fo all Dockerfile.

Like
Reply
Rich Healy

Director Consulting Enterprise Architecture at TriZetto Corporation

3mo

Great stuff Nathan!

Like
Reply
See more comments

To view or add a comment, sign in

Explore topics