DEV Community

The Effect Tax

Datner on May 13, 2024

It's been over a year now since I took the effect pill and I'll probably never develop the same way as I did before. I love effect, and I am absolu...
Collapse
 
brense profile image
Rense Bakker

The difference with the other article I just read couldn't be bigger. This article is actually informative and indept and not written by AI, but it gets almost zero response :(
Anyways, good job 👍 and I hope you get more readers and reactions.

Collapse
 
datner profile image
Datner

Thank you for the kind words!

Collapse
 
hinogi profile image
Stefan Schneider

I use Vue and Nestjs and I think there are some major overlaps with effect conceptually, like service and context on in nestjs. They are not compatible I think but since they seem so similar I am always asking myself, why would I write this in effect if the framework brings it with it. That is my personal hinderance to use effect or to try to convince my team to use it.
Also, there are not enough examples for frontend and for graphql usage as well as a lot of tooling that autogenerates types on basis of a graphql schema is not available.
I am still very much interested in effect, but since I do not have a project that could make use of it, and I don't know how to beneficially use it in my current work project, I'm stuck.
With no prior FP knowledge the learning curve is even steeper I guess.

Collapse
 
datner profile image
Datner

effects resources and recommend patterns are still emerging, if you're not comfortable adopting something at this stage thats totally valid! You can still play with effect on the side or use it for smaller projects until you feel it's ready.
If you were able to read the little code I have in my article, that's is rough the sum of required knowledge to be effective with effect, so don't worry about it

Collapse
 
hinogi profile image
Stefan Schneider

I still have to figure out what applications of effect code is out of bounds like "how does it behave with reactivity(refs/effects) from vue?" "how do I come back from effect land to vue land?" "Do I just reinvent the wheel by using effect when there is something in vue already?" "Does vue maybe even do something similar under the hood like with the similarity to signals?"

Collapse
 
kyrregjerstad profile image
Kyrre Gjerstad

Thanks for sharing! I've been trying out effect for the last couple of weeks. Still trying to make up my mind if this is something for me, but your post has helped me see some practical use-cases for Effect

Collapse
 
datner profile image
Datner

Effect can basically do everything besides rendering and intensive number crunching, not saying it should, but I never need to search for a use-case effect covers, I just have use cases. Like a regular application, except I enjoy the experience lol

Collapse
 
gunslingor profile image
gunslingor

Welcome to my world Mr. Author, lololololollllll.

Collapse
 
datner profile image
Datner

I am not sure what you mean 😃

Collapse
 
gunslingor profile image
gunslingor

Only that I have the same experience... most apps, hell every app, I've seen in the web world is like this... pure implementation and zero engineering. Dependency conflicts are a death sentence and can never be allowed, first rule of any development going back 50 years... yet, every big app I've seen has them. It's rediculous. Only in web development have I seen this level of chaos.

Thread Thread
 
datner profile image
Datner

Yes I'm well acquainted with the issue, I've been developing applications for over a decade now 😄
Thats why I instantly understood why effect is a big deal

Collapse
 
karaca19 profile image
Bora Karaca

Thanks for sharing. Effect has been on my radar for quite some time now but I wanted see to a practical example of it. This was helpful. Effect looks promising.

Collapse
 
pablets profile image
Pablets

Amazing! Thank you for your post, it was very informative.