to spa, or not to spa?

Website vs web app, what is the difference? How do you know how to make the tradeoffs in terms of complexity for a spa vs the simple HTML of templates? Managing state in the DOM is not easy, dynamic components require managing of more state. How does htmx relate?

March 25, 2024 · 1 min · breadchris

static vs dynamic types

The debate between statically and dynamically typed languages has always been a hot topic in software development. Designing types for a problem can feel like solving a puzzle—fun for some and frustrating for others. But the real question is: Do you know how to represent the domain? While the alpha engineer may claim they do, understanding a domain comes from observing patterns over time. The challenge in business, where code is most commonly used, is collecting and understanding the data needed to define these types accurately....

March 21, 2024 · 3 min · breadchris

The case for a single binary

In the realm of software development, the dichotomy between local development environments and production settings presents a notable challenge. The ideal scenario is where both environments mirror each other as closely as possible, minimizing discrepancies that can lead to unexpected behaviors upon deployment. However, achieving this level of synchronization is fraught with complexities. Tools like Docker have emerged as potential solutions, offering the promise of containerization to encapsulate applications in self-contained units that can run consistently across various environments....

March 11, 2024 · 3 min · breadchris

go dependency injection

Dependency injection has radically increased my programming rate. When everything is designed as a module, you find yourself constantly reusing things you have already written since it is the path of least resistance. If you try to do this without the help of a framework, you will find yourself writing and rewriting the boilerplate code to connect dependencies together. Most DI frameworks resolve dependency graphs at runtime https://github.com/uber-go/fx A dependency graph resolved at runtime is error prone and leads to confusing code....

March 8, 2024 · 1 min · breadchris

reply to "sensible web stack decisions"

In response to my previous post: martinsos: I like it, very practical and honest! No preaching, just direct opinions. Quite fresh for a web dev article. Btw I competely shared that view on Tailwind that you had at the start, and I still have it in part, just because I didn’t have enough time to learn more of it. It still seems weird that we are putting all the style directly into html, I can’t read that and it doesn’t show the intention, but I think I read they are not against classes at the end, it is just that even them you woudl then define with Tailwind....

March 4, 2024 · 2 min · breadchris