Recent Posts
Golang Closures For Configuration
One common code smell is creating functions with a long list of parameters. Adding a new function usually starts out optimistically with a few inputs or known state that is needed. Over time you start adding more state and extending functionality of existing code and quickly it turns into something that is no longer maintainable or causes issues of other places in the codebase needed a larger list of dependencies and state to call these codepaths. Let’s look at one approach you can take with golang.
Serverless Events with Existing S3 Bucket
Serverless helps you with functions as a service across multiple providers. Using serverless with AWS allows you to tie these functions into your AWS infrastructure, or tie it into existing resources. Previously you couldn’t use existing S3 buckets for serverless lambda events. Today I learned that you can now use existing buckets.
Golang Debug Bytes
When working with raw bytes in Golang it can be a little difficult to debug. If you are new to the language or just want to quickly check some data as a human readable text blob it is useful to have a technique for doing this.