Baking cookies on a gray rainy day.
When I was in California a couple weeks ago visiting Mom, she gave me her mother’s box of recipes. Today I’m baking some of the cookies Grandma used to make. My grandkids can give them a try tomorrow.
These are “Candy Cookies”, made with graham cracker crumbs, condensed milk, chocolate chips, coconut, and pecans. Yum.
I hit the 400 mile mark on my new Tern Vektron e-bike on the way to work. It happened right near the bakery, which I took as a sign that it was a good day to pick up scone to have with my morning coffee.
Almost all of my riding has been to and from work. It's an 8-mile round trip, so that's about 50 commutes on the bike, and not in the car. The trip is much more enjoyable riding on the bike path through campus; the route for the car is on the bypass highway that goes around campus.
Set up camp this afternoon at Lake Lurleen in Alabama. It’s our favorite campsite of the trip so far. I’m halfway through @pluralistic ‘s Internet Con and the sin is setting. Time for dinner.
Food Truck Friday. Bike to the park, get a burrito, sit on the grass, enjoy a perfect autumn day in Bloomington.
Haskell style question:
When do people use regular function application and function composition, and when do they use `&`, the reverse application operator? The Elixir folks really like their equivalent `|>` operator for building pipelines.
For me, when the chain of functions is long, I find `&` clearer. In day 1 of Advent of Code this year, I wound up with two functions, one in each style.
https://github.com/bwbeach/advent-of-code-2022/blob/main/day01/app/Main.hs
(Note: I tried markdown for the code in the post, but triple-backticks didn't preserve newlines. 😞)
A friend of mine posed the following puzzle:
> You have 12 marbles, which all have the same weight except one, which may be either heavier or lighter. How can you find the different one in three weighings on a balance scale?
I know I've seen it before, but it still too me a while to work out a solution. Then I wanted to visualize the solution, and cobbled together haskell, graphviz, and a couple shell scripts.
Then, of course, I saw my solution was wrong and had to re-work it.
Spoiler, of course:
https://github.com/bwbeach/puzzles/blob/main/weigh-twelve/README.md
Now at: @haiku_brian
Proud papa/dad/husband. Choral singer. Aspiring linguist. CTO at Backblaze. Usually in Indiana, sometimes on Maui. He/him.