this post was submitted on 27 Dec 2025
9 points (80.0% liked)

Programming

24072 readers
155 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Arigion@feddit.org 1 points 1 day ago (1 children)

I am not arguing against an effect system. They can help in certain circumstances. But none of the reasons in the article are one of them. Also the article is a bit lopsided because the real pain with these systems is error handling, resource handling like transactions or parallelism etc.

What you write about the "other benefits" profiling and logging is also not the reason to introduce such a system.

What does an api request has to do with business logic?

It feels a bit as if you just discovered the idea of effect systems and are now trying to justify to use it no matter what. ๐Ÿ˜‰

[โ€“] Aijan@programming.dev 1 points 1 day ago

I think you might be focusing on the execution of the request rather than the orchestration. The decision of when and why to make an API request is absolutely business logic. In imperative code, that logic is hard-coded to the execution. By separating the intent from the execution, we can test that decision flow without spinning up the infrastructure.