Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
- To: MLUG Members <EMAIL:PROTECTED>
- Subject: Re: [MLUG] Quick programming question on style
- From: Mark Rages <EMAIL:PROTECTED>
- Date: Fri, 3 Jun 2005 11:21:15 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PRrCDTPHpMF7m8KperOelnzs6q49623a8n9EMz7yP46C9DIFFkOxQSyL2s6Od6cRi25/mmRrDrcNex1nSGLAXeblaRZKcGFAATeMHSH3ULoCVaceR7LqUJypU2ArP4ZOBNWHfwwBeDHGdXAcNWJ7XlPRVD3wa2QJFrxAuVNMlCA=
- In-reply-to: <EMAIL:PROTECTED>
- References: <EMAIL:PROTECTED>
- Reply-to: Mark Rages <EMAIL:PROTECTED>, MLUG Members <EMAIL:PROTECTED>
- Sender: EMAIL:PROTECTED
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