Relative Content

Tag Archive for ui

Pattern for creating an instance of a class from a UI form

The following is a contrived example of a potential code smell
that I’ve repeatedly encountered when implementing a GUI with which instances of a class created by letting the user fill out a form. The question is if the pattern I use is correct, or if there is a better way.