[ 35 posts ] Go to page Previous1, 2, 3, 4 Next

Matt Parker

YUI Contributor

  • Username: mattatlamplight
  • Joined: Mon Apr 20, 2009 12:03 pm
  • Posts: 466
  • Location: London UK
  • GitHub: mattparker
  • Gists: mattparker
  • Offline
  • Profile

Re: YUI 3 team vision on mobile

Post Posted: Fri May 25, 2012 5:28 am
+0-
jshirley wrote:
I may be missing the point, but Y.Model seems to me that it should be talking to an API and not something that even knows about SQL versus non-SQL.

Doing anything else seems like it would be a challenge for many different reasons.


I think the 'talking to an API' is a layer (or two) above Y.Model - but there's some discussion https://gist.github.com/0fe7ff471d8bafb57878 about that.

Y.Model is the representation of the data, wherever it's come from and going to. Satyam's point, I think (excuse me if I've missed it though) is that representing database data is an extremely common use-case for many of the users of YUI (certainly the avg joe's). Y.Model has some problems in this situation, and may well do in other situations. Satyam's gallery module tries to fix this, and makes more sense to my mind (esp. separating meta and data).

What'd be nice to work out (I'm not familiar enough with this, sorry) is how easy it is to swap GalleryModel and GalleryModelMultiRecord in for Model and ModelList in widgets - datatable being an obvious one. It'd be nice if widgets could not bake in Model/ModelList (I don't think datatable does).

This has gone a bit off-topic: I'll return a little, and add support to what Marc and Ilya have been saying... It won't be too long before I have to start with the YUI3 - mobile happy app...

Thanks

Matt

Eric Ferraiuolo

YUI Developer

  • Username: ericf
  • Joined: Mon Jan 12, 2009 8:26 pm
  • Posts: 380
  • Location: Boston, MA
  • Twitter: ericf
  • GitHub: ericf
  • Gists: ericf
  • IRC: eric_f
  • YUI Developer
  • Offline
  • Profile

Re: YUI 3 team vision on mobile

Post Posted: Fri May 25, 2012 6:43 am
+0-
Satyam wrote:
Also, Y.Model assumes the primary key to be a single field. This, once again, is true for non-SQL database, not necessarily so for SQL tables.


Satyam, this discussion about Y.Model should be taken to a different thread. The short answer is that Y.Model was designed around the idea that it would be talking to a web service, most likely a RESTful JSON one. Building such a service allows for a layer of abstraction over the backend database and it's the web service's job to translate HTTP requests into meaningful SQL queries. More on that here: viewtopic.php?p=32573#p32573

Someone using Y.Model in more advanced ways, like you are, can override its `isNew()` method and add a getter/setter to the `id` attribute. We should continue the discussion about Y.Model, but let's do so in a different thread as it deserves its own.

Satyam

YUI Contributor

  • Username: Satyam
  • Joined: Tue Dec 09, 2008 12:34 am
  • Posts: 2016
  • Location: Sitges, Spain
  • GitHub: Satyam
  • Gists: Satyam
  • IRC: DevaSatyam
  • YUI Developer
  • Offline
  • Profile

Re: YUI 3 team vision on mobile

Post Posted: Fri May 25, 2012 8:41 am
+-6-
This discussion has already been carried on several other threads, always with the same outcome. In fact, there was a very long discussion prior to Y.Model announcement, several of us put a lot of time into that. Perhaps it is not that we should further talk about it, perhaps it would be good for you to read all that has been written about it.

Yes, if I am unhappy about isNew() I can write my own, in fact, I can write my own Model. Oh, wait a minute, I already have! So, thanks for the advise but I've already done it.

Y.Model might have been designed with one narrow focus in mind and yes, intermediaries on the server might compensate for the shortcomings of Y.Model. A RESTful service might, for example, provide an alias for a field called clientId if I happen to have a client table with such a field name for its main key which clashes with an existing attribute on Y.Model because nobody thought about separating data and meta data and turned everything into attributes. Sure, I can do that.

I believe I am quite capable of working around the limitations of such a narrowly focused design, or drop it altogether and use something else. Oh, wait a minute, I've already done that too. Thanks again for the advice.

By holding on to such a bad design and making further parts of YUI dependent on it, such as DataTable, you guys are just digging yourselves deeper into the hole.

Two YUIConfs ago DataTable was released just to have something fancy to announce. In this last release, DataTable was redone from scratch. Y.Model along the rest of the components in the app framework was rushed to the last YUIConf. Eventually, it will have to be fixed, or might be obstinately held on to. Lets hope no new components get announced in future YUIConfs.

kenjiru

  • Username: kenjiru
  • Joined: Mon Feb 20, 2012 6:25 am
  • Posts: 16
  • Location: Romania
  • GitHub: kenjiru
  • Gists: kenjiru
  • Offline
  • Profile

