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
The Builder is currently a collection of constructors for Generator. To facilitate adding more configuration options (like defining a perimeter #4), the Builder Pattern should be applied.
That means the Builder should first be constructed with a new() function with no arguments and further configuration should be applied to the Builder object before the build function is used.
The
Builder
is currently a collection of constructors forGenerator
. To facilitate adding more configuration options (like defining a perimeter #4), the Builder Pattern should be applied.That means the
Builder
should first be constructed with anew()
function with no arguments and further configuration should be applied to theBuilder
object before thebuild
function is used.Example:
The required refactoring is also a good opportunity to replace
assert!
in theBuilder
by returning an error, to avoid crashing the whole program.The text was updated successfully, but these errors were encountered: