Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Comments on MATLAB's object oriented programming?
Replies: 3   Last Post: Jan 9, 2014 10:33 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Nasser Abbasi

Posts: 5,705
Registered: 2/7/05
Re: Comments on MATLAB's object oriented programming?
Posted: Jan 8, 2014 7:23 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 1/8/2014 1:57 PM, Zhehan wrote:
>

I think most will prefer stand alone functions.

The reason is that, it is simpler to integrate/use a single
stand alone function on your code, than an object or class.

As long as the standalone function has clean API and does
not depend on undefined things in the environment to use,
it will be much easier to move around on its own, plug
it in any one place and use it. With objects, it is more
involved. This does not mean OO itself is bad, but I think
for what most people use Matlab for, which is small/quick
prototype programs to try things out, a small, self
contained functions, are easier to use/understand.

--Nasser





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.