Better HN
topnewbestaskshowjobs
Log inSign up

makecheck

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

Submissions

comment 18y ago · link · parent

Although I agree that "www" isn't really needed, this is one of those conventions that should have been corrected on day 1 or not at all. To change it now only invites people to encounter more errors than necessary.

There's no way 100% of web sites will change to this. So maybe half the time I'll get an error if I get in the habit of writing web page links to use "xyz.com" instead of "www.xyz.com", or typing them as such in my browser.

Conversely, no business in its right mind would accept only "mybusiness.com", scaring customers away by returning an error for "www.mybusiness.com". Of course they'll accept both, so why not use the one that's sure to work?

comment 18y ago · link · parent

At home, I use my web browser (OmniWeb) to put menus of feed items into my toolbar. This is good because I tend to be in my browser when viewing other news sites.

Yet at work, I use my E-mail (Thunderbird), perhaps because the RSS feeds tend to be blogs, newsgroups or other similar E-mail-like items.

In other words, my reader depends on the style of the content: is it E-mail-like, or web-like.

2853.

ICFP programming contest - decide the language of choice for discriminating hackers(icfpcontest.org ↗)

1 points · by makecheck · 18y ago · discuss

comment 18y ago · link · parent

This article is about Acrobat, and I have to agree with its ridiculous transformation into bloatware.

It seems companies like to release major new versions of things that don't need to become "better", instead of focusing talent elsewhere.

I can't name a single feature I use in acroread that wasn't available and done less obnoxiously in 5.0.9. On Linux, I still run 5.0.9...it's ugly, but it works.

I also now tend to use "xpdf", because it is very quick and works fine for almost any PDF I come across.

comment 18y ago · link · parent

Well at least for me:

At work, Firefox 3 won't even start under Window Maker...still trying to figure out what's going on. So I'm stuck with Firefox 2.

And I don't use it on my Mac at home, because OmniWeb 5 is better in my opinion.

comment 18y ago · link · parent

There is no such thing as a "private URL" that is hosted on a public web site. You need to augment the URL with something like: - A server-side authentication scheme; so if the URL is visited, it can't trigger anything important without a password. - An expiration mechanism; so that after a certain amount of time, a particular URL has no effect even if it is "visited". - A cookie; so that the URL only works if visitors are people you expect (because they have the right cookie on the client side, and someone like Google would not). Cookies are actually another way to implement expiration, too.

comment 18y ago · link · parent

I personally hate windows being opened for me. My browser offers several contextual menu options on a link, such as "Open Link Behind Window" (my usual preference, if I choose to open a window).

I think it is okay for a browser to give a user a global or site-specific option to do this, because this is a preference and belongs on the client side.

comment 18y ago · link · parent

That is a pretty good example, actually. Yes, if it is an expression whose value cannot be known until the browser figures it out, then there could be value in having CSS support it.

But JavaScript supports dynamic lookup of style information, and has math expressions. It may be that CSS is still the best place for such an enhancement, but the trick is to always look for the best place to make these changes. Would a JavaScript onLoad script like "page.styles['x'].margin.left = page.width_in_pixels()*0.20 - 20" be as good, better or worse? I'm not even sure myself.

comment 18y ago · link · parent

I have definitely thought about the convenience of variables before, but it isn't good to bloat CSS itself with them.

The spec's examples like "CorporateLogoBGColor" could be handled by a simple tool that generates CSS. The simplest case is a preprocessor-like input/output scheme. For example, a script (in a complete language with real variables, functions, etc.) and a template file (with references).

That way, there's separation of responsibility. The browser doesn't have to be more complex, risking bugs and exploits and slowdowns, because the "requirement" for variables isn't really there.

What usually happens after someone adds "variables", is somebody says hey, we need functions too. And arithmetic. And oh wait...now it's a full-fledged language. Oops...

comment 18y ago · link · parent

Advanced Programming in the UNIX Environment, it now has a 2nd edition.

comment 18y ago · link · parent

Search engines are very good at finding things, it seems less important than ever what your site's name actually is.

