microsoft / durabletask-java

Java SDK for Durable Functions and the Durable Task Framework
MIT License
13 stars 7 forks source link

Remove builders for non "entry point" classes #46

Closed cgillum closed 2 years ago

cgillum commented 2 years ago

This is feedback from the Azure SDK team. The primary feedback is that only "entry point" or "front door" classes, like DurableTaskGrpcClient and DurableTaskGrpcWorker should have builders. We should avoid them for other "non-entry point" classes, based on UX research done over the past 10 years or so.

Builders can be replaced with constructors, getters, and setters. We can still support the fluent code style by having setters return the current object.

Builders to be replaced currently live in the following classes: