You are browsing the archive for Pragmatic Programmer.

52 Weeks to a Pragmatic Programmer: Challenge 2

June 21, 2010 in Pragmatic Programmer

Take Responsibility

Tip 3 in The Pragmatic Programmer states:

Provide Options, Don’t Make Lame Excuses

For one day keep track of what you say in meetings, on the phone, or through e-mail and categorize them as:

  • Reasonable option/solution
  • Lame excuse

You don’t have to share your list, but blog/comment about the experience.

52 Weeks to a Pragmatic Programmer: Challenge 1

June 14, 2010 in Pragmatic Programmer

Care About Your Craft

For you, what defines the craft of programming and what can you do show that you care about your craft?  Make a list of ways to show quality in your craft and pick one to improve on this week.

The craft of programming for me includes tools, knowledge, skills, experience, and interactions.  As a Microsoft developer, my primary tool is Visual Studio 2010 with its editor, debugger, designers, and add-ins.  There are additional tools that I use regularly such as Blend, Reflector, Silverlight Spy, Fiddler, and LINQPad.  I glean knowledge from blogs, books, magazines, MSDN, forums, and tweets. Every day I learn something new about C#, Silverlight, Azure, WCF RIA Services, MEF, MVVM, or some other pattern, methodology, or tip.  Each day is a new experience and opportunity to hone my skills.

I talk to (at watch) my co-workers to see how they approach different situations.  Two examples.  I’ve worked with a programmer that handwrites code using pen and paper before his hands touch the keyboard.  He doesn’t do this for every line of code.  I think it is his way of solving more challenging problems.  Another former co-worker keeps notes in spiral-bound notebooks.  The pages contain answers to questions, how he approached a problem.  Things he tried that didn’t work.  Sometimes I would ask a question about how to do something or why a particular choice was made on the project.  He would pull out a notebook and find the appropriate entry.

I feel the craft of programming has a lot to deal with people.  How you interact with your co-workers, how you mentor someone new to a project or technology, how you deal with a client.

Here is a list of some things that I think shows that a programmer cares about his craft:

  • Understand requirements, ask clarifying questions
  • Have a broad knowledge of technologies
  • Know the ins and outs of your tools
  • Write unit tests, practice TDD
  • Comment code
  • Use code analysis tools such as FxCop
  • Look for code smells and refactor
  • Be prepared for meetings and be on time
  • If you are leading the meeting, send out an agenda at least the day before
  • Be precise in answering the 3 questions for the daily Scrum standup
  • Add tasks to TFS before working on them, update items regularly

 

This week I am going to explore new features of Visual Studio and incorporate some of them into my daily programming.

What are you going to do this week to show that you care about the craft of programming?

Am I a Pragmatic Programmer?

June 9, 2010 in Pragmatic Programmer

As promised, I will be transparent throughout the 52 Weeks to a Pragmatic Programmer challenge.  Here are my responses to the pre-assessment.

Scale: 0 – Strongly Disagree, 1 – Disagree, 2 – Neutral, 3 – Agree, 4 – Strongly Agree

  1. I am an early adopter and love trying new things. 4 – Strongly Agree
  2. I am a fast adapter. When given something new I grasp it quickly and am able to integrate it with the rest of my knowledge.  3 – Agree
  3. I am inquisitive.  I tend to ask lots of questions about how to do things or why they work the way they do. 3 – Agree
  4. I am a critical thinker. I seek to get the facts and not just accept a statement as truth. 3 – Agree
  5. I am realistic.  I understand that there is no such thing as an ideal day.  Often things are harder and take longer than expected. 3 – Agree
  6. I am a Jack of all trades.  I strive to keep abreast of new developments and a broad range of technologies and methodologies even though on my current project I may be a specialist. 2 – Neutral
  7. I see programming as a craft and I care about doing my craft well. 3 – Agree
  8. I think about my work and think about ways to improve. 3 – Agree

