Better HN
topnewbestaskshowjobs
Log inSign up

makecheck

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

Submissions

comment 15y ago · link · parent

I appreciate the help even if you'll be heading to Linux. (While you're there, check out "aterm" which I kind of like but had nothing to do with.)

I don't have command-option-arrows (they're used for other things), though the menu items for next/previous window are available as command-tilde and command-shift-tilde. So in theory the Keyboard pane in System Preferences can be used to remap them to any other keys.

I can appreciate the idea of piecing text together, I'm frequently cracking open temporary "vim" sessions to do that. Would you consider it too much to rely on a macro for that? Using the existing macro scheme it's straightforward to do something like remap command-option-V to open a new editor in a new window.

I agree that auto-Copying selections can sometimes be unexpected, so I left it as a preference. But should you accidentally dump garbage into a window, there's even an option to intercept multi-line Pastes.

Thanks for mentioning 10.3.9. :) Yes, that has been increasingly tricky to pull off, but I figure as long as Apple hasn't made it impossible to support I can keep it working.

As far as the scroll behavior on new input; I believe I actually am doing what you'd expect (though only when scrolled back; selecting text has no effect on it). There is also a way to suspend/resume explicitly, though any terminal can do that using the appropriate start/stop control sequences.

comment 15y ago · link · parent

I don't notice those conflicts in my implementation, but then again I'm not using Apple's text view. Every "normal" text field on the Mac (which I believe at least Apple's Terminal is using) has built-in Emacs-like bindings; I think that's why you see a conflict.

I do have the concept of toggling context with macros; e.g. you can define up to 12 actions at a time, mapped to almost any key combinations, and choose between as many sets of 12 as you want.

I also work around potential key mapping issues by having floating keypad windows. For example, if for some reason control-A doesn't work from the keyboard, it's always possible to "click" a button that will produce a control-A. (This was very useful in the old days in programs like "pine" that had redefined control-C among other things.)

comment 15y ago · link · parent

I've been thinking about adding something like Visor, and I haven't come up with anything yet.

I've only used Windows (XP) seriously for a few months of work, and I agree that it felt like the stone age.

As much as I can see the need for something better on Windows, I no longer use Windows (gladly, too), and I don't own any PCs. Almost all of the hardware that I have easy access to is using Mac OS X these days.

My code is GPL however; so if someone has the drive to actually produce a terminal on Windows, they might find mine useful as a reference. After all, I've implemented fairly complicated things like an XTerm, VT100, VT220, etc. and a UTF-8 decoder, and you wouldn't want to start those from scratch.

comment 15y ago · link · parent

I've implemented 256-color support (if XTerm is requested), and the scrollback can be set to any size though I am working on some other options to make it more flexible.

I haven't optimized for memory usage, but that's a good point. I did compare my launch state against Apple's Terminal using "top", and found that I used roughly the same real memory size but only 1/3 of the virtual memory. There could be many reasons for the difference of course.

comment 15y ago · link · parent

I think I have all the things you mentioned, aside from semi-transparency (which I only use when the app is backgrounded).

My full-screen mode can fill 2 displays, with the most-recently-used window on each display; and by setting options everything else can be removed, like the menu bar.

What is the ideal way to switch between terminals? Right now I rely on the window manager, e.g. command-tilde keys, clicking with the mouse, Exposé, and I have a separate window that lists every open window (also usable for switching).

What would make copy-paste handling "better"? I did implement a way to get auto-copy-on-select like Unix terminals do, and drag-and-drop. I also detect a multi-line paste, which provides an option to join into a single line. Larger pastes are buffered to try to avoid overwhelming the program running in the terminal.

2016.

Ask HN: What do you look for in a terminal?

6 points · by makecheck · 15y ago · 17 comments

comment 15y ago · link · parent

