Chris Cook

@zirkelc.dev

software engineer at heart ❤️ co-founder of http://flyweight.io aws community builder

TIL you can use `@entity.Attributes.Lambda.Function` to group messages from multiple different log groups. Useful when you need to analyze cold starts from many Lambdas with a single cloudwatch query.

Bild

Here's Lambdalet.AI - an AI-powered bookmarking and read-it-later service. It saves any page you're reading into your own Notion database — full text, fully searchable, zero fuss. I built this for the AWS Lambda Hackathon!

It would be nice if there was a way to pause Lambdas while waiting for a HTTP response. Like fire of a few requests, the Lambda goes into hibernate and automatically resumes when all requests have concluded.

TIL `$*` captures all positional arguments into a space separated string You can abuse this for a Git alias to avoid typing the commit message in double quotes: `gc my commit message`

Bild

It's so funny how confident LLMs are when they make mistakes. The model generates invalid code. You specifically ask them about lines of code. The model confidently explains how it works. You give them the error. The model is like "Ah, you're absolutely right - I apologize for my mistake!"

I noticed that Vercels' popular `ms` pkg for converting time units to milliseconds uses 365.25 as a multiplier for the days in a year. I know this is to account for leap years, but is that the right assumption to make here? Effectively this means that `ms(1y) != ms(365d)` without ppl knowing it

Bild

Inspired by React Query's `queryOptions()`, I made a little helper to add the type of the parameter and the return type to the query definition (yes, I know about ORM). The next step would be to use template literal types to parse the parameters and return type from the query string.

Bild