HNHacker News
TopNewBestAskShowJobs

natesm

1,047 karma · joined February 6, 2011

pretty okay at objective c
submissionscomments
natesm··on In praise of Objective C
> but the two (despite popular opinion to the contrary) remain entirely distinct.

This isn't the case in Objective-C though.

@"foo" is an instance of the NSString class, which is a part of the Foundation library. However, it has its own special syntax. Now, Apple is adding @[] and @{}, which are NSArray and NSDictionary instances.

natesm··on In praise of Objective C
They're hardly separate things at this point, @autoreleasepool? The new @[] and @{} constructors for NSArray and NSDictionary? ARC enforces retain/release/autorelease, which are NSObject protocol methods. NSString isn't "part of" Objective-C, but the language has had special literals for a very long time.

I guess that isn't the entirety of Cocoa, but Objective-C and Foundation are very linked now.

natesm··on Don't tell me how to enable JavaScript
Not really a good comparison. A TV costs $1000 or so (for one that isn't bad). Then it costs about $50 a month to even be useful, plus whatever HBO costs to get a good amount of shows that aren't bad. Even then, the picture quality is worse than my iPad or Ultrasharp. If anything, I think that TV ownership is probably lower among "tech-savvy" people.

Enabling JS is free.

natesm··on PHP Sucks But I Like It
Well, they're good for the same reason that hex/Torx is, and I think most people have a set or two of those.
natesm··on PHP Sucks But I Like It
I don't like the "tools" analogy that always comes up. For example, Robertson screws are better than Phillips head screws, which in turn are better than flatheads. All of them are tools, and they all effectively do the same thing. But the Robertson screw is better.
natesm··on The Crisis in American Walking
That's also a list of US cities I'd want to live in at all, though.
natesm··on C Finally Gets A New Standard
That's Objective-C.

    int* foo = malloc(sizeof(int));
Is invalid C++.
natesm··on Show HN: Clutch.io helps you build iOS apps fast and update them instantly
Twitter for Mac also does this to call private things on Snow Leopard.

https://github.com/twitter/twui/blob/master/lib/UIKit/TUIScr...

natesm··on Hands-on: GNOME 3.4 arrives, introducing significant design changes
Mac OS X is Cmd+Tab to switch apps and Cmd+` to switch windows.
natesm··on Unfortunately, we'll reject most software developer job applications.
I think it's hard to give answers that are both accurate and concise to some of these questions, without appending "in language ______" to them. In some languages, access control is a compiler feature and is actually strictly enforced. Objective-C has access control for instance variables, but not for messages, and the ivar access control can be circumvented via the runtime (to say nothing of -valueForKey:). "Private" messages are typically declared in the implementation file or a second header. Python sort of has private methods through name mangling, but they aren't really private, since we're all adults. In Ruby, those words mean something fairly different.
natesm··on The pull-to-refresh patent
The correct way to do that would have been to just release it without patenting it, no? He was the first one to do it, so his prior art would invalidate any future patents, and we'd all be free to use it without any fear.
natesm··on Microsoft Censors Pirate Bay Links in Windows Live Messenger
> Yeah, because I just can't stand to pay an enormous amount like $10 or $20 for that book or album I really have to have.

This isn't about listening to something or reading something. It's about the ability to remix and build upon it.

> I think it's unreasonable to expect people who make things to be able to profit from them for more than 5 years.

It doesn't matter, because most people don't profit from their works after 5 years, if they ever profit from it at all. The current law helps the Disneys and bestselling authors and has little to no effect on small, independent creators. I don't think we should optimize for corporations, I think we should optimize for everyone being able to reproduce, distribute and build upon their culture - with a period of potential financial motivation to kickstart the creation of new cultural artifacts. If you're still living off your work 5 years on, you're probably already rich.

Girl Talk's music is literally illegal because his instrument comes with a license agreement. What if Stratocasters had come with one?

> Hell, why don't we make all property expire after 5 or 10 years?

This makes no sense. At all. Physical property and my culture are not comparable.

natesm··on Microsoft Censors Pirate Bay Links in Windows Live Messenger
Unlimited copyright terms are eroding the basis of society (the Constitution). 5 to 10 years would be reasonable.
natesm··on Poll: What's Your Most Disliked Programming Language?
My only complaint would be how hacked on Core Animation is in comparison with UIKit. For example, WebView doesn't like having a layer, but this isn't mentioned anywhere in the documentation:

http://developer.apple.com/library/mac/#documentation/Cocoa/...

natesm··on Photoshop CS6 beta now available to download
The layer stack system is getting really tired. Here's what I'd like to see:

- Node-based layer system, like Quartz Composer and Max/MSP. Right now, any complex nesting of layer styles has to be done via Smart Objects, which is a terrible hack that has you saving, seeing what the effect on the final image is, then going back and making more changes, repeat.

- It's 2012. There should not be destructive filters anymore. All filters should just be another node in this layout. If you'd like to apply them, you should be able to right click a node and merge everything that feeds into it. Brushes should also be usable as layers. Composite everything.

- Where's this layer system going to go? Obviously, it will go on screen, but how about an iPad app that pairs with Photoshop for displaying and altering it? They already have something sort of like this for tools.

- Photoshop badly needs usable variables of some sort. I'm tired of jumping around 5 different places because I decided I want to change a color.

- Going with the last one, documents should be able to contain multiple images, like Illustrator does. This would be a great addition for icon design, since you could (easily, without ugly hacks) have all of your sizes in the same document. Combine that with variables, and...

- Finally, stop the sucky non-native UI already. Stop replacing perfectly good Cocoa widgets with terrible Air ones.

Adding fancy new features is nice and stuff, but the fundamental UI of this application is getting really dated.

natesm··on Looks Like Zynga Just Bought OMGPOP For $200 Million
I get annoyed when the "hard" word ends up being some rapper/celebrity name instead of something that everyone knows.
natesm··on Draw Something craze 'banks dev $100k per day'
I shared my username with my friend via iMessage. I am very wary of adding any sort of application to Facebook, especially anything with "in-app purchase".
natesm··on Recruiting the Top 1 Percent (2007)
I'd be surprised if young people wanted to live downtown anyways, not much happens there.

I live in Williamsburg and ride the subway for about 20 minutes. Not really a big deal, and much better than any commute involving owning a car.

natesm··on Kevin Rose Will Join Google
Didn't he let the Butterfree go fairly early?
natesm··on Sparrow for iPhone
Indeed, Microsoft continually puts out great iPhone apps (with a visual style that I wish was the standard on iOS).
natesm··on Defining Property
In the US (where pg lives and the MPAA/RIAA are based), the only reason that anyone is allowed any intellectual property protection is to advance society:

> To promote the Progress of Science and useful Arts, by securing for limited Times to Authors and Inventors the exclusive Right to their respective Writings and Discoveries.

The obvious way that this works is that authors are motivated to create because they have the exclusive right to sell their creation (and thus make a profit). That seems pretty OK to me.

However, no amount of money is going to be able convince Mr. Lennon and Mr. Harrison to get the band back together. So, why are we still paying for that content? How is that advancing the arts? Would giving current creators the ability to use the entire back catalog of the Beatles without any cost or legal hassle advance the arts more? I would argue yes.

I can't find an article for this, so sorry, maybe someone can, but I believe that the majority of books go out of print rather quickly. However, we're not allowed to copy them freely. When those books go out of print, we're taking society backwards. They're impossible to acquire legally. That's really bad.

We need a balance. I think five to ten years would be fine. Opening up access to a new generation of small creators is better than providing further income to the JK Rowlings and Paul McCartneys of the world. They're already rich by that time anyways.

natesm··on Working at a Startup vs. a Big Company
I've only had one job search so far, but I got much more "where do you see yourself in X years" and "tell me about a time..." nonsense at larger companies. Startups were much more interested in what I had done, and they actually looked at my Github account.
natesm··on ReCAPTCHA Mailhide
Although, if you are hosting your email with Google already, it seems kind of irrelevant. I happily post my email in `mailto:` form, and I get spam infrequently enough to happily read through it and laugh at the contents when I do (it's always the funny ones that make it through).
natesm··on Measuring fragmentation in Android
I'm not sure why this was downvoted. It's entirely true.

Think about button sizes. The iOS UI widgets are a specific physical size, optimized for the average human hand, which is then translated into pixels. Because all iOS devices have the exact same "pixel dimensions" (sure, there are four times as many now, but that doesn't matter much), supporting this is not a problem. The distance that the user will have to reach for a button and the dimensions of said button are physically identical on every single iPhone and iPod touch.

Android devices are many different sizes and shapes, so this sort of consistency is practically impossible (although I'd be really impressed if someone pulled it off, surely there's a way to get physical device dimensions in the Android SDK?).

natesm··on Overrated: Bully's R Rating Should Mean the End of the MPAA
That's significantly less than the average high school student probably hears in a day.
natesm··on Measuring fragmentation in Android
Marco Arment does it pretty regularly: http://www.marco.org/2011/11/30/more-ios-device-and-os-versi...
natesm··on Apple Extends Deadline for Sandboxing of Mac App Store Apps to June 1
https://developer.apple.com/library/mac/#documentation/Cocoa...

Security scoped bookmarks allow persistent access to a filesystem resource. That's the only one I'm aware of, but it's a major upgrade.

natesm··on Ten $50,000 grants for startups who move to St. Louis
> They drive there to ... drink

Well, that's a little terrifying.

natesm··on Objective-C literals for NSDictionary, NSArray, and NSNumber
Those first two and following aren't equivalent, are they? Wouldn't they compile, respectively, to:

    objc_msgSend(self, @selector(bar));
And:

    objc_msgSend(self, @selector(performSelector:), @selector(bar));

?
natesm··on Objective-C literals for NSDictionary, NSArray, and NSNumber
On one hand, it's nice, and it'll make coding in Obj-C nicer.

On the other hand, it strengthens the coupling between Objective-C the language the Cocoa the framework, and I'm not sure how I feel about that.

I do like it better than the property dot syntax though. (is a simple assignment to a struct member? is it an objc_msgSend of unknown complexity?)

← PreviousPage 3 of 8Next →