19,858 reputation
14387
bio website
location
age
visits member for 2 years, 11 months
seen 15 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.


Nov
11
answered How to write Mma notebook input that modifies itself?
Nov
11
comment Pattern matching: Times[a_] vs Times[a__]
@ShutaoTang The Internal package is undocumented, and we use its features at our own risk since it carries no guarantees and could be withdrawn at any time. As the name implies, it is used internally by the Mathematica implementation. There is no official documentation on this package, but this forum is rapidly becoming the repository for the collective findings of the community -- whether about Internal or many of the other undocumented features. And even the documented ones too :)
Nov
11
comment Select last occurence of key in dataset
@Lea As to the dollar sign in $dataset, see the second FAQ in my profile.
Nov
11
revised Select last occurence of key in dataset
added sample data in copy-and-paste form
Nov
11
answered Select last occurence of key in dataset
Nov
11
revised Pattern matching: Times[a_] vs Times[a__]
added 3 characters in body
Nov
11
answered Pattern matching: Times[a_] vs Times[a__]
Nov
8
awarded  Nice Answer
Nov
8
awarded  Revival
Nov
8
comment Using 0 to create new columns in a list with Part
@AlexeyPopkov Okay, okay... A New Kind of Map/Apply = A New Kind of Maple ;D
Nov
8
comment Copy/Paste of quoted text crashing Mathematica 10?
I can reproduce the crash on V10.0.1, Windows 7, 64-bit.
Nov
8
answered Is there is a design problem or documentation problem with FirstCase?
Nov
8
comment Using 0 to create new columns in a list with Part
A New Kind of Map :)
Nov
8
answered Using 0 to create new columns in a list with Part
Nov
6
revised How can Map be given access to the keys of a Dataset?
added 12 characters in body
Nov
6
answered How can Map be given access to the keys of a Dataset?
Nov
6
comment Error changing Dataset using Part
@ArgentoSapiens I have no current information about this. My glib comment was based upon the fact that pre-release versions of the V10 documentation contained extensive references to such capability. Those references were withdrawn very late, just before the official V10 release. I speculate that the functionality under discussion in the question would (or did) prove to be challenging to support across multiple back-end technologies.
Nov
5
awarded  Good Answer
Nov
5
awarded  Enlightened
Nov
5
awarded  Nice Answer