article thumbnail

Stubbing AWS Service calls in Golang

Xebia

But I am also a big fan of test driven development. Client } func New() (*Lambda, error) { cfg, err := config.LoadDefaultConfig(context.TODO()) m := new(Lambda) m.SetS3Client(s3.NewFromConfig(cfg)) NewFromConfig(cfg)) return m, err } func (x *Lambda) SetS3Client(client *s3.Client) PutObjectInput) (*s3.PutObjectOutput,

AWS 130
article thumbnail

150+ live online training courses opened for April and May

O'Reilly Media - Ideas

Beginner’s Guide to Writing AWS Lambda Functions in Python , May 7. Next-Generation Java Testing with JUnit 5 , May 15. Programming with Java Lambdas and Streams , May 16. Test-Driven Development In Python , May 21. Programming with Data: Foundations of Python and Pandas , May 6. Modern JavaScript , May 13.

Course 49
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

New live online training courses

O'Reilly Media - Ideas

Advanced Test-Driven Development (TDD) , June 27. Test-Driven Development In Python , June 28. From Developer to Software Architect , August 6-7. Designing Serverless Architecture with AWS Lambda , August 7-8. Pythonic Object-Oriented Programming , June 26. Pythonic design patterns , June 27.

Course 69
article thumbnail

Why TypeScript is a better option than JavaScript when it comes to functional programming?

Wolk Software Engineering

Let’s consider an object-oriented implementation of the isEligibleToVote feature without types: const OUR_COUNTRY = "Ireland"; export class Person { constructor(birthCountry, age, naturalizationDate) { this.

article thumbnail

Using Golang for your Serverless projects

Xebia

In one of my previous blogs I wrote why I switched to compiled languages for my lambda functions. But using Golang for your lambda functions does add some challenges. This is because each lambda function needs to be its own module. This is now scattered over your lambda functions. If you run go test./.

article thumbnail

219+ live online training courses opened for June and July

O'Reilly Media - Ideas

Advanced Test-Driven Development (TDD) , June 27. Test-Driven Development In Python , June 28. From Developer to Software Architect , August 6-7. Designing Serverless Architecture with AWS Lambda , August 7-8. Pythonic Object-Oriented Programming , June 26. Pythonic design patterns , June 27.

Course 51
article thumbnail

170+ live online training courses opened for March and April

O'Reilly Media - Ideas

Beginner’s Guide to Writing AWS Lambda Functions in Python , March 1. Programming with Java Lambdas and Streams , March 5. Bootiful Testing , March 6. Advanced TDD (Test-Driven Development) , March 15. Java Testing with Mockito and the Hamcrest Matchers , March 19. Discovering Modern Java , March 1.