Weeknote 22: Haptic Device Tests, Software Architecture, and Reflections on Fun Over Thanksgiving
Lucid dream haptic device · Irreversible actions in software · Thanksgiving · Fun and reluctance to have fun
Table of contents
Stats I’m tracking
This week I did:
-
Deep work hours unknown. 🚧 Deepworktimer.io was down this week, which was fine because Thanksgiving took up a lot of time.
-
0 nights of sleep data collected. 🚧 Paused for equipment repair. 🚧
Lucid dream haptic device
I worked on adding the signal verifier to my haptic device so we can have clean data.
I temporarily hooked the components up. I tested whether the accelerometer could tell the difference between a buzz and body movement. It detected both 200 ms buzzes in each hand condition, but it also reported a buzz in all four trials where I rocked my hand with the motor off.
After the bench tests, I updated the firmware and experiment code.
Next, I have to solder everything together. Some loose wires need to be resoldered.
Software architecture rabbit hole
I continued watching hours of software architecture videos. I started making flashcards for concepts I want to memorize.
Irreversible action in software architecture
(This section will be boring if you don’t care about software architecture, and possibly if you do.)
I haven’t seen much information on ways to code irreversible actions.
In a lot of systems, there is an assumption that you can undo any action taken. When I was learning about sagas, there were a lot of suggestions to just reconcile and undo something. For example, it’s okay to refund a customer after you charge them twice. That also doesn’t take into account that refunds cost credit card fees. But beyond that, not all systems work that way. There are some actions that are very hard to undo.
Think about writing software for an ATM, for example. You can’t roll back money you gave a user.
Consistency in software architecture refers to how much a system is built to have data that agrees when different parts of the system read it. In strongly consistent systems, the data will be the same regardless of what reads it or how close to an update the read happens. But in an eventually consistent system, sometimes one part of the app reads data that is outdated for a while, but eventually all the data will be consistent if updates stop.
For an action that you can’t undo, the important data needs to be accurate. For example, at the ATM, the amount you let a user withdraw needs to be accurate. If there is a delay in consistency, you might approve a withdrawal for money that the user has already withdrawn. Now you’re paying this customer money that they do not have, and it’s coming out of your pocket.
Anyways, I have my own ideas about how to do this, but I’m surprised that this isn’t a common topic for tutorials seeing as how it’s so important.
Focusmate + contract I didn’t want to review
I am a slow reader, and I’m reluctant to read because of that. Reading legal documents is even worse.
I finished reading a contract in 1 hour and 15 minutes, thanks to Focusmate. Hopping on a call with an accountability buddy really helped. My anxiety around reading the contract was much worse than actually doing it.
Thanksgiving
What I made:
We had Thanksgiving at my parents’ house.
Fun and reluctance to have fun
My mom showed us a game where a blindfolded person tries to take pictures of everyone in the room. Everyone else tries to avoid being in a picture.
I really wanted to do karaoke and dance, but it seemed like no one was trying to have as much fun as I was. No one was being the first follower.
But eventually I just turned on karaoke without a first follower when my neighbor and I were downstairs. Slowly, a few other people joined. At the end of the night, my sister, Shlo, and I were turning every song into a 3-person medley while lying on the floor with the karaoke projected on the ceiling. We had so much fun!
Why were people reluctant to do karaoke earlier? People don’t have a good grasp of how much fun a given activity will be. But come on… it doesn’t take a scientist to know that if we project karaoke on the ceiling while we lie on the floor, this will end in fun! But maybe it does take a scientist, because my scientist friends are the most willing to have fun.
My sister knows how to spot the game
I had fun with my sister being in town and hanging out with family.
My sister always knows how to pick up the games I’m putting down without me having to explicitly say anything.
For example, my mom said something benign that I responded too angrily to. Shlomo said something to me like, “Calm down. It’s not that serious.” And so I jokingly (but sounding sincere) said something like, “How can I be calm when Mom says something like that?”
Tallulah knew exactly what the game was. She said something like, “Dash, let it go. It’s not worth it.” And then we went back and forth for a while with me being like, “We’re just gonna let her get away with that?” And so on and so forth. We were acting like a really serious thing had happened and I was struggling with letting it go.