With 300 million people on Facebook (and there's probably more than that), you'd need to survey 3 million people to get at just 1% of them. This survey covers 1000, which is a fraction of 0.0000033.

In other words, a survey isn't going to tell you anything. What matters is trying it yourself, and deciding if you like it or not.

comment 15y ago · link · parent

Works on any Unix-like system, from Solaris to AIX to Mac OS X.

If a directory is empty, remove it with "rmdir". (It is safer to implement a cleanup script as a series of "rm" commands for files and "rmdir" files for directories; that way, if the directory happens to contain anything you didn't expect, the unknown files will be preserved. The "rm -rf" approach is a bit of a sledgehammer that can have unintended side effects.)

A particular gotcha on Linux is that a trailing slash on a directory path follows symlinks, whereas a lack of a trailing slash does not. This means that "rm -rf xyz" is very different than "rm -rf xyz/" if "xyz" is a symbolic link to a directory: the first one deletes the link only, and the second one deletes the entire directory that the link points to!

Symlinks are also misleading when mounted by other operating systems; e.g. when mounting a network drive on Windows. Deleting (from Windows) an item that happens to be a symlink on the Unix side will have the effect of following that link and destroying an entire destination file or directory, which is different than what "rm" would do in the Unix shell for the same path.

comment 15y ago · link · parent

It is possible with xterm by the way, just in a different way (escape-f or escape-b).

comment 15y ago · link · parent

All kinds of things compile down to assembly. Binary compatibility between two programs doesn't say anything about how easy it would be to translate their designs into other languages (which is often a new way of thinking), or different standard libraries. Many approaches are possible, few are worth the effort.

If Apple proposed a new language that didn't support message-passing syntax, and the only way to keep Cocoa dependencies working was with a pile of objc_msgSend() calls and other low-level wrappers, developers would just laugh at them. A single line of Objective-C often contains 3 or 4 pairs of square brackets, and objc_msgSend()-ifying that alone would be a nightmare even in the short term and even with a code generator.

That's why I said, the new language has to follow the same calling conventions. Fundamentally, whenever I see "setFoo:x toBar:y withBaz:z", I should be able to either leave that alone or do very little to that line of code.

Carbon-to-Cocoa was feasible because Objective-C is a superset of C (plus the libraries did share some things, like free casting between the CFStringRef and NSString* types). Not only that, but there's a compiler for Objective-C++. It was very easy to adopt.

So to follow the Carbon-to-Cocoa model, Apple needs a new language that's a superset of Objective-C. And that's actually something I'd like to see.

comment 15y ago · link · parent

What disparaging remarks? I'm only stating exactly how Objective-C looks. It is a syntax I happen to like, too. Not sure how you thought otherwise.

Yes, when calling Objective-C, it compiles to C. But since the article talks about the idea of moving away from Objective-C, the only thing that matters is how source code currently is. The millions of Cocoa-dependent projects aren't using just C functions (even if they're compatible), their API calls follow Objective-C style. So, it is those calls that need to transition. It's not impossible, but it would be inelegant to move those API calls to a language that is significantly different than Objective-C style.

[Just so you know, I've been programming for over 20 years. I have years of experience with Objective-C on both Mac and iOS and dozens of projects under my belt, both for companies and open-source. I have used many different programming languages and know their strengths and styles very well. But you're right, you would not be hiring me...because I would definitely choose not to work for you.]

comment 15y ago · link · parent

What I find funny about such rapid changes is, can they reverse any of his decisions? For instance, will HP magically announce they're not really leaving the PC business and will be shipping new tablets?

comment 15y ago · link · parent

Aside from all other issues (sheer volume of APIs to port, people depending on it, etc.) it's hard to imagine using another language with Cocoa unless it also chose "theSame:kindOf:calling:convention:".

Objective-C just looks weird when you try to call it like you would a C function, because arguments are almost always intended to be preceded by names. So how would old APIs be invoked? They may work, but it'd be a very awkward transition.

comment 15y ago · link · parent

Not worth it.

A reasonable variation on a domain would be one that includes some line of work, e.g. if it were gardening you could get "z-gardening.com" instead of "z.com" and probably save a ton.

comment 15y ago · link · parent

Please retain original article titles as per the guidelines [1]. In this case, the new title is also inaccurate.

This article is actually called "Microsoft's plan to stop Bing's $1 billion bleeding", and the loss on Bing alone is $5.5 billion since mid-2009. It was only Microsoft's total online services division losses that reached $9 billion, and that was since 2007.

[1] http://ycombinator.com/newsguidelines.html

comment 15y ago · link · parent

Right now, there is no reason to abandon profitable platforms and invest in Microsoft's tiny store. At the very least Microsoft needs to drop this to 25%, if not 5% or 10%, so that they offer some obvious advantage to a developer. Heck, Microsoft should even have a short-term deal where their cut is much lower, e.g. 1% for the first year, just to make sure they acquire some volume.

comment 15y ago · link · parent

If Google's serious about competing they shouldn't set up roadblocks that their biggest competitor, Facebook, doesn't have. And even if Facebook didn't exist, Google's trying to make a site that thrives on user information so it makes no sense to create barriers when users come along.

Maybe a small web site doesn't have to support every browser, but Google has the resources to test anything they want. Besides, Opera and WebKit-based browsers are really good and aren't likely to show many new bugs.

comment 15y ago · link · parent

Yes...using OmniWeb (Mac). But I noticed Opera isn't on their list either.

comment 15y ago · link · parent

A couple things bothering me so far...

1. It's 2011, and I started out by seeing this:

https://plus.google.com/not-supported/?ref=/up/

I had to "lie" to Google and pretend I'm Safari. No big deal, but Google of all sites should not have these kinds of crap restrictions.

2. When I tried to log in, I was spammed that I should "link to Picasa", whatever that means, with the only options being to do it or Cancel (at which point the entire Google login is stopped!).

So far, from my point of view Google+ is making basic mistakes: I am discouraged in every way to log in.

comment 15y ago · link · parent

I tend to stick with the "new" page, yes. I prefer stability, and I know that when I return to that page I'll immediately see what is different (i.e. what's at the top). Then again, I probably check the site more often than most people.

