Hacker News new | ask | show | jobs
by panarky 4308 days ago
This is awesome.

  With Isobuild and Cordova, you'll be able to add a camera package
  to your app and use one simple Camera.takePicture() API to take a
  photo, and then type one command to build your app not just for the
  browser, but for the iOS and Android app stores too.
2 comments

As if anything is that simple. Where will the photo be stored? What effects will be applied? What format will it be in? How large will it be? What happens if it requires a permission request (e.g. in browsers and on iOS)? Will it auto generate the manifest file?
For example, JPEG returned as a string or as part of a result object. Why is this so impossible to imagine? The rest is all options you can specify.
Simple API is almost always a synonym for feature limited. APIs are often complicated because they have a lot of power, flexibility or functionality.
Because running the cordova commands is so hard.
You will be surprised, but I believe it can be hard for a lot of people who come from the webdev background.

When I just started with Cordova, I went to a HTML5DEVCONF talk where the speaker tried to install (just install) Cordova in a 20m slot. He failed, his slides had all the ingredients (Xcode, jdk, ant, maven, npm, cordova, ios-sim, etc) but on the live demo his new machine failed because some of the many steps wasn't satisfied.

About using Cordova: again, for newcomers, it is so non-obvious: what do you do when your build fails? How do I debug this objective-c code again? Why the heck Cordova doesn't give me all the logs by default? ios-sim is an npm module that is compiled with a C compiler and the build process is navigated by rake - ruby-based make clone.