java

?FileSystem is faster than RAM [under your Operating System]

I am studying Apache Kafka (a “distributed streaming platform”) and I stubled upon this conclusion: the “disk read fear” a lot of projects have in the past, is a fake. A lot of distributed database started tutorial with the statement “disk read are slow, write are fast” which is true to some extent, and accounted …

?FileSystem is faster than RAM [under your Operating System] Read More »

Vjdbc

Vjdbc is a remote access for JDBC-Datasources developed more then ten years ago (last news are from 2007, with last comit from 2013. The project was migrated to Maven 3, but the code base is very old. I decided to give it a try, spin a github repository and started working on it, because you …

Vjdbc Read More »

Kotlin

Language based on JVM are the new trend in Java World. It seems everyone dislike Oracle on these days. Kotlin score some point on these days because it will be supported officially on Android (Mid-May announce): Starting now, Android Studio 3.0 ships with Kotlin out of the box, meaning Android developers no longer need to install …

Kotlin Read More »

I am smarter syndrome

Sometimes in University I found bold young guy saying something like: I will reimplement this in machine language because is faster I will reimplement this xyz C function by my own My program crash, I think there is a bug in HP UNIX socket implementation I will ge rid of this Java Garbage Collector because …

I am smarter syndrome Read More »

Il saggio progetto svedese, rinato: Elixir e Phoenix

Negli ultimi 20 anni sono successe tante cose imprevedibili. Nel 1995 nasce Java. Nello stesso periodo nasce Erlang. Java inizialmente segue la strada culturale tracciata da Sun, e si configura come un linguaggio estremamente verboso, con API specifiche per la gestione della concorrenza (es keyword synchronized per gestire nativamente le zone critiche che necessitano di …

Il saggio progetto svedese, rinato: Elixir e Phoenix Read More »

Axis2 Debugging options

Web service interoperability is a nightmare. But it is easy to understand what is going on: just enable debugging! On Axis2, you can do it with the folowing java options… [bash] -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.simplelog.showdatetime=true -Dorg.apache.commons.logging.simplelog.log.httpclient.wire=debug -Dorg.apache.commons.logging.simplelog.log.org.apache.commons.httpclient=debug [/bash]

Spring Testing Survival guide

If you have an application with thousand of beans, you must do unit testing but…Spring testing is boring, belive me. A very complex Spring application usually have a lot of dependency: I had to manage over 3000 beans definitions in a production project right now. Sometimes you want only to test a bit of it, …

Spring Testing Survival guide Read More »

Tool Command Language: il papa’ di Java

E’ notizia fresca di stampa il rilascio di Tcl 8.6, che introduce parecchie novità a dispetto del fatto che sia una “minor” release.   In particolatre Tcl 8.6 introduce un motore “stackless”, integra nel linguaggio le estensioni OOP, ed aggiunge le coroutine. Parliamo quindi diffusamente di Tcl, un linuaggio che ho sempre trascurato perché mi sembrava …

Tool Command Language: il papa’ di Java Read More »

I hate XML, but now less then before thanks to SimpleXMLParser

I admit it: I hate xml square brackets dancing orgy, even in Java. Anyway, all is xml-ized around me. So in 2006 I developed a small XML parser based on SAX. It was a shitty dirty code for JDK 1.4 which let you parse xml stuff defining a method and forgetting about selectors, XPath,  XWing, Tie …

I hate XML, but now less then before thanks to SimpleXMLParser Read More »

Functional Programming

Because of the success of my article on java closure, I have decided to write another article on functional programming. In the last year functional programming is waving back to us, for a lot of reason. Let’s summarize the facts: Functional programming is based on the core concept of pure function. The main advantages of …

Functional Programming Read More »