Wednesday, January 30, 2008

Scott McCloud's Four Tribes - Developer Edition

{

Last year I was fortunate to catch Scott McCloud here in Sioux Falls. It's doubtful that he'd ever find his way here under normal circumstances but he was doing a 50 state tour in support of his book, "Making Comics."  I believe a dual aim was to provide his two young daughters, who travelled and presented with him, an experience of a lifetime. 

I was particularly struck with a classification he had for comic (and indeed all types) artists.  He placed them into four quadrants:

Here is a quote of an explanation of how the classifications work:

Those who value draftsmanship the most, and who are the most invested in the idea of mastery, beauty, and craft find themselves on the opposite side of the fence from those whose strongest values are raw honesty, authenticity, and a kind of rebellion against the status quo. That dichotomy comes between what I call the classicists and the iconoclasts. The children of Hal Foster versus the children of R. Crumb.

That’s the truth and beauty diagonal that separates two of the four tribes. The other two corners are the formalists and the animists, who represent the distinction between form and content. The formalists like to experiment and take the medium apart, figure out how it works and put it back together, and try new things; while the animists really just like to tell a compelling story, and want the form to vanish, to become transparent, so that you don’t know you’re reading a comic at all.

I wonder how well these notions apply to the practice of programming.  I can easily see the classicist: mastery, beauty, and craft - the person who uses things like recursion excessively for the computer science elegance they bestow.  Opposite them, I see the iconoclast -  the hacks that make things work and could care less about the principles or structure of a thing and instead devote themselves to the beauty of experience.

I think the animists and formalists can be distinguished as well by the metric of language/tool preference.  The obsessives of language would seem to tend toward formalism and understanding every moving part.  An animist may be the type of person who excels at making a tool do legwork with no particular interest in exactly what that tool is baking under the covers. 

Of course we all will have elements of each but I like to think of myself patterned after Scott McCloud. The formalist who might write the same software over and over in different languages just to see how expression and power vary at the lowest levels.

Interesting food for thought.

}

Tuesday, January 29, 2008

Java Programmers on Windows Forms team?

{

Randomly: worked with the CheckedListBox tonight. It's interesting to run into "getter/setter" type methods in the .NET universe.  One would assume a collection that specifically supported setting constituent objects as "selected" or "checked" but instead there are methods like: GetItemCheckedState and SetItemCheckedState.

It would be interesting to have the Windows Forms equivalent to the annotated base class library reference. Perhaps tomorrow I'll try to peak at the source code.

}

Disturbing News

{

"I am going to tell you something that will disturb you. You might laugh, but it will be a cold uncertain laugh that will haunt you as you read on, because somewhere deep down you'll know it to be true. You might brush it off, get on with your day, yet sometime later, a week or a year, it will seep back in and unsettle you to the core. From that moment on you will be changed. You will think different, act different and will fundamentally be different. So take a moment to prepare yourself now, breath deeply, clear your mind and open up to the possibility that building software is hard."

Interesting thoughts from The Wayward Weblog

 

}

Thursday, January 24, 2008

Not An Engineer

{

Ravi Mohan makes the provocative, if not new claim (with follow up) that programmers are not engineers. I take the majority of his quibble to be the title some flaunt: "software engineer."

I've never felt able to use "engineer" for myself, but I don't perceive this badly. My official title is "software architect" though most of my day is not spent on architecture.

It's a bit postmodern of me but does anyone's title mean much?  Short of very specialized work, one must have multiple skillsets for the different roles they are cast in on a daily basis.

I have to do the following, fairly regularly:
1. Write Code
2. Write Specs
3. Customer Service
4. Testing
5. Write Proposals
6. Mentor
7. Marketing

I'm owning up to a lot of stuff, particulary #7, that I would never admit to for the sake of saying that most jobs these days require multiple intelligences.

Think Santiago Calatrava: engineer, architect, artist. And he deals with clients, too.

}

Temporary Switch Back: C# to VB.NET

{

I did the switch back for a project that a VBA enlightened client requested but I kept finding myself asking how to syntactically do what I usually do in C# (especially inheritance-wise) in VB.NET.  Terry Smith has a handy online book that has a comparison so that you can easily figure out what the VB.NET syntax is for what you know how to do in C#. I'm not sure when it was written; no word on Generics but that's an easy enough syntax to duplicate with (Of T) rather than angle brackets.  What throws me off in addition to the inheritance verbosity are a lot of the array related casting operations that seem intuitive now in C# like:

Dim dropRows As Row() = e.Data.GetData(GetType(Row()))

Of course with the latest developments in VB.NET, I may end up using the language enough to make all of this easy to recall from memory. 

As much as I want to join the Red Sox fans in cheering for VB, there are still many things that annoy me about the language.  Line continuation characters are at the top of the list, and case insensitivity closely following. Yes, I strongly dislike case insensitivity in a programming language.

}

