
Scala
Get flash to fully experience Pearltrees
The “Hole in the middle” pattern
Surfing on Chia’s Functional Longing article, I wanted to post an experience I had recently, working on some C# code. The point of this blog entry is that it’s not what a programming language make possible , it’s what a programming language make easy which determines what patterns are common and what patterns aren’t. What the code was doing was making a bunch of COM calls to another program, which wasn’t ours- specifically, it was a plugin to excel.Before answering the question of "Why Scala?", we first need to answer the question "what is Scala?" From the Scala website , the following overview can be found: Scala is a modern multi-paradigm programming language designed to express common programming patterns in a concise, elegant, and type-safe way. It smoothly integrates features of object-oriented and functional languages. Scala is object-oriented : Scala is a pure object-oriented language in the sense that every value is an object.
Why Scala?
13 Feb 2008 To be honest, I’m somewhat kicking myself for writing this post. As I’ve said many times: roundup posts are for people who are too lazy to write real content. I can’t tell you how many blogs I’ve come across which have a roundup-to-post ratio of easily 3:1. You know it’s a bad sign when sites start having roundups of their roundups… Meta-roundups aside, I decided (after much deliberation) that a single post linking to all six parts of the series would be useful to one or two people.
Roundup: Scala for Java Refugees
Scalazine First Steps to Scala by Bill Venners, Martin Odersky, and Lex Spoon May 9, 2007 Summary In this article, you'll follow twelve steps that are designed to help you understand and gain some basic skills in the Scala programming language. Scala is a statically typed, object-oriented programming language that blends imperative and functional programming styles. Scala is designed to integrate easily with applications that run on modern virtual machines, primarily the Java virtual machine (JVM). The main Scala compiler, scalac , generates Java class files that can be run on the JVM.
First Steps to Scala
REPL
The Scala Interpreter (often called a REPL for Read-Evaluate-Print Loop) sits in an unusual design space - an interactive interpreter for a statically typed language straddles two worlds which historically have been distinct. In version 2.8 the REPL further exploits the unique possibilities. Package and Class Completion On startup, the REPL analyzes your classpath and creates a database of every visible package and path. This is available via tab-completion analagous to the path-completion available in most shells. If you type a partial path, tab will complete as far as it can and show you your options if there is more than one.
A Taste of 2.8: The Interactive Interpreter (REPL)
Scala 2.8 Collections API
On 2010-06-30 08:53:50, Paul Phillips wrote: > On Wed, Jun 30, 2010 at 03:47:24PM +0000, [hidden email] wrote: > > I've just tested it... No change. > > Things to do: Interesting! > Try passing -nocompdaemon to scala.
Scala - User - FreeBSD problem (2.8-RC6)
Scala 2.8 Collections API -- Arrays
Array is a special kind of collection in Scala. On the one hand, Scala arrays correspond one-to-one to Java arrays. That is, a Scala array Array[Int] is represented as a Java int[] , an Array[Double] is represented as a Java double[] and a Array[String] is represented as a Java String[] . But at the same time, Scala arrays offer much more than their Java analogues. First, Scala arrays can be generic .The busy Java developer's guide to Scala: Collection types
28 Jul 2008 As I hinted previously , this series is intended to delve into Scala’s extensive collections API and the many ways in which it can make your life easier. Probably the most important operations you could ever perform on collections are those which examine each element, one at a time. After all, what’s a more common array idiom than looping over all values? In that vein, this article starts by looking at foreach , the imperative programmer’s bread-and-butter when it comes to types like Array and List . But rather than just stopping there, we also will look at more powerful, higher-order operations like fold, map and the ever-mysterious: flatMap .
Scala Collections for the Easily Bored Part 2: One at a Time
Other implementations : ALGOL 68 | Alice ML | BaCon | bc | C | C Plus Plus templates | dc | E | Eiffel | Erlang | Forth | FORTRAN | Haskell | Hume | Icon | Java | JavaScript | Lisp | Logo | Lua | Mercury | OCaml | occam | Oz | Pascal | PIR | PostScript | Prolog | Python | Ruby | Scala | Scheme | Sed | sh | sh, iterative | Smalltalk | T-SQL | Visual Basic .NET The Fibonacci numbers are the integer sequence 0, 1, 1, 2, 3, 5, 8, 13, 21, ..., in which each item is formed by adding the previous two. The sequence can be defined recursively by Fibonacci number programs that implement this definition directly are often used as introductory examples of recursion.
Fibonacci numbers (Scala) - LiteratePrograms
Chapter 1. Zero to Sixty: Introducing Scala Today’s enterprise and Internet applications must balance a number of concerns.

