Reputation
80,168
Next tag badge:
288/100 score
18/20 answers
Badges
8 235 330
Newest
 Good Answer
Impact
~553k people reached

Mar
15
answered Granular versus terse coding
Mar
15
comment General strategies to write big code in Mathematica?
@MartinBüttner Well, you can modify them yourself, basically via metaprogramming and code generation. You can read this answer of mine for an example of how to add some basic form of destructuring. As to overloading, I recently wrote a package called RuleBasedFunctions, which kind of does that, it lives here for now. It basically does something like that - I wrote this specifically to address the garbage-collection issue.
Mar
15
comment General strategies to write big code in Mathematica?
@gwr Thanks :) In fact, I've had plans to write one, may be more than one, for quite some time. Hopefully, those plans will materialize some day.
Mar
15
awarded  Nice Answer
Mar
15
comment General strategies to write big code in Mathematica?
@AntonAntonov Thanks, much appreciated!
Mar
14
revised General strategies to write big code in Mathematica?
Fixed another bug in Huffman code example. Added another example for the granularity section
Mar
14
awarded  Nice Answer
Mar
14
revised General strategies to write big code in Mathematica?
Fixed grammar
Mar
14
revised General strategies to write big code in Mathematica?
Fixed a bug in extract (Huffman encoding example), fixed a few typos, some small additions / clarifications.
Mar
14
comment General strategies to write big code in Mathematica?
@R.M. Thanks :)
Mar
14
revised General strategies to write big code in Mathematica?
Added Huffman encoding example, rewrote the directory traversal example
Mar
14
comment General strategies to write big code in Mathematica?
@R.M. Well, I didn't want to multiply the points I get for the sub-answers, but OTOH it might be good to retain the ownership indeed, since I want to preserve the posts mostly in the way I have in mind (I never object to corrections and suggestions, so will anyway incorporate those which make sense). So well, I guess I'd agree with your suggestion. Thanks :)
Mar
14
revised General strategies to write big code in Mathematica?
Fixed a few typos
Mar
14
revised General strategies to write big code in Mathematica?
Added links to the split parts of the post
Mar
14
answered General strategies to write big code in Mathematica?
Mar
14
answered General strategies to write big code in Mathematica?
Mar
14
revised General strategies to write big code in Mathematica?
Separated the general part (the others will go into their own answers), added the *goals* subsection, fixed typos.
Mar
14
comment General strategies to write big code in Mathematica?
@bobthechemist Using Module in most cases means that you intend to modify the varables in the body of it, so with Module you introduce local mutable state. Using With means that you can't modify your local variables (actually, constants) in its body, so your code is completely side effect - free (unless there are some additional mutable variables in your code) , which is generally better. This means, in particular, that you can extract any part of the code inside With and test it separately - which you can't generally do with Module.
Mar
14
awarded  Good Answer
Mar
13
awarded  Nice Answer