Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] Coding Paradox!

Hi,

I've been in the mailing list for more then 1 year & remain Aspect Oriented for my last two projects.

Just come across something, which I cudn't resist, to Post.

There is a popular mathematical paradox known as "Russell's Paradox" which states
"A male barber who shaves daily every man who does not shave himself, and no one else".
Then, Does the Barber shave himself?

-If the barber does not shave himself, he must abide by the rule and shave himself.
-If he does shave himself, according to the rule he will not shave himself.

So my paradox relates to Coding Standards which states
"There should be a one-line-gap between two 'If' statements & no-gap-at-all inside the 'If' statement.

Then how will I write a nested IF statement??

        If(condition)
        If(condition)
           LogicLine1
           LogicLine2
    
   (Wrong cus of One-line-gap rule & right for no-gap-at-all rule)

        If(condition)

        If(condition)
           LogicLine1
           LogicLine2
   (Right cus of One-line-gap rule & wrong for no-gap-at-all rule)              

Any Thoughts???

Thanks&Regards
Subas Ch. Mahapatra
Software Design Engineer
Bangalore, INDIA

(P.S. Sorry for posting the wrong message in the right thread.)


http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at netadmin@xxxxxxxxx and delete this mail.
_____________________________________________________________________

Back to the top