Symbols used in Syntax of Scala Language

Scala Lang has many different symbols used in its syntax. Below is the list of symbols and its use in Scala language. “->” arrow symbol in Scala syntax returns a two element tuple containing the key and value. You can use this symbol as shown in below example- Map(1->”Allan”, 2->”Bob”) (1).->(“A) “_” underscore symbol  in scala syntax is intended as …

Read More

How to Install Scala 2.9.1 on Linux (Ubuntu 11.04) ?

To install Scala on Linux you need to get scala on your Linux machine. You can get Scala by below two methods : 1) Default Scala version available on your Linux box by typing below command sudo apt-get install scala 2) If you want to get the latest version of the scala below are the …

Read More

Scala Language Development Tools by Twitter provided as Open Source

Twitter is built on open-source software—here are the projects released or contributed by them. 1.      KESTRAL Kestrel is based on Blaine Cook’s “starling” simple, distributed message queue, with added features and bulletproofing, as well as the scalability offered by actors and the JVM. Each server handles a set of reliable, ordered message queues. When you …

Read More

Compile Scala Program using Ant Library

http://jakarta.apache.org/ant/. Ant allows the developer to automate the repeated process involved in the development of Java/Scala application. Developers can easily write the script to automate the build process like compilation, archiving and deployment.  

Read More

Scala Specs now Superseded by Scala Specs2

The Owner of SPECS project commented on my previous post Development Tools available for Scala Language saying that new version of Specs2 is available. Let me briefly drive you in this. SPECS is the Behavior Driven Design Framework which works as an alternative for Junit when specifying or testing Scala projects. Now the SPEC project …

Read More

Difference between Scala val and var

In Scala Language you can define a variable using either a val or a var keyword. The variables defined using val keyword are immutable and can’t be changed after initialization. And the variable defined using var keyword are mutable and can be changed any number of times until it is present in the scope. The immutability applies …

Read More

Scala Code For Reading File

There are many ways reading file in using Scala language. I will walk-through the options available for reading the file. If anyone wants to add improvements in below code example please feel to add it in the comment. This Scala code is tested on large file and it works fine. /** * Scala code to read the …

Read More

Your First Application in Scala – Video Tutorial

Scala is a hybrid functional and object-oriented language. When creating a multithreaded application in Scala, you’ll lean toward a functional style of programming where you write lock-free code with immutable state. Scala provides an actor-based message-passing model that removes the pain associated with concurrency. Using this model, you can write concise multithreaded code without the …

Read More

Scala Traits and Java Interfaces – Video Tutorial

This video clip explains what happens when we develop a trait (that includes both abstract and concrete methods) in Scala and compile it. The outcome is an interface in Java together with a class. For each one of the concrete methods the traits includes we will find a static method within that class. We can …

Read More

Development Tools available for Scala Language

Due increased popularity of scala language and increase number of user in scala world new development tools for Scala language are evolving now a days. I thought i should gather the list  of  Scala development tools available. Please feel free to add the Scala tools if i have missed any. SIMPLE BUILD TOOL FOR SCALA …

Read More

Scala – A Scalable Language (Video Tutorial)

Creator of Scala language has explained in a very nice way. In this talk he describes the design principles of the Scala programming language, which has scalability as its primary design objective. Today’s software landscape resembles increasingly a tower of Babel: Systems are built using many different languages, combining server-side and client-side languages, scripting and …

Read More

Learning SCALA Language

Few days back i was reading the interview of James Gosling ( Co-creator of Java) where i saw this statement by James Gosling I like Scala, but my big problem is that the type theory has gotten really complicated. The language lawyers are driving the bus. It’s turning into something that journeyman developers and even people like me�I …

Read More