Re: Fwd: [Lift] Re: immutable bindings
Hi Tim, My apologies about the fork vs branch stuff. If my knowledge about git is correct I don't have permission to create a branch yet, though David has agreed to make me a committer - maybe after the milestone release tomorrow. cheers Oliver On Wed, May 27, 2009 at 8:01 PM, Timothy Perrett wrote: > > Hey Oliver, > > Just to clear the confussion (as I was looking on our main github repo > for your branch), you created a *fork* not a branch (as only > committers can create branches). For group reference, the repo is > here: > > http://github.com/olambo/liftweb/tree/master > > Cheers, tim > > On May 27, 10:08 am, Oliver Lambert wrote: > > Added immutable binding example application to sites module, in my branch > > (didn't take long, must have done something right). > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
Re: Fwd: [Lift] Re: immutable bindings
Hey Oliver, Just to clear the confussion (as I was looking on our main github repo for your branch), you created a *fork* not a branch (as only committers can create branches). For group reference, the repo is here: http://github.com/olambo/liftweb/tree/master Cheers, tim On May 27, 10:08 am, Oliver Lambert wrote: > Added immutable binding example application to sites module, in my branch > (didn't take long, must have done something right). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
Fwd: [Lift] Re: immutable bindings
Added immutable binding example application to sites module, in my branch (didn't take long, must have done something right). -- Forwarded message -- From: Oliver Lambert Date: Wed, May 27, 2009 at 4:16 PM Subject: Re: [Lift] Re: immutable bindings To: liftweb@googlegroups.com I've pushed my changes and additions back to my branch, hopefully for all to see (still learning git). I'll write an example app based on the changes soon. cheers Oliver On Tue, May 19, 2009 at 9:14 AM, David Pollak wrote: > Oliver, > > Good stuff... please make sure that your branch is available on the GitHub > repository for all to see and use. > > Thanks, > > David > > > On Sat, May 16, 2009 at 1:36 AM, Oliver Lambert wrote: > >> >> >> On Sat, May 16, 2009 at 4:32 AM, David Pollak < >> feeder.of.the.be...@gmail.com> wrote: >> >>> >>> >>> On Thu, May 14, 2009 at 7:43 PM, Oliver Lambert wrote: >>> >>>> I've started integrating my immutable bindings, but have some questions >>>> >>>> On my build, I've placed the main immutable binding classes in module >>>> lift webkit under package net.liftweb.http.immu. >>>> Is that location/name OK? >>> >>> >>> If there's stuff that does not reference other stuff in the http classes, >>> please put it in net.liftweb.util. How many classes do you have? Can we >>> put it in net.liftweb.record instead? I'm thinking your work might form the >>> basis for some of the record stuff. >>> >>> >> I'll put what I can in net.liftweb.util. I guess there are about 10 >> classes, but I'll probably put these in a few files. I like the idea of >> using net.liftweb.record - I'll start to study the record methodology, also. >> >> >>>> >>>> I would like to introduce a new set of currency classes, roughly based >>>> on Martin et al's Currency Zone example in their book. Derek, is using an >>>> earlier version of it in his JPA example, Ive simplified it a little and >>>> extended it to include a few different currencies. Is this OK? - I know >>>> there is a simple currency class already. >>> >>> >>> Sure. I'm pretty sure the existing currency class in net.liftweb.util is >>> unused, so if you want to "break" that class, that might be a good place to >>> put your code. >>> >> >> cool, will do >> >> >>> >>>> I'm not sure what to do about the mixin binding that I use for html, >>>> that extends/modifies BindHelpers. >>> >>> >>> Put it in BindHelpers... as long as it doesn't break any of the existing >>> APIs. >>> >>> >> ok, I might go slowly on this bit. >> >> >>> >>>> Potentially I could modify BindHelpers, but, should I leave it out for >>>> now or include it as an optional and separate class in >>>> net.liftweb.html.immu? >>>> >>>> cheers >>>> Oliver >>>> >>>> >>>> >>>> >>> >>> >>> -- >>> Lift, the simply functional web framework http://liftweb.net >>> Beginning Scala http://www.apress.com/book/view/1430219890 >>> Follow me: http://twitter.com/dpp >>> Git some: http://github.com/dpp >>> >>> >>> >> >> >> > > > -- > Lift, the simply functional web framework http://liftweb.net > Beginning Scala http://www.apress.com/book/view/1430219890 > Follow me: http://twitter.com/dpp > Git some: http://github.com/dpp > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: immutable bindings
I've pushed my changes and additions back to my branch, hopefully for all to see (still learning git). I'll write an example app based on the changes soon. cheers Oliver On Tue, May 19, 2009 at 9:14 AM, David Pollak wrote: > Oliver, > > Good stuff... please make sure that your branch is available on the GitHub > repository for all to see and use. > > Thanks, > > David > > > On Sat, May 16, 2009 at 1:36 AM, Oliver Lambert wrote: > >> >> >> On Sat, May 16, 2009 at 4:32 AM, David Pollak < >> feeder.of.the.be...@gmail.com> wrote: >> >>> >>> >>> On Thu, May 14, 2009 at 7:43 PM, Oliver Lambert wrote: >>> I've started integrating my immutable bindings, but have some questions On my build, I've placed the main immutable binding classes in module lift webkit under package net.liftweb.http.immu. Is that location/name OK? >>> >>> >>> If there's stuff that does not reference other stuff in the http classes, >>> please put it in net.liftweb.util. How many classes do you have? Can we >>> put it in net.liftweb.record instead? I'm thinking your work might form the >>> basis for some of the record stuff. >>> >>> >> I'll put what I can in net.liftweb.util. I guess there are about 10 >> classes, but I'll probably put these in a few files. I like the idea of >> using net.liftweb.record - I'll start to study the record methodology, also. >> >> I would like to introduce a new set of currency classes, roughly based on Martin et al's Currency Zone example in their book. Derek, is using an earlier version of it in his JPA example, Ive simplified it a little and extended it to include a few different currencies. Is this OK? - I know there is a simple currency class already. >>> >>> >>> Sure. I'm pretty sure the existing currency class in net.liftweb.util is >>> unused, so if you want to "break" that class, that might be a good place to >>> put your code. >>> >> >> cool, will do >> >> >>> I'm not sure what to do about the mixin binding that I use for html, that extends/modifies BindHelpers. >>> >>> >>> Put it in BindHelpers... as long as it doesn't break any of the existing >>> APIs. >>> >>> >> ok, I might go slowly on this bit. >> >> >>> Potentially I could modify BindHelpers, but, should I leave it out for now or include it as an optional and separate class in net.liftweb.html.immu? cheers Oliver >>> >>> >>> -- >>> Lift, the simply functional web framework http://liftweb.net >>> Beginning Scala http://www.apress.com/book/view/1430219890 >>> Follow me: http://twitter.com/dpp >>> Git some: http://github.com/dpp >>> >>> >>> >> >> >> > > > -- > Lift, the simply functional web framework http://liftweb.net > Beginning Scala http://www.apress.com/book/view/1430219890 > Follow me: http://twitter.com/dpp > Git some: http://github.com/dpp > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: immutable bindings
Oliver, Good stuff... please make sure that your branch is available on the GitHub repository for all to see and use. Thanks, David On Sat, May 16, 2009 at 1:36 AM, Oliver Lambert wrote: > > > On Sat, May 16, 2009 at 4:32 AM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> >> >> On Thu, May 14, 2009 at 7:43 PM, Oliver Lambert wrote: >> >>> I've started integrating my immutable bindings, but have some questions >>> >>> On my build, I've placed the main immutable binding classes in module >>> lift webkit under package net.liftweb.http.immu. >>> Is that location/name OK? >> >> >> If there's stuff that does not reference other stuff in the http classes, >> please put it in net.liftweb.util. How many classes do you have? Can we >> put it in net.liftweb.record instead? I'm thinking your work might form the >> basis for some of the record stuff. >> >> > I'll put what I can in net.liftweb.util. I guess there are about 10 > classes, but I'll probably put these in a few files. I like the idea of > using net.liftweb.record - I'll start to study the record methodology, also. > > >>> >>> I would like to introduce a new set of currency classes, roughly based on >>> Martin et al's Currency Zone example in their book. Derek, is using an >>> earlier version of it in his JPA example, Ive simplified it a little and >>> extended it to include a few different currencies. Is this OK? - I know >>> there is a simple currency class already. >> >> >> Sure. I'm pretty sure the existing currency class in net.liftweb.util is >> unused, so if you want to "break" that class, that might be a good place to >> put your code. >> > > cool, will do > > >> >>> I'm not sure what to do about the mixin binding that I use for html, that >>> extends/modifies BindHelpers. >> >> >> Put it in BindHelpers... as long as it doesn't break any of the existing >> APIs. >> >> > ok, I might go slowly on this bit. > > >> >>> Potentially I could modify BindHelpers, but, should I leave it out for >>> now or include it as an optional and separate class in >>> net.liftweb.html.immu? >>> >>> cheers >>> Oliver >>> >>> >>> >>> >> >> >> -- >> Lift, the simply functional web framework http://liftweb.net >> Beginning Scala http://www.apress.com/book/view/1430219890 >> Follow me: http://twitter.com/dpp >> Git some: http://github.com/dpp >> >> >> > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: immutable bindings
On Sat, May 16, 2009 at 4:32 AM, David Pollak wrote: > > > On Thu, May 14, 2009 at 7:43 PM, Oliver Lambert wrote: > >> I've started integrating my immutable bindings, but have some questions >> >> On my build, I've placed the main immutable binding classes in module lift >> webkit under package net.liftweb.http.immu. >> Is that location/name OK? > > > If there's stuff that does not reference other stuff in the http classes, > please put it in net.liftweb.util. How many classes do you have? Can we > put it in net.liftweb.record instead? I'm thinking your work might form the > basis for some of the record stuff. > > I'll put what I can in net.liftweb.util. I guess there are about 10 classes, but I'll probably put these in a few files. I like the idea of using net.liftweb.record - I'll start to study the record methodology, also. >> >> I would like to introduce a new set of currency classes, roughly based on >> Martin et al's Currency Zone example in their book. Derek, is using an >> earlier version of it in his JPA example, Ive simplified it a little and >> extended it to include a few different currencies. Is this OK? - I know >> there is a simple currency class already. > > > Sure. I'm pretty sure the existing currency class in net.liftweb.util is > unused, so if you want to "break" that class, that might be a good place to > put your code. > cool, will do > >> I'm not sure what to do about the mixin binding that I use for html, that >> extends/modifies BindHelpers. > > > Put it in BindHelpers... as long as it doesn't break any of the existing > APIs. > > ok, I might go slowly on this bit. > >> Potentially I could modify BindHelpers, but, should I leave it out for now >> or include it as an optional and separate class in net.liftweb.html.immu? >> >> cheers >> Oliver >> >> >> >> > > > -- > Lift, the simply functional web framework http://liftweb.net > Beginning Scala http://www.apress.com/book/view/1430219890 > Follow me: http://twitter.com/dpp > Git some: http://github.com/dpp > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: immutable bindings
On Thu, May 14, 2009 at 7:43 PM, Oliver Lambert wrote: > I've started integrating my immutable bindings, but have some questions > > On my build, I've placed the main immutable binding classes in module lift > webkit under package net.liftweb.http.immu. > Is that location/name OK? If there's stuff that does not reference other stuff in the http classes, please put it in net.liftweb.util. How many classes do you have? Can we put it in net.liftweb.record instead? I'm thinking your work might form the basis for some of the record stuff. > > > I would like to introduce a new set of currency classes, roughly based on > Martin et al's Currency Zone example in their book. Derek, is using an > earlier version of it in his JPA example, Ive simplified it a little and > extended it to include a few different currencies. Is this OK? - I know > there is a simple currency class already. Sure. I'm pretty sure the existing currency class in net.liftweb.util is unused, so if you want to "break" that class, that might be a good place to put your code. > > > I'm not sure what to do about the mixin binding that I use for html, that > extends/modifies BindHelpers. Put it in BindHelpers... as long as it doesn't break any of the existing APIs. > > Potentially I could modify BindHelpers, but, should I leave it out for now > or include it as an optional and separate class in net.liftweb.html.immu? > > cheers > Oliver > > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: immutable bindings
I've started integrating my immutable bindings, but have some questions On my build, I've placed the main immutable binding classes in module lift webkit under package net.liftweb.http.immu. Is that location/name OK? I would like to introduce a new set of currency classes, roughly based on Martin et al's Currency Zone example in their book. Derek, is using an earlier version of it in his JPA example, Ive simplified it a little and extended it to include a few different currencies. Is this OK? - I know there is a simple currency class already. I'm not sure what to do about the mixin binding that I use for html, that extends/modifies BindHelpers. Potentially I could modify BindHelpers, but, should I leave it out for now or include it as an optional and separate class in net.liftweb.html.immu? cheers Oliver --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: immutable bindings
I've created a git branch, cloned it on my machine and built lift - built in 9 minutes with no errors (1 more tick for maven). Will "go wild" soon. On Tue, May 12, 2009 at 9:26 AM, David Pollak wrote: > Oliver, > > Please create a git branch and "go wild" on the branch... once you're > comfortable with it, please roll the changes into the main branch. > > Thanks, > > David > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: immutable bindings
Oliver, Please create a git branch and "go wild" on the branch... once you're comfortable with it, please roll the changes into the main branch. Thanks, David On Thu, May 7, 2009 at 6:06 PM, Oliver Lambert wrote: > I've attached a new version of the code. The two major changes are the > Binder and FormReturn code. > Things that are of note > > 1) xhtml has been slightly modified (see David's comments below and my > reply). The advantage is pragmatic - it looks shorter and cleaner to me. > > 2) Bind has been slightly modified (see SBind). Mixins are the default, > which I reckon helps separate the view from the controllers. > > 3) SBind supports Binder objects. Binder objects hide Lifts binding a > little, but have some advantages. Once an instance is created it is > immutable. Binder objects come with some default conversions and > validations, that just always make sense. I'm not trying to compete with > mapper objects, which can still be used, just offer an alternative way of > dealing with the front end layer. SBind, is meant to extend Bind, all its > functionality still "should" be available. > > 4) FormReturn - just me trying to be a little more functional in my > approach. > > On Fri, May 8, 2009 at 5:49 AM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> I like this a lot. >> >> I think this has a place in Lift... although I still prefer to bind to >> to But that's a >> small thing. >> > > I'll be willing to do this, but I'm going to resist a little. The reason I > chose is it's a completely valid input tag, > and the name attribute is going to get replaced by lifts binding process - > you can't be tempted to put in your own value and then be confused when it > gets blown away. > > >> >> I'd like to see this rolled into the Record stuff so that input records >> could be defined this way. >> > > Me too. > > >> >> >> On Wed, Apr 29, 2009 at 9:02 PM, Oliver Lambert wrote: >> >>> Hi all, >>> A couple of weeks ago, I promised David I would provide an example of the >>> immutable binding, I am using. >>> >>> I've, included it as a small Lift web application, that hopefully works >>> without any dependencies on my local repository. >>> >>> I've tried to make it as self explanatory as possible. If your >>> interested, run the application to get an idea of how it works. >>> Your suggestions/opinions are welcome. >>> >>> cheers >>> Oliver >>> >>> >>> >> >> >> -- >> Lift, the simply functional web framework http://liftweb.net >> Beginning Scala http://www.apress.com/book/view/1430219890 >> Follow me: http://twitter.com/dpp >> Git some: http://github.com/dpp >> >> >> > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: immutable bindings
I like this a lot. I think this has a place in Lift... although I still prefer to bind to to But that's a small thing. I'd like to see this rolled into the Record stuff so that input records could be defined this way. On Wed, Apr 29, 2009 at 9:02 PM, Oliver Lambert wrote: > Hi all, > A couple of weeks ago, I promised David I would provide an example of the > immutable binding, I am using. > > I've, included it as a small Lift web application, that hopefully works > without any dependencies on my local repository. > > I've tried to make it as self explanatory as possible. If your interested, > run the application to get an idea of how it works. > Your suggestions/opinions are welcome. > > cheers > Oliver > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: immutable bindings
I just realized, I removed the header comments to the classes under the package scalame and had removed credit to Lift for SBind (modifying Bind). My apologies, and I understand my code is nowhere near as well written as the original. Oliver --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---