Better HN
topnewbestaskshowjobs
Log inSign up

Zev

2,386 karma · joined Mar 11, 2008 (18y ago) · 1,513 submissions

Likes the -ish suffix on words.

Mobile Engineer.

In: 415, from: 516

#FFCC00

Submissions

comment 11y ago · link · parent

It does not require encrypted connections, although it does have extensions to indicate that future connections should occur over TLS (through the optional `tls` extension in IRCv3.1) and there is discussion for standardizing IRC over SCTP in IRCv3.3

comment 13y ago · link · parent

I can't speak to its accuracy, but, June 2013 wasn't yesterday. It isn't that old -- and it isn't like there's been a release of Photoshop in the past month and a half, so, it seems pretty recently updated.

comment 13y ago · link · parent

I still don't get why this has to be a full-sized TV. What if the AppleTV (sized as it is) had the sensors in it to detect motion?

(Of course, I still don't see the appeal in using motion to control my TV, after using a Kinect on-and-off since it was released. But, there's more to the market than just me, so, who knows.)

comment 13y ago · link · parent

Neat. Playing with parsers is fun!

FWIW, a similar tool exists that works with most C-style languages, `uncrustify`. Might be worth looking into as well?

http://uncrustify.sourceforge.net

comment 13y ago · link · parent

Saying "Always rasterize" isn't necessarily the solution, either. Its actually pretty bad advice to follow all the time ;)

