RE: @the project developer: minor improvements,tidy sourcecode

"Christian Cryder" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.