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

Shamil Salakhetdinov shamil at smsconsulting.spb.ru
Tue Mar 16 07:01:55 CDT 2010


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  {^;^}

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo
Sent: Tuesday, March 16, 2010 2:21 PM
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

>Why ("apart from masochistic tendencies") does people use arithmetic and
mathematic symbols?

because that is the language of mathematics and similarly for chemistry,
etc.  Using these symbols is universally recognised for this particular
subject matter.  There is ONE language for chemistry and the whole World
uses it.  And similarly for other specialised subject areas.

curly brackets are NOT the language of coding and do nothing to enhance
readability or understanding of what the code is trying to do.  To
understand what the code is doing it is necessary to read the code BETWEEN
the obfuscation caused by sprinkling meaningless symbols all over it.  Take
the words out of the code and you do not have code. Take the curly brackets
out of the code and you are still left with code - albeit not code that will
run in a curly bracket compiler.

max



On 16 March 2010 11:04, Shamil Salakhetdinov
<shamil at smsconsulting.spb.ru>wrote:

> OK, Max :)
>
> Yes, I know there is no way to "even remotely convince" you that C# is one
> of the best (the best IMO) examples of "clarity, relevance, accuracy and
> brevity" for general purpose programming languages. And so I didn't try to
> convince you - I just expressed my opinion here.
>
> You might try to use netCOBOL:
> http://www.netcobol.com/products/Fujitsu-NetCOBOL-for-.NET/overview
>
> Thank you.
>
> --Shamil
>
> P.S.
> <<<
> why (apart from masochistic tendencies) would
> anybody go for non-plain language coding?
> >>>
> Why ("apart from masochistic tendencies") does people use arithmetic and
> mathematic symbols?
>

<<< snip >>>




More information about the dba-VB mailing list