Stream

Join this community to post or comment

Sebastian Nozzi
moderator

Articles, Podcasts, Talks  - 
 
I've been waiting for a book like this for a long time.
Having started as a Java developer in a middle-sized enterprise company, over the course of my career I've worked in several different countries and gained quite a bit of experience. During the last eight years I've used a great number of libraries and frameworks from JavaServer Faces to React.
4
Jim O'Flaherty's profile photoSebastian Nozzi's profile photo
2 comments
 
Me, not yet. But definitely on my to-read-list.
Add a comment...

Alex Fruzenshtein

Core Language  - 
List of useful Scala object oriented features you may forgot. Read the article with examples and try to compare it to Java
12
1
Alexey Raga's profile photoAlex Fruzenshtein's profile photo
5 comments
 
Agree =)

Add a comment...

Cletus Flynn

Misc. Dialog & Discussion  - 
 
I'm new to scala. I'm trying to "Zip" a three lists into a tuple (3). I can do it without tail recursion successfully, but I'm confused on the implementation of the helper method when calling first input in the helper method.

Here's what I have:
// zips three list into a tuple using recursion

def zip3TR[A, B, C](list1: List[A], list2: List[B], list3: List[C]): List[(A, B, C)] = {
@tailrec
def accumulate(currentlist: List[(A, B, C)], leftovers: (List[A], List[B], List[C])): List[(A, B, C)] =
leftovers match {

case (Nil, Nil, Nil) => currentlist
case (h1 :: t1, h2 :: t2, h3 :: t3) => (h1, h2, h3)
accumulate(currentlist, (t1, t2, t3))

}

val (answer1, answer2, answer3) = accumulate((List[(A, B, C)]),(list1 , list2 ,list3))
(answer1, answer2, answer3)

}





println(s"zip3TR(List(1, 2, 3), List(4, 5, 6), List(7, 8, 9)) = ${zip3TR(List(1, 2, 3), List(4, 5, 6), List(7, 8, 9))}, expecting: List((1,4,7), (2,5,8), (3,6,9))")
1
Valentin Fedulov's profile photoCletus Flynn's profile photo
2 comments
 
Valentin,

Thank you so much. There are modifications I needed but you pointed out one key factor: I was not calling zip3TR method outside the helper function and also the helper method of accumulate was not set up correctly. Scala is simple, but thinking recursively is not. It is going to take some practice to think recursive.
Thank you again.
Cletus
Add a comment...

Sebastian Nozzi
moderator

Libraries  - 
 
ScalaTest 3.0.0 was recently released. Being a major release it brings lots of features, changes (some of them potentially breaking) and new deprecations. In this post I will focus more on the main additions and enhancements, followed by some code examples. Installation Add this line to your sbt
6
Nikolay Kushin's profile photo
 
waiting until scalamock is supporting new version of scalatest :)
Add a comment...

Mitchell Patricia

Misc. Dialog & Discussion  - 
 
Scala Tutorial: Create CRUD with Slick and MySQL
We are certainly leaving at the epoch of flourishing data stores. Myriads of NoSQL solutions have emerged over the last couple of years
22
4
Add a comment...

Sebastian Nozzi
moderator

Articles, Podcasts, Talks  - 
 
This is not a talk about Scala itself, but I could not help thinking "but... this is 100% what Scala is good for!".

A very recommended talk about software design & testing which, unknowingly, showcases many of the aspects that make Scala so great.

#softwaredevelopment   #testing   #scala   #erlang   #haskell   #actors  
This talk is about using simple values (as opposed to complex objects) not just for holding data, but also as the boundaries between components and subsystems. It moves through many topics: functional programming; mutability's relationship to OO; isolated unit testing with and without test ...
3
Add a comment...

Adegbite Oreoluwa

Core Language  - 
 
Streaming live: Development of a decentralized social network built in #scala
Watch Now!
Welcome to the Synereo Community www.synereo.com How many weeks are you already working on it? 100 Which two main programming languages are you using? Scala, Scala.js, JavaScript Where do you need support? We need Scala developers to stand up nodes and brand ambassadors for our technology Are you looking for team members? Yes we are looking for developers who are experts in functional programming and Scala. More information below: Website: www.s...
1
1
Add a comment...

