Illogical Logic
-
Its just as well we have a logic object here, as the programmer's grasp obviously leaves something to be desired.
If logic.doLogic(sender, "Update") Then flushMessages(sender.Page) Else flushMessages(sender.Page) Exit Sub End If
I should qualify, (before someone points it out) that this is at the end of the containing method, so the Exit Sub was redundant)
-
Its just as well we have a logic object here, as the programmer's grasp obviously leaves something to be desired.
If logic.doLogic(sender, "Update") Then flushMessages(sender.Page) Else flushMessages(sender.Page) Exit Sub End If
I should qualify, (before someone points it out) that this is at the end of the containing method, so the Exit Sub was redundant)
Pehaps the original coder thought
If not logic.doLogic(sender, "Update") Then
Exit Sub
End Ifwould mean his code is not logical, because of the
Not logic
statement :laugh:Sort of a cross between Lawrence of Arabia and Dilbert.[^]
-Or-
A Dead ringer for Kate Winslett[^] -
Its just as well we have a logic object here, as the programmer's grasp obviously leaves something to be desired.
If logic.doLogic(sender, "Update") Then flushMessages(sender.Page) Else flushMessages(sender.Page) Exit Sub End If
I should qualify, (before someone points it out) that this is at the end of the containing method, so the Exit Sub was redundant)
-
Not the first horror of this type. I think that VB .NET programmers miss a
RegardlessOf
keyword. Usage:RegardlessOf boolean-expression
a code block which is always executed
End RegardlessOfGreetings - Jacek
-
A "whenever" keyword? What, is that for even simpler declaration of event handlers than VB already has?
-
I used a wrong word, it should be "regardless". I knew that sth was not right, thanks.
Greetings - Jacek
IMHO RegardlessOf is a very good choice you made. Especially when it's syntax would be
RegardlessOf( condition ){ ... }
Cheers!"With sufficient thrust, pigs fly just fine."
Ross Callon, The Twelve Networking Truths, RFC1925
-
Not the first horror of this type. I think that VB .NET programmers miss a
RegardlessOf
keyword. Usage:RegardlessOf boolean-expression
a code block which is always executed
End RegardlessOfGreetings - Jacek
I'm lovin' it! Put it right next to DoNothingWithThese(variable parameters). :laugh:
'As programmers go, I'm fairly social. Which still means I'm a borderline sociopath by normal standards.' Jeff Atwood 'I'm French! Why do you think I've got this outrrrrageous accent?' Monty Python and the Holy Grail
-
IMHO RegardlessOf is a very good choice you made. Especially when it's syntax would be
RegardlessOf( condition ){ ... }
Cheers!"With sufficient thrust, pigs fly just fine."
Ross Callon, The Twelve Networking Truths, RFC1925
-
I'm lovin' it! Put it right next to DoNothingWithThese(variable parameters). :laugh:
'As programmers go, I'm fairly social. Which still means I'm a borderline sociopath by normal standards.' Jeff Atwood 'I'm French! Why do you think I've got this outrrrrageous accent?' Monty Python and the Holy Grail