DaedTech

Stories about Software

By

The Role of Log Files in Experiments

Editorial Note: I originally wrote this post for the LogEntries blog.  Head over to check out the original at their site.  LogEntries provides a service that allows you to centralize, monitor, and search your log files, so if you’re interested in logging and related topics, there is a lot to check out.

You have heard, no doubt, of the Lean Startup.  If you need a refresher to place the name, it’s a book, but it’s also a business trend with such momentum as to have a website advertising it as a “movement.”  And, frankly, that advertisement is hardly a stretch.  The title and the terms coined in it are on everyone’s lips in the tech industry these days because people at companies of all shapes and sizes want to capture some of that startup magic.

For instance, it’s pretty likely that you’ve heard a process described as “lean,” and it’s a veritable certainty that you’ve heard the term “minimum viable product” tossed around at some point or another.  You may even have heard these terms used correctly.  I say this because the use of these terms has become so ubiquitous among the book’s readers that non-readers adopt them as well and map their own situational contexts onto them.  Definitions drift.  “Minimum viable product” has come to mean “beta” or “prototype” and “lean” is a hipper, newer version of “agile” that has something to do with Toyota, or something.

But if you peel back a layer from breathless use of buzzwords, you’ll find genuine, serious substance underneath.  To summarize the Lean Startup in a ridiculously short sound byte, I would offer, “apply the scientific method to your business.”  And that’s an extremely powerful concept.

You’ll note that there’s nothing in my description about startups, per se, and that’s intentional.  As Eric Ries argues in the book, there’s nothing to say that the same approach can’t be leveraged within large, established businesses.  He even gives a number of examples of exactly that application.  Make no mistake; the Lean Startup approach has lessons for you no matter what your business and no matter how well-established.

Business, Science, and Software

For me, and for most reading, our business is the business of software.  The question thus becomes, “how can we apply the scientific method to building software?”

To do that, let’s consider the scientific method a bit more formally.  Here is what it involves, quoted from the linked page.

Read More

By

How to Get a Raise

I’ve been slipping a little in my quest to answer reader questions of late, so I thought I’d course correct.  The question revolved around the notion of how to get a raise.  Actually, that was the question in its entirety.

How do I get a raise?

A deceptively simple question that one.  So much so, in fact, that I’m going to be kind of roundabout in my response.

Paying the Iron Price for Cable

Assuming that you’re one of the millions of people that pay for cable television, you fork over your $100 per month and get the full rainbow of channels.  You probably don’t think a whole lot about the $100 that you’re spending each month because it’s the closest a recurring cost can come to being a sunk cost.  You’re used to cable and you’re used to your wallet being $100 lighter, so continuing to have cable for $100 per month is not a decision that you consciously make.  In fact, to do something different would be the conscious decision.

Bearing this in mind, do you ever think to yourself, “you know, I love how they’ve finally stopped killing off erstwhile protagonists on Game of Thrones, so I think I’ll call the cable company up and offer to pay $103 per month, starting in the next fiscal year?”  Of course you don’t — that’s ridiculous.

But, let’s consider a slightly modified version of that scenario.  Let’s say that the cable company called you and said, “we’re raising the price of your Premium Thingamajig Package to $103 a month, so if you want to continue to see what Sansa, Arya and the gang are up to, you’re going to have to pay up.”  You probably go on to Facebook, post a cathartic rant, and then pay the extra money.  Because, while that’s inconvenient, what would be more inconvenient is to have to spend time figuring out how to compensate and vary your routine.  You could go with Dish or AT&T or whatever, but that’s probably too much effort to expend over a 3% increase.  If it were a 10% or 15% increase, on the other hand, it might be time to comparison shop.

ArmchairQuarterback

Employment as a Zero Sum Game