I imagine the "crowd-sourced" front page is the most useful to people who won't be taking the time to click a lot of "More" links and just want to read a few interesting things.

Another reason I check "new" is because I occasionally flag things, and it's unlikely that posts requiring a flag are going to appear anywhere else.

comment 15y ago · link · parent

These kinds of baseless statements really bug me. Where to begin.

First, Objective-C is not a big language. For example, look up Pierre Chatelier's guide [1] that maps from C++ concepts to Objective-C; there isn't a heck of a lot to know. Objective-C really is a language that you could learn pretty well in a couple of weekends. It's silly to suggest that professional programmers couldn't possibly find the time to pick up this language just because they're already firmly entrenched in the world of other languages. I'm forced to wonder if the article's author has used Objective-C at all.

The article doesn't give a lot of specific gripes. The only stated "problem" with Objective-C is its lack of garbage collection on iOS. Well it is widely known that Objective-C's lack of garbage collection is a benefit to iOS, not a detriment, since iOS applications perform better. And Apple's new Automatic Reference Counting scheme (ARC) is a stroke of genius: it "gives back" to developers the simplified coding that garbage collection would have allowed, but without sacrificing performance the way garbage collection does. ARC even avoids other problems, e.g. how to deal with retention of data across framework boundaries.

As far as needing a Mac to do development, that is technically true (but only for iOS; you could learn Objective-C using something like GNUstep and GCC on Linux, say). A Mac mini is not exactly expensive and it works with existing monitors and keyboards. There are also a lot of people already using Macs as their laptops, even if they primarily run Windows or Linux on it.

[1] http://chachatelier.fr/programmation/fichiers/cpp-objc-en.pd...

comment 15y ago · link · parent

Well, I like it. Especially since it looks like it would be more touch-friendly (iPad).

comment 15y ago · link · parent

Not sure about #4. Single parenthood can sometimes be a choice (e.g. mother with donor), but it's much more likely not to be (e.g. unwilling divorce, death of a partner, teenagers who aren't ready).

comment 15y ago · link · parent

There are some straightforward solutions to many of these problems that have been made more complex (unnecessarily) because they cross precious lines of ideology and religion, among other things.

For example, there are homosexual couples in the world who want children. Many are wealthy enough to adopt more than one child. In any sane debate it should be unquestionable that a child is better off being child #1 in a middle-class family, with better opportunities for economic and social stability than they would have as child #5 in a poor household. But there are people who would shout until they're blue in the face to prevent this from happening, simply because the parents are gay.

Another extremely unpopular but practical solution is contraceptives and even abortion. Why are parents shamed into birthing a child that they cannot afford to raise, in a world whose population is greater than at any point in history? Unquestionably if the average size of families decreased, incomes would be less strained and poverty levels would have a fighting chance to go down as well.

