Reading Time: 5 minutes In this blog, We will be going to explore how we can use scala collections efficiently . Though, we are taking care of immutability but still something more can be done to make your code more readable and faster. List vs Vector: Vector is a collection with good random access. List is indeed a linked list with very fast append-first operation (::), but the links Continue Reading
Reading Time: 6 minutes Scala Map is a collection of Key-value pair. A map cannot have duplicate keys but different keys can have same values i.e keys are unique whereas values can be duplicate. Maps in Scala are not language syntax. They are library abstractions that you can extend and adapt. Scala provides mutable and immutable alternatives for maps. Class hierarchy for scala maps is shown below: Image Continue Reading
Reading Time: 4 minutes A language is a set of standards. One has to follow them in order to avail benefits from the language. In order to maintain these standards, code in Scala has to be written in order to minimize the errors whether they are related with the concepts like redundancy of operations, use of properties of language those not supported by ScalaStyle or ScapeGoat or other checkers. Continue Reading
Reading Time: < 1 minute As multi-core becomes a standard, writing code which can harness the power of the cores remains a formidable challenge. The following KnolX session, tried to decode how scala is trying to give us an advantage by providing us parallel collections. It also discusses, which scenarios lend themselves to parallel processing and discusses the pitfalls of others.