As you’ve no doubt surmised, I offered this silly parallel to help you empathize with your employer’s position.  You’re the cable company in their lives — non-critical, largely taken for granted, and prominent enough to be missed as long as the price isn’t too high.  And, like your relationship with your cable company, your relationship with your employer is, talk of family and work-life balance notwithstanding, a zero sum game.  The more money you have, the less they have, and vice-versa.

Read More

By

Calculating the ROI of NDepend

Editorial note: I originally wrote this post for the NDepend blog.  Head over to their site and check out the original.  While you’re there, take a look at the other posts and the offering to be had.

Years ago, I discovered NDepend and downloaded it for a trial.  At the time, I found myself working in a .NET shop where a lot of developers worked in the same large WPF codebase.  Code reviews were mandated, debates were frequent and impassioned, and global variables were everywhere, to the dismay of only some of us.  There was an entrenched majority that favored (or at least didn’t mind) a highly procedural style of writing object-oriented software, and nobody seemed able to put their fingers on why most feature development there had slowed to a crawl.

ScaryComputer

I was new to the group and had to pick my battles, particularly with people that had been there a long time.  Developers who favored automated testing and craftsmanship principles were in the minority there and had a history of leaving out of frustration, so I knew it’d be a challenge, and I went looking for help.  Among other things, I found NDepend and, after installing a trial, I recognized the power of the tool.

I recognized that it could help me as an objective, unbiased partner in making my arguments, but I also recognized that the way I approached code and architecture would never be the same.  The ability to visualize architecture in real time, the ability to treat code as queryable data, the metrics, the statistics, the well thought-out code warnings… it was a game-changer for me.  I just needed to convince my manager to let me spend a few hundred dollars to convert my trial version into a paid version.

It turned out this wasn’t hard, at least for me.  I had the good fortune of working for a company that appropriated a tools and learning budget for each individual developer, meaning all I had to do was declare that I wanted some of my total spend to go toward NDepend.  I did it without blinking.  But it might be that you aren’t as lucky.  Maybe you find yourself in a similar position to mine back then, but wanting to convince your manager that this powerful tool is indispensable because you don’t have a discretionary tools budget.

ROI: The Language of Management

I think I can help you here.  After all, I did leverage my experience running an IT department into a Plurlasight course about how to lobby your managers for practices and tools.  And the key to making a business case for anything, NDepend included, is to talk in terms of profits and losses, rather than in terms of, “it’s awesome, and it has all these graphs, and it shows me these rules, and CQLinq is the coolest thing ever, and…”  You get the idea.  NDepend’s coolness factor isn’t going to convince your manager to buy it for you.

Read More

By

Chess TDD 60: Wrapping Initial Development

There is a bit of symmetry to this episode that may interest only me.  It is the 600th post to be published on the blog, and it is the 60th post in the ChessTDD series.  I wouldn’t have thought the series accounted for 10% of my posts, but, there it is.  Believe it or not, this post is about wrapping initial development on the project.  In other words, I have no more functionality cards to implement.  From here on in, it’s going to be constructing test scenarios and addressing any shortcomings that they reveal.  (Not ideal, but it’s hard to get user feedback in a one person show with no prod environment)

I also, after some time away have a bit more clarity on what I want to do with this going forward, so you’ll hear some mention of this as I narrate the videos.  I’m looking to wrap the youtube series itself and then to use that as the centerpiece and starting point of a video-product that I have in mind.  Stay tuned for updates down the line.

What I accomplish in this clip:

  • Get re-situated after a hiatus and clean up/reorganize old cards.
  • A few odds and ends, and laying the groundwork for the broader acceptance testing.

Here are some lessons to take away:

  • An interesting definition of done when it comes to software work goes beyond completeness and even shipping.  You can say that something is done when it has demonstrably added value somehow (it has sold or helped product revenue or something)
  • Writing unit tests is a great way to turn hypotheses that you have about the code base into productive regression test suite.  It’s also a great way to confirm or refut your understanding of the code.
  • It bears repeating over and over, but avoid programming by coincidence.  If you don’t understand why a change to your code had the effect that it had, stop what you’re doing and develop that understanding.  You cannot afford to have magic and mystery in your code.
  • There shouldn’t be any line of code in your code base that you can delete without a test turning red.  This isn’t about TDD or about code coverage — it’s about the more general idea that you should be able to justify and express the necessity of every line of code in the code base.  If removing code doesn’t break anything, then remove the code!

 

