Questions on how to write code in a better or different style, using Mathematica's capabilities for coding in multiple styles.

learn more… | top users | synonyms

12
votes
3answers
438 views

With versus Function

I've seen people compare Block with Module and With as scoping constructs, and try to figure ...
35
votes
5answers
702 views

Placement of Condition /; expressions

It is my practice to place Condition expressions on the left side of := and :> in almost ...
101
votes
3answers
14k views

Alternatives to procedural loops and iterating over lists in Mathematica

While there are some cases where a For loop might be reasonable, it's a general mantra – one I subscribe to myself – that "if you are using a ...