XML Feeds

.

[java-dev] Re: Re: Eclipse Weirdness

Mattijs Kneppers mattijs at smadsteck.nl
Thu Sep 6 03:20:56 MDT 2007


Quote: Ollie Bown wrote on Thu, 06 September 2007 11:11
----------------------------------------------------
> (currentTime < timeOfFirstCoffee && haveFlu) but my guess is the "if 
> (iReverseSound)" block should be outside the loop.

I would never format my code like this:

if(iReverseSound)
currScrollSpeed= -1* currScrollSpeed;
runningPosition+=currScrollSpeed;

but always like this:

if(iReverseSound) currScrollSpeed= -1* currScrollSpeed;
runningPosition+=currScrollSpeed;

or like this:

if(iReverseSound)
{
    currScrollSpeed= -1* currScrollSpeed;
}
runningPosition+=currScrollSpeed;

--
SmadSteck - http://www.smadsteck.nl
Hard- and software for interactive audiovisual sampling


More information about the java-dev mailing list