Better HN
topnewbestaskshowjobs
Log inSign up

makecheck

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

Submissions

comment 14y ago · link · parent

I imagine it's about not only the device's signal transmissions, but its physical weight.

Planes during takeoff and landing are at sharp angles with extra G-forces. If your iPhone was in your hand during this time and you accidentally let go, maybe the phone would fly at someone else with enough force to hurt them.

comment 14y ago · link · parent

If identifiers are displayed as symbols, that's really no different than having keyboard support; in both cases you're hoping you can hit (ideally) one key and have the keyboard do what you want. Keyboards already have modes like the Shift key, it's just a matter of kicking the programmability up a notch. And who knows, maybe keyboards grow slightly and gain a 2nd keypad (on the left) with some new "common" keys.

Note that UTF-8 is quickly becoming the new "raw text file". The encoding of each symbol is very well defined and supported by programs already. It is actually better to have that exact definition than an ASCII word that may or may not be supported by all editors (and if it's not, as you said some symbols look similar; which one is intended?).

I don't think keyboards will change much until some related tech becomes cheaper, too. Two key ones I think are cheap mini-displays per key (so the whole keyboard can display new glyphs if need be), and a companion touch-screen for drawing non-trivial glyphs that are needed only occasionally. Or maybe they just give up on the idea of physical keys entirely and attach large touch screens as "the whole keyboard" for a desktop machine.

comment 14y ago · link · parent

Powers of two. If an image needs to be scaled down in hardware it will be successively split in half, so 256 becomes 128 becomes 64, etc. The machine can handle any image size, but doing so requires it to simulate divided pixels with new colors and this "error" becomes more noticeable as the image is scaled repeatedly. Powers of two divide cleanly.

comment 14y ago · link · parent

If you think about it most languages have sacrificed a lot simply to give mathematical operators their "traditional" ASCII meanings. Had character assignments been based on frequency of need or just convenience, you'd surely have seen things like minus-signs in variable names more often.

I would love to see a UTF-8 or other Unicode keyboard so that it's very fast to enter "real" symbols (partially programmable too). Why for instance does my numeric keypad need another "/" or an asterisk...it could now have "÷" and "×" instead.

In the next few years, given more common Unicode support in keyboards and companion programs (text editors and terminals already do a decent job), it would be interesting to see a language evolve to require actual symbols for known operators. Then you really would have to type "6 × 5 ÷ 3", not the ASCII hack "6 * 5 / 3". It would also allow very interesting hyper-operators (as seen in old environments such as the Mac's MPW Shell, and now Perl 6). Wait...don't let Larry Wall see this or we'll have a "$≠" variable or something in Perl 7. ;)

comment 14y ago · link · parent

The iPhone retina display is 640×960 pixels and 326 ppi. So think about how many photos you expect to display at a time, with some space between them, and divide your photo dimensions accordingly. Also note that computers are generally better at displaying images crisply at dimensions that are powers of two so e.g. 64 pixels on a side is better than 63 or 65.

If you need to support older iPhone non-retina displays, the area is exactly 1/4 as large in roughly the same physical space. So to display the same number of images on an older iPhone display, make each image file 1/4 the area (e.g. a 64 pixel square on a retina display should be a 32 pixel square on older iPhones; this will be the same physical size but less detailed). You can send the developer files at both sizes (normal and 1/4-area), it is not difficult to install both with an app and let the device choose the best one.

comment 14y ago · link · parent

Actual title: "Hackers and Fighters".

comment 14y ago · link · parent

It's hard to imagine a more self-entitled group of complainers than the RIAA.

I have valuable stuff in my house; it is my job to protect what I own. If I feel the items are extremely valuable, I should be prepared to personally pay substantial amounts to keep them safe. So I buy insurance, door locks, whatever. And for the betterment of society, we all pay taxes so that firemen can do their jobs and give us general protection of all property.

What money has the RIAA paid to keep things safe? Their only contribution so far seems to be raising the blood pressure of everyone else. Lawsuits count as raising blood pressure.

The RIAA has the audacity to complain that Google spent "only" 60 million protecting things? Is Google a security company that advertises protection services? Even if it was, shouldn't the RIAA be footing the bill? If you want 200 million dollars worth of protection instead of 60 million, RIAA, then why don't you pay Google 200 million?

comment 14y ago · link · parent

Programming is unusually accessible compared to other skills. If I wanted to learn how to raise farm animals, where would I start? A person needs only a few common things to try programming: an off-the-shelf computer, maybe a book, and these days an Internet connection. After that, they require only the traits common to any other hobby, such as free time and enough imagination to figure out what is going to be built. (I'm glazing over a few details of course, such as the fact that knowing how to type would certainly speed things up.)

Programming is also an unusually marketable hobby skill. With many hobbies you can invest a lot of time and effort and produce beautiful things, but that's liable to only gain you praise; in programming, it can gain you a really good job. This is a pretty smart investment: for a modest expenditure yourself you might net a high income so it should not be surprising if people often teach themselves.

Besides, when I hire someone I like seeing evidence of side projects that reveal a certain passion for doing good software work. I wouldn't hire an artist or designer without seeing a portfolio either, and software has a lot of things in common with art and design.

comment 14y ago · link · parent

I think the point is reasonable, but there is no "agile done wrong"; it's simply "not agile development". If a team claims to follow well-defined principles then it's everyone's responsibility to know them and identify any deviations. In this case, treating a date as more important than any other goal should have been a red flag. The team should never have allowed it to reach the point of longer hours over holiday breaks.

comment 14y ago · link · parent

I realize I'm one user in 300 million, but I'd describe it as an "utterly confusing mess" before I say it has a "soul".

comment 14y ago · link · parent

I think changing mindset is one.

For example, I would structure it as "in order to use the data for any purpose, internal or external, the open infrastructure must be there". In other words, everyone uses the same mechanism so that it can't be bolted on as an afterthought that may or may not work or be maintained.

comment 14y ago · link · parent

True; I switched to Google's DNS a few weeks ago. (Is there an even better one?)

Until that point I was forcing my browser to filter out most of the ISP's page, because it was naturally filled with unnecessary images and ads and crap and was just slow.

comment 14y ago · link · parent

"With the success of the Kindle Fire"...isn't it a little premature to claim that?

About 1/3 of the reviews on Amazon.com alone[1] are 3 stars or less. While the majority of the reviews are 4 or 5 stars, that's still a huge number of unhappy people.

Okay, maybe Amazon has sold a million per week. But during gift-giving season all kinds of popular items are being bought by people who won't be using those items. It only makes sense to come back in January and see how many of the things made it back to the store or onto eBay. Why measure "sales" and "success" now?

[1] http://www.amazon.com/Kindle-Fire-Amazon-Tablet/product-revi...

comment 14y ago · link · parent

Agreed. My ISP (Suddenlink) does one worse and automatically redirects not-found domains to some search results page of theirs.

The main problem for me is that I often see my typos about a fraction of a second after I hit Return. I know it's wrong and I just want to go fix it. But when something initiates a search, it completely changes the URL (no longer a simple fix) and the resulting page isn't even close to what I wanted. It all just slows me down.

comment 14y ago · link · parent

I think the decision only has to be made at the top level, the graphical UI.

One of the things I like about Mac OS X is how solid the command-line "defaults" mechanism is. It has allowed me to expose everything that might be useful to configure, while still trimming the graphical preferences UI and setting a series of factory defaults. So an app can be both simple and flexible at the same time.

1936.

Tell HN: Avoid duplicates and keep it HN-relevant

5 points · by makecheck · 14y ago · discuss

comment 14y ago · link · parent

Sadly, I think it's gotten to the point where we need a way to lie about the screen resolution as well.

I can make my iPad browser pretend to be anything, and it's not enough. I imagine web sites are also checking, e.g. for a 768x1024 browser window and adapting accordingly. It is actually relatively easy to do this with "@media" in CSS, for instance.

All this extra "smart" code takes site developers more time to write, it's more data to download, and more work for the browser to do. Funny that the result would be to damage the user's experience after all that effort was put in.

comment 14y ago · link · parent

I can think of a bunch of examples on iPads and iPhones as well. It amazes me how utterly broken some web sites become once they figure out that I'm using an iPad. Guess what, web developers: I don't want you to force one font size and layout on me just because I have a portable device. It is actually really frustrating when spread-zoom doesn't work at all.

comment 14y ago · link · parent

It may be better to look at a series in general:

http://en.wikipedia.org/wiki/Convergent_series

http://en.wikipedia.org/wiki/Divergent_series

In particular there are many interesting sums on the convergent series page.

comment 14y ago · link · parent

Only problem is the recommendation at the end. He wants "everyone who understands the issues to start boycotting all versions of IE and begin explaining to their less geeky friends and family why they to should use any browser other than Internet Explorer". Well great, only that strategy has already been in effect for years. "Less geeky friends and family" are not the people keeping IE alive right now.

The reason for IE's continued existence is the enterprise. A few years back, a bunch of companies paid way, way, way too much money to have "web" (read: Windows-only, IE-only) apps developed. Rather than admit this was a poor investment and have the apps redone, companies have just been mandating the use of IE until the end of time. And now that virtual machines are feasible there isn't even the risk of hardware failure to make them change!

So I give IE at least 10 more years, if not 15. I wouldn't be surprised if it takes the retirement of certain key managers at all these companies before anything can change.

comment 14y ago · link · parent

I was a member for 13 years and I quit the IEEE because of this last year. The list given in this post doesn't even cover the 3rd party stuff like insurance companies that obviously received your information from the IEEE. There is also spam that addresses me as "Tech Professional" or some other term as if that would make me twice as interested in whatever they're selling.

comment 14y ago · link · parent

Not just longjmp and goto, but Objective-C's @throw.

As much as I'm a fan of RAII in C++, it really is a "pure C++" idiom. If a C++ class is needed in Objective-C code that can @throw an NSException, then the C++ cleanup code really has to be invocable explicitly (because the destructor might not be called). For example:

  MyCPlusPlusObject object;
  @try
  {
    ...
  }
  @finally
  {
    object.cleanup();
  }

comment 14y ago · link · parent

I would use RAII even if it weren't required for C++ exception safety. RAII is convenient and it allows you to write code that is smaller and more solid than it would otherwise be (with or without a "finally").

comment 14y ago · link · parent

  NSArray* x = ...
  NSLog(@"x is %@", x);
That shows you the entire array. And there are other ways.

comment 15y ago · link · parent

I won't say it's been easy, but it is not unreasonable to support the same application from 10.3.9 through 10.7. Anything much older though is very difficult; many APIs in the OS only became sufficient in 10.3, and it wasn't until 10.3.9 that Apple made the compiler's C library a shared object (which was of huge importance for forward-compatibility).

There are side effects to supporting PowerPC however.

To run a modern app on a PowerPC machine you need a Universal binary. And the binary is often the biggest part, meaning half the app's bloat comes from data that modern Macs don't even need. What's worse, 10.3.9 and earlier don't actually support Universal binaries so unless you require 10.4+ you will also need to include a PowerPC-only binary. At that point, roughly 2/3 of your app's disk bloat is entirely because of PowerPC support. In these days of App Store updates and other downloads, it's becoming a little harder to justify adding extra megabytes to an app that won't benefit most people.

The developer tools are also now falling behind. SDKs have been disappearing slowly over the years anyway, but now you can't even build with the 10.3.9 SDK unless you use the Xcode 3.x environment; no Xcode 4. You're also using GCC, so you can't take advantage of LLVM and some other nifty new things. This definitely starts to cause some headaches.

So basically, for the next year or so PowerPC has some life left, but beyond that it will probably be impossible for an app to support both modern Macs and PowerPC Macs without extraordinary effort.

comment 15y ago · link · parent

Some investment in good UI is certainly nice. But it may not be clear to non-programmers just how much work good UIs can be (so it should be no surprise if volunteer projects don't spend the time).

There are some fairly obvious tasks, like artwork and putting some thought into what the behaviors should be. There are less obvious things like the fact that huge side effects often pop up.

How much time will you spend on artwork? Every version of Mac OS X looks different, so your custom widget may have 4 different looks and you just know you'll need a 5th next year. Maybe it's a cross-platform program. Maybe the entire thing needs to change depending on where in the world it will be used. And this doesn't even begin to look into issues with programming images (e.g. tracking the mouse inside odd shapes or figuring out how to render things at different window sizes).

Setting UI behavior is also deceptively simple. It can take a very long time to be sure that you've thought of everything even if you're reproducing a variation of UI that's pretty standard already. You often interact with existing things, e.g. a window manager or mouse event system, and you can be seriously screwed if you find a deficiency in a dependency.

What about when your entire framework breaks because you need a customization? (This seems to happen in Cocoa all the time.) For example, guess what: customizable toolbars and resize-from-any-edge come "for free" in standard windows but they are completely unavailable for custom windows. Some changes can look simple on paper and explode when you actually try to implement them. Nothing ruins a weekend like discovering that a simple change would break all kinds of tangentially-related UI elements that were already working. So what do you do...recreate half the OS yourself just so one piece of UI can be a little more interesting or appropriate to a task?

comment 15y ago · link · parent

Google would not make their products perform poorly in someone else's browser; that would only tarnish the image of Google itself.

Browser crashes almost always happen when I'm loading a page that was already being slow or unresponsive. By the time everything falls apart, I'm definitely ready to blame the site and not my browser; usually I never go back to sites that want to serve me ten megabytes of script in exchange for a paragraph of text.

comment 15y ago · link · parent

That behavior is enforced by Lion itself, and that is one reason why I don't support Lion's mechanism (another being that the transition animation is way too slow). I've reported these problems as bugs to Apple long ago, and I have seen no action. I decided it was more important for Full Screen to be right than it was to adhere to some fancy but broken standard approach.
1
646566
98