The design-patterns tag has no wiki summary.
0
votes
0answers
12 views
Understanding big O notation [migrated]
I'm not a mathematician by any stretch and I'm trying to translate some maths terms into simple maths terms. Please don't laugh, I do consider this complicated!
The equations in question are
...
34
votes
7answers
955 views
Can one identify the design patterns of Mathematica?
... or are they unnecessary in such a high-level language?
I've been thinking about programming style, coding standards and the like quite a bit lately, the result of my current work on a mixed ...
9
votes
2answers
258 views
What's the analogue of UML in Mathematica land?
What's the analogue of Unified Modeling Language (UML) in Mathematica land? Mathematica has elements of object-orientation, but most Mathematica programs or applications aren't of object-oriented ...
2
votes
1answer
178 views
Do “objects” in Mathematica have to be declared?
A while ago I learned a trick which allows one to imitate object-oriented programming in MMA using SubValues:
...
17
votes
2answers
631 views
Code Readability and Object-Oriented Code
The basic problem I have been running into is making readable code, where in other languages I am more familiar with I might have been using class or struct like objects. For example, you can imagine ...
4
votes
1answer
507 views
How can I implement object oriented programming in Mathematica?
Roman Maeder's object oriented programming package is nice, but I'm hoping someone can suggest a sleek and novel implementation that is easy to use.
32
votes
5answers
2k views
What does the construct f[x_] := f[x] = … mean?
This question mentions "x := x = trickery".
What does defining a function as f[x_] := f[x] = ... do and what is it good for?
17
votes
2answers
473 views
How can one define a custom data object?
In Mathematica there are different objects like InterpolatingFunction or SparseArray? How can I define a custom data object with ...
52
votes
7answers
4k views
Struct equivalent in Mathematica?
I really miss having something like a struct in Mathematica. I know of (and regularly use) a couple of programming techniques which feel like a ...


