C
Curious
I have a colleague who used to program in S-PLUS. My impression about
S-PLUS is that it's based on matrix calculations and consumes a lot of
memory. It takes a long time to run a small program in S-PLUS.
Now he wants to learn C# in order to speed things up. He simply uses
Array in C#.NET (to resemble matrix in S-PLUS). He refers to
everything in the Array by indexes, i.e., integer numbers. It seems
fairly abstract.
I asked him to use objects and ArrayList. He is not used to the
concept of object-oriented programming. So he sticks to the Array with
those indexes. Each time when he asks me to help debug, it's a
headache because I have to remember the indexes that reference to
different things. All meaningless numbers pointed to by indexes.
A question for you folks: Is it a good idea to use Array? Wouldn't it
be better to use ArrayList instead?
S-PLUS is that it's based on matrix calculations and consumes a lot of
memory. It takes a long time to run a small program in S-PLUS.
Now he wants to learn C# in order to speed things up. He simply uses
Array in C#.NET (to resemble matrix in S-PLUS). He refers to
everything in the Array by indexes, i.e., integer numbers. It seems
fairly abstract.
I asked him to use objects and ArrayList. He is not used to the
concept of object-oriented programming. So he sticks to the Array with
those indexes. Each time when he asks me to help debug, it's a
headache because I have to remember the indexes that reference to
different things. All meaningless numbers pointed to by indexes.
A question for you folks: Is it a good idea to use Array? Wouldn't it
be better to use ArrayList instead?