News for hackers. Stuff that matters.
Re:Would you buy a laptop locked down like the iPad? by krainboltgreene on Sunday April 04, 2010 @02:51AM (#1239892)
God I hope not. I hope some day I wont have to use HTML, CSS, Javascript, and a serverside language just to write an app.

I'd like to just use one language and hit all platforms.

Re:Would you buy a laptop locked down like the iPad? by blasdel on Sunday April 04, 2010 @03:42AM (#1239924)
You don't necessarily have to touch the markup directly, your app can essentially be pure JS (or compiled to pure JS) that paints it all into the DOM dynamically (see http://cappuccino.org/)

You don't need a server-side language if the app doesn't really need to communicate with your server. You can do everything client-side with LocalStorage (SQLite) and cached assets. If the page has the right metadata on it, "Add to Home Screen" saves the whole app locally.

And there's no reason why the server, if it needs to exist, shouldn't be executing the same language (see http://nodejs.org/)

The modern web is the platform. There are nice local platforms, but your "write once run anywhere" 'native' app isn't going to fit in on any platform that actually gets used.

Re:Would you buy a laptop locked down like the iPad? by krainboltgreene on Sunday April 04, 2010 @04:01AM (#1239939)
I don't want to use Javascript. I want to use to be able to use any language to write web applications. Any one language. :/

I think we're really choking ourselves as hackers if we let Browsers either end up as completely JS or the hacked together combination of (poorly enforced) HTML, (ugly syntax) CSS, and Javascript

Re:Would you buy a laptop locked down like the iPad? by mooism2 on Sunday April 04, 2010 @12:22PM (#1240384)
Well, that's easy: just write a compiler for your favourite language that outputs javascript (plus glue to integrate with jQuery/MooTools/whatever).
Re:Would you buy a laptop locked down like the iPad? by ekiru on Sunday April 04, 2010 @03:59AM (#1239936)
If you use Cappuccino, you're down to, at most, two languages: Objective-J and your server-side language. Considering that Objective-J is essentially a superset of Javascript, if you're okay with Javascript as your server-side language(or if there's some Objective-J-based server-side framework I'm not aware of), you can create web applications using just one(or, if you don't count Objective-J and JS as just one language, 1.5, at most) language this very moment.
Re:Would you buy a laptop locked down like the iPad? by martinp on Sunday April 04, 2010 @02:41PM (#1240601)
GWT (Google Web Toolkit) lets you write webapps using only Java, the GWT compiler compiles/translates the code to optimized and cross-browser compatible JavaScript. If you also use Java on the serverside, you're down to one language. There's also a plugin that integrates nicely with Eclipse.