samir : Coffee → Software Profile picture
$ ls -l /dev/samir lr-xr-xr-x 1 root wheel 0 Jan 1 2021 samir → urandom (he/him, they/them)
Aug 13, 2021 8 tweets 2 min read
The three steps of TDD:

1. Write a failing test.
2. Delete that test. It was nonsense.
3. Write a much smaller test with just an assertion and a couple of extra lines.
4. Run the test and observe that the failure message is completely useless. 5. Rewrite the assertion for good failure messages.
6. Run the test again. Rejoice in your helpful failure message.
7. Try to make it pass by implementing a new function in your test code.
Jul 17, 2018 20 tweets 4 min read
I’ve been thinking a lot about serverless architecture and I’ve realised what bugs me about it.

This is gonna be a long one. Not gonna lie, I wrote a draft first. If I hadn’t, this thread would end right before it got interesting because I’d get distracted by a butterfly. At its heart, serverless/FaaS/lambda/whatever-you-call-it works for me because it ties action to cost. The more I do (or the more inefficiently I do it), the more I pay. More users, more money. @gojkoadzic wrote about this years ago. It’s not new. gojko.net/2016/08/27/ser…