aspose file tools*
The moose likes Agile and Other Processes and the fly likes What is your view on frameworks like Spring that reduces.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Agile and Other Processes
Bookmark "What is your view on frameworks like Spring that reduces...." Watch "What is your view on frameworks like Spring that reduces...." New topic
Author

What is your view on frameworks like Spring that reduces....

arulk pillai
Author
Ranch Hand

Joined: May 31, 2007
Posts: 3248
What is your view on frameworks like Spring that reduce the amount of code and promote best practices and consistent approach to development?

Another typical example would be using Apache's commons code (e.g StringUtils, MapUtils, EqualBuilder, HashcodeBuilder, BeanComparator, Validate, etc) as opposed to reinventing the wheel.
[ September 24, 2008: Message edited by: arulk pillai ]

500+ Java Interview Questions and Answers | Java job hunting know how & Java resumes
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 467
I believe that spring (and the like) promote cleaner code a little in a way where you reduce the amount of code you write, but even with it, you can do a lot of bad things, like non descriptive names, really long methods, huge number of arguments given to one method, bad formatting, etc.

Spring promotes best practices in the architecture sense (which helps a little with cleaner code), but not in the coding style sense


Visit my blog: http://jnassef.blogspot.com/
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Personally, I use Jakarta Commons a lot. It's typically high quality. In fact I think that many of the things they do should actually be part of the original Java API - and you wouldn't write your own LinkedList either, would you?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
arulk pillai
Author
Ranch Hand

Joined: May 31, 2007
Posts: 3248
Originally posted by Ilja Preuss:
Personally, I use Jakarta Commons a lot. It's typically high quality. In fact I think that many of the things they do should actually be part of the original Java API - and you wouldn't write your own LinkedList either, would you?


Couldn't agree more.
Jeff Langr
author
Ranch Hand

Joined: May 14, 2003
Posts: 762
Originally posted by arulk pillai:
What is your view on frameworks like Spring that reduce the amount of code and promote best practices and consistent approach to development


I don't think you can say much against such frameworks. Still, the best thing is always to ensure that you do not have pervasive dependencies on them. A good thing to always ask is, "if we needed to replace this framework, how much work would it be? Could we do so in a single iteration?"

I remember a lot of work for people who sprinkled dependencies on classes from java.sql, when they wanted to change over to Hibernate.

Jeff
[ September 25, 2008: Message edited by: Jeff Langr ]

Books: Agile Java, Modern C++ Programming with TDD, Essential Java Style, Agile in a Flash. Contributor, Clean Code.
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 467
I totally agree with Jeff on that
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is your view on frameworks like Spring that reduces....