Thursday, March 10, 2011

Workflow and "refactoring"....

I am coming off a 9 week jag of, essentially, continuous work. And here I mean that at least 6 to 8 hours (more like 10 to 16!) per day, every day, has been dedicated to work. My wife and I have BOTH been on this crazy work schedule and it put a damper on our holidays and most of the beginning of this year. Most unfortunate. The result has been two manuscripts submitted, a small-ish grant, and some preliminary work on two other grants.

However, trying to manage this much work has initiated a strong desire to revise my work-flow. I usually use Emacs' org-mode to build my "to do" lists and take notes in lectures or meetings. I have been reading a lot of time-management books a la Dave Allen's Getting Things Done because, mostly since the divorce from my first wife, I've had a real issue with procrastination at times. This is much less a problem now than when I was in grad school but, occasionally, I can feel overwhelmed and it's hard to get started on a project until deadline pressure starts to weigh heavily upon me. So org-mode helps me stay organized and it works well for outputting thoughts to html or LaTeX for incorporation into larger documents. I've also started using it to outline papers/grants.

The big problem with the last few weeks has centered on the use of tools that I'm not all that familiar with. One of the manuscripts we were working on was being written by the first author in Mickeysoft Word. I really, really dislike Word. I have good reasons for disliking Word that go all the way back to when I was working on my thesis in DeScribe (a fantastic word processor and page-layout program!) and had a horrible time trying to export it in a format that Word 2.x for Windoze wouldn't munge up and destroy the table of contents and figures I had painstakingly laid out. I currently have Word 2011 for Mac (ver. 14.02) and it still fails and crashes with documents that are larger than about 10 megabytes. I also find the interface in Office/Word for Windows confusing and difficult to navigate. I download new versions of Office as they become available to the university and check to see if my pet-peeves have been sorted out but the majority of my problems with Word remain.

I've started using OpenOffice to have some compatibility with my colleagues who use Word (while still maintaining some of my OpenSource cred!) but, unfortunately, symbols (like Greek mu and beta) are different between Mac and Win fontsets (at least the subset used by OO and MS Office) so I usually end up with emails back saying, "Hey, your symbols are all monkeyed up! Why can't you just use Word like a normal person!?" etc. OpenOffice is ok—it even has many shortcut key combinations in common with Emacs so I can use it just fine. I also don't have much trouble finding some of the more sophisticated things I need (which I can't say for Word!). I use OpenOffice when I need to work with someone who comes from the WYSIWYG word processing world and I've mandated that everyone in my lab use OpenOffice and store lab-wide documents in either ascii text or OO formats.

This brings me back to Emacs. I used vi for about 10 years before switching to Emacs and it's been about 15 years since I made the switch to Emacs. I like Emacs—the command keys for most of the editing I do are embedded in my motor memory and the control over fonts/colors/syntax highlighting makes my life much easier. Since I prefer to use LaTeX and BibTeX for my writing, Emacs is a good editor for those environments and that makes my life easier. Also, I can do just about everything from within Emacs (even though I don't unless I'm on an old or low-spec machine like some of the ancient Linux boxes that are scattered about the lab) and that just appeals to me philosophically. Emacs used to be considered a big program but in today's world of 64 bit architectures, gigabytes of RAM and terabytes of storage, Emacs is very lightweight when compared to Office or other gui text editors.

If I run top (a *nix command) and look at how much real and virtual memory that Emacs is occupying it comes out to about 30 megabytes of each. Word is taking up about 82 megabytes total and OpenOffice is occupying about 110 megabytes. So Emacs "wins" in regard to smaller memory footprint. I still rely on a lot of paper notes (laboratory notebook, my journal, day-planner sheet for each day, etc.) but most of my self-authored documents are written in Emacs and then exported and prettified for others if needed. I use TeXShop and BibDesk too so those count as gui tools that make my life easier. I find it helps to have a giant monitor that I can plug my laptop into when I sit down to work also. My lovely wife bought me a gorgeous 22" Samsung for my study at home and I have a 23" Viewsonic that I bought for myself at work. These huge monitors allow me to take my laptop with me to meetings and take notes or go seek some peace and quiet in my favorite library on campus and then come back to my desk for larger scale editing and graphics work. This is very nice!

So my tools are in place and I just need to figure out a more disciplined way to distribute my workload and get more done. I have been very encouraged by the amount of work that I've managed to complete in the last few weeks but I had to abandon submission of one of the big grants I was working on and embarrass myself in the eyes of my co-authors because I wasn't organized enough to get that grant in shape for them to work on—not pretty and I need to do a better job on this kind of collaborative project. :-(