You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
Code like this makes very clear demands of the environment it expects to run in:
145
+
Code like very clearly sets up a list of implicit expectations of the environment it runs in:
146
146
147
147
- I need a bucket to be available
148
148
- I need to be able to read objects from that bucket
149
149
- The bucket must be an AWS S3 bucket
150
-
- I need to know the ARN/Name of the bucket
150
+
- I expect the S3 API to be accessible (networking)
151
+
- I need to know the name of the bucket
152
+
- I expect the bucket name to be provided via an environment variable
153
+
- The environment variable must be named `RECEIPT_DOCUMENTS_BUCKET`
151
154
152
155
The problem is that these requirements are implicit. They're hidden throughout the code and for non-trivial apps it's challenging to collect them all and be sure the requirements are met.
0 commit comments