HNHacker News
TopNewBestAskShowJobs

natesm

1,047 karma · joined February 6, 2011

pretty okay at objective c
submissionscomments
natesm··on From College To Silicon Valley: Tips From A Veteran
This is one of the reasons I decided to move to New York instead, after having lived in the suburbs for my entire life, I just couldn't take it anymore. There are so many more things to do in Williamsburg (where I live now) and the easily accessible areas of Manhattan (East Village, SoHo, Union Square, even Midtown if you really feel like that) than there were even in college.
natesm··on You can no longer click on the Google logo in chrome (only in Firefox, IE, etc.)
Actually, it's not draggable either, so it's now (at least) a CSS background image, on a <span>. I'm not sure if it was an <img> inside <a> up until today or not, but in that case, I suppose you could say that CSS was involved.
natesm··on New Features in Xcode 4.3
Probably to make Xcode as MAS-compliant as possible? Dogfood and all.
natesm··on Nevada approves regulations for self-driving cars
Regardless of whether or not it drives itself (although it's an improvement), I still find the idea of owning a car very unappealing, and it still doesn't give the suburbs a soul.
natesm··on Retro design is crippling innovation
iBooks. It shows a bunch of pages on each side, regardless of whether or not you're on the first page, actually in the middle, or on the last page.

I wish that there was an OS with the core of iOS and the appearance of WP7[1].

1. except Helvetica.

natesm··on Path uploads your entire iPhone address book to its servers
I've received a rejection for using a "private" ivar (it was actually a framework doing it).

The ivar was in a public header, and was not marked @private, which is the only correct way to designated an ivar as private in Objective-C. Putting a comment above it saying "this is private" (which they did) doesn't count. It's protected, by definition.

NSActionCell.h, I think.

natesm··on Path uploads your entire iPhone address book to its servers
Hashing doesn't let you match Kate, Katie, Katherine as the same person like Facebook does, however.
natesm··on Apple’s great GPL purge
Is there any reason not to make zsh the default? Better license, better shell.
natesm··on Richard Stallman's Computer Setup
> As the FSF would point out, the free software movement is different from open source.

They point this out and it's philosophically true, but are there actually any licenses that meet the definition of "open source" but not the definition of "free software" (or vise versa)?

All of the ones that people actually use (GPL, LGPL, BSD, MIT, ISC, and Apache, I think that basically covers it) appear to pass both DFSG and OSI definitions.

natesm··on Why, oh why, do those nutheads use vi?
Well, I use Xcode because the performance loss in writing Objective-C without autocompletion is larger than the performance gain from using vim. However, navigation is just so painful, and "awful" is really being kind about Xcode's find/replace.
natesm··on Dear business people, an iOS app actually takes a lot of work
This:

> The way iOS codes are structured is like a breadboard, everything is hard-wired, you still can change a few things here and there, but if you change the wrong wire, the whole board might stop working

Seems very wrong. It sounds like something that someone that doesn't really understand Objective-C would write. It's a very dynamic language, using features like first-class classes should help prevent that C++-esque nightmare.

A Facebook like button is not a fair comparison at all. In a web app, you can just paste it in. If you had to implement the button yourself it would take just as long as implementing it from scratch on iOS.

Instead, consider a data type. If we're writing a Facebook clone, let's say we only have status messages and now we want to add photos. On the web, you'll need to write the template to generate HTML for that in the news feed. On iOS, you need to write a cell class. It's true that the iOS one will probably take longer, but that doesn't make it less flexible. It's just the nature of declaring your interface in code instead of in markup.

natesm··on The Real Problem with Facebook's Timeline
This would actually be pretty easy to do (for someone on Hacker News).

You could do it with the real API, but it could also probably be done with a few lines of Javascript pasted into the URL bar on your profile.

Any takers?

natesm··on Nintendo’s President Satoru Iwata Announces Online Gaming Network
Almost anything is a step up from "hi there, I'm AJ3F532FDSAD. In this game. What's your name?"*

* you can't actually ask them that, since you can't talk.

natesm··on Request for Startups: Kill Hollywood.
Why put aside multiplayer? I think I've paid $0.50/hour for my copy of Battlefield 3.
natesm··on Facebook Timeline is too awful to be an accident
Buy an iPhone.

Joking. But the Timeline view in the iOS app places all items in a single column.

That said, Facebook has basically become a place where I sync my tweets and other services like Instagram so that people that I know who don't use Twitter yet can see them.

natesm··on What Percent Are You?
This isn't really a good measure. Given the same income, a single person is much better off than a family of 5.
natesm··on Designing "Mute"
> Really, you want a "don't annoy me or people around me" button, but that's context sensitive. A design nobody has been able to implement yet. Apple just made an educated guess at it here.

My dumbphone pretty much did that in like, 2005 or so: https://s3.amazonaws.com/ns_pixels/blag/old-phone-volume.jpg

natesm··on A replica of Path’s scroll widget
The section one seems kind of silly since the header is already sticky, but the normal one is quite nice!
natesm··on Driving has lost its cool for young Americans
GM bought and destroyed almost all sustainable transportation in America.

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

natesm··on Driving has lost its cool for young Americans
Honestly, while it's "cool" conceptually (because of the electric thing), I find the Tesla styling pretty repulsive compared to a Mini or Smart Car, both of which I consider pretty adorable (and I hate cars).
natesm··on Driving has lost its cool for young Americans
I associate cars with constant paranoia. Will I run out of gas, will my tire explode because I forgot to put enough air in it (or put too much), will I lose focus for a second and kill a family of four? If I leave my car somewhere, will it still be there when I come back? If it isn't, was it stolen? Was it towed? How will I find out, and what will I do if I'm able to find out? Will it disappear when I am sleeping, or will parts of it disappear along with a broken window?

Or... I could put a card in my wallet. I could tap my wallet on a turnstile[1], a gate slides open, a train arrives every 5 minutes or so, and I ride anywhere in the city for a flat rate. This seems a lot "cooler" than dealing with maintaining my own personal transport pod.

[1] in Boston, in New York you still have to take it out and swipe.

natesm··on Why Aren't Other SOPA Supporters Being Punished Like GoDaddy?
It's funny because their marketing is exactly one of the reasons why I have never even considered them. But I am probably not the target market. Or am I? (straight male)
natesm··on Pledge to cancel your Comcast in support of SOPA
The TV studios are all behind SOPA as well, so canceling cable in general isn't a bad idea. As a side benefit you no longer have to watch TV. :)

Maybe that's a "young person thing" though. My parents watch a decent amount of TV, the only channel that appeals to me out of the hundreds that they get[1] is Comedy Central... for one hour a day. After going to college and being without TV, I really have no stomach for commercial breaks anymore.

[1] not actually sure about this, Comedy Central is 600-something, I guess they might not all be used though. Still probably hundreds.

natesm··on Shunning Facebook and Living to Tell About it
I like Twitter because it is simple[1]. 140 char messages, reverse chronological order. That's it.

[1] I use Twitter for Mac, the website is kind of a mess actually.

natesm··on jwz: Apple recently broke Ctrl-Y
HOKAY. So you can totally do this:

> I'm guessing there's no easy way to replace the definition of the deleteToEndOfParagraph: action with something else...

with DYLD_INSERT_LIBRARIES and method_exchangeImplementations (and maybe launchd to apply that DYLD_INSERT_LIBRARIES to everything?).

What you have to do is:

Implement a category message that does what you want (my_deleteToEndOfParagraph:).

Write a function that uses method_exchangeImplementations to replace deleteToEndOfParagraph: with my_deleteToEndOfParagraph:. deleteToEndOfParagraph: probably depends on class (NSTextView, NSTextField, WebView, etc.)

Create a shared library that uses your function as an initialization routine.

Inject that shared library into every app on the system.

As you can see this is very easy. Har har har.

natesm··on Gow – The lightweight alternative to Cygwin
The advantage of Homebrew is that it is modern, small, and simple. Obviously apt is better, but apt also requires that you maintain a large repository of binaries. Homebrew is slow[1], but because it builds from source it is trivial to create a new package. Homebrew packages are just Ruby files. If the project uses Autotools, all you generally need to do is enter the URL, an md5, and the dependencies, then it Just Works. If it uses waf or something it's still just a simple modification.

Instead of reinventing its own selfupdate functionality, Homebrew just uses git. Updating Homebrew is really just fast forwarding a git repository. Finally, the maintainers explicitly do not duplicate the libraries/tools that ship with OS X.

This is a big step up on OS X from Macports, which installs itself in /opt/local and rebuilds everything possible. Homebrew is instantly understandable. Packages are files, you just match them by name. apt is admittedly more complex, but at least you get something for that complexity.

[1] really what's slow is building from source. Homebrew itself is very fast.

natesm··on Ted Dziuba's take on Hubot
This the guy that wrote "Node.js is cancer", he basically admits to being a troll in reddit comments[1] as well. I don't care if Node.js is good or not (well maybe I will if I end up using it some day) but calling it cancer is unproductive linkbait that degrades discourse in the programming community. This isn't much better.

1: http://www.reddit.com/r/programming/comments/l0ml6/nodejs_ha...

natesm··on Facebook To Open Engineering Office In NYC
Isn't Jane Street a little... unique? Most banks don't write blogs about OCaml, right?
natesm··on You'll Get a Cow if You Work at This Company
Ok, so what is the appeal of fixed gear bikes? They can't be that good for exercising/fun, it seems like not being able to shift would make riding sloooow anywhere that isn't Kansas.
natesm··on Ubuntu: Wake up and smell the Unity against you
That's interesting, I always immediately removed the Firefox/Evolution/Help(?) launchers so I guess I would have voided it right away.
← PreviousPage 4 of 8Next →