News for hackers. Stuff that matters.
Re:An open source HTML/CSS framework for prototyping native ... by Wolfr_ on Sunday August 18, 2013 @11:25AM (#6232907)
When I design native apps it makes sense to prototype them in a medium where it's still cheap to make a design change. This is a framework I have for doing just that.
Re:An open source HTML/CSS framework for prototyping native ... by jdmitch on Sunday August 18, 2013 @12:56PM (#6233248)
The planned 0.2 release is delayed due to little public interest in Clank. -clank blog

Is user interest enough for the OP, or are you looking for other contributors?

Re:An open source HTML/CSS framework for prototyping native ... by Wolfr_ on Sunday August 18, 2013 @01:14PM (#6233327)
User interest is enough but contributors would be better to raise the bar.

I am specifically looking for someone with JS skills to handle building animation in between screens (similar to push.js in Ratchet http://maker.github.io/ratchet/#push ). This in turn is inspired by jquery-pjax ( https://github.com/defunkt/jquery-pjax )

Explained in short - there should be some way to fetch the HTML for a "new page" replacing the older page without a page refresh. This way we can have nice CSS transitions between the pages. If we can plug the effects from something like Effeckt (http://h5bp.github.io/Effeckt.css/dist/) in there this could lead to nice demo/prototype material and will also give the native coders a good idea about the animation.

My speciality is UI design and CSS. My JS is not solid enough for framework quality javascript.

The demo UI works with Angular.js.

Re:An open source HTML/CSS framework for prototyping native ... by randall on Sunday August 18, 2013 @05:42PM (#6234355)
Angular 1.2 supports animations between ng-views, which would mean you wouldn't have to build very much.

http://www.yearofmoo.com/2013/08/remastered-animation-in-ang...

Re:An open source HTML/CSS framework for prototyping native ... by cheneytsai on Sunday August 18, 2013 @02:36PM (#6233633)
I might be able to help a little with this. I have some code somewhere that keeps a stack of "views" and a view controller that pops them in and out of the DOM that can be easily animated to be native-like
Re:An open source HTML/CSS framework for prototyping native ... by Wolfr_ on Sunday August 18, 2013 @02:38PM (#6233644)
That would be awesome!
Re:An open source HTML/CSS framework for prototyping native ... by crucialfelix on Sunday August 18, 2013 @05:24PM (#6234302)
I was playing around with Ratchet last year trying to set up something exactly like this.

what you have looks great so far.

additionally I was getting my web app to host mockup images, sketches or just notes so I could think about the app flow and still be able to click around. I was doing it with express so I could parse markdown files (for the raw notes).

I would say keep using angular as its very fast to add new pages. sliding page transitions and grabbable affordances would be the most useful things I think.

Re:An open source HTML/CSS framework for prototyping native ... by jonpaul on Monday August 19, 2013 @01:45AM (#6235832)
Nice work. You may want to look into collaborating with these guys: https://github.com/angular-widgets/angular-jqm Basically, they are using the jQuery Mobile CSS (no jQuery though) with Angular.
Re:An open source HTML/CSS framework for prototyping native ... by aram on Sunday August 18, 2013 @03:47PM (#6233904)
For anyone interested in frameworks for Android-like UI, check out Fries:

http://jaunesarmiento.me/fries/

Re:An open source HTML/CSS framework for prototyping native ... by jtemplin on Sunday August 18, 2013 @02:01PM (#6233503)
Looks like a nice tool.

The value of such of tool though points to one of the reasons why web technologies will ultimately prevail over native for most applications -- ease of use.

Re:An open source HTML/CSS framework for prototyping native ... by Wolfr_ on Sunday August 18, 2013 @02:10PM (#6233532)
I hope to see the day that given the right development attention one can make a web app that feels fast like a native app. It might already be possible for some kinds of apps.

There are apps popping up that are really an ember or angular one pager wrapped in a native shell.

HTML/CSS on Webkit gives you an amazing layout engine for free. Building UI for native apps feels like "web coding like it's 1999" with a lot of absolute positioning and use of sprited images. I wonder if things improved in iOS7.

Re:An open source HTML/CSS framework for prototyping native ... by jordanthoms on Sunday August 18, 2013 @02:34PM (#6233624)
That's an iOS issue, not one inherent with native apps. Android/Qt/Windows Phone/literally any other toolkit provide flexible layouts which are much more powerful and often easier to use than CSS. And if you need a custom layout, you can actually write a new layout manager which is just as fast or faster than the built in ones, no javascript to set absolute positions on everything.
Re:An open source HTML/CSS framework for prototyping native ... by cheneytsai on Sunday August 18, 2013 @02:33PM (#6233618)
We're trying to do just that with Pickie (iPad personalized magazine app) . Still alot left to do to squeeze out every bit of performance though.
Re:An open source HTML/CSS framework for prototyping native ... by pbreit on Sunday August 18, 2013 @02:58PM (#6233721)
My sense was the opposite: the same thing built natively would be superior and naturally draw usage.
Re:An open source HTML/CSS framework for prototyping native ... by camus on Sunday August 18, 2013 @02:16PM (#6233554)
> why web technologies will ultimately prevail over native for most applications

All your users care about is UX and features. Native sdks provide more features than web apis, are more powerfull and your users feel the difference. Native sdks are not going away anytime soon.

Re:An open source HTML/CSS framework for prototyping native ... by tracker1 on Sunday August 18, 2013 @06:35PM (#6234570)
While I don't think that native SDKs are going away any time soon, there are huge classes of applications where those additional features aren't needed, and even more that can us in between solutions like phonegap. I think that very few applications outside of games really need features that a web-based UI can't provide on modern mobile devices.
Re:An open source HTML/CSS framework for prototyping native ... by arn on Sunday August 18, 2013 @10:11PM (#6235216)
Didn't Facebook famously switch from HTML5 to Native for their iOS app? If a company with the resources of Facebook can't do it effectively, I think you underestimate the problem or overestimate web-tech capabilities.

http://www.theverge.com/2012/8/23/3262782/facebook-for-ios-n...

Re:An open source HTML/CSS framework for prototyping native ... by ackfoo on Sunday August 18, 2013 @12:05PM (#6233046)
Nice for prototyping, but it needs a button to generate the native code. That would be truly useful.
Re:An open source HTML/CSS framework for prototyping native ... by dksidana on Sunday August 18, 2013 @12:14PM (#6233080)
Generating native code from html is certainly not easy.
Re:An open source HTML/CSS framework for prototyping native ... by iancarroll on Sunday August 18, 2013 @12:38PM (#6233163)
It's certainly easy with http://build.phonegap.com
Re:An open source HTML/CSS framework for prototyping native ... by aplummer on Sunday August 18, 2013 @12:39PM (#6233170)
That's not native code...
Re:An open source HTML/CSS framework for prototyping native ... by eddieroger on Sunday August 18, 2013 @01:38PM (#6233418)
Well, the web view it puts your app in to is native. So that counts, right?
Re:An open source HTML/CSS framework for prototyping native ... by camus on Sunday August 18, 2013 @02:18PM (#6233564)
no it doesnt and it certainly doesnt feel native either. especially with the latest ios and android os.
Re:An open source HTML/CSS framework for prototyping native ... by raelshark on Sunday August 18, 2013 @04:26PM (#6234084)
Are you saying that the webviews for some reason feel less native in the newer OS versions, or that the latest native OSes are so fast that the webview's shortcomings stand out more?
Re:An open source HTML/CSS framework for prototyping native ... by argonaut on Sunday August 18, 2013 @07:46PM (#6234786)
A WebView is just that - a web view. A WebView is just a fancy name for a browser window embedded inside an app.

So PhoneGap applications are technically "hybrid apps." The WebView portion of the app is native code - but that really is just a technical nuance with no implications for performance (in fact, the performance implications are negative), because it's like claiming that your website is "native" since it runs in a browser (say, Safari) and the browser is written in native code. But the non-native portion of the app is what goes inside the WebView (HTML/CSS/JS).

Re:An open source HTML/CSS framework for prototyping native ... by eddieroger on Monday August 19, 2013 @08:58AM (#6236939)
Sorry, I guess my sarcasm wasn't apparent. Of course it's not the same.
Re:An open source HTML/CSS framework for prototyping native ... by aplummer on Sunday August 18, 2013 @12:39PM (#6233167)
To be useful that would pretty much need to be actual magic
Re:An open source HTML/CSS framework for prototyping native ... by iancarroll on Sunday August 18, 2013 @12:38PM (#6233165)
What about Ratchet? How is this different?
Re:An open source HTML/CSS framework for prototyping native ... by Wolfr_ on Sunday August 18, 2013 @12:42PM (#6233190)
It's meant to be an evolution of Ratchet - Ratchet is great but it's a bit silent on Github. Seemingly the creators have moved on. It's all MIT licensed so the goodness can be continued.
Re:An open source HTML/CSS framework for prototyping native ... by shahruz on Sunday August 18, 2013 @01:45PM (#6233450)
Ratchet's got a v2 that's being worked on right now. Last commit was 5 days ago.

https://github.com/maker/ratchet/tree/2.0.0-wip

Re:An open source HTML/CSS framework for prototyping native ... by Wolfr_ on Sunday August 18, 2013 @01:52PM (#6233478)
That's great news! Ratchet is truly an example.
Re:An open source HTML/CSS framework for prototyping native ... by troels on Sunday August 18, 2013 @04:04PM (#6233983)
So what does this have over Ratchet?