John Sullivan

Libraries  - 
 
psyched to talk next month at the Twin Cities Scala meetup! https://www.meetup.com/tc-scala/events/233380412/
1
Add a comment...

About this community

A Google+ community for articles and discussions related to the Scala programming language. (picture (c) Miles Sabin) Posts and conduct should follow the Scala Code of Conduct - http://docs.scala-lang.org/conduct.html This includes: no job postings.
World Wide

Jim O'Flaherty

Core Language  - 
 
Here's the Scala 2.12.0-RC1 official release summary page!
http://scala-lang.org/news/2.12.0-RC1
3
Add a comment...

Kristine K Burnett

Core Language  - 
 
Scala For Beginners
Learn scala programming language from scratch
4
Add a comment...

Jim O'Flaherty

Core Language  - 
 
Warnings indicate when the status of a JIRA issue doesn't reflect related development activity. For example: an issue marked complete that has an open pull request should be marked as still being in progress. All systems are go! Time to celebrate! There are no warnings for this version.
13
2
Derek Chen-Becker's profile photoJim O'Flaherty's profile photo
3 comments
 
+Derek Chen-Becker I'm not sure. I've been scanning looking for it everywhere. Other than my tweet and my post here, I haven't seen any mention of it anywhere else. Perhaps there is some official "package" that must accompany it before it's made "official".
Add a comment...

Paddy lock

Articles, Podcasts, Talks  - 
 
Learn How To Use Functional Data Structures In Scala

In this article we will demonstrate the uses of functional data and how we can operate the data structures without modifying them
1
Add a comment...

Kenna Jenifer

Misc. Dialog & Discussion  - 
 
Music Recommendations using Alternating Least Squares and the Audioscrobbler dataset
Dataframes and Spark SQL to work with Twitter data
Using the PageRank algorithm with Google web graph dataset
Using Spark Streaming for stream processing
Working with graph data using the Marvel Social network dataset
*… and of course all the Spark basic and advanced features: *

Resilient Distributed Datasets, Transformations (map, filter, flatMap), Actions (reduce, aggregate)
Pair RDDs , reduceByKey, combineByKey
Broadcast and Accumulator variables
Spark for MapReduce
The Java API for Spark
Spark SQL, Spark Streaming, MLlib and GraphX
Use Scala and Spark for data analysis, machine learning and analytics
3
Add a comment...

John Sullivan

Libraries  - 
 
optimistic locking at the flip of a switch
Longevity - a persistence framework for Scala and NoSQL - has been built from day one to isolate persistence concerns behind a clear, consistent, and easy to use API. The power of this design principle is demonstrated by how ...
4
1
Add a comment...

Sebastian Nozzi
moderator

Web App. Development  - 
 
Excellent piece of advocacy for Scala.js by top-community member Li Haoyi. Very good read.

#scala   #scalajs   #web   #javascript   #python   #coffeescript   #clojure   #clojurescript   #gwt   #ruby   #typescript  
Three years ago, I downloaded the nascent Scala.js compiler and tried to use it on a toy project. Since then, it has matured greatly: the compiler itself is rock-solid. It has a huge ecosystem of libraries. It has a vibrant community, been adopted by some of the largest commercial users of the ...
17
Add a comment...

Paddy lock

Articles, Podcasts, Talks  - 
 
A High Level Overview Of #Scala Programming Language

In this article we will discuss on overview of scala programming language the concepts on Object oriented and functional programming.
1
Add a comment...

Gabriel Volpe

Articles, Podcasts, Talks  - 
 
Check out my new blog post where I talk about Type safety on Akka actors using Typed Actors! #scala   #akka  
Hi everybody! On these days I had a break and I was able to investigate something different from work not related to streams and I discovered this library Typed Actors by @knutwalker which I liked …
7
1
Gabriel Volpe's profile photoSebastian Nozzi's profile photo
3 comments
 
Great, thanks for the pointers!
Add a comment...