- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
<FONT size=5>Option Explicit On</FONT>
<FONT size=5>Option Strict On</FONT>
Admin
If you were a mathematician, you'd use a functional programming language, not an imperative one.
Since you aren't a mathematician, you like reading stories
Admin
I'm not a betting man. It has been years since I last contacted him, so I'm not even sure how to look it up. I recall it being Michelle, but my spelling is not good enough that I'd want to make a strong statement.
(In short, you could be right, but I'm sticking to my story)
Admin
Good points both :)
I also agree with Mr Former-president that gender/sex/whatever really doesn't matter much on fora these days. It's just amusing that there are still bastions of IT that are still male-dominated cultures. Kinda like the usenet of old - where you had to have a male-sounding handle or suffer constant harassment <snif> ;)
Luckily that no longer happens.
Given I do it myself...
Admin
My apologies if my post came across as criticism - that wasn't intended at all. To make this all a bit soppy - I'm happy that you're happy that women are posting too - so am I. :)
However I still find it funny that most people assume that the InterWeb is all guys... I even did it myself with your post and trust me I was pretty amused by that particular irony. Yes I know... small minds.
Admin
Well said [Y]
Admin
>Idunno... implementing short-circuit boolean evaluation as an unintuitive "AndAlso" seems pretty idiotic to me.<
Oh yes, compared to the fully intuitive && - can't beat lucidity like that!
/Mats
Admin
Actually, I'm surprised they didn't name the operator something like
"BitwiseAndWithShortCircuiting" <grin>
Admin
or,
if ((ICheckBoxControl c = FindControl(controlName) as ICheckBoxControl) != null)
c.Checked = true;
Admin
You are a wanker....
oh yeah, and I am being sarcastic.
Admin
be slightly simpler as:
Admin
Eh .NET uses the same foundation, CLR, compiler etc. - did you notice option strict at the top of C# code.
Admin
Have you been touched by His noodly appendage?
Admin
how about:
VB.NET: Option Explicit On Option Strict On Option Infer On
Dim thisControl = TryCast(FindControl(controlName), ICheckBoxControl) If thisControl IsNot Nothing Then thisControl.IsChecked = True End If
TryCast === as
C#
var thisControl = FindControl(controlName) as ICheckBoxControl; if (thisControl != null) { thisControl.IsChecked = true; }
I agree, the VB syntax is a bit verbose, but the language is actually mostly on a par with C# (comparing VB 11 with C# 5).
I was once part of an OSS project which implemented a C# <-> VB.NET code converter and no, a (completed) VB.NET to C# converter takes more effort than 30 mins... just saying...
Admin
acheter mГ©dicament en ligne sans ordonnance https://kamagraenligne.com/# pharmacies en ligne certifiГ©es