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

I have just one account.

For me, it boils down to this: a goal of the site is to improve quality of discussion.

There are two main parties to discussion: "you", and "everyone else".

When "you" post: if you already suspect that your topic will earn down-votes, then why post it (from any account)? Apparently the topic is not something interesting to this group.

When "everyone else" down-votes: they have a responsibility to be smart, and not childish. It's shallow to click the down-arrow simply for disagreeing with somebody or not liking them personally. If there is a general feeling that down-votes are always for legitimate reason, I think people would be less likely to "hide" behind anonymous accounts.

comment 17y ago · link · parent

Looks blank for me too.

comment 17y ago · link · parent

Mac, most definitely.

For one, Mac OS X comes with a Python version installed. It also comes with a whole toolbox of Unix utilities, including a number of text editors. (There are many other 3rd party text editors for the Mac, too. Though I stick with "vim" or Xcode myself, both of which are included.)

You can't understate the value of being able to pop down to the Unix layer when needed. There are lots of times where a simple "grep" or "cp" or "mv" is exactly what you need, and I love that this is just built in to the Mac. If you aren't that familiar with Unix commands, I think it's knowledge well worth having; most of the basic ones are really not that hard to use.

I have to use Windows at work, and I have to say I'm amazed with how little it comes with. While it is possible to work productively on Windows, I have found this is only true after a large setup cost. So if you don't mind downloading stuff for hours, you can eventually get the right tools. Still, I have never found Windows tools to be as "integrated" as Unix utilities are; every Windows program wants its own scripting language, its own hackish way of doing things (in my experience, that is; YMMV). Microsoft's command prompt is also pretty lousy; it really doesn't compare to a Unix shell, and the idea that you could only get that level of power by installing all of Cygwin, is a turn-off to me.

comment 17y ago · link · parent

I use MacTelnet instead of Terminal.app, and it does full screen with either text zoom or resize.

comment 17y ago · link · parent

The proposed iPhone API for in-app charges may finally start to change this. And the extra costs will not reduce an app's popularity.

Before, your entire app revenue was locked up in that initial download. You either convinced people to try your app, or not.

But now, it's more sensible: if you have logical ways to extend your app, or improve it, there will be a way to let customers pay you for those enhancements.

And customers can use this to reward you for making an App That Doesn't Suck. You may (eventually) pay $20 for something in $.99 upgrades, but only if you use it for a long time. If you download an app that you end up hating, you've spent only $.99 instead of $20.

Then there's the fact that people seem to like incremental costs, even though they'd often balk at the equivalent cost up front. $59, or 3 easy payments of $19.95? $600 for World of Warcraft, or $15/month all these years?

2706.

Terminal Emulator Security Issues(seclists.org ↗)

1 points · by makecheck · 17y ago · discuss

comment 17y ago · link · parent

First...discussion thread here: http://news.ycombinator.com/item?id=527500

Second, the account you posted with has had 1 karma for 147 days. A rant should not be the first thing that you share with this community.

comment 17y ago · link · parent

Bugs will always be there; but you can maintain credibility in a few ways. One, by showing that you do have solid tests (sounds like you do). Two, by being frank with customers from the very beginning, about the imperfections of software. And three, by showing haste, within reason, to fix any problems that are discovered, to respect customers' time and investments.

Still, the owner of a software project cannot be naive. He or she must be reasonably aware of the sources of the various bugs, and deal with any patterns that are forming. For instance, maybe one developer is responsible for the vast majority of problems. Not all developers are good; in fact, many are quite bad, and don't belong anywhere near the code they're currently maintaining.

comment 17y ago · link · parent

Since every commit (consisting of any number of files, anywhere in the tree) changes the global repository revision, you can examine the log while at the top level to see all changes that were made.

Try verbose mode, e.g. "cd trunk" and "svn log -r HEAD -v". You should see additional output that lists all changed paths with the usual "M" or "A" markers, etc. next to each. You can specify any revision number, not just HEAD, of course.

