Skip to content

Comment on Ask HN: c++ or iPhone?

Comments

Why are the only choices C++ and iPhone?

You mean Objective C on the iPhone, since you can do C++ on the iPhone too.

Almost definitely Objective C + iPhone if these are the only choices you have. It's helpful to switch programming environments once in a while to gain a new perspective.

What work do you do which makes C++ in high demand? Also, C++ isn't the language that separates men from boys.

How do you do C++ on the iPhone? I thought it required Objective C and working with the Cocoa GUI?

Cocoa Touch does require Objective C. But the environment blends very well with C and C++. The beauty is you don't need to worry about calling conventions, or go through some native code invocation API. So you can write the GUI code in Objective C and other parts in C++ if you wish. Though, other than to reuse existing code/libraries, I doubt most people will want to do that.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.