Fell in love with Scala

I was a hard core JAVA developer in both my professional and learning journey, but recently for a reason i have started working with Scala and fell in love with it for the following so far.

  1. Semicolons - In Scala its not mandatory to have semicolons at end of the line
  2. Variable declarations - Scala allows you to decide whether a variable is immutable (read-only) or not (readwrite) when you declare itself.
  3. Ranges - Sometimes we need a sequence of numbers from some start to finish, atleast for testing
  4. Future - It avoid lots of boilerplate code I use to write in JAVA when deal with Threads
  5. Scala capability of inferring data information
  6. Tuple Literals - How many times have you wanted to return two or more values from a method in JAVA?, this can be easily done with Tuple Literals without creating some structural class
  7. Option,Some and None - for avoiding nulls, which makes our code ugly in JAVA
  8. Sealed Classes - restricts creating sub classes for critical use cases  
  9. Scala for comprehensions - Makes our code small, maintainable and more readable
  10. Lazy val - for avoiding init static methods


要查看或添加评论,请登录

Divagar Carlmarx的更多文章

  • Processing large amount of CSV data using JAVA

    Processing large amount of CSV data using JAVA

    Have you worked with large amount of csv DATA in GBs ?? And you have memory constraints ?? This might help for you…

    1 条评论
  • Scala - Sealed Class Hierarchies

    Scala - Sealed Class Hierarchies

    In my previous article i had shared you regarding Option feature in Scala, in this article come lets discuss about…

  • Scala - NULL handling with MAP

    Scala - NULL handling with MAP

    Sharing three useful types that express a very useful concept i learned today, for NULL handling. Most languages have a…

  • WHY and HOW I started using IntelliJ IDE and SCALA

    WHY and HOW I started using IntelliJ IDE and SCALA

    I was using Eclipse IDE for java enterprise development from beginning of my career and learning journey. In my life…

  • Product based company team management strategies for productivity

    Product based company team management strategies for productivity

    I am sharing my knowledge i got in my professional and personal life as software developer for team management. Lets…

  • Big Data Volume

    Big Data Volume

    Big Data Volume Data volume is characterized by the amount of data that is generated continuously. Different data types…

    2 条评论
  • Distributed Systems - Multi Leader Replication

    Distributed Systems - Multi Leader Replication

    We know in Leader follower model, client can able to write only by leader this if leader is down for any reason, you…

  • Distributed Systems - Replication

    Distributed Systems - Replication

    Replication means keeping a copy of the same data on multiple machines that are connected via a network. Reasons for…

  • Transaction Processing or Analytics ?

    Transaction Processing or Analytics ?

    Transaction processing systems In the early days of business data processing, a write to the database typically…

  • Designing key value database with btree

    Designing key value database with btree

    Introduced in 1970 and called “ubiquitous” less than 10 years later , B-trees have stood the test of time very well…

社区洞察