Better HN
topnewbestaskshowjobs
Log inSign up

adamjernst

1,019 karma · joined Nov 2, 2010 (16y ago) · 159 submissions

Submissions

comment 9y ago · link · parent

Jevon's Paradox! https://en.m.wikipedia.org/wiki/Jevons's_paradox

comment 9y ago · link · parent

> The other thing I would say is to stay close to professions that create and make things, and stay away from derivative professions like finance. I think makers increasingly have the power in our society.

Wow, interesting words from someone who works in finance.

3.

Swift Ported to Android(github.com ↗)

252 points · by adamjernst · 10y ago · 140 comments

comment 11y ago · link · parent

Garbage collection is controlled by the mob.

5.

Delivering high scroll performance in Facebook for iOS(code.facebook.com ↗)

1 points · by adamjernst · 11y ago · discuss

comment 11y ago · link · parent

Because it's part of a series: http://www.nytimes.com/2014/12/12/upshot/our-series-on-the-d...

With an entirely separate article on women: http://www.nytimes.com/2014/12/14/upshot/us-employment-women...

Don't assume the worst!

comment 11y ago · link · parent

Actually ComponentKit is built on GCD!

https://github.com/facebook/componentkit/blob/master/Compone...

GCD is fantastic—one of my absolute favorites. We're trying to solve a problem one level above that: exposing an API that doesn't require every view developer to know the details of managing GCD queues and updating a UICollectionView.

As for Autolayout, it's very powerful but isn't performant enough for layouts as complex as Facebook's News Feed. We tried it first before developing ComponentKit.

comment 11y ago · link · parent

Will do shortly.

comment 12y ago · link · parent

You're right about this. My terminology was incorrect.

10.

Facebook's iOS Infrastructure(youtube.com ↗)

2 points · by adamjernst · 12y ago · discuss

comment 12y ago · link · parent

Requires writing to executable pages, which iOS doesn't have.

comment 12y ago · link · parent

pngquant is great. I make an iPhone app that displays transit maps. Transit maps are ideal candidates for quantization (limited color range, large blocks of color that are perfect for RLE) and I saved a lot of file size by quantizing the map tiles. Thanks pngquant!

comment 13y ago · link · parent

Fatal flaw in this plan: unions. New York has already tried to switch to driverless subways, but progress is slow due to constant union interference.

comment 13y ago · link · parent

Windows 1.01 feels much closer to Mac Classic than Windows 3.1 does. (Button appearance, close button on left, menus must be held down to stay open, "Get Info" instead of "Properties".)

comment 13y ago · link · parent

> sentenced to a community order for 49 hours and ordered to pay £400 costs at Brent Magistrates' Court for theft from motor vehicle

To me (an American), that sentence seems incredibly lenient.

comment 13y ago · link · parent

"Out of 86 guests, I've only had problems with 15 guests."

"only"? n.b.: If your business model is renting out luxury condos to people on the Internet, you're going to have a bad time. People will use them for parties.

comment 13y ago · link · parent

BART jobs are quite supply constrained. Sure, union jobs are great if you can get one, but there aren't many to go around.

Plus, who would really enjoy working in a workplace where everyone doesn't care? I couldn't stand it even if I were paid more, couldn't lose my job, and had more vacation time.

comment 13y ago · link · parent

That's precisely what he argued though: "A 2010 study by the Goldwater Institute identified "administrative bloat" as a leading reason for higher costs. The study found that many American universities now have more salaried administrators than teaching faculty."

What's more he doesn't propose eliminating federal aid or loan guarantees, he advocates letting you discharge student loan debt in bankruptcy and putting colleges on the hook for some percentage of that default.

Sounds like a great idea to me. Schools that equip their students for well-paying jobs have nothing to fear, but diploma mills out for easy loan money will suffer.

comment 13y ago · link · parent

If the NSA was MITMing SSL communications on a wide scale, presumably the companies would notice that the cert fingerprints were not what the companies expected.

comment 13y ago · link · parent

Teach her to pinch zoom. Double tap-zoom is a power user gesture.

comment 13y ago · link · parent

Agreed—mostly because it's SIMPLE!

comment 13y ago · link · parent

I took Brian Kernighan's class when I studied at Princeton. As part of the class I developed www.itrans.info which set me on my way to being an independent app developer. I'm enormously grateful for his class, his involvement with students at Princeton, and just how genuine he really is as a person on campus.

comment 13y ago · link · parent

Correct.

comment 13y ago · link · parent

Nice idea, but the sample code they show in the screenshot uses "FALSE" instead of NO (the Obj-C standard boolean literal).

I'm not sure how they did that (#define?) but stay far, far away. Imagine if you opened up a Ruby codebase and found out I had aliased NO to be the same as the language builtin false... yeesh.

Also, setting boolean instance variables to NO in init is silly since Obj-C objects are calloc'd, so all ivars are guaranteed to start with default values (nil/0/NO).

comment 13y ago · link · parent

For webapps, I agree. There is no progression of state in a webapp's "controller" object: it's one shot and done.

For native apps in frameworks like Cocoa Touch of course it's an entirely different ballgame. A view controller has quite a bit of state, usually some different modes, maybe some enforced state transitions. So the controller pattern makes a lot of sense there.

The author is spot on about how some architectural oddities like one-method-classes come from Java's lack of functions as first class objects.

comment 13y ago · link · parent

A ratio of 3:1 doesn't strike me as "almost as much energy as it produces." Would you say that if I gave you $3 for every $1 you gave me?

comment 13y ago · link · parent

I mailed a package to Russia about 5 years ago. Recipient had to pay a bribe to get it.

comment 13y ago · link · parent

This is because the iPhone 4 is missing a newer version of the crucial noise reduction chip:

http://www.tuaw.com/2012/02/06/siri-may-be-iphone-4s-only-be...

The fact that Apple supported iOS 6 on the 3GS is proof that they're pretty serious about backwards compatibility.

comment 13y ago · link · parent

"Nobody goes there anymore. It's too crowded." – Yogi Berra

comment 13y ago · link · parent

That graph is incredibly misleading. It goes from $5000 segments to a $50000 segment—which the author has the nerve to label a discontinuity!

That's not to say income inequality isn't a problem, but misleading charts are the wrong way to make an argument.

123456