3 ms·
X Window has a good design? Only because it allowed competing tool kits on top of it ("Provide mechanism rather than policy. In particular, place user interface
by oblio 8y ago
X Window has a good design? Only because it allowed competing tool kits on top of it ("Provide mechanism rather than policy. In particular, place user interface policy in the clients' hands.")
Besides the fact that the X libs are almost universally reviled and nobody used them as soon as they could (Motif, Qt, Gtk, etc.). The core concept, that of network part is actively being abandoned right now, see the Wayland efforts.
X Window won because its competitors were proprietary, basically. And then it dragged on because every application was compatible with it.
Win32 is also horrible, but you can kind of get why it was that way: the hardware was abysmal when it was conceived and backwards compatibility was super, super important in the early and cutthroat desktop market.
- barrkel 8y agoI don't think Win32 UI API is terrible. It's basically message passing object orientation before its time. The API idioms are clumsy to code against, but OTOH it's much more viable to avoid linking libc into your app, whereas in Unix land, the only portable API is defined largely in terms of a C worldview. And some things are just leagues better, like signals vs structured exception handling.
- frankohn 8y ago> X Window has a good design? Only because it allowed competing tool kits on top of it ("Provide mechanism rather than policy. In particular, place user interface policy in the clients' hands.") Yes only this simple thing made a much better design. It can be used to provide a modern and beautiful desktop environment even 35 years after its creation. > Besides the fact that the X libs are almost universally reviled and nobody used them as soon as they could (Motif, Qt, Gtk, etc.). You are not supposed to use Xlibs directly to program user interface. They just provide the primitive APIs to create windows, process events and draw on the screen. It is normal to use a toolkit like Qt that use Xlib as a backend. I agree that programming Xlib directly is not very sexy but it sort of make sense and is yet better than Win32 programming. > The core concept, that of network part is actively being abandoned right now, see the Wayland efforts. The fact that this is a good choice is still to be demonstrated. > Win32 is also horrible, but you can kind of get why it was that way: the hardware was abysmal when it was conceived and backwards compatibility was super, super important in the early and cutthroat desktop market. Yes, you can excuse them for creating Win32 at the time but they have no excuse for not providing qnything better after 30 years. Oh yes, you can create beautiful UI if you only use Visual Studio, you get use to all the warts and limitations, if you forget cross-platform, it will works only on windows, if you use visual studio installer and ship all the zillions of DLLs that you may need with the most baroque distribution system. On windows I am still looking for a decent way of programming UIs without embracing all the MS bullshit.
- pjmlp 8y agoEven when compared against Amiga toolkits and Win16, Xlib with Athena or Motif were anything but pleasant. X Windows is the main reason of "The Year of Desktop Linux" failure. It is quite telling that ChromeOS and Android have ditched it. Also the only UNIX that was actually a pleasure to code for was NeXTSTEP, guess what, it also didn't care for X Windows other than compatibility purposes.
- msla 8y ago> X Window has a good design? X does. "X Window" might not, but it probably isn't in widespread use.