I also recommend grabbing the whole book for Subversion, which is free online (http://svnbook.red-bean.com/).

comment 17y ago · link · parent

I would also check out Amit Singh's book on the subject, "What is Mac OS X?".

comment 17y ago · link · parent

Someone for whom programming is a passion, and not just income. Someone considerate enough to help the next programmer who will look at the code.

This type of person then naturally picks up good practices with experience. For example: using multiple languages (and not being afraid to use the one best suited to a task), testing carefully, documenting responsibly, and favoring clarity over cleverness and optimization most of the time.

comment 17y ago · link · parent

In particular, simply adding the "title" attribute to the HTML "a" tag is enough for many browsers to display a description on mouse-over (i.e. no JavaScript magic required).

comment 17y ago · link · parent

I develop Mac software for free and release the source under GPL. The two ideas aren't completely incompatible (though one is perhaps more likely to find shareware than freeware on the Mac, and shareware isn't typically open-sourced).

It's more a question of how "pure" your environment is. Yes, technically, if Apple decided to radically change something about my system, there is a chance I may not be able to access some application or data after an upgrade (once it's "closed"). But it would also be extremely stupid of them to alienate their customer base in such a way. So for all practical purposes, there is no real risk. And I am willing to accept that minimal risk.

It also helps that the company has decided not to make complete garbage, and actually makes a useful product. In such a case, why shouldn't it have my money?

comment 17y ago · link · parent

It may be a powerful shell, but I wish the examples were a bit more practical and enticing.

First of all, what's missing on Windows is a useful interactive mode for the command prompt. Do they really expect people to type these kinds of lines at the prompt? If I wanted a verbose, object-oriented interactive interpreter, I could use Python right now, on Linux or Windows or Mac. What I really want is for Microsoft to ship something in the box with Windows that is as useful as having bash or tcsh with a collection of Unix utilities.

The article's 5+ lines of Windows PowerShell could be replaced with the Unix command "date '+%m-%d-%Y %H:%M:%S'" to get roughly the same result. If you want to add 10 days (as in the article), "date -v+10d '+%m-%d-%Y %H:%M:%S'". If Microsoft wants to win over practical shell users, they'll have to come much closer to something like this.

comment 17y ago · link · parent

"If your language is well designed, then it would be easy to create a 'string' library or a 'date' library."

It may be easy to create such things with a new language, but you shouldn't have to.

I consider it good enough if established libraries can be linked to new languages (e.g. via C). That way, the unique features of the language can be more readily tested in existing tools. For example, I may have a program with a critical algorithm, that might be faster in a new language; if the language simply links to C, I can easily test that algorithm in the new language, without having to replace the rest of the program and the libraries it uses.

Note that I'm not saying it's bad for new languages to be capable of implementing something like a 'string' or 'date' in a simple way. In fact, such practical examples may help when learning the new language. It's just a question of whether or not that is mandatory before anything useful can be done with the new language.

comment 17y ago · link · parent

I really never defend Microsoft, but this is a legitimately hard problem to solve.

One challenge is that even today, many users (even really smart users) don't distinguish programs well. I know an engineer who mentioned features of "Vista" she didn't like, that turned out to be exclusive to the new Office ribbon. Any XP user who upgraded Office would see the same issues, but to her, this was Vista's fault. Microsoft would surely start fielding phone calls from customers displeased with some "feature of Windows 7" that turns out to be an oddity in Google Chrome, Firefox, Safari or Opera. Forcing Microsoft to ship alternatives is the wrong decision for support reasons. It may be more sensible to just give users links to browser vendor web sites, I don't know.

Then there's the question of how to implement OS features. Both Windows and Mac OS X have standard HTML help systems, for instance, and it would suck if they had to shoehorn in the user's preferred browser as the renderer for a simple pop-up help window. What you care about here is not the specific browser, but whether or not it is sandboxed properly. IE is "good enough" for actually rendering OS features, the problem is that as soon as a help file visits the wrong web site the system can still be trashed (when it should be protected). Microsoft has to clean up IE's ties to the OS, simply having IE present is not the problem.

comment 17y ago · link · parent

As for whether or not the data structure exists, it does. :) The std::map in C++ is a sorted dictionary, for instance.

But it can be uncommon to require this, usually for two reasons. One, the data set may be huge. And two, much of your code may not even "care" if the data is sorted. In either of those cases, if automatic sorting occurs, a lot of compute time may be wasted for no net benefit. (A solution is to have data sorted "on demand" within the code that actually cares about sort order.)

