Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SDKMAN for installation on download page. #957

Merged
merged 1 commit into from
Oct 19, 2018

Conversation

marc0der
Copy link
Contributor

SDKMAN provides an easy way to install JVM related SDKs. We have supported Scala for a long time, and even allow installation of historic versions as early as 2.11.0.

It would be great to have SDKMAN mentioned as an installation option on the Scala download page.

@SethTisue
Copy link
Member

I'm somewhat skeptical about merging this, because I think that on a page like the download page, we're usually looking to follow the community and not to lead it — we're presenting options that are already popular, not letting people know about options that might be popular if they were better known.

Perhaps SDKMAN is better known than I realize. But I haven't personally heard of it, and I monitor all the usual Scala channels (chat rooms, forums, Reddit, Twitter, etc) pretty closely and I haven't seen others recommending it as a way to obtain Scala. That's normally how I would expect something to get on my radar.

(And, offering more choices might seem like an unalloyed good — choice is good, right? — but in practice, the more choices you offer the more confusing it is for users.)

Anyone else have an opinion on this...?

@dhinojosa
Copy link

dhinojosa commented Oct 3, 2018

SDKMan is pretty well known and perhaps may not have made itself known to some in the Scala community. Though it is already well received, my bet, with the new Oracle Java Licensing model, SDKMan will soon be as well known as public static void main.

@adriaanm
Copy link
Contributor

adriaanm commented Oct 4, 2018

Does SDKMan make it easier to install a JDK for users without JVM experience? I think that can be a valuable addition to our installation experience (say, for users coming from Python/Ruby).

I do have one hesitation -- once we add SDKMan, how many more alternatives should we expect to receive PRs for? (Especially since there's a commercial offering.) I'm okay merging this, but I'll let @sjrd decide.

@adriaanm
Copy link
Contributor

adriaanm commented Oct 4, 2018

One alternative could be to add this to a new section in https://github.com/scala/scala-lang/blob/master/download/install.md

@adriaanm adriaanm requested a review from sjrd October 4, 2018 09:29
@sjrd
Copy link
Member

sjrd commented Oct 4, 2018

I do have one hesitation -- once we add SDKMan, how many more alternatives should we expect to receive PRs for?

I also share this concern. Is SDKMAN somehow the such manager?

Additionally, the proposed link is not really at the same "level of abstraction" as the others. All the other links point to a Scala-specific location, which directly explains how to get Scala running (or runs Scala in the browser right away). The link to SDKMAN is its homepage, which only mentions Scala in passing, among a long list of all-things-Java. If I go there, honestly I have no idea what the next steps are to get Scala. I had to explore the site to finally get to https://sdkman.io/sdks#scala, which does suggest that, if I manage to install SDKMAN, then after that I can do sdk install scala.

Is there a Scala-specific landing page that explains how to get from zero to installing Scala using SDKMAN, which we could more easily link to than the generic home page?

@marc0der
Copy link
Contributor Author

marc0der commented Oct 4, 2018

@adriaanm yes, sdkman makes it very easy to install both the JDK, Scala and even SBT. It would be something like:

$ sdk install java
$ sdk install scala
$ sdk install sbt

It manages all the _HOME environment variables, as well as updates your PATH on-the-fly.

Lastly, most of the sdkman backend is written in Scala :-)

@marc0der
Copy link
Contributor Author

marc0der commented Oct 4, 2018

@sjrd That is a very good point, users could get lost if they simply get taken to our home page.

The Kotlin community have done the following on their site, giving a short recipe of how to install with sdkman, brew and a few others. Alternatively, we do have this section on our website that gives a deep link to Scala and how to install.

@sjrd
Copy link
Member

sjrd commented Oct 5, 2018

Perhaps an alternative formulation for that line would be:

<li>Using <a href="https://sdkman.io/">SDKMAN!</a>, you can easily <a href="https://sdkman.io/sdks#scala">install Scala</a> with <code>sdk install scala</code>.</li>

which makes it clearer that SDKMAN per se is not Scala-specific, gives a link the Scala-specific section of the website and provides the user who already knows SDKMAN with the actual one-liner install incantation.

@marc0der
Copy link
Contributor Author

marc0der commented Oct 5, 2018

@sjrd I made the change as suggested.

@SethTisue
Copy link
Member

Well, I would prefer that if we have this, we also had more such links to various package managers (e.g. Homebrew, which is where I currently get my JDK+Scala+sbt), rather than SDKMAN only.

But perhaps we should go ahead and merge this and invite the community to follow up with more PRs in this area. "how many more alternatives should we expect to receive PRs for?" asks Adriaan — if it eventually becomes unwieldy, we can deal with it then (perhaps with more compact formatting).

@SethTisue
Copy link
Member

Well, I would prefer that if we have this, we also had more such links to various package managers

#966

@marc0der
Copy link
Contributor Author

@SethTisue thanks for merging this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants