8 karma · joined Oct 5, 2023 (3y ago) · 11 submissions
comment 1y ago · link · parent
I use Jujutsu for 100% of my version control at my day job, where all of our repos are in Bitbucket and all my coworkers are using Git. AFAIK most of my coworkers don't even know I'm doing anything different, other than those who I've "evangelized" so far :)
...I think my PRs have gotten noticeably cleaner and easier to review, though!
comment 1y ago · link · parent
Edit: Whoops, I lost context here. Phoenix LiveView as a whole is probably pretty analogous to Blazor.
comment 2y ago · link · parent
comment 2y ago · link · parent
There are certain obvious (and some less obvious) benefits to both exceptions and results, but I get the impression a lot of programmers have overreacted against exceptions.
Exceptions "just work" the same in every codebase and require little boilerplate in most languages. I think results really shine for internal business logic where errors are more "invalid" than "exceptional."
comment 3y ago · link · parent
comment 3y ago · link · parent
This can be a useful tension in my experience, since it can indicate when there are too many layers between a program's entry point/composition root and its functionality.
For example, if the three operations in the example are the program's only responsibility, I think the proposed solution makes a lot of sense. But if this is only one step in a program, and especially if that step happens multiple times, having the operations wrapped up in a single function might start to make sense again. I don't quite agree that it's inherently bad code; at some level of abstraction, starting a new worker on a machine starts to look like a single responsibility.