Click here to Skip to main content
15,920,633 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Self-directed learning Pin
jhoga11-Dec-14 11:50
jhoga11-Dec-14 11:50 
GeneralRe: Self-directed learning Pin
BiggerDon12-Dec-14 8:29
BiggerDon12-Dec-14 8:29 
GeneralRe: Self-directed learning Pin
KarstenK10-Dec-14 4:24
mveKarstenK10-Dec-14 4:24 
GeneralRe: Self-directed learning Pin
OriginalGriff10-Dec-14 4:33
mveOriginalGriff10-Dec-14 4:33 
GeneralRe: Self-directed learning Pin
BiggerDon10-Dec-14 7:58
BiggerDon10-Dec-14 7:58 
GeneralRe: Self-directed learning Pin
OriginalGriff10-Dec-14 8:26
mveOriginalGriff10-Dec-14 8:26 
GeneralRe: Self-directed learning Pin
Fabio Franco10-Dec-14 23:22
professionalFabio Franco10-Dec-14 23:22 
GeneralRe: Self-directed learning Pin
BiggerDon11-Dec-14 3:36
BiggerDon11-Dec-14 3:36 
OriginalGriff wrote:
What I'm talking about is things like this:

VB
If a = b Then
   DoSomething()
End If
Instead of

C#
if (a == b) DoSomething();

Ah, but this is valid in VBA (can't speak for VB with the A)
If a= b then DoSomething() 

The "Then" is necessary but the End If only when more than one command follows. I find it neither better nor worse that using "{}" to establish the boundaries of the If (or Else) scoped commands. Just a different way of saying the same thing.

Me, I tend to use the End If whether there is one command or multiple. It makes it easier for me to find where I have left one out when the compiler complains.
OriginalGriff wrote:
Let's just say it's a lot easier to write total cr@p in VB than it is in C# and get it through the compiler to bite you at run time! Laugh | :laugh:

That reminds me of a study around the time when PCs and Apples were first around. The study claimed the papers written on the PCs were of higher quality supposedly because the students with the Apples had less experience with working through detailed issues.

...and something else, "We learn from our mistakes then make bigger and better ones." I'm convinced there is no such thing as and idiot-proof language. There are so many human and social factors that go into developing an application of any size, discipline is always the first defense against nonsense.

As to the need for having "==" (or "===" as in java script) as a comparator, I'm not sold on it. Not opposed, just not convinced and don't care enough one way or another to make a case for or against. Like I said before, it's all in the practicality to me: what does the compiler expect.
cat fud heer

GeneralRe: Self-directed learning Pin
OriginalGriff11-Dec-14 3:54
mveOriginalGriff11-Dec-14 3:54 
GeneralRe: Self-directed learning Pin
BiggerDon11-Dec-14 6:19
BiggerDon11-Dec-14 6:19 
GeneralRe: Self-directed learning Pin
Brady Kelly10-Dec-14 4:55
Brady Kelly10-Dec-14 4:55 
GeneralRe: Self-directed learning Pin
BiggerDon10-Dec-14 8:15
BiggerDon10-Dec-14 8:15 
GeneralRe: Self-directed learning Pin
Brady Kelly10-Dec-14 9:35
Brady Kelly10-Dec-14 9:35 
GeneralRe: Self-directed learning Pin
BiggerDon11-Dec-14 4:39
BiggerDon11-Dec-14 4:39 
GeneralRe: Self-directed learning Pin
BiggerDon10-Dec-14 5:46
BiggerDon10-Dec-14 5:46 
GeneralRe: Self-directed learning Pin
Marc Clifton10-Dec-14 4:30
mvaMarc Clifton10-Dec-14 4:30 
GeneralRe: Self-directed learning Pin
newton.saber10-Dec-14 5:10
newton.saber10-Dec-14 5:10 
GeneralRe: Self-directed learning Pin
BiggerDon10-Dec-14 8:49
BiggerDon10-Dec-14 8:49 
GeneralRe: Self-directed learning Pin
Marc Clifton10-Dec-14 9:12
mvaMarc Clifton10-Dec-14 9:12 
GeneralRe: Self-directed learning Pin
BiggerDon11-Dec-14 4:13
BiggerDon11-Dec-14 4:13 
GeneralRe: Self-directed learning Pin
Simon O'Riordan from UK10-Dec-14 20:32
Simon O'Riordan from UK10-Dec-14 20:32 
GeneralRe: Self-directed learning Pin
BiggerDon11-Dec-14 5:07
BiggerDon11-Dec-14 5:07 
GeneralRe: Self-directed learning Pin
Fabio Franco10-Dec-14 23:42
professionalFabio Franco10-Dec-14 23:42 
GeneralRe: Self-directed learning Pin
BiggerDon11-Dec-14 4:21
BiggerDon11-Dec-14 4:21 
GeneralRe: Self-directed learning Pin
Fabio Franco11-Dec-14 4:52
professionalFabio Franco11-Dec-14 4:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.