Software AdventuresTweets
- RT @simonsinek: "Failure is not a necessary evil, it is a necessary consequence of trying something new." - Ed Catmull, President of Pixar … 03:40:14 PM June 11, 2013
- It's important how many books and articles you have written, but it's more important how you can extract them to few sentences! 03:11:32 PM June 08, 2013
- RT @neal4d: We did it again: ThoughtWorks Technology Radar May 2013 edition is out ➝ http://t.co/QGEpLO8KNa 08:48:25 AM May 23, 2013
- RT @mtnygard: Your own domain always looks more complex, because you're inside of it. 08:12:08 AM May 23, 2013
- Reading http://t.co/kSzky036HL 07:43:02 PM May 22, 2013
- TDD is transfer of your knowledge in a given domain to your colleagues through your unit tests ;-) 01:24:17 PM May 15, 2013
- Watching Nutrients for Better Mental Performance http://t.co/MGrEKqYLJC 11:41:21 AM May 12, 2013
- The difference from knowledge read from book and smooth integration in project is more than 1000 hours practice ;-) 12:37:31 PM May 10, 2013
- Henrik Kniberg - ... In an agile project almost everyone tests ... http://t.co/x2Ny0E44Az 12:25:45 PM April 29, 2013
- Harvard Business Review http://t.co/ZYJqPPMIho 09:07:34 PM April 27, 2013
-
Recent Posts
Categories
Recent Comments
- Stancho Stanchev on Rules of Android Dev Club
- Anton Antonov on C++ cout crashes during concurrent usage with boost’s threads under embedded Linux
- Ivan on C++ cout crashes during concurrent usage with boost’s threads under embedded Linux
- Anton Antonov on C++ Heap Corruption Problem
- Drago on C++ Heap Corruption Problem
Archives
- December 2012
- November 2012
- October 2012
- May 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- December 2009
- November 2009
- October 2009
- August 2009
- June 2009
Monthly Archives: October 2010
Scala Map Examples
Notes on maps :
- there is mutable and immutable maps
Examples :
import scala.collection.mutable.Map
val rucksack = Map[Int, String]()
rucksack += (1 -> “shawl”)
rucksack += (2 ->”gloves”)
rucksack += (3->”hat”)
println(rucksack)
val ruckSackPile = Map[Int, String](1 -> “shawl”, 2 ->”gloves”, 3->”hat”)
println(ruckSackPile)
Reference:
1. Programming in Scala: A Comprehensiv e … Continue reading
Scala Sets Examples
Notes on sets :
- Scala provides mutable and immutable sets. (scala.collection.mutable, scala.collection.immutable )
Sets examples :
- Sets creating, initializating
scala> import scala.collection.mutable.Set
scala> val teniscordVisitorsSet = Set(“Players”, “Watchers”)
scala> tenisCordVisitorsSet += “Referees”
scala>import scala.collection.immutable.HashSet
scala>val tenisCordVisitorsSet = HashSet(“Players”, “Watchers”)
Reference :
1. Programming in Scala: A Comprehensiv e … Continue reading
Scala Tuples Examples
My notes on tuples :
- tuples are immutable, but unlike lists, tuples can contain different types of elements
- tuples are very useful when you need to return multiple objects
Tuples examples :
- Access to element of tuple
scala > val pair = … Continue reading
Posted in Scala Experience
Leave a comment
Java example for Cloneable interface
// Simple example which I found for cloneable and improve just to practise Java
// If you have some notes on my implementation I will be happy to hear them.
package cloneable;
// Refered object from class for cloning
class Department implements … Continue reading
Arrays in Scala and its tricky behaviour ;-)
The row bellow shows parametrizing of an array with a String type in Scala.
scala > val greetStrings = new Array[String](3)
If I have to be honest it’s very unclear what is the meaning of “parametrizing of an array” and why is … Continue reading