I've noticed in my programs sometimes the GUI controls things and calls the guts, other times the guts control the program and calls the GUI. Take Sudoku for example. You could write a solver such that the GUI instantiates the solver, or you could have the solver instantiate the GUI. Seems an argument can be made either way for each being a has-a and an is-a.
What say you, does main() go in your GUI, or the guts?
I've found I tend to solve the interesting problem first, first solved is the boss. For Mandelbrot the guts were more interesting, I didn't throw a GUI on it until the guts were pretty much finished. For Sudoku the GUI was interesting and the solver was put in at the end.
What say you, does main() go in your GUI, or the guts?
I've found I tend to solve the interesting problem first, first solved is the boss. For Mandelbrot the guts were more interesting, I didn't throw a GUI on it until the guts were pretty much finished. For Sudoku the GUI was interesting and the solver was put in at the end.