4 ms·
The original code was autogenerated, which is why the style was very terse and verbose. It's still like that: https://github.com/aws/aws-sdk-go/tree/master/mod
by AYBABTME 11y ago
The original code was autogenerated, which is why the style was very terse and verbose. It's still like that:
https://github.com/aws/aws-sdk-go/tree/master/models/apis https://github.com/aws/aws-sdk-go/tree/master/models/apis
The fact that it feels very Java-esque comes from two things, in my mind:
- the AWS API has Java-esque RPC calls
- the request/response paradigm is easier for
code generation
Personally, I don't like the style of the SDK, but at least it's maintained by AWS; you can always wrap the parts you use to get a nicer interface.
- omaranto 11y agoWhat do you mean by "terse and verbose"?
- um_ya 11y agoWhat was used to auto generate the code?
- rifung 11y agoUnless things have changed drastically, they use internal tools to generate the code. I used to work on one of the SDK teams.
- TheDong 11y agoThey have a makefile target called generate https://github.com/aws/aws-sdk-go/blob/v1.0.0/Makefile#L31 https://github.com/aws/aws-sdk-go/blob/v1.0.0/Makefile#L31 Reading the code, it looks like the most important lines are around here: https://github.com/aws/aws-sdk-go/blob/v1.0.0/private/model/api/api.go#L192 https://github.com/aws/aws-sdk-go/blob/v1.0.0/private/model/...