gaessaki / COBOLCalc

A simple unfeatured calculator written in MicroFocus COBOL for Visual Studio 2015
MIT License
7 stars 1 forks source link

No separation of concerns #1

Open dotnetchris opened 9 years ago

dotnetchris commented 9 years ago

You really should split out the calculator logic from Window and have it isolated in its own file.

I wanted to take a peek at the code you needed to write (i don't care about the WPF form, i knew there'd be nothing interesting in it) and had to go digging through every file for it.

gaessaki commented 9 years ago

Apologies. As I mentioned in the blog post, I didn't use any architectural patterns to make better sense of the application and tried to complete the app asap during my brief train ride. I probably won't be spending much more time in COBOL, but I'll heed your advice and extract the logic from the Windows1.xaml.cbl when I get a chance.