Re: @the project developer: minor improvements,tidy sourcecode
Shawn Wilson <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
> Yeah, we need to clean things up. I'm hoping to do some of that over the > Christmas break here soon. There's actually a lot of miscellaneous > housecleaning that needs to be done... We have Checkstyle (http://checkstyle.sf.net) set up here but so far we haven't been actively checking the source with it. It integrates nicely with Ant and is very configurable; the only complaint I have is that if the author didn't anticipate your particular coding style quirk then you may have problems. Has anyone used Checkstyle before but found something better? > As far as the import stuff goes, Shawn found a real nifty ant utility that > we have been using on our own internal projects here...that would probably > be the easiest way to do it. The name is CleanImports (http://cleanimports.tombrus.nl) and it really does work wonderfully. It is very configurable and will clean as well as organize your imports (grouping them into specific categories based on pattern matching, etc). So if we ever decide to use these utilities with Barracuda it should be fairly simple to setup since we already have them incorporated into our build.xml file. -shawn Christian Cryder wrote: > Hi guys, > > >>(Unused imports, variables declared but never used/variables set but >>never used, etc) >> >>Been meaning to ask Christian and Jake about those.... >> >>While we are on the topic of cleaning up the source code. >>How about cleaning up all the commented out code? > > > Yeah, we need to clean things up. I'm hoping to do some of that over the > Christmas break here soon. There's actually a lot of miscellaneous > housecleaning that needs to be done... > > As far as the import stuff goes, Shawn found a real nifty ant utility that > we have been using on our own internal projects here...that would probably > be the easiest way to do it. > > Regarding cvs access, Thorsten, I would love to see you become a > committer...BUT! first, we need get comfortable with your design and coding > skills. So the best way to get promoted to committer status is to continue > to do exactly what you've already started: write patches and submit them to > the list (I'll look at yours from yesterday later tonight). Unlike some open > source projects, we tend to be fairly conservative in handing out cvs > access; this approach has served us well, however, in that it keeps the > quality of the code getting committed very high (because we know that > everything going in is being studied by at least one set of eyes that is > quite knowledge in Barracuda) - its made for a very stable framework over > the years. > > So I hope that doesn't discourage you in any ways - I'm actually very > excited to hear of your interest; so let me just encourage you to keep > submitting patches and committer priviledges will follow accordingly. > > Cheers, > Christian > ---------------------------------------------- > Christian Cryder > Internet Architect, ATMReports.com > Project Chair, BarracudaMVC - http://barracudamvc.org > ---------------------------------------------- > "Coffee? I could quit anytime, just not today" > > > >>-----Original Message----- >>From: [email protected] >>[mailto:[email protected]]On Behalf Of Kirk Daries >>Sent: Thursday, November 20, 2003 2:43 AM >>To: [email protected] >>Subject: Re: [Barracuda] @the project developer: minor improvements,tidy >>sourcecode >> >> >>Yeah, >> >>Been using IntelliJ IDEA the last 6 months. Cool IDE! ;) >> >>It also picked up those little niggles. >>(Unused imports, variables declared but never used/variables set but >>never used, etc) >> >>Been meaning to ask Christian and Jake about those.... >> >>While we are on the topic of cleaning up the source code. >>How about cleaning up all the commented out code? >> >>I know Christian if an advocate of just keeping the code there so one >>doesn't have to >>dive into CVS to look at previous versions. I'm all for that. But for >>classes that haven't changed at all >>over the past year... I'd think it safe to clean out those >>commented-out code. >> >>Also, >>I've noticed some cool java utilities out there that scan's java source >>code against a set >>coding standard and then reports on which classes fail with a reason >>etc etc. >> >>Things like that will not only make for more readable code, but will >>also make things easier for newbies who >>dive into the Barracuda code. >> >>Urrm.... Just some thoughts. >> >>Regards >>KD >> >> >> >>>>>[email protected] 2003/11/19 21:43:02 >>> >> >>Hi, >> >>I've made some small improvements: >> >>1. The thread in DefaultEventPool has now a name (useful inside >>debugger to >>identify threads). >>2. ListValidator now validates any instance of java.util.List instead >>of >>only ArrayList before. >> >>Since the changes do not alter specifications (ListValidator is >>backward >>compatible) it should be no risk to apply them to the CVS head. On the >>attachement you will find the patches. >> >>The second thing is a "bit" more extensive ;-) >>First, some words about the background: I use Eclipse as my >>development >>environment. I configured the compiler settings to tell unused >>imports, >>never read variables, and so on. After I checked out the CVS head I >>realized >>that the sourcecode is full of unused imports (nearly any class), never >>read >>variables are here and there too. It would be around 5 clicks away to >>tidy >>this (Eclipse has a function "organize imports"). Also the unused >>variables >>could be comment out. But then I should have CVS commit rights to >>update the >>classes. >>I would be very pleased if I'am welcome as a new contributor. If you >>have >>more questions on me before, feel free to ask. For the moment I can >>tell >>just two things: "the Servlet Spec is pasted one the inside of my >>eyeballs" >>(quote which I found on Jakarta site) but my english is not the best >>because >>it's not my mother tongue. >> >> >>Regards, >>Thorsten >>_______________________________________________ >>Barracuda mailing list >>[email protected] >>http://barracudamvc.org/lists/listinfo/barracuda > > > _______________________________________________ > Barracuda mailing list > [email protected] > http://barracudamvc.org/lists/listinfo/barracuda