By

The Gravitational Force of Wage Labor

Editorial Note:  Thanks, to all for the heavy response rate to my last post!  I’m glad there’s interest in Expert Beginner T-Shirts and I’m really excited by all of the people interested in exploring new ways to do free agency.  In fact, I was sort of blown away by the number of responses, which far exceeded my expectations.  I’ll be figuring out next steps before too long, so stay tuned!

Today I’m going to do something that’s a first, but probably not a last, since it makes sense.  I’m going to regard a comment as a reader question (since the comment came in the form of a question).  This one also has a much shorter cycle time than average because the substance of it was something I was literally just having a conversation about in the last couple of days.  I have opinions on the matter, and fresh ones at that.  Here is the comment/question.

Ever dealt with this situation? You’re brought on to deliver with clear expectations on both sides. You deliver. They like you. They want you to stick around. Then your job slowly morphs into “do whatever needs to be done as an all purpose IT generalist.” You came on to port an old app to a newer platform, and next thing you know they are asking you to write custom sql data transforms to onboard new customers. To top it off, you want to be a “team player”, so you agree to take on one of these tasks. How would you respectfully and professionally address this situation? It’s basically the “this is not what I signed up for” argument.

First of all, have I ever dealt with this situation?  Oh, my, yes, and from a lot of different angles.  And, I’m not just being grandiose — there are a lot of different angles of approach once you think about the nuanced relationships between standard companies, software companies, software consultancies, and free agents.

But despite the myriad situations in which this arises, there is really only a singular cause.  And it’s because the closest thing to a law of nature in the corporate world is what I’ll call the “Gravitational Force of Wage Labor.”  But let me resurrect my consulting taxonomy before I get to that.

Consultants and the Enterprise

There are, in my estimation, three main ways for non-salaried people from outside of an organization to act, temporarily as part of that organization.  (Someone please chime in if you think of another one that is fundamentally different — I have not given this exhaustive thought to make sure nothing is omitted.)  I say “act as part of the organization” to discount superficial interactions and put us squarely into the realm of consulting.  These are as follows.

  • Staff augmentation
  • Project specialist
  • Retainer consulting

(As a quick aside, please note that I would consider wholesale project/product delivery to be a vendor relationship — if you’re a ‘consultant’ that sits at home every day for six months, building a piece of software that you then hand off to the client, you are acting as a vendor rather than as a part of that organization.)

Perhaps not surprisingly, these line up pretty well with my taxonomy from the earlier post, when expectations align and all is right with the world.

  • Software pros, when onsite, offer staff augmentation.
  • Specialists, when onsite, serve as project specialists for the duration of some project.
  • True consultants, when onsite, do so in a retainer consulting capacity.

This should line up with common experience.  Software pros sign on through agencies to work at the company with its staff developers or else they get para-dropped in by ‘consulting’ firms in the same capacity.  The only way you know whether they’re staff or not is the color of their badge.  Specialists come in to help with the CRM installation and then toddle on off to the next CRM installation elsewhere when this one finishes.  And, consultants come in to offer advice during the course of a particular situation or phase of a project.

SuperDev

At least, that’s the theory.

The Gravitational Force of Wage Labor

But have you ever noticed something odd?  Have you ever noticed that you come in as a consultant or specialist, and are regarded as a high priced, hot shot commodity?  And then, you just kind of run out of steam somehow, without realizing it, six months in?  When you started, the CTO was interested in your strategic expertise, but now some project manager is chiding you for not reporting your status with a little more flair during a daily standup?  (I’m asking the royal you, since the question submitter presumably has, per the premise of the question.)

Read More