DEV Community

Discussion on: A Beginner's guide to the Scala Programming Language

Collapse
 
kushalvmahajan profile image
Kushal V. Mahajan

Are you suggesting to learn Java elephant first and then learn scala animal?

Collapse
 
bmadusudanan profile image
Madusudanan.B.N

I don't understand what you mean by the term "Java elephant". If you are trying to say that java is a tough/time consuming language to learn then I somewhat disagree. You don't need to learn java in its entirety, just the OOP part should be enough. It is not a necessity though, any OOP language such C#/Ruby/Python will do.

Collapse
 
kushalvmahajan profile image
Kushal V. Mahajan

Ok. I got carried away maybe from the line where you mentioned to tweak java libraries to scala. I get the ease of a Java person here. But wouldn't it require to learn Java in depth to understand those libraries completely and then customise to scala code? Now I get that it's possible to get to scala with just OOP but I believe you are trying to say is that to fast pace it, we need to have Java libraries which in turn means a Java background else there would be a effort from scratch to build scala libraries. Is that right?

Thread Thread
 
bmadusudanan profile image
Madusudanan.B.N

The advice that I gave is for existing java programmers.

The core of the java language is pretty small from my experience. If you want to develop complex applications then comes learning the libraries. This route is for existing java programmers and IMO a pretty good route. If you are new to the JVM and do not know java, then you can straight away get your hands dirty with scala. You might need to spend a little extra time, but the upside to that is there are certain concepts that you need not unlearn and re-learn.

Whether you should learn scala libraries in scala? Thats a pretty broad question to answer. It all depends on whether you want your code/architecture to be functional/object oriented. If you have time in hand then I would advise you to learn scala libraries directly else you can make a call on whether to learn scala libraries or use existing java libraries depending on the team you are in.

Thread Thread
 
kushalvmahajan profile image
Kushal V. Mahajan

Wonderful! I got the words I wanted. I come from Javascript background (MEAN/MERN). Scala is next I guess.

Thread Thread
 
bmadusudanan profile image
Madusudanan.B.N

Awesome. Don't get daunted. Learn one thing at a time. You can also start from my blog series that I have linked in the article. Not the best but I have tried my best for it to be easy on beginners.

Thread Thread
 
kushalvmahajan profile image
Kushal V. Mahajan

Sure.Looking forward to it.