[dba-VB] Recent Discussion from MS on VB.Net and C# in VS 2010

Dan Waters dwaters at usinternet.com
Tue Mar 16 07:40:35 CDT 2010


Public Dan Response()

    If I could write a mathematical algorithm that worked without using
    parentheses, I would, and so would everyone else.

    Fortunately, I can write code without them.

End Dan



-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby
Sent: Tuesday, March 16, 2010 7:21 AM
To: Discussion concerning Visual Basic and related programming issues.
Subject: Re: [dba-VB] Recent Discussion from MS on VB.Net and C# in VS 2010

LOL.  It is amazing to me that everyone on this list never thinks a thing
about using parenthesis to 
group mathematics for readability and to specify execution order and yet we
have people bitching and 
moaning about a programming language that does the EXACT same thing!

;)

(X + Y) * (z^2-3)

Who in their right minds would WANT

begin  X+1 end * begin x^2 -3 end

Which is the more readable?

In the end it is all about comfort level.  People (me included) don't want
to have to take the time 
and effort to learn a new way.

I am making the effort and I am happy I am, and it is a waste of time and
breath to continue this 
conversation further.  Do I really care whether Max (or anyone else) wants
to do the same?

John W. Colby
www.ColbyConsulting.com


Shamil Salakhetdinov wrote:
> OK, Max :)
> 
> Not trying to convince you (:)) just noting that curly brackets do enhance
> code readability, make it unambiguous, clear, relevant, accurate and as
> brief as possible - all using just two generic (helping hands) symbols -
'{'
> and '}' . And in most of the cases curly brackets are inalienable
> (indefeasible, integral, essential) part of the code - remove them and
code
> blocks will become ambiguous...
> 
> Programming languages do come from mathematics, and therefore (IMO just
IMO)
> using special symbols to keep a programming language syntax as concise and
> as unambiguous as possible is a good and productive idea...
> 
> And in VB(A)(.NET) one have to use the whole set of (natural language)
> substitutes:
> 
> - Namespace ... End Namespace
> - Module ... End Module
> - Class ... End Class
> - Sub ... End Sub
> - Function ... End Function
> - For ... Next
> - While ... End While
> - If .... Then ... End If
> - ...
> 
> 
> Thank you.
> 
> --
> Shamil  {^;^}

_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com




More information about the dba-VB mailing list