comment 17y ago · link · parent

"The parser now understands `|&' as a synonym for `2>&1 |', which redirects the standard error for a command through a pipe."

This is kinda nice, and continues the tradition of taking the best features of tcsh.

comment 17y ago · link · parent

Here's a pretty good tutorial amongst their developer documentation: http://developer.apple.com/documentation/Cocoa/Conceptual/Co...

comment 17y ago · link · parent

The article suggests Jobs himself be in charge of these companies. But it would be a step in the right direction for a manager to simply observe what Jobs did when he first returned to Apple.

In particular, Jobs axed all the different Mac models being developed, and made a single compelling product: the iMac. This focused the business, and created a market.

It wouldn't take Jobs himself to do this with automakers. In fact, it hasn't; just look at something like the redesigned VW Beetle, or the Mini Cooper, both the iMacs of their markets.

comment 17y ago · link · parent

I think the gnuplot port (uses HTML 5 canvas) is impressive: http://skuld.bmsc.washington.edu/~merritt/gnuplot/canvas_dem...

Of course, it's a question of how widespread HTML 5 canvas support will be, in the timeframe that you need.

comment 17y ago · link · parent

I guess my question for IBM would be, why must so many jobs physically move? Surely, they could ask for telecommutes first. They could even ask people to accept a massive salary reduction...I'm sure if I was making $90k, I'd accept a reduction down to like $60k if it meant I didn't have to move to the other side of the world to keep my job.

comment 17y ago · link · parent

There are some abuses with new accounts posting self-serving links, e.g. they've existed for 20 minutes and have 1 karma, and have already posted 2 links to exactly the same web site.

New users should be put on a waiting period, and/or need a minimum comment karma level, before being allowed to post.

comment 17y ago · link · parent

There is a "delay" number in your profile that says how many minutes elapse after you post, before your comment shows up to anyone else.

If you want to set it to 0, go ahead.

I guess the idea is that if you post something, er, stupid, you can edit it and save face.

comment 17y ago · link · parent

It says this problem occurs only if "you've updated the distro via CPAN".

Conventional wisdom says that you don't mess with most of /usr, you only add to /usr/local; and on Mac OS X, you don't mess with most of /System/Library, you add to /Library.

So people shouldn't be trying to patch the system Perl, they should be installing their CPAN modules in a separate place (e.g. /usr/local/lib/perl5).

As long as /usr/local isn't blown away, the OS vendor can do whatever the heck they want to the rest of /usr, including reverting it to a known and supported state.

comment 17y ago · link · parent

I like this Consolas-inspired one, Inconsolata (also available for Mac, etc.):

http://www.levien.com/type/myfonts/inconsolata.html

comment 17y ago · link · parent

They had tons of makefiles, so moving to something make-like was desirable.

I personally think that GNU make has a ton of bells and whistles, so it may be very difficult to emulate it with any accuracy; then again, they also know which features of GNU make are important to their project.

I might have bitten the bullet and chosen something like SCons to reach a Python base, and I have spent time rewriting (one or two) makefiles as SConstructs without a problem. But I have also seen huge projects with makefile madness, and I can certainly understand anyone's decision to want to keep makefiles untouched. Emulating make, while leaving room for improvements, isn't such a bad decision.

comment 17y ago · link · parent

Look for "doctest" and "unittest" in the Python standard library. You can run pydoc on either of those names for more, and find tutorials online.

comment 17y ago · link · parent

"This expectation that a new Google product will need massive adoption to justify its investment or be cancelled within four months, as was the case with Google Lively, will be a significant dampener new product launches."

That depends on how Google treats the people who are part of failed initiatives, and how many things are cancelled overall.

At many companies, sadly, people are fired for simply being on the wrong project at the wrong time. If Google doesn't set that precedent, then its employees will be less worried if their projects haven't taken off.

It's also important not to kill "most" things, because people can only take so many failures. The culture of innovation could die from attrition: how many times do you want to pour your heart and soul into things, only to see them die? Hopefully Google doesn't cancel projects too often, and has a well established "salvage" operation for parts of old projects.

comment 17y ago · link · parent

Maybe Apple's implementation of Cocoa is Mac-only, but if you use something like GNUstep you can have the Cocoa APIs on other platforms.
1
909192
98