News for hackers. Stuff that matters.
Re:Modern Web Development by tomdale on Monday April 23, 2012 @03:21PM (#3880491)
This is a great resource and I'm glad Majd wrote it. However, this is really the kind of content that should be coming out of Google itself.

Google is in an interesting position. Of all of the major Silicon Valley tech companies, I think Google is the one most seen as the "web" company, and yet they've staked a lot of their future on Android. Android, instead of making the web a first-class citizen, has in fact set the mobile web back by years. While they should have worked to bring all of the strengths of the web to mobile devices, they decided to play the app game on Apple's terms and, IMO, have lost.

Surely someone at Google realizes that killing the open web also kills the company's cash cow--search and related advertising--but based on their behavior it doesn't seem like it.

My hope is that the Android wakes up and decides to make the web a priority again. In league with the Chrome team (some of the smartest people I've ever met), they could do wonders to make developing for the mobile web a joy instead of the disaster that it currently is. Google needs focus, and it needs its focus to be on the mobile web. Having great, unified documentation about building sophisticated web apps that competes with Apple's Developer Centers is a good start to doing so.

Re:Modern Web Development by Estragon on Monday April 23, 2012 @03:40PM (#3880575)

  > this is really the kind of content that should be coming 
  > out of Google itself.
What does this blog post do which the official docs don't?

E.g., https://developers.google.com/chrome-developer-tools/docs/sc...

Re:Modern Web Development by untog on Monday April 23, 2012 @05:23PM (#3881041)
It's true- I've spent a lot of time developing HTML5-based apps (i.e. in a webview) and am already surprised at how much worse the Android web engine is than the iOS one. Google should be all over this (and with the release of Chrome of Android, perhaps they finally are) but it baffles me that it took this long. Meanwhile, it took Mozilla to create Boot To Gecko, a true web OS.
Re:Modern Web Development by monteslu on Monday April 23, 2012 @06:49PM (#3881389)
The Chrome beta on ICS is great, but it's only accessible to <4% of all android devices. ICS has been out for months, and the providers are completely dragging their feet on it.

Chrome Beta needs to be backported to at least 2.3

Re:Modern Web Development by untog on Monday April 23, 2012 @06:52PM (#3881402)
AFAIK it also doesn't make any difference to apps that use webviews. I mean, it's just as well- if you changed the underlying engine without notifying devs insanity would ensue. But it would be good to be able to set a flag that says "use the decent engine".
Re:Modern Web Development by monteslu on Monday April 23, 2012 @06:57PM (#3881431)
You're correct. But no reason google couldn't add a ChromeWebView lib as part of the install of the new browser for PhoneGap to wrap.
Re:Modern Web Development by nzonbi on Monday April 23, 2012 @11:37PM (#3882294)
Or google could integrate chrome web-apps/NaCL into android, as first class apps.
Re:Modern Web Development by DavidAbrams on Monday April 23, 2012 @10:38PM (#3882175)
"ICS has been out for months, and the providers are completely dragging their feet on it."

Can anyone explain why this is such a problem? Does Android not have a proper hardware abstraction layer or driver model that would allow OS updates immediately, as long as these layers remained compatible and a build existed for your processor family?

Windows has supported disparate hardware configurations for many, many years. Yet, generally, you can run out and buy the new version and install it. Why can't Android do this (albeit with a version for each processor)?

Re:Modern Web Development by varikin on Monday April 23, 2012 @11:50PM (#3882326)
Many providers have customized the OS for the look and feel along with adding their custom apps and settings including locking out tethering. One of the big advantages of 3.0 was it was suppose to provide an easier way to separate out the look and feel out of the OS so the providers didn't need to create a custom OS. This make pushing out updates very difficult.

For example, I worked on an app to be included with the device by the OEM. The OEM had roll a custom OS and kernel to handle their hardware and replace/update the mail and calender app because they are very tied to Google by default. We needed hooks into the the mail and calendar app in ways that are not supported by Google so the OEM also had to add those hooks for us. At this point, we were deep into unsupported territory by Google, but supported by the OEM. These things change unexpectedly with minor OS updates from Google which make them brittle to maintain. An update to a newer OS would be a hell of a lot of work.

All that said, if we could have based off of 3.0 instead of 2.3, many of these issues would not exist because of some abstraction layers added just for this purpose. I expect 4.0 to make that even nicer.

Re:Modern Web Development by DavidAbrams on Tuesday April 24, 2012 @05:47AM (#3883161)
Thanks. At least there's some indication that it's getting better.

Too bad the providers have to degrade the experience with their crap, instead of just providing additional apps if they feel it's necessary.

Re:Modern Web Development by pcwalton on Tuesday April 24, 2012 @02:03AM (#3882662)
For one thing, last I looked, Chrome Beta requires the GL_OES_egl_image extension for off-thread texture upload, and had support for the ICS-only SurfaceTexture (although judging by the WebKit source that's ifdef'd out). GL_OES_egl_image support is very spotty on pre-ICS devices.
Re:Modern Web Development by mhansen on Monday April 23, 2012 @11:11PM (#3882242)

  Android, instead of making the web a first-class citizen,
  has in fact set the mobile web back by years.
I don't know how you can come to this conclusion. Android has made an excellent mobile web browser available to over a quarter of a billion people.

And how is the web not first-class? Google even started Web Intents to interoperate web apps with native apps.

Re:Modern Web Development by darklajid on Tuesday April 24, 2012 @03:36AM (#3882894)
You seem to expect different things than the GP (and me).

A browser without decent SNI support, with broken XPATH support and really various shortcomings was outdated when it came out - and neglected afterwards.

Re:Modern Web Development by wyck on Monday April 23, 2012 @04:07PM (#3880689)
Here ya go, in video too (Google I/O) http://youtu.be/N8SS-rUEZPg

Also has a part on remote debugging which the article doesn't.

Re:Modern Web Development by reddit_clone on Monday April 23, 2012 @03:39PM (#3880569)
> a first-class citizen, has in fact set the mobile web back by years

Steve Jobs started it. Everyone will follow it to the bitter end.

Re:Modern Web Development by mhurron on Monday April 23, 2012 @05:09PM (#3880987)
There's some revisionist history. When the iPhone was released, mobile apps were supposed to be HTML5 webapps. Developers cried for local apps. Apple responded to demand.
Re:Modern Web Development by philwelch on Monday April 23, 2012 @06:05PM (#3881203)
The truth is likely somewhere in between. Apple probably anticipated the demand for native apps. But they weren't ready, business-wise if not technically, to build the SDK and App Store in 2007, so they held off on it for a year.

Sometimes it's useful to pretend that what you were going to do all along was merely a concession to outside demand.

Re:Modern Web Development by danssig on Tuesday April 24, 2012 @05:01AM (#3883059)
Steve Jobs said in the intro of the phone that the apps were "just the internet" or some such. Personally, when I heard that I just ignored the iPhone.
Re:Modern Web Development by Joeri on Tuesday April 24, 2012 @12:00PM (#3884549)
The steve jobs bio documents how he was deadset against native apps, even after the iphone was released. Even apple has to listen to its customers / developers every now and then. The myth that apple's moves are all part of a big plan is just that.