Alexandre said:
I found this interesting let me know what you all think
http://www.sys-con.com/story/?storyid=49040
Hi Alexandre.
I think that was a pretty weak article. He makes it all about personal
opinion.
According to research in the field of cognition and information theory, he
is simply wrong.
Claiming that VB and Pascal syntax is just a matter of style when compared
to languages like C# and Java is not true when you consider how our brains
work. it goes something like this:
We humans works that we are bobarded with information all the time and we
filter and recognize stuff in our presence in a identification process based
on type, identity and value.In that order. This make us act. Most of this
processing is done unconciously and we seldom think about the process
itself. A couple of simple examples:
1. I see something moving across the street. It is a bird. I can't tell that
bird from any other bird. The bird is of no value to me. Ignore it.
2. I see something enourmous in the street. It is a bus. It is labeled 42.
That's the bus I need to ride if I want to make it to my meeting in time.
RUN!
3. I see something in my bed. It is a girl. It is my girlfriend. I love her.
*snuggle*
So what does this got do do with programming languages? Well consider a C#
assignment:
int index = 5;
This is written in a order that is comfortable for the brain. What is it?
it's an integer. 'Who' is it? Oh, it's index. What is it's value? Five.
Now consider VB and pascal.
dim index as integer = 5
var
index: integer;
In the vb-example things are really out of order. the dim keyword is the
action. then we got identity. it's type is crammed in the middle while only
the value is in the order in which we think.
Now here is the point. When we use programming languages that is out of
order, more mental energy is spent on just understanding what we see and
less on what to do. This is followed by the argument that we do more silly
mistakes in VB and Pascal than in C# and Java.
My personal experience is that this is true. I do most my code in C# and
Delphi and some of it in VB6 and VB.NET. I get more easily tired reading
basic than c-style languages.
Regards
- Michael S