Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 SCALA


  Is Scala Only for Computer Scientists?

I have experience struggling through these kinds of things andI know enough about the subject that I can understand why they did it that way.But my concern is that this should be an example that a beginner could understand, and they can't. There's too much depth exposed.Here's the example, which is written as a script:import scala.io.Source._case class Registrant(line: String) { val data = line.split(",") val first = data(0) val last = data(1) val email = data(2) val payment = data(3).toDouble}val data = """Bob,Dobbs,bob@dobbs.com,25.00Rocket J.,Squirrel,rocky@frostbite.com,0.00Bullwinkle...

3,143 0       SCALA COMPUTER SCIENCE APPLICATION FIELD


  Scala Macros

This is the home page of project Kepler, an ongoing effort towards bringing compile-time metaprogramming to Scala. Our flavor of macros is reminiscent of Lisp macros, adapted to incorporate type safety and rich syntax. Unlike infamous C/C++ preprocessor macros, Scala macros: 1) are written in full-fledged Scala, 2) work with expression trees, not with raw strings, 3) cannot change syntax of Scala. You can learn more about our vision of metaprogramming from our talks. We propose to enrich Scala programming language with three flavors of type-safe compile-time macros: macro defs, macro types and...

5,282 0       SCALA EFFICIENCY MACRO MAINTAINEBILITY


  First steps with Scala, say goodbye to bash scripts…

Those who know me are aware that I’ve been following play framework, and actively taking part of it’s community, for a couple of years.Playframework 2.0 is right around the corner, and it’s core is programmed in Scala, so it’s a wonderful opportunity to give this object-oriented / functional hybrid beast a try…Like many others, I will pick a very simple script to give my first steps…Finding an excuse to give Scala a tryWith a couple of friends we are on the way to translate play framework documentation to spanish (go have a look at it at http://play...

2,483 0       SCALA FUNCTIONAL PROGRAMMING BASH SCRIPT REPLACEMENT


  True Scala complexity

Update 2: Sorry for the downtime. Leave it to the distributed systems guy to make his blog unavailable. Nginx saves the day.It’s always frustrating reading rants about Scala because they never articulate the actual complexities in the core language.Understandable—this post is intended fill that gap, and it wasn’t exactly easy to put together. But there’s been so much resistance to the very thought that the complexity exists at all, even from on up high, that I thought it would be constructive to provide a clearer illustration of why it’s real and how it manif...

3,616 0       COMPLEXITY SCALA


  Scala, Patterns and The Perl Effect

He tried to understand that one concept for a couple of months before it made sense to him. Admittedly, partial functions are not intuitive for anyone who has been schooled in traditional programming, but still, looking at the problem he was trying to solve it seemed like James was required to expend too much effort relative to the simplicity of the problem (as he pointed out, now that he understands the concept it seems straightforward).He showed me the code, and it was basically a situation where there was common code in the existing function, and the partial function completion allowed the ...

3,184 0       PATTERN SCALA PERL TEMPLATE PARTIAL FUNCTION


  A Month With Scala

Although I’ve played around with Scala for the few months, these efforts largely involved simple scripts and casual reading. It wasn’t until last month that the opportunity to use Scala in a large scale project finally arose and I dove right in. The project was a typical REST based web service built on top of Amazon’s Elastic Beanstalk, SimpleDB, S3 and Redis*. First off let’s talk about why I chose Scala in the first place. After spending a good deal of my last year entrenched in JavaScript and appreciating its functional nature, brevity and flexibility, writing Ja...

2,469 0       JAVA OOP SCALA FUNCTIONAL ITERATION


  Scala feels like EJB 2, and other thoughts

At Devoxx last week I used the phrase "Scala feels like EJB 2 to me". What was on my mind?ScalaFor a number of years on this blog I've been mentioning a desire to write a post about Scala. Writing such a post is not easy, because anyone who has been paying attention to anti-Scala blog posts will know that writing one is a sure fire way of getting flamed. The Scala community is not tolerant of dissent.But ultimately, I felt that it was important for me to speak out and express my opinions. As I said in my talk, if it was just me that had a poor opinion of Scala I would probably keep quiet (or t...

1,907 0       SCALA FEATURE MODULE EJB CONCURRENCY


  Yes, Virginia, Scala is hard

Let me first say that I am a Scala lover and have been a Scala champion for almost 5 years.  I've written books and articles on Scala.  I've worked with dozens of companies that have launched Scala and Lift projects.  I've code reviewed many dozens of Scala projects.I used to think that Scala was easy.  It was, and continues to be, a cure for some of the numerous problems with Java.  From the "stuff that's hard or impossible in Java is simple in Scala," Scala is a very easy language.  Dealing with collections is super easy in Scala.  Isolating business logic ...

2,999 0       OOP SCALA HARD FP FUNCTION PROGRAMMING IDIOM