Scala is a general-purpose programming language principally targeting the Java Virtual Machine.
I am using the randomSplitfunction to get a small amount of a dataframe to use in dev purposes and I …
scala apache-sparkWhat is the difference between a var and val definition in Scala and why does the language need both? Why …
scalaThere are several ways to construct an immutable list in Scala (see contrived example code below). You can use a …
scalaI am using CDH 5.2. I am able to use spark-shell to run the commands. How can I run the file(…
scala apache-spark cloudera-cdh cloudera-managerScala doesn't have type-safe enums like Java has. Given a set of related constants, what would be the best way …
scala enumsI noticed that Scala provide lazy vals. But I don't get what they do. scala> val x = 15 x: Int = 15 …
scala lazy-evaluationWhat is a good way to do logging in a Scala application? Something that is consistent with the language philosophy, …
logging scalaI've just started learning Scala, and the first thing I'm going to implement is a tiny web application. I've been …
scala frameworks web-frameworks liftI need to build a JSON string, something like this: [ { 'id': 1, 'name': 'John'}, { 'id': 2, 'name': 'Dani'} ] val jArray = JsArray(); jArray += (("…
json scalaI was pushing the current git repository into the heroku. That online application was developed using Scala and IntelliJ. And …
git scala heroku intellij-idea