Message Boards Message Boards

9
|
25449 Views
|
11 Replies
|
19 Total Likes
View groups...
Share
Share this post:

OOP environment for Mathematica without additional packages

Posted 8 years ago
Attachments:
11 Replies

Je ne sais pas. Please ask to Stephen Wolfram, why UpSet?

Why name the function Upset? Is it a cute metaphor for the pain of programming OOP in general as well as describing how parameters are set up for inheritance? If so it worked. I got a good chuckle.

POSTED BY: Jules Manson

OOP, Object Oriented Paradigm may not be familiar as a tool for Mathematica programming, so, I'd like to introduce some examples using OOP, considering this six months discussion after the publish of my idea.

Posted 8 years ago
POSTED BY: David Fuller
Posted 8 years ago

One more Q: Why would I 'construct' a superclass specifically that I might 'subclass' it? That does not appear to make sense. I am assuming that your example is just unclear in some respect.

POSTED BY: David Fuller
Posted 8 years ago

So you are asking why is a superclass necessary in general? Briefly, it is related to the design pattern and to make the design looks clear and logical.

POSTED BY: Shujie CHEN
Posted 8 years ago

Hi,

Apologies, yet I do not see how your approach promotes re-use, abstraction, encapsulation, or Typing of any sort. Despite your mention of design patterns, I do not see how it can, for example, be used to implement common patterns such as observer, visitor, or, most ubiquitously, singleton. Most importantly, I unclear how it helps me, in structuring code this way, reduce complexity or improve understanding.

I did download your notebook. Unfortunately, this was not enough to actually understand what it is that you are proposing and what advantages there are in contrast to other approaches. I think much might be understandable were there a more in-depth write-up similar to that others have posted when putting forth their proposals for approaching OO in Mathematica.

Regards, Dave

POSTED BY: David Fuller

It would be great I think if you would be able to explain your OOP idea in-post here or attache a notebook.

POSTED BY: Sam Carrettie

Yes, I attached a notebook.

This mind map is asking to reconsider on the Mathematica OOP, "how to" develop or/to "why to" develop it. Though, if we can achieve OOP with very small cost, the importance of "why" becomes lower one. My idea for the OOP requires very small cost, it means a few lines code is additional, so "why" will have small meaning in my OOP case. On the contrary, we can obtain large advantage from the OOP.

The power of Mathematica comes from many characteristic points, and I think the various programming paradigm may be the largest one, so OOP will become the new large power source.

You can add something in the general topic on SE or in topics linked there:

Which Object-oriented paradigm approach to use in Mathematica?

enter image description here

POSTED BY: Kuba Podkalicki
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract