Essential SBT for Scala, excellent guide for newbies!

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Essential SBT for Scala, excellent guide for newbies!

William Narmontas
Hello,

I wrote up this guide several weeks ago, it may be good when introducing a friend to Scala:


Regards,
William

PS Feedback very welcome!

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Essential SBT for Scala, excellent guide for newbies!

Adriaan Moors-7
Very cool! Check out http://www.scala-sbt.org/0.13/docs/sbt-new-and-Templates.html to simplify the first few steps with the new templating support in 0.13.13!

On Wed, Dec 21, 2016 at 4:39 AM William Narmontas <[hidden email]> wrote:
Hello,

I wrote up this guide several weeks ago, it may be good when introducing a friend to Scala:


Regards,
William

PS Feedback very welcome!

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Essential SBT for Scala, excellent guide for newbies!

Валерий Байбосынов
In reply to this post by William Narmontas
Nice tutorial William, the best thing that it is fully reproducible, I like it very much.This article tied so hard to Linux/Unix, but Windows guys can do it with tool you mentioned. May be Good idea to introduce native packager in this article.

Then I want to mention about ideas I don't understand:

1) You have title

Create a unit project

While I think I create empty sbt project that uses sbt 0.13.13, I guess "Create empty sbt project" will be better.

2)For me the biggest advantage of this article that it is easy to
reproduce, and I think it was your goal. You showing advantage of sbt '~run', while you didn't mention that user needs to open new tab to try 'sed' source file, some confused user may try to do it in the same terminal session, and it wouldn't work for him,

Example:


➜  new-project sbt '~run'                             
[info] Loading project definition from /home/vol/new-project/project
[info] Set current project to new-project (in build file:/home/vol/new-project/)
[info] Running SimpleApp
It definitely definitely works
[success] Total time: 0 s, completed Dec 22, 2016 8:54:43 AM
1. Waiting for source changes... (press enter to interrupt)
sed -i -e 's/works/definitely works/' \
      src/main/scala/SimpleApp.scala%

➜  new-project       src/main/scala/SimpleApp.scala


And we leave sbt, when we paste the sed code. (this who don't like to watch video)

You also may mention where to exit the sbt.

3) I think the snapshot about directory and file states will be great for text version.

The idea seems great, thank you for '~run' and '~test', I use sbt for a year but don't know about this feature. What I like most about this article, that sbt looks super simple when you go throw this steps.



среда, 21 декабря 2016 г., 15:39:37 UTC+3 пользователь William Narmontas написал:
Hello,

I wrote up this guide several weeks ago, it may be good when introducing a friend to Scala:

<a href="https://www.scalawilliam.com/essential-sbt/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.scalawilliam.com%2Fessential-sbt%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGk7AcAwlaRLHZOHHPLUmvUYjutQw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.scalawilliam.com%2Fessential-sbt%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGk7AcAwlaRLHZOHHPLUmvUYjutQw&#39;;return true;">https://www.scalawilliam.com/essential-sbt/

Regards,
William

PS Feedback very welcome!

Connect with me on LinkedIn! <a href="https://www.linkedin.com/in/scalawilliam" style="color:rgb(17,85,204)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.linkedin.com%2Fin%2Fscalawilliam\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHclU0VfeHOOgd3IbuWOyZkvZb43A&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.linkedin.com%2Fin%2Fscalawilliam\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHclU0VfeHOOgd3IbuWOyZkvZb43A&#39;;return true;">https://www.linkedin.com/in/scalawilliam
Follow me on Twitter! <a href="https://twitter.com/ScalaWilliam" style="color:rgb(17,85,204)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2FScalaWilliam\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH-hF8RdHrUFz50QhPISRUseFRzxQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2FScalaWilliam\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH-hF8RdHrUFz50QhPISRUseFRzxQ&#39;;return true;">https://twitter.com/ScalaWilliam
Add me to Circles! <a href="https://plus.google.com/u/0/103489630517643950426" style="color:rgb(17,85,204)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://plus.google.com/u/0/103489630517643950426&#39;;return true;" onclick="this.href=&#39;https://plus.google.com/u/0/103489630517643950426&#39;;return true;">https://plus.google.com/u/0/103489630517643950426

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Essential SBT for Scala, excellent guide for newbies!

William Narmontas
In reply to this post by William Narmontas
Thank you Adriaan and Valery, I'll take your feedback into account for the next update :-)

On Wednesday, 21 December 2016 20:39:37 UTC+8, William Narmontas wrote:
Hello,

I wrote up this guide several weeks ago, it may be good when introducing a friend to Scala:

<a href="https://www.scalawilliam.com/essential-sbt/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.scalawilliam.com%2Fessential-sbt%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGk7AcAwlaRLHZOHHPLUmvUYjutQw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.scalawilliam.com%2Fessential-sbt%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGk7AcAwlaRLHZOHHPLUmvUYjutQw&#39;;return true;">https://www.scalawilliam.com/essential-sbt/

Regards,
William

PS Feedback very welcome!

Connect with me on LinkedIn! <a href="https://www.linkedin.com/in/scalawilliam" style="color:rgb(17,85,204)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.linkedin.com%2Fin%2Fscalawilliam\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHclU0VfeHOOgd3IbuWOyZkvZb43A&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.linkedin.com%2Fin%2Fscalawilliam\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHclU0VfeHOOgd3IbuWOyZkvZb43A&#39;;return true;">https://www.linkedin.com/in/scalawilliam
Follow me on Twitter! <a href="https://twitter.com/ScalaWilliam" style="color:rgb(17,85,204)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2FScalaWilliam\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH-hF8RdHrUFz50QhPISRUseFRzxQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2FScalaWilliam\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH-hF8RdHrUFz50QhPISRUseFRzxQ&#39;;return true;">https://twitter.com/ScalaWilliam
Add me to Circles! <a href="https://plus.google.com/u/0/103489630517643950426" style="color:rgb(17,85,204)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://plus.google.com/u/0/103489630517643950426&#39;;return true;" onclick="this.href=&#39;https://plus.google.com/u/0/103489630517643950426&#39;;return true;">https://plus.google.com/u/0/103489630517643950426

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.