20130726

A Fitness Regimen That Works

I used to be fit enough that when I was applying for a new job with some old colleagues, one of them remarked "You look really fit!"  Of course my first thought was "can you say something like that in a job interview?!"  And then later I thought "wow I guess I'm really fit".

Back then, my workout was simple.  Every morning before my shower, I'd do a bunch of push-ups and sit-ups.  That was it!

Now that I'm 40 (argh) and now that one of our Fire Island neighbors is a ridiculously fit and good-looking man, and now that several of my friends of similar age have health problems related to their lack of exercise, it's time to GET FIT.

But how?  As with sleep discipline, the main thing is finding designing a routine that is especially chosen to be attractive to you, habit-forming, and easier to do than to avoid.

That means:
  • I do some form of exercise every day.  This rule is important because then my day feels incomplete unless I've done some exercise.  It is designed to trigger my mild OCD - a day without exercise ain't right!
  • The day's exercise always comes before the day's shower.  Taking two showers a day is a waste of time that horrifies me to the point that I'd avoid exercise with the rationalization that the second shower consumes time I can't afford to lose.  It's a stupid rationalization but I've done it plenty of times.  So exercise must precede the day's shower.
  • To complement the previous rule, it's completely good and acceptable if that exercise is the 7-minute workout.  Usually, anything I learn from the New York Times is considered false until proven otherwise by other sources.  But in this case, the content of the workout closely resembles what my expensive NYSC trainer used to do with me for two years of workouts, so I consider it quite likely to be good.
  • There is a wonderful interactive guide/timer for the 7-minute workout: http://7-min.com.  Check it out!  With this guide, it's easier to do it right than to do it wrong.  Just follow the damn instructions.
  • I must get at least 90 minutes of exercise per week.  I log all my exercise using the RunKeeper app.  I love to run, which is how I found the app in the first place.  With two 30-minute runs and five 7-minute workouts, I get over the 90 minute mark.  I can easily track how I'm doing towards my 90 minutes on my RunKeeper report page here (I had to upgrade to Elite to get this, $20/year).
The final component of the system involves a horrifying penalty that raises the specter of mass armed anarchy, an endless cycle of escalating gun violence, children running armed through the street.  It's really quite neat.

My friend Todd and I have an ongoing bet.  If either one of us gets less than 90 minutes of exercise in a given week, then a donation is made to the National Rifle Association in the name of the person who didn't get enough exercise.  The first donation will be $25, and it will double each time.  If sending $25 to Wayne isn't enough to make you exercise, how about $50?  Or $100 or $200?

That's an anti-charity, a concept I first heard about from a wonderful site called Stickk, which was founded by the brilliant Prof Dean Karlan who does groundbreaking work in behavioral economics.


(For those of you who think the NRA does good work, please don't be offended but rather be pleased that your cause can only stand to gain from this setup.)

So, do you think it will work?  Care to take a bet?  :)  How do you enforce exercise discipline?

20130725

Sleep Discipline

As I noted two and a half years ago, I often find myself awake at 1:00am for no good reason.  I don't want to go to sleep, because sleep is death and I'd rather be reading reddit or playing chess online.

My new plan for a better life goes like this.  I will trick myself into heading towards bed!

At 10pm, it's time to plan my next day.  Preferably on paper, so that I'm not looking at a screen.  The planning is done totally from memory.  The point is to identify things I want to accomplish, which will be a useful reference for tomorrow.  It will get any worries or concerns out of my head and onto the paper.  It also will create an awareness of things I would like to get done, which of course I can't get done very well if I go without the sleep I need.

Next step is to get into bed and read a book.  Arek recommended REAMDE recently.  It's huge and interesting but not so interesting that I won't set it aside and pass out once I'm warm, and in bed, and my sleepiness takes over.

Objectively, I like this going-to-sleep plan way better than my previous one.  My previous one was, in retrospect, a little naive.  Every night at 11pm, my calendar is programmed to put a pop-up onto my screen that say "You MUST go to sleep now, or read this!"  There was some attached hellfire-and-brimstone text I was supposed to read if I thought I should stay up later.

In practice, I would just dismiss the warning and rumble on into stay-up-late disaster.

I expect this plan has better chances because it is intrinsically interesting to me to plan my next day.  There is great leverage in planning what someone else will do, even your future self.  I get a dopamine shot from the power of planning.

Enough theorizing.  I'll let you know how it went.

20130724

No really, how am I going to learn to program?

Here is one very good way: JFDI.

http://blog.jenniferdewalt.com/post/56319597560/im-learning-to-code-by-building-180-websites-in-180

20130723

What (Programming) Language Should I Learn?

People who want to learn programming often ask me what programming language they should learn.

Great question!  Check out this answer from the Programming Is Terrible blog.

The right answer is usually Javascript or Python.

Javascript is great because you can make interactive web pages using Javascript.  You can make really simple and even useful things and share them with your friends and family.

Another good choice would be Python.  Python has an attractive mix of qualities:

  • it's easy to get started
  • it's easy to build big, powerful, well-structured pieces of software with it
  • there is a big, growing community around it with a positive attitude
  • it's well-documented
  • it's clear and consistent

Ruby is fine.  The Ruby community is full of self-important weenies who think that making a video is a good form of documentation.  But there's nothing wrong with Ruby itself.

Definitely not PHP.  Why not?  It's not because PHP is an inherently bad language.  PHP has a bad reputation that it no longer deserves.  The reason not to learn PHP is the same reason that you shouldn't learn Russian.  Don't get me wrong!  Russian is a wonderful language; I studied it in high school.  There is some fantastic literature written in Russian, and millions of people speak it.

There's nothing wrong with learning Russian.  But you would be better off learning English, Mandarin, or Spanish instead.  Those languages are growing in terms of the number of people who speak them, and the places in the world they give you access to.

PHP programmers are unfairly seen as second-class citizens in the programming world.  Why mark yourself as a second-class citizen if you don't have to?  There's no advantage in PHP that makes up for that disadvantage.  So unless you have some other compelling reason to choose PHP, you shouldn't.

Definitely not C or Objective-C or Java.  They are fine languages, and are the right choice for certain projects, but it's harder to get started; learn them later.

--

Hey, I hope this is helpful.  Let me know what you think!  Questions are great too.

20130718

I Read Some Books

I decided that in order to attain Thought Leadership, I must Read Books.  So I read Moneyball and The Art of Learning.

I will summarize each of these books in 140 characters, in my own private shorthand.

Moneyball: Ideas can take a long time to find an effective vessel. It took 10-15 years for Bill James' ideas to be picked up by a baseball GM.

The Art of Learning: Mental <-> emotional health, discipline, insight and resilience are first-order determinants in chess, tai chi and probably everything else.

Of course there's so much more to these books, but the above lines summarize what I found most surprising and unique about them that can be concisely put.  If I had another 140 for Moneyball I would try and express what a great writer Bill James was.  Lewis is generous to quote James at all, because the bits of James he quotes are so much better than anything Lewis can string together.

James speaks of numbers "taking on the power of language" and I wish I had a better gut feeling for what he means by that.  I understand the concept in some abstract way but I don't grok it.