‘ABOSEDE - Tales of This and That’ will add some colour to your reading list this new year.
Ways to place an order:
1. Via my DM.
2. On @rovingheights bookshop.
3. On Amazon.
Links also available in my bio.
Have a great weekend.
Interviewer:
How would you safely handle wallet balance updates?
Answer:
Don't update the balance carelessly
Use transactions,
row locking or optimistic locking,
Plus an immutable ledger.
Your ledger becomes the source of truth.
Balance is just a calculated state.
I enjoy playing Tennis Clash on my phone, the scoring logic around deuces always fascinates me. So let's say both players are on 6-6, whoever scores two points consecutively gets to win at an 8-6 or a 6-8. But if at 6-7 the player with 6, scores a point, the score falls to 6-6 meaning the player with 7 got dropped to 6 and the other player will require two consecutive points to end the game. As a software engineer I couldn't help but admire the logic, so I decided to write the scoring mechanism straight from my head without an AI assistant. After some refactoring here and there, I got the code working perfectly. For the sake of putting the code to use, I decided to use Claude to wrap a little bit of graphics around the code. Feel free to play with Random Tennis, a tennis game simulator.
https://t.co/SfCsTc6dpt
My neighbor's kid asked why I don't have a dog. I said "I'm not home enough." He said "get a cat." I said "I'm allergic." He said "get a fish." I said "they die too fast." He said "get a rock. You don't have to feed it. And it won't die." I painted a face on a rock. Put it by my door. The kid comes over sometimes to check on it. He named it Kevin. Kevin is a good rock. Never complains.
Agatha Christie knew poisons so well, her books have been consulted when diagnosing patients. In 1976, a London infant was dying of a rare illness. Her nurses, having read The Pale Horse, realized she had been poisoned with thallium. Murder mysteries saved her life.