2024-03-18

  • I am continuing to spend an hour a day teaching my brother to code. It’s going pretty well! He’s starting to regularly solve “leetcode medium” problems, which is a big milestone, as those are the base level of difficulty in real technical interviews at companies. With that said, it also continues to be a great testing ground for my patience. In many ways, David’s approach to computers and solving these problems is not how I do it. Often, the difference in style leaves me vexed. For example, we often begin debugging a program by looking at a long, printed string of integer values with no associated variable names or information about where in the program that value was seen. I let David drive the debugging process, of course, but we have played this game many times now and it always ends with “oh, I think we need more info.” And then we go and add more info to the printed statements. Seeing it happen many times in a row is the vexing part, the part that puts my patience to the test. But, perhaps it is a good lesson. They do say “patience is a virtue.” And I’m also increasingly fond of the vaguely-Buddhist idea I heard that relates to this: “If you think you have achieved enlightenment, spend a week with your family, see how that goes.” Even if you love your family deeply (perhaps because of that love), that experience seems to reliably be a great test in various areas.
  • I am finding myself quite anxious about an upcoming interview with Meta. The interview is tomorrow. On some level, the anxiety/stress is understandable. The interview may reveal shortcomings in technical preparation, and that would mean I have more work to do, work that may or may not be “fun” and “exciting.” Yet, the level of stress/anxiety here seems to go beyond concerns about “discovering technical shortcomings.” No, it has that feeling of deep anxiety that comes from an assessment of your core being, of your deep character and worth. It brushes up against a level of anxiety usually reserved for questions like “Am I a worthy person?” and “will things work out ok for me?” In short, it feels like an ego challenge. And that’s…a surprising thing to feel in the context of answering leetcode questions. Of course, on some level, there are benefits to this emotional response. It elevates my performance level, which is nice. But I did hope that I would have a slightly different reaction, at this point in my life. I wish I could retain the part of the reaction that feels like “this is an important event” without it having to also feel like “if it doesn’t go well, I may not be ok.” I wish I could rise to my best performance/best version of myself without having to also feel like I’m facing a critical ego challenge. And, on that front, I feel like I am so close. But I can tell in my feelings today that I am still in the “intellectualizing it” phase of knowledge and not in the “feeling it”/“sitting in it” phase. I’m just not quite there. Bummer. Of course, shaming myself or “shoulding” myself is only mildly useful. A better course is to recognize this as just the place I’m at with these challenges, and practice acceptance/compassion for it. We’ll see. Hopefully it goes well tomorrow.
    Notes
  • Android
    • Coil is an image loading library that relies on coroutines. It replaces/competes with Picasso (Square) and Glide and Fresco (FB)
    • Coil image loading library supports loading into traditional ImageViews and also Jetpack Compose’s AsyncImage
    • Chucker is an HTTP request/response inspection library that integrates with OkHTTP to provide devs data on what their requests/responses actually look like at the network level
    • What does Chucker do as a library?
      • HTTP request/response inspector
      • Works as an OkHTTP interceptor
    • Compose itself is essentially two libraries — Compose Compiler and Compose UI. Most folks usually think of Compose UI, but the compiler (and associated runtime) are actually not specific to UI at all and offer powerful state management APIs. (from Circuit library docs)
    • I like the way Circuit handles ui events. In other Compose examples, you see that individual click listeners show up as individual variables in UI State objects. That can lead to a proliferation of boilerplate, especially when the ViewModel/Presenter is the only one that really cares about the processing of the events. Circuit gets around this by giving UI Composables a sink to send all event types, and then defines the event types as subclasses of a sealed interface. That nicely delegates sending/processing code without much boilerplate in the @Composable views.
      • Circuit is very neat. I like the design a lot. I wonder how it is different from Molecule? Or the other Square libs that make presenters/ui stuff in Compose.

Date
March 18, 2024