Development

Spring AOP Advice on Annotated Controllers

Spring AOP Advice on Annotated Controllers

Spring AOP (Aspect-oriented programming) framework is used to modularize cross-cutting concerns in aspects. If you want a more simple definition you can think of them as a Interceptor but with more options configurations possible.  In Spring there are two different constructs that get called “interceptors”. First, there are Handler Interceptors, which are part of the Spring MVC [...]

Round a number to 2 decimal places in Java

Round a number to 2 decimal places in Java

When we are working in a software project that uses numeric quantities and in with many different formats, such as financial applications, we have to deal with problems viewing these numbers. For example we can use the float type to represent a given concept non-monetary concept (for monetary concepts is preferable to use BigDecimal object), [...]

Software Engineering

Van Halen ‘s Brown M&M Clause: simple and genious.

Van Halen ‘s Brown M&M Clause: simple and genious.

Van Halen’s concert contracts famously (or, infamously) required that brown M&Ms be forbidden from the band’s dressing room. Image from  The Smoking Gun Some thought the demand eccentric or a clever loophole to slip out of a contract. The reality is a good reminder that we always need to dig deeper. The legend of the brown M&Ms clause is funny and [...]

Software architects: bad reputation in agile environments

Software architects: bad reputation in agile environments

Why people think that in a agile environment there couldn´t be software architects? Nowadays, it´s very common listen about agile development. In the article from Simmon Brown at Coding  The Architecture say: Agile undoubtedly has a number of benefits but it isn’t necessarily the silver bullet that everybody wants you to believe it is. As with [...]

Productivity

Job interview simulation

Job interview simulation

All the people know that one key to be succesfull in a job interview is be prepared for everything. In this aspect there are few things that you have to do: seek information on the net about the company, ask collegues and friends if they know the company, make a brief about the posible questions [...]

To think about the chains

To think about the chains

Because a picture is more valueable than a thousand words… This resource has been translated from HUMOR INDIGNADO 100%

Java

Spring AOP Advice on Annotated Controllers

Spring AOP Advice on Annotated Controllers

Spring AOP (Aspect-oriented programming) framework is used to modularize cross-cutting concerns in aspects. If you want a more simple definition you can think of them as a Interceptor but with more options configurations possible.  In Spring there are two different constructs that get called “interceptors”. First, there are Handler Interceptors, which are part of the Spring MVC [...]

Round a number to 2 decimal places in Java

Round a number to 2 decimal places in Java

When we are working in a software project that uses numeric quantities and in with many different formats, such as financial applications, we have to deal with problems viewing these numbers. For example we can use the float type to represent a given concept non-monetary concept (for monetary concepts is preferable to use BigDecimal object), [...]

Other Recent Posts

The method getTextContent() is undefined for the type Node

The method getTextContent() is undefined for the type Node

| May 3, 2012 | 6 Comments

The method getTextContent() is undefined for the type Node You can get this kind of error when your develop a system that use xml manipulation using library xml-apis. If you try to find a solution by a search in google you can find solutions like: org.w3c.dom.Node.getTextContent() is only available as of Java 1.5 But, you [...]

Continue Reading

Use separate folder from apache to develop with PHP

Use separate folder from apache to develop with PHP

| April 29, 2012 | 2 Comments

Most of php developers use in their local environments a configuration similar to: Apache + PHP + Mysql. It´s very common the use of integrated solutions such us XAMPP. IDE such us Eclipse (eclipse PDT), Zend Studio,etc.. A debugger: Zend Debugger is the most recommended.   Install XAMPP (or similar solutions) and the IDE is [...]

Continue Reading