Scala : Beginners's guide : Level 1 of 3


Why Scala and What's Scala?
  • Java gave us a beautiful concept of Write-Once-Run-Anywhere. 😎
  • This enabled using same set of libraries across multiple platforms.
  • But still we had to deal with problems like 😓:
    • thread-safely
    • data visibility
  • In multicore processors, no of threads is high.
  • This complicates thread-safety coding even more.
  • Thus , we needed a higher level of abstraction.
  • Scala provides this abstraction , on JVM.💝
  • Moreover, in Scala programming language, we can choose to do :
    • Imperative programming like Java OR
    • Functional programming like Erlang/Haskel OR
    • Mixure of both imperative and functional programming.
  • If needed, we can have Scala and java code in same project.
What's so special about it?
  • Just like java simplified C++ work, scala does it to Java.
  • There are lot of redundancies in Java language.🙈
    • public in public class XYZ {
    • final keyword to variables
    • getter setters to variables
    • constructors to class
  • Java Fans might say all these can be simplified using IDS like :
    • Eclipse
    • IntelliJ
  • But still all those code auto-written , is visible to us.
  • Its called "IDE Vomit" 👻
  • If it isn't present in code , we wont be distracted.
  • Scala gets rid of java redundencies.😍


 (Work in progress)

Comments

Popular posts from this blog

Understanding Apache Kafka : Part 1