Tuesday, January 22, 2008

Up In The (Ruby) Club

{

A while back I had a phone call from a woman with an eastern European accent wondering if I would be willing to take a survey.  I'm usually an instant no to queries like this but she knew my Achilles heel:

"Participants get $50 Amazon Gift Certificate"

So a few days ago my inbox chimed with an email with the gift certificate in tow. I didn't hesitate with my purchase of David Flanagan's Ruby book

As an aside, it seems that Flanagan got some flack from a Gilles Bowkett on not being a bona fide Ruby person. If Flanagan isn't cultured enough to do Ruby, I'm in trouble...

... but I've been in trouble most of my short puff anyway.

On a serious note: the "up in the club" attitude of some (okay, mostly Rails) Ruby people is what is driving a backlash against Rails and Ruby in general.

}

Friday, January 18, 2008

Nutrition

{

I just looked at Oliver Steele's programmer's food pyramid and did a self evaluation of sorts. I know that I err too much on the reading of "blogs" versus reading long prose about programming.  That's something to change this year.

As well I use libraries a lot without digging into anything once my problem solving is done.  I think there's a form of mental stamina in digging deeper into a problem once you've apparently solved it - my instinct is to simply move on and try to tackle what's next.  Now that the .NET Framework code is available, that and other libraries should occupy my reading time.

While I don't struggle with the inclination to write code, I've long since thought it's better to try to write different types of applications and build some breadth.  Especially after my umpteenth web based CRUD app, I'm now interested in blending Windows Forms and Web stuff in the small variety of utilities that I compulsively write.

}

Wednesday, January 16, 2008

What's It Worth?

{

In the wake of all the plastic surgery and body augmentation going on around, a developer like myself can feel a little out of place - out of century to be more exact. 

And yet, whether he's joking or not, I'm half tempted by Wesner's admission to "performance enhancers."

But the thing I know with certainty is that being productive will only beget the desire to be more productive. Instead of learning and implementing 4 technologies, it will be 8.  I'll pile more home projects and "meware" until I'm aching for another 5 or 6 hours a day.

In a world that has the audacity to produce ridiculously smart people who are subject to feeling that yet others are "smarter" I may as well hold.

But it's tempting... maybe until I know F# and then I'll hold...

}

Saturday, January 12, 2008

13.75 hours, CodeMash

{

I earned the reputation as "the guy from South Dakota" at CodeMash; many people were amazed that I took it upon myself to drive just under 14 hours both there and back for the conference.

What would they have done if I told them I also:
a) took time off from work
b) paid for it out of pocket
c) drove my own car

But I think it's not *that* strange. Staying at work would have meant the same old stuff I do every day all year and instead I got to see some of the best Einstein's presenting on Python, DSLs, Dojo, REST, and IIS7. I made some friends as well and on top of that got to kick it with Scott Hanselman.  All for the cost of a long drive with an audio book.

I had posted on sessions I wanted to see, here's a little rundown of memorable sessions I actually attended:

1. Neal Ford's keynote "Software Engineering & Polyglot Programming"

Neal's one of those sedate cognoscenti who don't appear to have an emotional angle on platforms, just a sense of design and engineering that they wish to communicate.  In his talk he urged developers towards the notion of language as a tool, and that dynamic languages take us places that our old friends in the static realm cannot.  He made a reference to Jack Reeve's essay which I've written about before, and said a few times the following phrase which I thought was apt:
"Testing is the engineering rigor of software development."

If I could have asked Neal, I'd have wanted some comment on something I posted some time back - Oliver Steele's blog post on The IDE Divide in which he divides developers into the Language Mavens and Tool Mavens.  I think Neal's perspective was very much that of a language versus tool maven.

2. Catherine Devlin's "Crash, Smash, Kaboom Course in Python"
Great talk on Python fundamentals while illustrating a universe simulator library (forget the name).  I've been trying to pick up Python for some time and much of what I got was from watching Catherine's use of the language in her demos.  The one bummer: I was using a Python distribution from my iBook (Mac OSX) that didn't include the Python modules she was demonstrating with. Even more of a bummer: in my hotel room a different laptop was running Ubuntu with just the modules needed to follow along with her in code.

