Better HN
topnewbestaskshowjobs
Log inSign up

makecheck

12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions

Submissions

comment 17y ago · link · parent

It is also very useful to learn the code-folding commands ("z*"). Rather than repeat them here, just say ":help fold".

comment 17y ago · link · parent

Make the up and down arrows slightly further apart, or make the up arrow bigger. I still worry that I might accidentally down-vote someone, which is made worse by the fact that the arrow disappears once it's done (and is thus not undoable).

comment 17y ago · link · parent

It may be nice to add scrollbars (with CSS, probably) to longer comments, so that "popular" threads take up less space. Or, just have a collapse mechanism.

This makes it easier to scroll past the end of the indented thread to find the next top-level comment.

comment 17y ago · link · parent

Any bets on when the patch arrives that "accidentally" makes the Chrome plugin 4 times slower?

comment 17y ago · link · parent

I'm not a lawyer; but it's possible to charge someone for defamation. This may help: http://en.wikipedia.org/wiki/Defamation

comment 17y ago · link · parent

I felt that way, too. One could argue that many modern GUI features are more of an excuse to use the mouse, as opposed to actually taking advantage of anything that a mouse is good at.

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

But this, to me, is why Google Voice would have been so nice. :) It is a general-purpose machine, that should be capable of running "any" application, including any number of competing phone implementations.

comment 17y ago · link · parent

I'm not sure I would emulate it, I just said it was neat. :) However, it does use a very nice principle: that large spaces are easy to click, so it's very easy to move between sections using the mouse.

comment 17y ago · link · parent

I'm definitely fine with using data formats for things that really are just raw data (e.g. a series of records with specific fields), and I like JSON too.

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

Documents should be more open, but please don't push for something data-like (i.e. send the XML proponents off the hill). It's time to make files human-readable again.

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

It's probably best to read the comments on the post (which is a few years old), which sum it up: the /dev/tcp device may not be accessible, it probably shouldn't be enabled, and better mechanisms exist.

comment 17y ago · link · parent

Kind of a neat site design; large clickable quadrants to move between sections, that resize. I've never seen anything quite like it.

However, as for the editor itself, I prefer a "raw" vim. :)

comment 17y ago · link · parent

All-on-one-page version: http://www.itworld.com/print/78886

comment 17y ago · link · parent

Computer security problems aren't that different from "real world" ones: it's a matter of trust. Either you believe that someone will do what you want, or they deceive you. While it's reasonable to have some systemic protections, at some point it is entirely up to the individual.

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

Was this article written recently? There are hints throughout that it might be a few years old.

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

While Google is targeting smaller notebooks with small displays, and arguably in those cases people are more likely to focus on just a few tasks, I don't like how "modal" the OS seems to be. I like having lots of things open in the background, that are often arranged where I can see them.

comment 17y ago · link · parent

I guess I'm surprised that so much hand-holding is required. Ideally, web pages don't even have to think about mouse events (which would also pave the way for concepts like assisted-devices that let drags be achieved without a mouse).

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

On which platform? Firefox can vary a lot on other systems.

comment 17y ago · link · parent

It is actually very difficult to do this "properly" for truly arbitrary scales in a sophisticated UI (with full support for mouse-enter detection, etc.). Here are a few reasons:

- 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

This is just one project (albeit a prominent one). Google might be contributing to a lot of other projects. I hope that companies do contribute across the board, and not just to high-profile things like the kernel.

comment 17y ago · link · parent

And content providers have a choice, too. No one is forcing them to put their stuff out on the Internet, in a wide open format, where anyone can just take it.

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

This might be more of a comment on the state of available tools, than the habits of programmers.

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

I don't like fancy image viewers. The over-animation makes it unnaturally slow to move from image to image, and the "window-like" appearance plays tricks on my muscle memory (e.g. sometimes making me use the close-window key to "close" the viewer, only to kill my whole browser window).

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

On a Mac, Print -> Save as PDF.

On Linux, Print -> /usr/bin/ps2pdf.

comment 17y ago · link · parent

I think Tcl is ideal for writing domain-specific formats, e.g. file formats that require a few custom constructs but would still benefit from essentially an entire programming language to help with specification.

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

She pieced together a presentation using quotes from the articles raving about Windows 7. No, a child would never do that.

comment 17y ago · link · parent

The main thing that bugged me about Microsoft's commercial is that a young girl isn't likely to do all of the things she was said to do. That is, she supposedly reads rave reviews of Windows 7 (that were probably in words above her grade level), understands them, and turns them all into a fancy slideshow with music; all while using Windows, the most awkward of all operating system user interfaces in the world?

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

If there's a culture that refuses to upgrade software, then the solution requires both the education of those who are not upgrading, and the solutions to let them do it. For example, present the relative costs of staying put (mainly risk to the business, e.g. several million dollars a few years from now if everything breaks), against the costs of hiring someone to fix it. Bring in the people who could fix it, and find some quotes.

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.

comment 17y ago · link · parent

I think what you're looking for is the parse_args() method, which returns a pair; one part is the named option values, the other part is everything that's left. So you handle positional arguments by iterating over the "what's left" part.
1
818283
98