Get flash to fully experience Pearltrees
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.
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.
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.
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.
September 7, 2010 In the eyes of many, the new collections framework is the most significant change in Scala 2.8. Scala had collections before (and in fact the new framework is largely compatible with them). But it's only 2.8 that provides a common, uniform, and all-encompassing framework for collection types.
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.
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 .
For the Java™ developer learning Scala, objects provide a natural and easy point of entry. Over the past several articles in this series , I've introduced you to some of the ways that object-oriented programming in Scala really isn't much different from Java programming. I've also shown you how Scala revisits traditional object-oriented concepts, finds them wanting, and reinvents them for the 21st century.
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 .
Chapter 1. Zero to Sixty: Introducing Scala Today’s enterprise and Internet applications must balance a number of concerns.