3. Kevin Dangoor on Dojo
I may have made Kevin feel uncomfortable with how happy I was to see this talk (he did a great job) but I've felt quite alone over the last two-ish years working with javascript libraries.  I used jQuery heavily for my tool "proper" after which I used Prototype/Scriptaculous for a few other projects.  I then switched to YUI for nRegex so I'd been around the block with my frameworks with only Dojo missing.  Dojo seems to go beyond these other frameworks just on its ambition alone and I'm wondering if that can translate into a happy mix with the heavyweight stuff I have to do at work with ASP.NET. 

4. Dustin Campbell on F#
Dustin gave a deft introduction to the F# language which had to be the biggest thoughtbludgeon I got during the conference.  I've listed F# as my "someday language" and it will remain so since Ruby will occupy my time along with Python in learning mode over the next year or so. Nevertheless, it was good to see a demonstration of the language and some of the implications thereof.

5. Kevin Dangoor on Gears and Dojo (DojoX Offline)
The second session I sat in on with Kevin, this dealing with Dojo's offline capabilities in large part courtesy of Google Gears.  It was as good as the first Dojo session and left my mind popping with ideas for leveraging that functionality. 
Soon - I'd say around the release of Silverlight 2.0 - people like me are going to face a fork in the road of using browser plugins and thick (they use the word "rich") vendor technologies, or using javascript and existing web technologies like CSS on a new level.  All the Dojo stuff represents, to me, what Microsoft and Adobe (no need to even mention JavaFX, oops I just did) are not tuning to as they ramp up Silverlight and Flex.  Not that it's in their interests: the stuff of web standards isn't really the profit center that proprietary technologies are.

6. Neal Ford on DSLs with Dynamic Languages
Neal was impressive this second time with some practical talk and examples of DSLs.  He started first with Groovy, which left me disappointed since I don't anticipate using it, but to show the "best" world he switched to Ruby.  I am really looking forward to IronRuby's release, but at present I think much of what he discussed can be implemented in Python. 

7. Dave Donaldson on RESTful Web Services
I've been familiar with the REST buzzword for some time but as a term thrown out in competition with standard web services (the WS-* stuff).  Dave did a good job of unpacking the essence of REST and showing demonstrations of usage.  It's interesting to see just how much backlash there is against WS-* and the manufactured complexity therein.  The only thing I disagreed with was Dave belittling Dave expressed reservations about the Astoria project teetering into the over-engineered realm of WS-* but I am hopeful it will retain its original intent - I really, really like the idea of Astoria (born of the same backlash to WS-*? I'm just talking here...).

8. Scott Hanselman on Mashups with IIS7
He has the gift and he knows it: first with a humorous prologue and then with a good presentation on IIS7 and using its underpinnings with a mix of PHP. Inspired by Bill Staples article on IIS7 and PHP, but with the detail and demonstrations with which Scott's earned his following.

I went to a few other sessions too, but these were the ones which, as the Brits say, "tickled my fancy."  I was disappointed to miss out on Jay Wren's intro to Castle as well as Bruce Eckel's thoughts on Python. I guess there's next year...

... and I do anticipate returning to CodeMash although I'm quite sure I'll fly rather than driving. :^)

}

Wednesday, January 02, 2008

Enemies and Organization

{

I usually try not to be an echo chamber, especially when posts show up on Coding Horror or Steve Yegge's blog. But what's interesting is a rebuttle to a notion that Yegge started, namely that size is an enemy in code base.

Franz Bouma has an interesting post to follow up that is worth a counter balance of views.

Conventions:

I commented once about LoC in one of our projects, not so much with an interest in maintainability, but as a comparison with how much code was being "generated" on my behalf by the IDE.  The project has grown since that post which had the codebase at around 30,000 lines of code.  This is nowhere near the 500,000 line mark but one design decision made early on that has always helped in navigating around was the heavy use of conventions.  Because we followed a pattern for where we put things, it's easy to find which project a piece of code is in as well as which part of the code one needs to dive into to make a modification. 

Abstraction:

One thing I'm noticing about the open source projects I look at is how layers of abstraction can lead to the kind of indirection that's hard to follow.  I speak only of ideals but it seems like too much abstraction can lead to the kind of confusing codebases that people online are reacting to. That logic may be the Mort in me going against the grain; it seems like many think that indirection and abstraction may add flexibility, but that flexibility will be a trade off for how easily a person, especially not the original author, finds their way.

}