Heath
banner
heathhenley.dev
Heath
@heathhenley.dev
Señor Application Engineer at a 10 person sonar shop. ChE PhD turned dev. Puzzles, building random stuff, hiking, climbing, learning, bad jokes and good beer.

Writing about things here: https://heathhenley.dev
I don't buy it
November 17, 2025 at 5:42 PM
Sometimes privacy is too much to ask for
August 28, 2025 at 2:21 PM
I'm a little embarrassed to say which key is mapped to backspace lol
May 1, 2025 at 2:34 PM
Kind of cool - these are going to be syntax warnings in Python 3.14 (and eventually errors) - same with continue / break in finally too

I don't think I've ever got bit by this but looking at it I'm not sure how
April 17, 2025 at 3:51 AM
Favorite language lacking tail call optimization? Just hack it in using exceptions...
April 14, 2025 at 2:36 AM
The slow climb back to my normal typing speed with new keyboard layout (including minor set backs for adjustments along the way)
April 4, 2025 at 4:08 PM
What do you guys think of pear programming?
March 21, 2025 at 7:48 PM
This leading slash caused me so much confusion yesterday:
February 28, 2025 at 2:02 PM
Now that's some cursed python!
February 26, 2025 at 11:56 PM
The cl docs for google cloud kms key create have a nod to LOTR
February 14, 2025 at 7:29 PM
I started using git log but with --graph, --oneline, and --pretty formatting:

```
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --all
```
I just set up an alias for it trying this instead of gitk'ing all the time like a lunatic
February 13, 2025 at 8:25 PM
Caught in the snow in NYC last night! ❄️
February 9, 2025 at 2:09 PM
you can see when I went on vacation and that I prioritize going outside to touch grass (actually rocks more likely) in the summer lol
February 3, 2025 at 5:44 PM
If you want a hint
February 2, 2025 at 4:58 PM
Anyone see the bug this ocaml n00b just wasted too much time on debugging? 🤦‍♂️
February 2, 2025 at 4:54 PM
TIL that since Python 3.11 you can use an ansyncio.TaskGroup with a context manager - pretty cool!

Good examples in the docs: docs.python.org/3/library/as...
January 29, 2025 at 9:53 PM
Recently reread "If on a winter's night a traveler" by Italo Calvino - super meta about reading in itself, I appreciated it a whole lot more this time around.

The reader/you begins reading a novel and it's cut off just when it starts to get good - you find the rest but it's the wrong novel...

💙📚
January 9, 2025 at 3:25 PM
Just finished this short read - super interesting concept - they are in a hell comprised of a library containing all possible books and need find the one about their life to get out 📚💙
November 25, 2024 at 2:07 PM
More old advent of code problems for funsies - this one is turned out to be a modified Conway's game of life - used minttea to display it in ocaml 🐫 - such a cool little framework!

github.com/heathhenley/...
November 20, 2024 at 3:05 AM
I hope the magic dwarves are being well compensated
November 17, 2024 at 7:57 PM
So I shouldn't be using recursion over loops, or I should?

"... use explicit while loops when possible."

Does that mean when it's too complicated to determine if it's tail recursive, just use a while loop to be safe? Otherwise this feels like the opposite of the FP vibe

ocaml.org/docs/loops-r...
November 17, 2024 at 3:03 PM
Here's the refactor based on the suggestions I got. Thanks to @kirancodes.me and @welltypedwit.ch 🙏! (and @sabine.sh for the share that probably go people to help 🙂)

Full thing here: github.com/heathhenley/...
November 17, 2024 at 1:37 PM
Anyone up for constructively (or not) roasting my 🐪?

I'm an Ocaml and FP newb in general

It's an old advent of code problem (day 21 from 2015) - full code is here: github.com/heathhenley/...

Problem is: adventofcode.com/2015/day/21
November 16, 2024 at 9:03 PM
November 15, 2024 at 12:36 PM
This is fun way to make sure that everyone who follows your docs doesn't end up using the same value:
November 14, 2024 at 11:27 PM