Author here. Thanks for educating me on the subtleties. It seems like I was mixing up a Level 3 multiverse with a Level 2. I made a small edit to remove the sentence about constants changing. And I also added a note that I edited the post.
I like the table of contents at the beginning with the links. I'm going to steal that for my next blog post. The author is a really clear writer, and I love the table of contents because you can jump around and things are bite-sized.
I use Hugo and I host my blog out of an AWS S3 bucket.
Pros:
- Cheap.
- Static and small. Hugo lets me really make everything tiny.
- Learned more about AWS.
Cons:
- A lot of work because I had to setup Route 53, CloudFront, Certificate Manager and S3.
- Learning about the permission model and setting up an IAM user with right permissions.
- Figuring out how Route 53, Certificate Manager and CloudFront work together so I could have SSL.
Reading this back, my pros and cons list sounds ridiculous.
Author here. Yes, there is a trade-off. The resulting code is much bigger than the original code because of this transformation. But, I think the trade-off is worth it because it makes the code simpler to read, write and maintain. As far as speed, I don't have any benchmarks but I don't think there is speed penalty. It's mainly an issue of code size.