Why C++ is not very fit for GUI programming

Computer Science – Programming Languages

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

Previous version of this paper appeared in Proc. MacHack'95

Scientific paper

With no intent of starting a holy war, this paper lists several annoying C++ birthmarks that the author has come across developing GUI class libraries. C++'s view of classes, instances and hierarchies appears tantalizingly close to GUI concepts of controls, widgets, window classes and subwindows. OO models of C++ and of a window system are however different. C++ was designed to be a "static" language with a lexical name scoping, static type checking and hierarchies defined at compile time. Screen objects on the other hand are inherently dynamic; they usually live well beyond the procedure/block that created them; the hierarchy of widgets is defined to a large extent by layout, visibility and event flow. Many GUI fundamentals such as dynamic and geometric hierarchies of windows and controls, broadcasting and percolation of events are not supported directly by C++ syntax or execution semantics (or supported as "exceptions" -- pun intended). Therefore these features have to be emulated in C++ GUI code. This leads to duplication of a graphical toolkit or a window manager functionality, code bloat, engaging in unsafe practices and forgoing of many strong C++ features (like scoping rules and compile-time type checking). This paper enumerates a few major C++/GUI sores and illustrates them on simple examples.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

Why C++ is not very fit for GUI programming does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with Why C++ is not very fit for GUI programming, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Why C++ is not very fit for GUI programming will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-720112

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.