You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
With the above approach there are two issues:
i) A lot of boilerplate.
ii) I need to hold a reference of the ProfileBuilder in order to create a ConfigProfileItem and this spoils the DSL-y style of the builder.
Since the builder knows what profile items and profile item builders it supports. It should be like:
Yes, approach one is good. It encodes the set of possible profile items in the PB signature. We are likely going to have less than a handful PI types, so its ok to have individual methods. The second approach is not so good because it promotes the PIB to a top level thing - it should however be a sub builder, like PI is a subtype of P.
The profile builder needs to be improved and become more friendly / DSL-y
Currently the builder works like this:
With the above approach there are two issues:
i) A lot of boilerplate.
ii) I need to hold a reference of the ProfileBuilder in order to create a ConfigProfileItem and this spoils the DSL-y style of the builder.
Since the builder knows what profile items and profile item builders it supports. It should be like:
or
I think I prefer the first alternative, or a combination of the two.
The text was updated successfully, but these errors were encountered: