12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions
comment 17y ago · link · parent
comment 17y ago · link · parent
Even text selection, which ought to be fast with a mouse, is slow; it's hard to precisely click the end points, and the target may require scrolling in order to make it clickable. When you can do something like "3dw<return>P" (move 3 words to beginning of next line) instantly, the mouse is almost never more efficient.
comment 17y ago · link · parent
I just hope that they don't try to chop up something that should be "just a document" into a pile of ugly marked-up containers that make it very hard to see what's even in the document anymore.
comment 17y ago · link · parent
For instance, use something completely plain but deceptively simple, like reStructuredText. This can be parsed or edited by a ton of established tools. It's also easily "diffed". Text formats are also well handled by revision control tools (one of which should be used, publicly, by the editors of these documents). This even achieves the clean markup he desires, because multiple tools can parse .rst files and produce very good HTML out of them.
comment 17y ago · link · parent
comment 17y ago · link · parent
You might leave someone to watch over your house, and they could decide to trash it; that violates your trust, but it doesn't hurt your neighbor's house. You don't tie up every citizen to make it impossible for anyone to ever trash another house; you simply deal with that one trust violation, and learn from the experience. Also, you should tell others, to minimize how many suffer the same fate.
comment 17y ago · link · parent
Having said that, I think he generally makes good points.
One thing, though: I don't think his examples of bloated applications are indicative of a Unix problem. He tries to claim that these apps aren't reusing much code. But as far as I can tell, every application he lists is also ported to/from non-POSIX OSes (Netscape, Acrobat, Mathematica, Purify, FrameMaker, etc.). Reusing Unix parts wouldn't help them when they have to port to Windows, so yes, they probably do have all their own stuff.
2446.
Why aren't tabs a window manager feature?
3 points · by makecheck · 17y ago · 3 comments
comment 17y ago · link · parent
comment 17y ago · link · parent
I suppose my ideal setup would be to have most events handled entirely by the web browser. The page then only has to define the corner cases of interest, namely:
- A single JavaScript event for drags, to retrieve the promised data.
- A single JavaScript event for drops, where one of the arguments is the specific type of data (pulled from the property of the source).
- A single element property to indicate that the entire element is draggable. This property's value is a "type" (perhaps based on Apple's UTIs, e.g. "public.jpeg" or "public.xml") to indicate what kind of data is represented, e.g. <div id="abc" dragtypes="public.xml" ondrag="...">...</div>.
- An element property to indicate that the entire element accepts drops of one or more types, e.g. <div id="foo" droptypes="public.jpeg public.png" ondrop="...">...</div>.
- New CSS classes, similar to :hover, to define presentation for the drag-and-drop cases, such as ":drag-source", ":drop-pending" and ":drop-disallowed". This allows elements to automatically change appearance, without any JavaScript at all, as drags occur.
Not having implemented a web browser, I don't understand all the nuances, but I'm not sure why it can't be as simple as the above. I know that the above is what I would want to have.
comment 17y ago · link · parent
- UIs tend to depend on things lining up, in order to look good. If you allow any scale, at some point things will not look quite right. One decent solution is to choose fixed scales, limiting what the user can choose; then, everything is (perhaps manually) made to work at those zoom levels.
- Detecting something like a mouse click is no longer the same problem at an arbitrary scale. If you need to know "was this clicked?" when using pixels, you're only talking about mapping one pixel to a region that is expressed entirely in units of whole pixels. But at an arbitrary scale, neither the mouse nor the target shape will "appear to" be rendered with whole pixels.
- In order to scale, everything must be scaling-aware. This turns out to be a pain, especially in established code that is accustomed to thinking in terms of a rigid pixel grid. You can see this problem, say, in Windows XP; while it allows users to customize system fonts extensively, it's pretty easy to find an installer or other program that didn't leave enough space (and wasn't thinking in the right terms), causing half the text to be truncated when a certain font and size are used.
comment 17y ago · link · parent
But ad-supported pages are equivalent to selling newspapers in giant heavy boxes, where you can't just get the newspaper, you have to take all the crap in its box. Well what if you don't want to carry a whole box? What if it would take you 10 times as long to bring the newspaper home by carrying the box? Would you not be tempted to rip open the box and just take the paper? Or, tempted to just go away, and not take the box or the stupid paper? At some point, the obnoxious mechanism outweighs the value of the content.
Instead, there could be a stack of papers on a table, with a cup and a sign "please deposit 50 cents". Some people will take a paper and leave nothing. Others will leave 50 cents. Still others will leave a buck or two, because they want to. You might even see people drop off a new stack of papers for you, and not care if you get the cash. Maybe somebody else sees your stuff (because it's not locked in boxes), and that leads to other opportunities. So maybe it isn't "fair" that some people pay more than others, but this is certainly does not spell doom for the content provider.
comment 17y ago · link · parent
While some programmers will have the passion to make great UIs no matter how difficult or tedious the code becomes, a lot will simply find the first thing that gives them the results they need. (In fact, even when their end goal is to make something nice, they may still start with something ugly to make sure that everything else is working.)
There's really only two ways to solve that: give them more time to ship and make "great UI" a clear deliverable (that they're paid for), or give them better tools and expect correspondingly-better results in the time originally allotted.
Assuming your company isn't producing just one product, it's usually wiser to invest in the programming tools. That way, you pay most of the cost once, during development and perfection of the tools, instead of having every single product pay a penalty as programmers and QA have to correct cosmetic and behavioral imperfections in the UI in 1000 places.
Take Interface Builder and Cocoa on Mac OS X. The design of the layout tool, combined with the unapologetic adherence to MVC and KVC design principles in the API, means that interfaces are easier to do elegantly than inelegantly. So it should come as no surprise that the resulting programs, relative to the amount of time spent, tend to be more functional and easier to use compared to equivalents on competing platforms.
comment 17y ago · link · parent
It's hard to go wrong with a simple list of thumbnail links. They work everywhere, they give the user flexibility (e.g. I can "open in new window" several of them if I want to, or resize), and they take almost no time to implement.
comment 17y ago · link · parent
I also think Tk is a major strength, though I always preferred Perl's interface to it.
Despite these strengths, I don't like Tcl as a language. It's not that its syntax isn't without certain charms (brevity being one), but it has a few flaws that I consider fatal:
1. It is far too easy to make the mistake of inlining a list. This can result in arguments being passed in the wrong order, or partial lists being processed when it "seems like" the whole list has been read, etc. This is a very hard problem to debug.
2. The Tcl interpreter does not trace blocks very well. It usually points you to the line of the last curly brace in a half page of nested constructs, which tells you almost nothing about where an error is.
3. While it's very easily bound to C, it has no concept of objects. So Tcl APIs seem to require constant re-querying; for example, rather than "set x [expensive_get_operation a b c]" followed by "[x do_y]" and "[x do_z]", APIs tend to look like "[expensive_y a b c]" and "[expensive_z a b c]". All other advantages to objects are, similarly, lost.
Of course, Tcl has been evolving fairly rapidly lately, and 8.5 addressed a number of serious annoyances. Maybe my perception is out of date; if so, please enlighten me.
comment 17y ago · link · parent
I think the idea of using children to sell the computer is fine, but why not show them doing what a child would do? After all, isn't the point to show what makes a PC valuable to your family, and not what makes it valuable to marketing on behalf of Microsoft?
comment 17y ago · link · parent
In other words, the people who made the irresponsible decision to stick with old software should have to cover the cost of fixing it. Every site on the Internet should not continue to cover this cost for them.