I suspect (but can't confirm without the source code to the demo) that shouldRasterize would actually hurt performance in one of the two cases in the article. Specifically, I imagine that it would make the score for adding and removing views from screen even worse than it already is.

Yes, it renders into a bitmap, and reduces CPU usage, once you've paid the upfront rendering cost. But, it doesn't rasterize opacity, and, will use up a ton of memory (because it doesn't result in stretchable images).

comment 13y ago · link · parent

Re: 2:

While its great to have a small image that doesn't require much I/O to read, "small" shouldn't only refer to file size.

Instead, a "small" image should be one that has a small resolution, and is stretchable. This lets the GPU tile the portions of the image that are being stretched and reuse GPU memory, instead of having to waste space in ram to hold duplicate pixel data.

(And when something's as small as it can be, it doesn't minify very well anymore -- not much left to strip from the PNG.)

comment 13y ago · link · parent

It wasn't mentioned in the article, but, it is very important to note: CAGradientLayer is not GPU-backed.

In other words, the comparison is between the CPU redrawing a gradient 60x a second, and, an image being moved around on screen. Not entirely surprising that the one that does less rendering is going to be faster.

comment 13y ago · link · parent

Re: Your first point, the App Store uses delta updates now, so, it doesn't download/replace files that haven't changed.

comment 13y ago · link · parent

Selected "I read multiple books a few times a week", but, I'm not sure if thats the best fit. I read for some amount of time every day, but, its rare for me to be on the same book for longer than a few days -- and if I finish a book in the evening, I'll probably wait till the next day to pick up another one.

Basically, my target for the year is to read 104 new[1] books cover-to-cover, or, two books a week, and I'm currently a bit ahead of schedule.

1. Books that I haven't read before, not that are published in 2013.

comment 13y ago · link · parent

The typeface in many new OS X 10.8 apps is Helvetica. The typeface of OS X is Lucida Grande.

I bet this changes in 10.9. At least, for Retina machines. There's a reason why iOS uses Helvetica Neue as the system font, and not Lucida Grande. It looks better on sharper displays.

The new iMessage app in 10.8 lacks instant messenger integration with services such as MSN, AIM, and Jabber, forcing the use of a different application for these features.

Erm. Those services are still there. Same as ever -- which never included MSN in the first place. Hell, theres a new framework, IMServices, which lets you add support for new services to Messages.app.

comment 13y ago · link · parent

..sometimes programmers are just different and work environments can be rigid.

No. Just, no.

While I can totally relate to not wanting to have a 9-5 job (and even moreso when it comes to holding out for the right job) a dislike of working 9-5 jobs this is not unique to some (but not all, remember that) programmers.

comment 13y ago · link · parent

Try marking your storyboards as binary files in git. It worked pretty well for me the last time I was working with a designer and using xib files.

comment 13y ago · link · parent

You can easily do without a protocol[1] -- NSKeyValueCoding doesn't require a protocol to be implemented anywhere. For example:

  @interface MYObject : NSObject
  @property (nonatomic, copy) NSString *foo;
  @property (nonatomic, copy) NSString *bar;
  @end

  @implementation MYObject
  @end
And somewhere else in your code:

  - (MYObject *) buildMYObject {
      MYObject *object = [[MYObject alloc] init];
      [object setValuesForKeysWithDictionary:@{ @"foo": @"purple", @"bar": @"elephant" }];
      return object;
  }
Then you can access it like a regular property:

  - (void) useMYObject {
      MYObject *builtObject = [self buildMYObject];
      NSLog(@"value: %@", builtObject.foo); // will print "value: purple"
      NSLog(@"value: %@", builtObject.bar); // will print "value: elephant"
  }
There are some gotchas to be aware of here (that Parse likely takes care of, since you're subclassing PFObject), such as setting nil values, or attempting to set the value from a key that doesn't have a corresponding property on your object.

1. It looks like the main benefit to the protocol is compatibility with the existing design of -[PFObject objectWithClassName:], and, I don't know enough about Parse to say what that does. But, I bet its nifty.

comment 13y ago · link · parent

You designed an iOS app, not a Mac app. That it happens to live in the menubar doesn't actually mean very much ;)

comment 13y ago · link · parent

Both Rails and Django will be here for a long time, regardless of what the current fad of the day is.

comment 13y ago · link · parent

Why not use CFDictionaryRef and pass it along via toll-free bridging?

comment 13y ago · link · parent

What do you get out of subclassing NSDictionary or NSArray that you don't get out of a category?

comment 13y ago · link · parent

Can you give an example of some things that you subclass?

comment 13y ago · link · parent

A lot of Apple stuff may be a black box but it is designed to be subclassed.

Aside from a small number of top-level classes[1] UIKit isn't designed to be subclassed. When you subclass things like UIAlertView, UIButton, UISwitch, UITextField, UIWebView… etc, you're in for a world undocumented gotchas and spending hours to do small simple things.

1. UIView, UIControl, UITableViewCell, UIScrollView, UIGestureRecognizer, UIViewController, UIApplication and maybe one or two other classes.

comment 13y ago · link · parent

Mostly a really good list. My only nitpick is:

RegexKitLite - Powerful regular expression support

Use NSRegularExpression instead. It's built into the OS (in Foundation) as of iOS 4, which is below the minimum target you have (if you support the iPhone 5).

comment 13y ago · link · parent

Cocoa Auto Layouts are what you're looking for: https://developer.apple.com/library/mac/#documentation/UserE...

comment 13y ago · link · parent

Only 5300/day and #5 has to be for a given category. Too low to be that far up in the App Store otherwise.

comment 13y ago · link · parent

The project itself is the only thing that uses the NS prefix. The classes within the project have the (rather long and safe) prefix of "Logger".

comment 13y ago · link · parent

Worth noting that if you're a "single person business", you don't need to bother with a DUNS number: https://developer.apple.com/support/ios/D-U-N-S.html

(ie: If you were planning on hacking something together and charging for it on the App Store, go for it. This won't affect you.)

comment 13y ago · link · parent

Maybe the author had a need for it, built it, and is throwing it out there for anyone else who might have a similar need? Maybe you need to embed a web server in your app for something? Maybe you're really comfortable with ObjC and just want to get a quick server up for prototyping? Maybe you don't find it to be too verbose, and prefer having code that's easily self-documenting instead of relying on framework knowledge? Maybe you like being able to use a framework like Foundation (which has had 20+ years of history)? And so on.

comment 13y ago · link · parent

This mostly sits at a higher level than Magenta does -- you don't need kernel support for Foundation/AppKit ABI compatibility.
12345
51