Linked Questions

3 votes
0 answers
121 views

how implement OOP [duplicate]

I have a task implement OOP in wolfram mathematica. I think write class Point and inherit from it class Rectangle. In C# or C++ it's very easy, but I don't know how do it in wolfram mathematica. All ...
user13517's user avatar
602 votes
19 answers
156k views

Where can I find examples of good Mathematica programming practice?

I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...
211 votes
26 answers
17k views

What are some useful, undocumented Mathematica functions?

There have already been some questions about some undocumented functionality in Mathematica. Such as (please add to these lists!) How can one find undocumented options or option values in Mathematica?...
156 votes
9 answers
15k views

General strategies to write big code in Mathematica?

I think after six months of exposure to Mathematica and the Wolfram Language I am fairly OK with writing short codes and snippets. However, what are some general strategies to use in order to write ...
Ali Hashmi's user avatar
  • 8,950
123 votes
7 answers
17k 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 ...
Cassini's user avatar
  • 5,556
139 votes
8 answers
8k 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 .Net/...
Verbeia's user avatar
  • 34.2k
43 votes
2 answers
3k views

Which object-oriented paradigm approach to use in Mathematica?

Which Object-Oriented Paradigm (OOP) approach to use in Mathematica for: general implementation, or a particular project? There are a lot of related questions and answers in MSE on doing OOP that ...
Anton Antonov's user avatar
24 votes
2 answers
399 views

Implementing a chat system in Mathematica

My friends and I don't want to use Slack or Gitter, but instead a pure-Mathematica chat system. Now that the ChannelFramework exists, how could we do this?
b3m2a1's user avatar
  • 46.8k
12 votes
2 answers
2k views

Functions with changeable global variables

I'm not sure is the topic title correct, but I mean such a case. I have several functions and "changeable" global variables, e.g.: ...
Alx's user avatar
  • 3,632
7 votes
2 answers
180 views

How can I implement a listener variable in Mathematica?

I'd like to be able to listen to a variable and know when it's been changed and accept/reject the change as well as use it as an update listener for Dynamic how can ...
b3m2a1's user avatar
  • 46.8k
6 votes
2 answers
221 views

How to set parts of Associations "named with" SubValues

Parts of Associations can be set with the following syntax: as = <|"a" -> 10|> <|"a" -> 10|> as["b"] = 20; as ...
alancalvitti's user avatar
  • 15.1k
3 votes
3 answers
183 views

Efficient manipulation of Associations passed to functions, how-to? [duplicate]

I have some data wrapped into a MyData[data_Association] "structure". My Association contains some big arrays and I do not want ...
Picaud Vincent's user avatar
5 votes
2 answers
168 views

How to prevent arguments UpValues from being used in selective functions

Ok, I know the simple answer is to set some form of Hold attribute to the function but bear with me for a bit while I explain my motivation and why that is not quite what I want. I have a collection ...
void life's user avatar
  • 352
1 vote
1 answer
87 views

Changing DownValues of a function when calling

General problem I am looking for a possibility to store information in parallel for a function and change the information when a function is called. Idea It seems possible to solve this problem by ...
pbx's user avatar
  • 842