Category Archives: Scala

npm Package Analyzer

Sometimes You need to check if You really use all modules specified in package.json. I wrote

Rate this:

Posted in gui, JavaScript, node.js, Programming, Scala | Tagged , , , , , , , , , | Leave a comment

Functional error handling in Scala

Functional error handling in Scala alvin February 13, 2017 – 11:08am Here are a few nice blog posts on functional error-handling in Scala: – Easing into functional error handling in Scala – How do I error handle thee? – Designing … Continue reading

Rate this:

Posted in java, Programming, Scala | Tagged , , | Leave a comment

Scala – type bounds notation for beginners

For beginners in Scala (like me) type bounds notation causes difficulty. I tried to write  short cheat sheet with Scala type bounds notation: Scala – type bounds notation for beginners

Rate this:

Posted in Scala | Tagged , , , , | Leave a comment

Void function as argument in Java and Scala

Simple example shows how to pass a function to a method. The function doesn’t have argument and doesn’t return a result.

Rate this:

Posted in java, Programming, Scala | Tagged , , , , , , | Leave a comment

Scala. Akka: HTTP server example

I wrote on Scala a simple HTTP server using Akka. The example demonstrates the usage of the low-level server side API. First release contains one example with using synchronous request handling. Example shows how to return HTML page from a file (static page). … Continue reading

Rate this:

Posted in Akka, Programming, Scala | Tagged , , , , | Leave a comment

Operators for Collections in Scala (v2)

Short reminder of operators for collections in the Scala, version 2. Previous version: Operators for Collections in Scala Operators for deleting and adding elements Operator Description Collection type coll :+ elem Adds elem element at the end of coll collection. … Continue reading

Rate this:

Posted in Programming, Scala | Tagged , , , | Leave a comment

Operators for Collections in Scala

Short reminder of operators for collections in the Scala: +   – adds an element into unordered collection +:  – adds an element at the beginning :+  – adds an element at the end ++  – joins two collections – and – –   – deletes an … Continue reading

Rate this:

Posted in Programming, Scala | Tagged , , , | 1 Comment

Traits–reminder

Short reminder about traits in Scala. When a class extends a trait, it uses the extends and with keywords based on whether the class extends one trait or several traits.

Rate this:

Posted in Programming, Scala | Tagged , , | Leave a comment

Scala Project in Eclipse

Assume you want use SBT and Eclipse to develop a project on Scala. This article describes main steps of creation an Eclipse project for Scala with using SBT.

Rate this:

Posted in Programming, Scala | Tagged , , , , | Leave a comment

Finite State Machine on Scala

Yes, another one Finite State Machine (FSM) on Scala! The best way studying a new language – to write simple real task. I chose FSM.

Rate this:

Posted in Programming, Scala | Tagged , , , , , , , , | Leave a comment