Mathematica command that allows it to read my intentions

Indeed, this functionality still exists, but it has been moved into its own package.

Load the package:

Needs["aBetterProgrammer`"]

You will have access to such functions as

  • GimmeDaCodez (answers any nebulous MMA.SE question by guessing the unspoken needs of the asker)
  • WizardForm (an output wrapper; produces perfectly terse code; all function calls are infix)
  • JMstyle (deals with special functions; sometimes works even without a computer)

... and many others.


Since version 11 most commands finally support the Interpretation option: Interpretation -> "Literal" being the classical (default) way of operation, and Interpretation -> "Guess" using advanced machine learning to get much better results than ReadProgrammerIntentions ever achieved. Makes programming a lot easier. You can emulate the old behavior with a simple Return["the result", Interpretation -> "Guess"].


I tend to use a pattern matching approach:

myCode/.{x_?BugQ:>BugStrip[x],x_?TypoQ:>Detypo[x],x_?WrongSignQ:>-x,x_?OffBy2PiQ:>x*2\[Pi]}

With the usual caveat that pattern matching can be slower than other methods, but conceptually easier to understand. Hopefully someone will aggregate the answers to compare performance. Good luck!