Archive for 'java'

When inheritance and mixins become a design issue

Posted on 09. Mar, 2011 by Guilherme Silveira.

0

One object, more than 300 public methods, 560 instance and 300 class or static methods. It is easy to see that those objects tipically present low cohesion, more than one responsibility, tight coupling and a huge interface. A pattern known as “God Class”. You can create them in Java using class inheritance, or in Ruby [...]

Continue Reading

REST and Web development: new VRaptor and Restfulie releases

Posted on 16. Feb, 2011 by Guilherme Silveira.

1

Since VRaptor 3 inception, the team has focused on good practices related to design issues such as “avoiding inheritance”, “ThreadLocal” and “public static mutable singletons”. Both releases keep their focus on design, less code, more results. In one of its latest releases, VRaptor had a performance enhancement of 60% according to Lucas benchmarks. In an [...]

Continue Reading

JAX-RS 2.0 – How to improve it

Posted on 18. Oct, 2010 by Guilherme Silveira.

2

During Javaone 2010 I was able to meet Paul Sandoz, take a deeper look into Jersey’s code, attend to a session on ideas for the the JAX-RS comittee have for the future and show some of our ideas from Vraptor 3 (server side) and Restfulie (client side). I wish JAX-RS 2 become the easiest and [...]

Continue Reading

Hypermedia and dependency injection: a lesson not to be forgotten

Posted on 01. Oct, 2010 by Guilherme Silveira.

2

Developers always desire to break their system into components, which typically comes with a tendency to identify those components by names. Well known unique identification is vital, one thinks With the Internet growing fast in the 21th century, distributed systems started to use URIs to identify components on the network instead of simple IDs. That [...]

Continue Reading

JavaEE 6: asynchronous contexts and Ajax push

Posted on 29. Sep, 2010 by Guilherme Silveira.

0

Backend developers requireing high scalability already know the no blocking IO tricks for a while: selector, poll and epoll in Linux, kqueue in MacOS and BSD, finally I/O Completion Ports in Windows. A Renato Lucindo session at QConSP touched questions and solutions that can be implemented using those ideas. Those standards and implementations are already [...]

Continue Reading

RESTEasy: Where did the hypermedia go to?

Posted on 03. Dec, 2009 by guilhermesilveira.

15

Some friends have asked what are the major differences between Restfulie and RESTEasy client frameworks. Strong coupling and hypermedia awareless As of today, Resteasy requires you to create an interface mapping every resource operation to a specific method, using @VerbName and @Path annotations to specify the desired target URI. RESTEasy is ignoring the power of [...]

Continue Reading

Restfulie Java: quit pretending, start using the web for real

Posted on 25. Nov, 2009 by guilhermesilveira.

5

Its time to release Restfulie Java, offering the same power encountered in its ruby release, through the use of dynamic bytecode generation and request interception using VRaptor. Serialization framework Restfulie adopts XStream by default. Its simple usage and configuration gets even easier due to vraptor’s serialization extension built upon XStream – but it allows the [...]

Continue Reading

Fractals in cloud computing with Google App Engine

Posted on 04. Sep, 2009 by guilhermesilveira.

0

While studying math methods as a minor in my applied math course, I had a mentor, Eduardo Colli, who helped me teaching the math requirements to implement a desktop based discrete dynamical systems software, Pulga. In the dynamical systems area – usually non-linears – people started talking about caothic behaviour of particles and one of [...]

Continue Reading

Dev in rio 2009

Posted on 28. Aug, 2009 by guilhermesilveira.

0

Some good friends from globo.com (Guilherme) and myfreecomm (Henrique) have invited two speakers from the Caelum team to talk about Java at this year’s Dev in Rio. Guilherme and Henrique will start the event monday morning and after that me and Nico Steppat will talk about how new modern languages (either dynamic, functional, more or [...]

Continue Reading

To break or not to break? Java 7?

Posted on 17. Aug, 2009 by guilhermesilveira.

1

There is a short slide show to illustrate some thoughts. There will be better ones in the near future. When is the right timing to break compatibility of a public api regarding its previous versions? Well, in the open source communites there is a common sense that a library is allowed to cause some migration [...]

Continue Reading