The sons of guns did it again exercism added yet another exercise to the C# track to keep me from being at 100%. Well I did the new one “line-up” where you give a number with a nice suffix, and today’s “Sum of Multiples” which does some odd math operations to compute bonus points for passing a level in a theoretical fantasy game. My Sum of Multiples didn’t look like the others. Other people were using the higher order function some(). Not sure if that would have really helped or not. I think the higher order functions usually make things harder to read (not like I didn’t have several in mine).

Ok, I want to do something different today. A while back the ThePrimeagen was going on and on about how great HTMX was. Well, he seems to have dropped it, but in the meantime, I did get a short book to check it out with. So lets do that. I have HTMX Crash Course by Greg Lim (looks like he has a Udemy course too).

The first chapter has you building a server script with express which eventually gets a list of dummy users and puts it on the page. We do move the API call to the server script so it can output HTML instead of JSON. The second chapter has us make BMI calculator which involves making a form and computing BMI in the server. It is a super short book and I am already at the halfway mark. I will save the rest for tomorrow. I did start to gold plate the BMI calculator checking that the values were numbers and adding the hinted at BMI range description. He has the same example in a Kotlin book. Not sure I am sold on htmx yet but it isn’t bad.