A third unpopular solution is grouped housing. For some reason it's been hammered into everyone's heads that they should have a house and a yard and a dog, and that a single family should live in it. But the reality is that a large structure could hold 2 families or more, if people were willing to live like that. It would not only decrease costs, but it would improve nutrition: it's much more practical to cook a decent meal for many people than for a few people (it's easier to acquire good food in quantities that won't go to waste, etc.).

comment 15y ago · link · parent

Personal opinion (so one anecdote, take with a grain of salt), but I hate welcome screens. Developers should really avoid wasting any time on features that people could actually despise.

Applications are tools; they should launch as quickly as they possibly can and with minimal fuss. They should not presume to guess what the user might want to do, otherwise they turn into Microsoft's "Clippy".

If I launch a program I have a purpose in mind, and I know how that task is usually accomplished, e.g. in my mind I am thinking that the first thing I'll do after launch is to open some menu command. Absolutely anything that gets in the way of my "plan" feels like an unwelcome distraction.

comment 15y ago · link · parent

One of the first things Jobs did when he returned was streamline Apple's products. If you go to Yahoo.com now, you see about 12 things on the left-hand side that are essentially "WTF?"; things Yahoo shouldn't be doing (and that's before going to Everything.Yahoo.com for the complete list of random garbage). Yahoo should be focusing on its strengths and mercilessly removing everything else.

Yahoo has always been pretty good at apps: cross-platform Messenger, an impressive web mail interface for the iPad that looks almost native, etc. They are a web and design powerhouse, if only somebody told them. This is expertise that can be sold; they need to continue building a small number of apps to demonstrate their prowess, and contract this out to develop anything for anyone (e.g. make Yahoo the go-to place for high quality mobile apps for the iPhone?). Even throw the free software community a bone by pulling a Nokia (the old Nokia) and making a Qt-like dual-license so their services have even greater reach.

Yahoo is also a decent source of news, but they aren't pushing this enough. With a bit of care and attention they could clean up the mess that is modern media and give people a really desirable digital newspaper...something that everyone would want as their home page.

Find and fire the people in their company who build toolbars and installers that push toolbars. The last thing any company needs is to be connected with something that users may loathe.

That's just off the top of my head. :)

comment 15y ago · link · parent

I wonder if there's a version of this article that uses paragraphs.

comment 15y ago · link · parent

Agreed, especially as Xcode 4 does a pretty outstanding job of ruining my multi-monitor setup.

The problem with any set of panes is that they almost always lack features X, Y and Z that you miss from a window manager. That's what the window manager is for, and it frustrates me that applications feel the need to implement this again and again (each in their own way, to boot).

It is time for a modern GUI to provide support for chromeless panes as first-class windows, so that you can move any pane anywhere, attached to any number of other things from any application, with any size in any arrangement (tabbed, split-pane, whatever).

comment 15y ago · link · parent

I Googled another article that may be better...one that actually shows a picture of the product and the woman behind it (the original article was kind of lacking in those details):

http://www.behealthyspringfield.com/sections/abes-army/a-bic...

comment 15y ago · link · parent

As a programmer I'll comment on why I wouldn't fit into some of the molds you've suggested that programmers might join. (Personal opinion, of course.)

1. As a general rule, I am very unwilling to put up with crap...life is too short. I also want to be productive with the energy I put into something. If you are hired in a technical job, you can reasonably expect to be around competence (and if you're not, you leave). The biggest reason I would never see myself joining Congress, or upper management at some companies, and similar jobs, is this: I can already see who my co-workers would be, and they're horrible people. I've seen what a lot of these clowns are capable of, and you couldn't pay me enough to be the only smart man in the room. It would be day after day of banging my head against the wall and wasting my breath.

I believe that the only way you'll ever see engineers enter these kinds of jobs is if you can simultaneously replace a huge percentage of an organization with new people: the kind of people that engineers can believe in and work effectively with. It has to be appealing from the outside, and right now it just isn't.

2. I enjoy most work. As long as I'm making cool stuff and I can be proud of what I produce, I'm pretty happy. I am more stressed about things that have technical consequences (e.g. somebody pushing for a change that I know will be a long-term negative), than I am about salary.

In other words, if it wasn't so easy to find enjoyable work doing actual programming and the "important" jobs weren't so maddeningly filled with annoying individuals, you probably would see engineers doing other things.

1
676869
98