Now that I took the pre-assessment, I realize that some of my Agree responses would have been better answered by a Somewhat Agree if the choice had been available.  Overall, I think I possess the qualities mentioned above but I definitely have room for improvement.  At my previous employer, I tended to focus on only a few main technologies whereas now that I am consulting I am exposed to much more.  It is a welcome change.

Rate your overall level as a pragmatic programmer on a scale of 1-10 (1 being Journeyman and 10 being Master)

This question is hard to answer.  I have 14 years experience with software development so shouldn’t I be a Master by now?  But we are talking about being a pragmatic programmer.  I likely have much to learn about being pragmatic as these weekly challenges will demonstrate.  So I am going to rate myself more on the Journeyman side at a 4.

I hope others join in on this adventure.  If you do, please post or comment so that I don’t feel like I am doing this alone.

Thanks,

Mark

52 Weeks to a Pragmatic Programmer: Pre-Assessment

June 8, 2010 in Pragmatic Programmer

Before we get going on the 52-week challenge of becoming a pragmatic programmer, it might be helpful to do a self-assessment to judge where you are today.

Scale:

0 – Strongly Disagree

1 – Disagree

2 – Neutral

3 – Agree

4 – Strongly Agree

Rate yourself on the following statements:

  1. I am an early adopter and love trying new things.
  2. I am a fast adapter. When given something new I grasp it quickly and am able to integrate it with the rest of my knowledge.
  3. I am inquisitive.  I tend to ask lots of questions about how to do things or why they work the way they do.
  4. I am a critical thinker. I seek to get the facts and not just accept a statement as truth.
  5. I am realistic.  I understand that there is no such thing as an ideal day.  Often things are harder and take longer than expected.
  6. I am a Jack of all trades.  I strive to keep abreast of new developments and a broad range of technologies and methodologies even though on my current project I may be a specialist.
  7. I see programming as a craft and I care about doing my craft well.
  8. I think about my work and think about ways to improve.

 Rate your overall level as a pragmatic programmer on a scale of 1-10 (1 being Journeyman and 10 being Master)

Let the journey begin.

52 Weeks to a Pragmatic Programmer

June 8, 2010 in Pragmatic Programmer

More than 10 years ago Andrew Hunt and David Thomas published a book called, The Pragmatic Programmer: From Journeyman to Master

I came across it again a few months ago when I emptied my bookcase at work.  I thought that it would be a good chance to re-read the book and blog about it.  Eleven years ago I was programming in a different language, using different tools, and using a different methodology.  I am also a consultant now instead of a full-time employee so my perspective has changed some.

The forward by Ward Cunningham concludes:

So here it is: an easy to read–-and use-–book about the whole practice of programming.  I’ve gone on and on about why it works.  You probably only care that it does work. It does. You will see.

In the Preface, the authors promise that this book will help to make you a better programmer by helping you become more effective and productive.  They argue that programming is not just a job, but a craft. 

When I think of craftsmen, I often think of my carpenter ancestors who used tools, knowledge, and experience to construct projects.  They used their hands to make things.  So do I.  Instead of hammer and saw, I use keyboard and mouse. I use experience from past projects or gleaned from conversations with others or blog posts.  I gain knowledge by reading books and blogs and tweets, watching presentations, following tutorials, and attending conferences.

This book takes a “hands on”, doing approach.  It is not idealistic.  It is practical and sensible.  In one word, it is pragmatic.

In this blog series, each week I will present a challenge based on a tip or topic from the book.  I will do the challenges myself but also ask you to do them as well.  It seems the pragmatic thing to do after all.  If you have a blog (or are thinking about starting one) then blog about your experience with each of these challenges.  Otherwise, the comments section is always open.

Take the challenge and see if this time next year you are not a more pragmatic, productive programmer.  I dare you.

But first, if you don’t own The Pragmatic Programmer then purchase a paperback or digital copy: