16,958 reputation
13779
bio website
location
age
visits member for 2 years, 8 months
seen 4 hours ago

Frequently Asked Questions

WReach? Is that connected to WRI somehow?

The "WR" in my name has nothing to do with the company that develops Mathematica. It is just a coincidence.

Why do you start all your global variable names with $?

I use dollar signs for ad hoc global variables because I have been bitten too many times by accidentally assigning an own-value to a symbol that I happen to use, for example, in a symbolic equation. So I am in the habit of writing $x instead of x. I stick to that convention even for longer symbols like $initialUrl. Just like the regular symbol convention, Mathematica's predefined global symbols all start with a capital letter after the $. My ad hoc symbols always start with a lower case letter, so there is no conflict.

Why do you put semicolons and commas at the beginning of the line instead of at the end like a normal person?

I don't think of it that way. Rather, I switch from horizontal to vertical layout when a single expression is too long to fit on one line. This has the interesting side-effect of making the important delimiters stand out and line up. I first ran into this practice in the SQL community. SQL "programs" have the unpleasant property that they must be written as a single statement -- even if that statement is a hundred lines long (or more!). Sometimes Mathematica expressions share that property.


4h
answered How to use Mathematica for traditional programming
8h
answered Composing function returning list and function taking multiple arguments
9h
answered Writing this loop in Mathematica
Sep
18
answered Tracking Initialization
Sep
18
answered Bug with Initialization in DynamicModule?
Sep
16
answered Applying a function to a Dataset column conditional on another slot's value
Sep
13
answered DeleteMissing level spec confusion
Sep
12
answered Combining more than two lists by first column as index
Sep
11
answered Syntax of transpose etc
Sep
8
answered Changing a tag when one function is passed into another using UpValues
Sep
7
answered How to “Copy as Unicode” from a Notebook?
Sep
7
answered How to build a list of functions
Sep
6
answered Mapping a function over the parts of a deeply nested Array
Sep
4
answered Get name of hidden inbuilt functions (like Ticks drawing)
Sep
1
answered Implementing local variables of a recursive function with either Module or Block
Sep
1
answered Understanding `Paste` and how to get a string from the Clipboard to use with `ImportString`
Aug
31
answered Import iTunes xml data and convert it into a dataset or table
Aug
31
answered Advanced SQL-type select statements (filtering) on Datasets
Aug
30
answered How to lookup by a string key after GroupBy? Inconsistent data type handling
Aug
30
answered Problem constructing Association tables with some operators