I’m promise last week to write about the Spring framework the last version 3.0, base on the NYC’s java meet up talk by Mark Pollack who is a Springsource insider. But looking my notes and the website I found a  blog entry from Juergen Hollen, another SpringSource fellow that can give us an overview about Spring Framework 3.0 in a more detailed way.

I hate to write things that wouldn’t create new ideas to the community, so if you want to know what’s new on Spring 3.0, check the official Springsource entry HERE, and even better give these new features a try. I’m doing some tests with the REST support, it’s really simple but I have the feeling that its more oriented to Spring MVC users than a separate module inside Spring.

In my opinion, knowing Spring it’s a valuable tool for Java (and .NET) developers, the framework can help you to reduce development time and complexity, gives you more control over configuration (annotations over xml files) and surely it will give an advantage when you look for a new position.

In other news, Amazon have a new Kindle development program, I’m still not sure what type of applications could be potentially successful for the device, even I don’t have kindle (yet?).  But it’s worthy to give it a try; I’m start seeing a lot of kindles in the NYC subway lately.

{ 0 comments }

Last week’s Java meetup in NYC brought to great speakers, first Timothy Fagan, talking about Java best practices and later Mark Pollack from Spring source gave us an overview about what’s new on Spring 3.0

The talk about Java best practices wasn’t something new, but it was a nice reminder about the basics things you as a developer should have in mind when write software; here we have some rants:

Who’s your real audience:

  • The compiler: well, if the compiler throws errors and warnings, obviously it doesn’t understand what you are trying to code. Sometimes your IDE will help you to make your code more “compiler friendly”, but this is the most important audience you need to talk to… if not, your software would never see the light.
  • You: I agree with this point, lot of many times I’ve returned after some months to an old code and I cannot believe I wrote it.
  • The fellow maintenance developer: Most of the time, you are not the developer that would maintain the software and probably you won’t be able for the maintenance developer, therefore, don’t make a fellow developer to hate you in the distance.

Indeed, the first steps to write friendly code are:

Use naming standards and be logical: Java have conventions about how to write classes, variables and methods; spend some time reading the documentation , also some companies have their own specific standards and write names that reflect the intention of the code. Like:

int clientSize=10

instead of

int i=10

And please don’t be evil, I’ve saw code like this before (no kidding):

boolean _true=false;

Use the language helpers: Simple, start using generics, annotations,auto-boxing and new methods/classes from your java version. Sadly, the companies upgrade the Java versions, but don’t upgrade the Java code itself, my humble advice try to refactor some classes to start learning the new tricks. You can be totally sure your code will be faster also.

Comment your code: Big discussion here, basically we have to points of view, comment as much as necessary to let the others know your intentions, or don’t write comments but make your code already understandable using good naming conventions, short methods, patterns, unit testing, annotations and assertions*.

*(assertions would make your comments executable, and you can turn them on/off depending the environments BUT remember to be careful with this property on production instances, you never want to show them to the final user).

Thats all for today, I have to take the train now (The N line is getting crowd lately). I hope this points would make you think about your code wisely. As I said before, there is nothing new here, but it’s a nice reminder.

next post, the new features in spring 3.0

{ 0 comments }

2010 CFQ Goals Challenge.

January 16, 2010

It’s going to be 9 months since I drop out the regular gym and joined the Queens Crossfit guys, and today we started a 12 weeks challenge, the idea is pretty simple, chose your three goals, write a plan to acomplish them and put 30 dollars in the buck, those three participants that make the [...]

Read the full article →

Amazon recommends… Arabic.

October 8, 2009
Thumbnail image for Amazon recommends…  Arabic.

Here is the last amazon recommendation I’ve got in my email:
“As someone who has purchased or rated Regular Expression Pocket Reference Regular Expressions for Perl, Ruby, PHP, Python, C, Java and .NET (Pocket Reference (O’Reilly)) : by Tony Stubblebine or other books in the APIs & Operating Environments > Unicode category, you might like to [...]

Read the full article →

Tonight is fight gone bad 4

September 23, 2009

The Rules for Fight Gone Bad
In this workout you spend one minute at each of five stations, resulting in a a five-minute round after which a one-minute break is allowed before repeating. This event calls for three rounds. The clock does not reset or stop between exercises. On call of ‘rotate,’ the athletes must move [...]

Read the full article →

Book Review: The Passionate Programmer.

August 29, 2009
Thumbnail image for Book Review: The Passionate Programmer.

I have to confess I enjoy more reading “books about programming” than “programing books, I love to nod every time the author talks about problems I had before in projects or about people attitudes I found everyday in the development world, hence this book title was eye candy to me.
This book is the second edition [...]

Read the full article →

Wolfram|Alpha and the answer of the universe.

June 8, 2009

A couple of weeks ago, I gave a try to Wolpram|Alpha (by Wolfram Research, the same guys from ‘Mathematica’ software),  thinking that it would be another ‘Google killer’ with low possibilities to survive, but after my first round of questions… wait… there is something good here.
WA is not about indexing pages and bring links, its [...]

Read the full article →

Happy Memorial day.

May 25, 2009

It’s not oficially summer yet, but this weekend weather (at least in New York) is giving people that summer feeling of beaches, BBQ’s and air conditioners everywhere around.
But some people doesn’t know exactly what we celebrate in memorial day, I’ve asked some friends and some answer me, “ohh sure… it’s something about the military or [...]

Read the full article →

Crazy (and addicitve) drops

January 24, 2009

Some months ago I started to perceive some misterious Gtalk status messages from my friend Chiky, talking about “Crazy drops”, I didn’t ask what was it about, but I could smell that something funny was being cook in my friends mind.
Two weeks ago I finally realized what was crazy drops about, it is an [...]

Read the full article →

Blog Action day

October 15, 2008

Can you do something against poverty? anything no matter how small… just for today.
blogactionday.org

Read the full article →