The proliferation of extensions is also annoying: I don't like remembering that "abc.net" is completely different than "abc.com". I think it would make (slightly) more sense if acquiring "abc.<anything>" at least meant you couldn't ever register "abc.<anything-else>", as then the only purpose of the extension is to identify who manages your domain.

Personally, if I see an organization with a "special" new TLD, I won't be impressed. I'll only consider them foolish for dropping half a million bucks, and assume that they mismanage their money in other ways (i.e. bad investment, steer clear).

comment 18y ago · link · parent

I walk a lot (e.g. if your only excuse for not doing something is that it's far to walk, it's a chance to walk more).

I also pay attention to drinks...for example, if I buy a bottle of Coke, I leave half of it, take it home, put it in the fridge and forget about it. The next day, I'm happy to see it, and it's like a 2nd drink. Only, it's fewer calories.

comment 18y ago · link · parent

It is sometimes reasonable to "compress" released code, especially if it can be done automatically and there is benefit to doing so. In the case of JavaScript, the main benefit is that the file download size is smaller.

However, unless there is an absolutely measurable and significant advantage, I find "clever" code to be far more trouble than it is worth. Engineer time is very expensive, and you don't want people sitting and studying code for very long just to figure out how to change it safely.

comment 18y ago · link · parent

Neither, really...OmniWeb is better. Technically it is now using the Safari engine, but the browser itself is superior to Safari.

It has very nice per-site preferences, really smart privacy options, plug-in management, etc.

comment 18y ago · link · parent

I didn't say it wouldn't close the window, only that this wouldn't be immediate. For example, it could confirm before throwing away the entire state of a web application.

I wasn't referring to the ability to refresh a page, I was referring to the reset button of a form. That button destroys all the data the user entered, which is similar to an unwanted close.

comment 18y ago · link · parent

There is another reason to avoid the defaulting trap that is the subject of the article: you don't want something evaluated if it will never be used.

Python always evaluates the default values of arguments; this is done at parsing time. So if you define a function f(a=x()) and never call f(), there will still be a call to x().

The first work-around mentioned in the article (to assign None as a value, and test for None before setting a default), is the approach that I prefer when the default value is non-trivial.

comment 18y ago · link · parent

I agree with the article's points.

I tend to wonder if the state of GUIs isn't as simple as "too many developers use Windows and don't look elsewhere". Windows ships with a lousy shell and not many decent commands to build with. If most developers follow that example and don't try to learn anything else, they'll be "comfortable" even in inefficient programming environments.

The Mac's an anomaly...the current OS has great command support, and while the older Mac OS didn't, its developers had access to the excellent MPW Shell. MPW Shell had features that Unix-like systems still can't match, such as the ability to assign significance to many more characters. (When the system makes it easy to enter "weird" symbols, the idea of turning them into shell metacharacters is pretty cool!)

A good book on the way developers think (on Unix-like systems), is ESR's "The Art of UNIX Programming". It has great examples of how many of us would approach system and application design, that don't seem prevalent on other systems.

comment 18y ago · link · parent

I have been very impressed by the progress of web browsers. However, they simply don't replace an operating system until they start acting like the keepers of an entire ecosystem of applications. Browsers are still way too careless.

