Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Tal Adari
Courses Plus Student 2,554 PointsWhat is the best practice to seperate application logic from UI?
I'm currently working on a console app that will later be implemented with a GUI I want to take the chance to train the best practices for seperation of conerns. What would be the best way to do it? have a different Prompter class? different package? project?
thanks!
Simon Coates
28,695 PointsSimon Coates
28,695 Pointsyou might consider taking a look at stack overflow. I googled "best practice to separate application logic from UI java" and got https://stackoverflow.com/questions/19606026/separating-logic-gui . I think one of the authors deals with pretty much the same question (but maybe doesn't provide the precise implementation details). Might give you ideas.