esme-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Pollak <>
Subject Re: Code Harmonization
Date Thu, 15 Oct 2009 15:11:39 GMT
On Thu, Oct 15, 2009 at 1:25 AM, Richard Hirsch <>wrote:

> The question is how difficult would it be to convert the other pages
> to using the same mechanism. Examples in Scala are already present -
> same with the Javascript and the HTML templates

The recently added lift-json library does an excellent job of bi-directional
JSON conversion of Scala case classes.  It might be worth defining every
message that needs to get sent to/from the browser as a case class and use
this library to serialize.

> On Thu, Oct 15, 2009 at 9:25 AM, Vassil Dichev <> wrote:
> >> I'd like to see a JSON object being created in scala and then passed
> >> to the UI where a javascript tries to paste into a html template that
> >> determines via class refs how the data appears to the user. Scala
> >> deals with data and the UI with presentation. A clean division of
> >> labor that would also allow users to create new UIs (mobile?) without
> >> touching the scala code base.
> >
> > Yes, that's how it's done for the user timeline (arguably the most
> > important piece), but not for all the others. For the short term the
> > least complicated path is probably to stick to Lift binding to the
> > template.
> >

Lift, the simply functional web framework
Beginning Scala
Follow me:
Surf the harmonics

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message