Computers write code. For real?

Computers write code!

How it works

Installation

Implementing an AWS Lambda function handler

Amazon CodeWhisperer

import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;
import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent;
import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent;
// AWS Lambda function handler that returns HTTP 200
// AWS Lambda function handler with API Gateway integration
// Function to download a file from the specified URL
// Function to upload a file to an existing S3 bucket

GitHub Copilot

// Function to download a file from the specified URL

Conclusion

  • Can we use the generated code as-is?
  • Is the code production-ready?
  • Is the code clean, safe, readable, and fast?
  • Does the code follow the best practices of the programming language?

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Dmitry Balabanov

Dmitry Balabanov

Solutions Architect at AWS. Opinions are my own.