Secure, Flexible and Scalable Build Configuration with Maven

Categories:
Many of the projects I’m involved in use Maven as build system due to its reliability, widespread use, and flexibility. However, I often find myself hurdling around bad choices with regard to the build process. In this article I’d like to illustrate some of the most useful techniques to implement flexible, adaptable, and secure builds with Maven. Download the example project from GitHub Key requirements of an enterprise build Enterprise projects have demanding requirements when it comes to configuration and build management.

Read More →

Deploy React Applications in a Servlet Environment

Categories:
Modern web applications using React and other frameworks are often distributed as static websites. It is undoubtely the simplest, cache-friendly and dead-cheap solution. However, some enterprisey projects (think about data-entry and legacy business applications) need to be deployed in a constrained environment like a Java JEE Servlet Engine (Tomcat, Jetty, Resin) or a full-fledged Application Server (Weblogic, JBoss / WildFly, Websphere). Forget having your app deployed on a separate “lightweight” web server like Apache or Nginx, let alone a dedicated 3rd-level domain or IP address like frontend.

Read More →

Intellij Live Templates Javascript Development

Categories:
Update 2017-08-01 Updated “Behavior-Driven Development (BDD) and Test-Driven Development (TDD)” section, adding bddblock template I’m a IntelliJ IDEA user since late 2013. After a long (and not without problems) liaison with Eclipse IDE, and before that with the glorious Borland JBuilder, I wanted to try something new. Not that Eclipse was bad per se, it was just getting heavier and buggier release after release, and the plugin ecosystem wasn’t anymore something you could rely on.

Read More →

Simulare Il Carico Di Un Server Con Groovy Apache Commons Math E Jfreechart

Categories:
È ormai da un po’ di tempo che ho imparato a giocherellare con Groovy e devo dire che lo sto apprezzando ogni giorno di più. In questo articolo voglio mostrarvi come sia facile simulare, utilizzando Groovy e la libreria Apache Commons Math, i dati di carico tipici di un server che lavora 24⁄7, con tanto di picchi di lavoro durante le ore diurne. Due parole su Groovy A suo tempo mi misi a cercare un nuovo linguaggio di programmazione oltre a Java (non vi preoccupate, continuerò ad utilizzarlo per molto tempo ancora!

Read More →

BigDecimal and rounding modes

Categories:
After seeing the great success of introductory article on BigDecimal class I wanted to go on with some examples on one of the most complex operations: division. The problem… Is always the same: length :) BigDecimal, as already seen, can have an arbitrary number of decimal digits: this does not mean they can go to infinity, indeed we have at our disposal something like four billions digits, and counting. Not bad, you could argue… well let’s try this at home: how many computers are needed to store all the decimals of “1 / 3”?

Read More →