Re: YUI 3 team vision on mobile

Post Posted: Wed Jun 06, 2012 4:35 am
+0-
Satyam, Eric is right that you should take this discussion about the Y.Model to a different thread.

Now back to the original subject of the mobile development. When I'm saying 'mobile', I think about YUI more in terms of a widget library. That's because the UI is the main difference from a desktop application.

On the mobile devices with a big screen, like tables, the existing components should just work out of the box. But on small screens devices like mobile phones, I think we need a new set of components (just like jQueryMobile) designed specially for the small screen estate.

J. Shirley

YUI Contributor

  • Username: jshirley
  • Joined: Mon Sep 19, 2011 8:41 am
  • Posts: 12
  • GitHub: jshirley
  • Gists: jshirley
  • IRC: jshirley
  • Offline
  • Profile

Re: YUI 3 team vision on mobile

Post Posted: Wed Jun 06, 2012 4:47 am
+0-
Has anybody done any work on Phonegap and not comboloading? Is it excessively painful?

I think that would be a good first step. If we could provide a plugin for setting up an environment for doing Phonegap-compatible development, it could encourage some more porting of mobile UI controls.

Eric Ferraiuolo

YUI Developer

  • Username: ericf
  • Joined: Mon Jan 12, 2009 8:26 pm
  • Posts: 380
  • Location: Boston, MA
  • Twitter: ericf
  • GitHub: ericf
  • Gists: ericf
  • IRC: eric_f
  • YUI Developer
  • Offline
  • Profile

Re: YUI 3 team vision on mobile

Post Posted: Wed Jun 06, 2012 8:20 am
+0-
kenjiru wrote:
Now back to the original subject of the mobile development. When I'm saying 'mobile', I think about YUI more in terms of a widget library. That's because the UI is the main difference from a desktop application.

On the mobile devices with a big screen, like tables, the existing components should just work out of the box. But on small screens devices like mobile phones, I think we need a new set of components (just like jQueryMobile) designed specially for the small screen estate.


Agreed. jQuery Mobile's extra styling and behavior around default controls is excellent. In YUI there have been three main things we've done to start addressing this area:

1) Normalize between touch vs. mouse input
2) Night skin is designed to be used with touch-based devices
3) Finally add a button component

I would like to see us do more with the basic controls to make things like form controls look and work better on mobile devices (like we did with buttons). We have also been talking a lot about making sure the windowing components in YUI are built with a bias towards mobile devices. Unfortunately we've done more talking than doing, hopefully we can ramp up the work on the windowing components again.

From a closer-to-the-metal infrastructural level, the App Framework components, and specifically Y.App, are awesome to use when building mobile web apps and have been a major driving force in the design of these components.

Marc

YUI Contributor

  • Offline
  • Profile
Tags:

Re: YUI 3 team vision on mobile

Post Posted: Wed Jun 06, 2012 5:22 pm
+0-
Is there *anyone* with experience on using yui 3 and Phonegap together? It seems a natural fit but there is ZERO documentation available on it. I find it hard to believe that somewhere in Yahoo there isn't a couple of projects doing just this. Any kind of help would be appreciated so we don't have to reinvent all the wheels (and possibly badly). I mean, loading, pre combo-loading, packaging, integrating with the phone functionality, services, the tips and tricks, etc etc. On the one hand I'm dying to get started, but on the other hand I know I can't spend the time getting over all off the getting started hurdles, especially without documentation. It's frustrating.

Jeff Pihach

YUI Contributor

  • Username: hatch
  • Joined: Wed Dec 08, 2010 9:20 am
  • Posts: 37
  • Twitter: fromanegg
  • GitHub: hatched
  • Gists: hatched
  • IRC: hatch
  • Offline
  • Profile

Re: YUI 3 team vision on mobile

Post Posted: Thu Jun 07, 2012 6:13 am
+0-
Marc, last night I started on a blog post about what your looking for. As soon as I have it complete I'll post the link to this thread.

Marc

YUI Contributor

  • Offline
  • Profile

Re: YUI 3 team vision on mobile

Post Posted: Thu Jun 07, 2012 7:27 am
+0-
Awesome! Looking forward to it!

Jeff Pihach

YUI Contributor

  • Username: hatch
  • Joined: Wed Dec 08, 2010 9:20 am
  • Posts: 37
  • Twitter: fromanegg
  • GitHub: hatched
  • Gists: hatched
  • IRC: hatch
  • Offline
  • Profile

Re: YUI 3 team vision on mobile

Post Posted: Tue Jun 12, 2012 6:15 am
+0-
Getting started with YUI and PhoneGap ( Cordova ) part 1

http://fromanegg.com/post/24952800088/g ... ap-cordova
  [ 35 posts ] Go to page Previous1, 2, 3, 4 Next
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum