What is Scala and why should we use scala

Thai Chi Cuong
2 min readJul 15, 2020

--

Hello everyone, after one week of learning Scala, I have something to say about that.

For the first time I met Scala, I have some confusing things with this because I don’t know what is Scala, what’s it used for and we use Scala for what.

Ok let’s cut the chase

What is Scala?

Scala is a polymorphic language including object-oriented programming, functional programming, imperative programming, and logical programming.

It was created and developed by Martin Odersky. Martin started working on Scala in 2001 at the Ecole Polytechnique Federale de Lausanne (EPFL). It was officially released on January 20, 2004.

Scala source code is intended to compile to Java bytecode and the resulting executable code runs on the JVM. Because of that, Scala can interpret from Java library or vice versa.

Why should we use Scala?

When I ask this question, I don’t know how to answer and I made a research on Google to tell you about that.

Let’s take a look at scala syntax (It takes me a short time to find an image on Google):

As you can see in the image above, the Scala syntax is very ease-to-use, you can code like Python, or code like Java or C++, with or without semi-colons and brackets, the compiler will handle that. So you will feel free when working with Scala

Scala is standing for Scalable Language so you can easily maintain your system, scaling up your system and move your project to Scala too.

Scala has been using for many purposes but most important are Application, Libraries, BigData, Machine Learning, Parallel Batch Processing, Streaming, Concurrency, and Distributed Application.

Scala has a big community and a large of libraries with a lot of developers from over the World.

If you are a Data Analyst or Data Scientist, you are welcome to Scala and I think you should use Scala for your works.

The end,

In the next chapter, I will move to Spark, a big data framework working on Scala (It also just one week of learning Spark too).

I hope you like this story and please give me your thoughts by commenting below. I will welcome and improve myself day by day.

--

--