Programming is Like Mathematics

Both exercises create a mindful state of mind and concentration.


Folksonomies: meditation mental discipline

The Mental Benefits of Studying Mathematics

These Disciplines [mathematics] serve to inure and corroborate the Mind to a constant Diligence in Study; to undergo the Trouble of an attentive Meditation, and cheerfully contend with such Difficulties as lie in the Way. They wholly deliver us from a credulous Simplicity, most strongly fortify us against the Vanity of Scepticism, effectually restrain from a rash Presumption, most easily incline us to a due Assent, perfectly subject us to the Government of right Reason, and inspire us with Resolution to wrestle against the unjust Tyranny of false Prejudices. If the Fancy be unstable and fluctuating, it is to be poized by this Ballast, and steadied by this Anchor, if the Wit be blunt it is sharpened upon this Whetstone; if luxuriant it is pared by this Knife; if headstrong it is restrained by this Bridle; and if dull it is rouzed by this Spur. The Steps are guided by no Lamp more clearly through the dark Mazes of Nature, by no Thread more surely through the intricate Labyrinths of Philosophy, nor lastly is the Bottom of Truth sounded more happily by any other Line. I will not mention how plentiful a Stock of Knowledge the Mind is furnished from these, with what wholesome Food it is nourished, and what sincere Pleasure it enjoys. But if I speak farther, I shall neither be the only Person, nor the first, who affirms it; that while the Mind is abstracted and elevated from sensible Matter, distinctly views pure Forms, conceives the Beauty of Ideas, and investigates the Harmony of Proportions; the Manners themselves are sensibly corrected and improved, the Affections composed and rectified, the Fancy calmed and settled, and the Understanding raised and excited to more divine Contemplations. All which I might defend by Authority, and confirm by the Suffrages of the greatest Philosophers.

Notes:

Understanding, meditation, abstraction, harmony, peace of mind... the list goes on and on.

Folksonomies: mathematics mental discipline discipline

Similarity

State of Mind in a Marathon Coding Session

The peak hour itself was tremendously intense, but during the hours before, and even during the hours afterward, a hacker attained a state of pure concentration. When you programmed a computer, you had to be aware of where all the thousands of bits of information were going from one instruction to the next, and be able to predict—and exploit—the effect of all that movement. When you had all that information glued to your cerebral being, it was almost as if your own mind had merged into the environment or the computer. Sometimes it took hours to build up to the point where your thoughts could contain that total picture, and when you did get to that point, it was such a shame to waste it that you tried to sustain it by marathon bursts, alternately working on the computer or poring over the code that you wrote on one of the offline Flexowriters in the Kluge Room. You would sustain that concentration by “wrapping around” to the next day.

Notes:

There is a point where you have the whole program in your head at once, one with it, and you don't want to let it go, so you keep working in a marathon burst of energy.

Folksonomies: programming coding hacker