home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!lhdsy1!kato.lahabra.chevron.com!hwrvo
- From: hwrvo@kato.lahabra.chevron.com (W.R. Volz)
- Newsgroups: comp.windows.x
- Subject: Re: X: User simplicity vs code complexity
- Message-ID: <5411@lhdsy1.lahabra.chevron.com>
- Date: 24 Jul 92 15:52:36 GMT
- References: <TPAQUETTE.92Jul23134924@gumby.ita.lgc.com>
- Sender: news@lhdsy1.lahabra.chevron.com
- Organization: Chevron Oil Field Research Company
- Lines: 39
-
- In article <TPAQUETTE.92Jul23134924@gumby.ita.lgc.com>, tpaquette@ita.lgc.com (Trevor Paquette) writes:
- |>
- |> I was talking to a cohort at work and we got to the subject of X and how
- |> many lines of code it takes to do things in X etc..
- |>
- |> I came up with "X is the perfect example of User simplicity is directly
- |> proportional to code complexity." Do you agree/disagree with this statement
- |> and why?
- |>
- |> To open up a window, create a button, attach a callback to that button
- |> when pushed, released and held, while tracking the mouse, takes up a alot
- |> of lines of code. (Granted that will take alot of lines in any GFX system
- |> but most likely more in X then any other)
- |>
- |> To know X and all the in/outs of it takes about 8 700 page manuals (O'Reilly
- |> & Associate) to learn. Is there ANYONE out there who knows EVERYTHING in
- |> these manuals? X is difficult to learn to program with, basically because
- |> you don't know where to start!! There are many calls that do basically the
- |> same thing (XAllocColor vs XAllocColorCells).
- |>
- |> How big is X going to get? When will it stop getting bigger? Who created
- |> this monster in the first place? Oh well.. back to those manuals..
- |>
- I'm not sure about this. Perhaps an direct relation between complexity and
- flexibility. The more flexible code is, the more complex it is. X is quite
- flexible ==> it also complex. In your example of creating a pushbutton,
- you either using Xt or Xm. What would you have to do to same thing with
- straight X? Probably a lot more. Consider that Motif has a series of
- *Simple creation routines. I wonder why? The flexibility of Motif and Xt
- made things more complex. so they simplfied. When writing code, a cohort
- of mine errs on the side of simplicity rather than complexity. He's usually
- right.
-
- ======================
- Bill Volz
- Chevron Oil Field Research Co.
- Exploration Research/Geophysics Division.
- P.O. Box 446, La Habra, CA 90633-0446
- Phone: (310) 694-9340
-