Writing Applications With a Fluent API

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

It’s called as functional programming. If I am not mistaken the concept is called railway oriented programming

maneyogesh
Автор

Milan, we had someone write code this way and it was a pain in the back to debug - can you explain the best practices to write such method chains ?

neranjansugumar
Автор

I watched Yesterday - my co workers would SCREAM at this but I like it and I've seen past videos but wary about fully immersing myself into this. This is "validation" but compared to "builder pattern" with a fluent api it feels like the same concept. Builder pattern would need to throw an exception I guess is less efficient. You did a video on fluent api builder so curious on your thoughts as that can be constrained by interfaces to lead to the 1 next step.

georgepagotelis
Автор

I haven't used fluent api yet.. but just lookinf at the code, it seems unreadable (that's a subjective matter though) and hard to debug.

MegaJehanzaib
Автор

good example to demo the fluent api and result pattern, but in the real world, you need to consider more about transactions, sagas, sync vs. async etc.

johnsonlu
Автор

Seems Rust like, not sure if it’s a good fit but it sure interests me.

JollyGiant
Автор

Can you explain this more detailed in a video. I did not understand exactly how it works.

gencaysayin
Автор

This approach has multiple points of failure. I would suspect you would run into timeouts and other performance issues. Also, would you want to log on each step in that chain?

queenstownswords
Автор

Now my mind is thinking how to make a Match function like that, with as argument different anonymous functions that execute dependant on the match. I feel this is a stupid idea

BboyKeny
Автор

(.bind, .match, .trycatch, .tap ) what are this kind of handlers .it's Dotnet things.😢😢😢

vijayarajan-btfk
Автор

please dont do code like this . a wrapper transaction id should be in submit order, update inventory, update work order if exist.

sanglin
welcome to shbcf.ru