/Mads--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/s2H_2ynjKhsJ.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
> On Fri, Jan 27, 2012 at 9:02 AM, Mads Hartmann Jensen <mad...@gmail.com>wrote:
>
> > Hi,
> >
> > Yesterday I gave a talk at PHASE (Philadelphia Scala user group) about
> > building SBT plugins. In preparation for the talk I prepared some different
> > SBT plugin examples to help people get started easily. In case anyone might
> > find them useful I've pushed them to github here:
> > https://github.com/mads379/sbt-plugin-examples
> >
> > I've also attached the presentation as a pdf - It's pretty short and might
> > not work that well when you only have the words on the slides but who knows
> >
> >
>
> Very cool. What do you guys thing about posting presentations these
> somewhere discoverable. I helped with one [1] a while ago with Eugene and
> Rose. I think I saw a pres on sbt by Brian Clapper go by a while back. And
> then Josh Suereth did a pretty amazing talk explaining some of the theory
> behind the design of the new setting dsl. Mark himself has some nice video
> talks on sbt. It would be cool to gather these somewhere central. Maybe on
> the wiki or as part of this work in progress site http://www.scala-sbt.org/.
>
> What do you guys think?
Yes, something on the wiki or scala-sbt.org or both would be great.
-Mark
On Fri, 27 Jan 2012 09:35:00 -0500Yes, something on the wiki or scala-sbt.org or both would be great.
Doug Tangren <d.ta...@gmail.com> wrote:
> On Fri, Jan 27, 2012 at 9:02 AM, Mads Hartmann Jensen <mad...@gmail.com>wrote:
>
> > Hi,
> >
> > Yesterday I gave a talk at PHASE (Philadelphia Scala user group) about
> > building SBT plugins. In preparation for the talk I prepared some different
> > SBT plugin examples to help people get started easily. In case anyone might
> > find them useful I've pushed them to github here:
> > https://github.com/mads379/sbt-plugin-examples
> >
> > I've also attached the presentation as a pdf - It's pretty short and might
> > not work that well when you only have the words on the slides but who knows
> >
> >
>
> Very cool. What do you guys thing about posting presentations these
> somewhere discoverable. I helped with one [1] a while ago with Eugene and
> Rose. I think I saw a pres on sbt by Brian Clapper go by a while back. And
> then Josh Suereth did a pretty amazing talk explaining some of the theory
> behind the design of the new setting dsl. Mark himself has some nice video
> talks on sbt. It would be cool to gather these somewhere central. Maybe on
> the wiki or as part of this work in progress site http://www.scala-sbt.org/.
>
> What do you guys think?
> Hi,
>
> Yesterday I gave a talk at PHASE (Philadelphia Scala user group) about
> building SBT plugins. In preparation for the talk I prepared some different
> SBT plugin examples to help people get started easily. In case anyone might
> find them useful I've pushed them to github
> here: https://github.com/mads379/sbt-plugin-examples
Nice examples, Mads.
A question/comment on flatMap... Generally, use flatMap if you want the output of one parser to determine the next parser to use. The example given is:
Space ~> nameParser flatMap { name =>
Space ~> questionParser map { (name,_) }
}
'name' isn't used to determine the next parser, so it looks like it could just be:
(Space ~> nameParser) ~ (Space ~> questionParser)
An example of a use case for flatMap would be:
Space ~> nameParser flatMap { name =>
val questionParser = if(hasMoney(name)) buyBeer else weather
Space ~> questionParser map { (name,_) }
}
> I've also attached the presentation as a pdf - It's pretty short and might
> not work that well when you only have the words on the slides but who knows
Looks like it was a good talk!
-Mark
> /Mads
>
token(Space ~> nameParser) ~ token(Space ~> questionParser)
Which is still a vast improvement :)
(I obviously removed the other calls to token).
I will push the changes when I have wifi on my mac.
Sent from my iPhone
Pull request sent!It doesn't seem that the site uses any static page generation so I just edited the raw html - was that wrong?
/Mads--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/vkx0hgd2sQMJ.
Yep, sorry. I didn't have time to use scalate or any scala-only templating bit, so it forks to Jekyll.