MLUG: Re: [MLUG] Quick programming question on style
Re: [MLUG] Quick programming question on style
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On 6/3/05, McIntosh Jason <EMAIL:PROTECTED> wrote:
> Had to drop an email and ask about this.
> 
> If you, as a programmer, see something like the following - is it bad, good,
> "spaghetti", ignore it, or what?
> 
> ----------
> 
> if (mydate.save())
> {
> }else {
> }
> -----------
> 
> and I do mean the above literally.  NOTHING inside of the if statement, just
> the if statement running a method.  Thoughts on this?

That's bizarre.

I don't think it's good style to clutter the screen with stuff that
does nothing.

Some programmers (or their editors) type that whole sequence when they
begin an 'if' block, and then fill it in.  That saves a "stack level"
in the brain because you don't have to remember to close the block. 
To such a progammer, it would just look incomplete.

Regards,
Mark
EMAIL:PROTECTED

-- 
You think that it is a secret, but it never has been one.
  - fortune cookie

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members