Writing Google Terraform code with GitHub Copilot
medium.com1 pointsby rpercy0 comments
- Should I try to catch the exception, or just let it
bubble up and edit my interface to include it?
- Should I create a new exception type or reuse an existing one?
- Should I throw a checked or unchecked exception?
- Am I exposing implementation details via my interface?
(eg I don't want to throw an SQLException from GenericDataSourceWidget.connect())
In golang, I know there's really just the one pattern: check if err != nil, prepend a descriptive message, and return it.
But the abstractions are still relatively low level. The Ingress API in particular is a known issue and currently being simplified.