by byamabe on January 22, 2010
I was BDDing some code for an idea I had for a Church Year website. I was using RSpec to drive the code that would return the church season based on a date. Some seasons are based on a fixed date, like Christmas, and others are relative to another date, Advent starts 3 weeks before the Sunday before Christmas. I didn’t document all the steps I took to write the code (I’m thinking of doing this as a kata), but what I wanted to point out was that at one point, I was “in the Green” and saw a bunch of duplicate code, ill-named method, and obscure variable names. I started making changes left and right while running the tests after each change and remaining “in the Green.” The experience was amazing to say the least. I hadn’t felt so proud of my code or excited about programming in a long time. I’ve always intellectually believed in the benefits of BDD, but that was the first time I’ve felt it emotionally. I can see why some people refuse to work any other way.
by byamabe on January 6, 2010
MPW, CodeWarrior, Visual Studio, Emacs, XEmacs, vi, NetBeans, Eclipse, TextMate, XMLSpy, NotePad, and any number of editors/IDEs all which I’ve used to write code. It’s crazy, but I’ve gone through more editors than programming languages and I still haven’t settled on one that makes me really happy. I almost standardized on Emacs, but it was too much like Linux in that I spent too much time working on it instead of using it. I almost standardized on Eclipse, but that thing is such a memory pig on Windows. I feel like ditching that thing but it’s the standard at work. I want TextMate’s simplicity and project-wide find, Emacs’ auto-complete and integrated shell, and Eclipses debugging and refactoring tools.
One of the big things that thwarts my efforts to find a single editor/IDE is that I use Windows at work and a Mac for everything else. If I ever leave my current job, I’m working somewhere that’s a Mac shop or is platform agnostic so I can choose a Mac to work on.
What brought this on? I was flirting with Emacs again, did I mention I love the integrated shell? Checked out the Cucumber bundle for TextMate, did I mention I love running tests with command-R? And suffered through a day of 400MB Eclipse taking 10s of seconds to open a JSP, did I mention that Eclipse is a memory pig on Windows?!?!