For example, why should a modern browser allow me to immediately close a window with a web app running (the equivalent of an OS' "shut down without warning")?

Why do browsers even show a page's "reset" buttons (also known as "destroy everything with no Undo")?

And the Browser Operating System can still do the equivalent of "kernel panic" by taking out 14 windows (which aren't really windows, but web applications) when it dies.

The closest I've come to "nice" is OmniWeb on my Mac, where they have excellent per-site preferences. This at least gives me some control over each web application, as if the browser were an OS. It isn't enough, but it's a good start.

comment 18y ago · link · parent

It would be good to have something Apple-supported, but this certainly wouldn't be the first Cocoa port (see GNUstep for Linux).

The thing is, Mac OS X is compelling to developers for reasons beyond Cocoa. So just how much would Apple have to provide on Windows, before Windows is worth my time anymore?

For example, I love being able to depend on Python and basic Unix tools without asking users to download them. And I like that POSIX APIs are supported. These aren't Cocoa, and sure aren't available out of the box on Windows.

comment 18y ago · link · parent

I think the article sums up some important steps, definitely problems I've seen on other projects before.

One thing I would add is to regularly repeat the "wipe, checkout and rebuild" process, especially as part of releasing the product. It's scary if someone builds software out of their messy work-area and releases it for "production", instead of using a clean tree in the middle of nowhere. It's just too easy to forget to check something in that matters.

comment 18y ago · link · parent

The article talks about having too many of these, period, which I certainly agree with: it's a bad sign.

But if they must exist, you should have a facility for doing them in an automatic way. If you don't, you are better off keeping data members public.

Of course, I really like how Python properties handle this, because the syntax is the same as if the accessor methods never existed.

comment 18y ago · link · parent

Regarding Carbon and Accessibility, VoiceOver, etc.:

Every standard view on Mac OS X receives accessibility and VoiceOver support, whether it comes from Carbon or Cocoa. So Carbon isn't the reason this breaks in Firefox.

comment 18y ago · link · parent

It depends very much on the environment.

If I'm using Python, I'm happy because it has built-in testing modules I can count on.

There are also cases where Python unit tests are worthwhile for other languages. For instance, I've subclassed unittest to quickly run and diagnose arbitrary Unix programs in isolation, and further subclassed it to help launch specific compiled programs under test.

If I join a team where someone has already done the work of setting up a reasonable test infrastructure, adding and maintaining tests is often OK.

But anything starting from scratch, count me out. :) Sometimes you're thrown into a semi-mature C++ project where they weren't making modules "testable" from the start, and that's way too much effort to retrofit.

comment 18y ago · link · parent

It's interesting to see how people choose languages for projects, but it's also important to realize that "one" isn't necessarily the best choice. I think of programming languages as targeting tasks, not whole projects.

I've successfully merged multiple languages many times. You can save a lot of time if you know the strengths of each language and have learned how to combine them (e.g. SWIG bindings, wrappers around Objective-C modules, process invocations to run scripts).

In addition to benefits in exploiting languages for what they're "best at", it is great for bringing people into your project. Invariably the code will be partitioned into a more advanced "core" (e.g. C++) with some significant things in higher-level languages like Python. So the probability increases that a newcomer will see something familiar, and be able to understand major parts of the code quickly.

comment 18y ago · link · parent

I don't really know what's happening in San Antonio, but Austin has a lot of us I think. :) The two cities are nice and close, I've seen regional engineering events before.

comment 18y ago · link · parent

SourceForge has been reliable for me. I haven't looked at what other sites do, but I like having access to rsync the whole repository as a backup, and repository browsing on the server side.

comment 18y ago · link · parent

I'm curious if full-disk encryption works with Time Machine. Since upgrading to Leopard, Time Machine is one of my favorite features, and I know FileVault users can't back up home directory files on Mac OS X.

In theory, there's no reason a file couldn't be backed up from one fully-encrypted disk to another fully-encrypted disk, as long as the copy can be authenticated.

But Time Machine likes to treat its target disk as "special"; I'm not sure if this is simply due to the presence of "/Backup.db", or if the entire disk needs special formatting.

Of course, if PGP is targeting the enterprise, businesses may already back up their Macs in some other way and not care if Time Machine works.

comment 18y ago · link · parent

This isn't something Google should care about. If anything, it's an indication that web browsers should finally let users set their own bookmark/site icons (relying on sites only for initial/default icons).

How many people would care if Google changed a 16x16 pixel icon, if they could tell their browser to use something else?

comment 18y ago · link · parent

One example is Outstanding Researcher (highest preference category) EB1-OR, which can actually be filed in parallel with an application in a lower preference category.

Technically a PhD isn't necessary, but you're almost certain to have a PhD if you meet the actual requirements. If you have international recognition as being outstanding in a field, or significant experience in teaching or research, or you enter in a position of tenure at a university, you can accelerate your green card application with EB1-OR.

1
9495969798