I have heard some developers say they prefer to build their UIs in code behind... I am of the opinion that this leads them to write really bad code... Super large functions, spaghetti code, and mixed responsibilities of functions instead of pure functions. I think it's better to build your UIs in your platforms specific view language or markup (HTML, XAML, qml etc.). It separates real business logic from your platform interface, giving you the ability to upgrade the platform interface independent of your business logic. Like dropping Objective-C for Swift... Just wrap the business logic for now and build the new UI in Swift, then revisit the business logic could be an upgrade strategy.
What are the pros and cons to UI made in code behind vs UI made in specific view language/markup? Your thoughts?
Note: this really isn't about if they are using some MVC approach... It's purely about the mixing of code behind and ui styles.