Code Simplicity

The Purpose of Software

Whenever you engage in some activity, it’s a good idea to have some idea of what the purpose of that activity is. What is the end goal, and why are you doing it? For example, when I sleep, the goal is to be rested. When I talk, the purpose is to communicate and be understood.

Similarly, when we write software, we should have some idea of why we’re doing it, and what the end goal is.

Now, is there some way that you could sum up what the purpose of all software is? If there was such a statement possible, it would give orientation to our whole science of software design, because we’d know what we were going for.

Well, I think I’ve managed to derive a single purpose that would fit all software:

To help people.

For example, Bugzilla exists “to help people track bugs.” Firefox exists “to help people browse the web.” Remember, you could browse the web entirely by reading HTML yourself–but Firefox (or your web browser of choice) sure does help.

Even if you wrote a piece of software to help animals or plants, it would still be “to help people help animals or plants.”

Software is never there “to help inanimate matter.” Software does not exist “to help the computer.” It always exists to help people. Even when you’re writing libraries, you’re writing “to help programmers”, who are people. You are never writing “to help the computer.”

Now, what does “help” mean? Well, that is somewhat a subjective thing, and somewhat not. Look it up in the dictionary. There are many things you could help with–organizing a schedule, writing a book, planning a diet, anything. What you help with is up to you, but the purpose is always to help.

People who cannot conceive of helping another person will write bad software–their software won’t help people. In fact, I might theorize (as a guess based on some personal observations) that your potential ability to write good software is limited only by your ability to conceive of helping another.

The purpose of software is not “to make money” or “to show off how intelligent I am.” Anybody writing with those as their only purposes is violating the purpose of software and is quite likely to get into trouble. Granted, both of those are a way of “helping” yourself, but that’s a pretty limited scope of help and, I would argue, is likely to lead to lower-quality software than software genuinely designed to help individuals do what they need or want to do.

So anyhow, there you have it. When we are making decisions about software, our guiding principle can be how we can help. It’s possible to help more or less, to help fewer or more people or things. With that as a yardstick, it’s possible to understand our Laws Of Software Design and how we should be making decisions about software.

-Max

15 Responses to The Purpose of Software

  1. Kim Sullivan says:

    Sorry to play the devil’s advocate, but how exactly do spam bots help people, except for making money? Actually, a lot of software is written with the ultimate goal to make money (or, to put it your way, to help people make money). And the better the software is, the better it helps to make money. Even putting illegal activities (like bots or trojans) aside, there’s a lot of “corporate” software that just helps to make a bussiness more effective. And for most bussinesses, with a few notable exceptions (like google, or mozilla), more effective just means making more money.

    Maybe you should say that the purpose of software is not making money for the programmer who writes it – but satisfying a need of a customer (and the customer’s need can as well be making money, and the customer can be the programmer himself). Which brings me to another little nit – “helping” is too specific for some software, I think.

    What do computer games help with? I don’t think you can say that they help people to enjoy themselves, because people are able to enjoy themselves even without computer games (on the other hand, browsing the web, or tracking bugs in a distributed environment can probably be not done without the help of software). On the other hand, few games that has been written with the purpose of making money (for the developer/publisher) have actually been succesful (the best games are usually the ones that break new ground, not the safe games that are guaranteed to make money).

    Or screensavers. They’re just eye candy. The most effective screensaver, the one that helps people the most, is the one where it just blanks the screen (and after a while, turns powersaving mode on). Does that mean that any screensaver is by definition bad software?

    You could probably generalize that screensavers are helping people satisfy their need for pretty moving pictures, but I’m not sure this is what you originally had in mind.

    • Max Kanat-Alexander says:

      Spam bots help people advertise.

      Computer games help entertain people.

      Attractive screen savers either help entertain people or help people create a more aesthetic environment.

      -Max

      • Marat esk Bashirov says:

        Sorry, but I think bot net are a different part of soft. They do not help people, because no one in mind could say, yeah use my machine for sending that spam(I mean great percent of spam is sent throu botnets).

        Spam is not helping to advertise people, things like AdSense help.

        Because, anyway you do not get mails on your mailbox from AdSence, but you get spam, and you couldn’t easily say I don’t want to get them.

        PS
        Sorry for some possible orfografy mistakes.
        And of course thing I said, are not truth in last instance, they are my thinking.

        • Max Kanat-Alexander says:

          Well, botnets aren’t helping the people whose computers they take over. They’re helping the people who take over the computers. A virus isn’t helping the people it infects–it’s helping its author destroy the computers of other people.

          Although in a practical sense I’d certainly make a judgment on the value of these pieces of software, their purpose can still be described in terms of “to help people X“. They help people harm others. That might be a good definition for malware.

          -Max

          • Software, including bot nets, would’ve never been written in the first place if it was not to achieve a purpose. In other words, help someone. Automatically written software is written by a software that was written by a person in the first place, therefore, helping people.

            Even useless software (I’ve written plenty) is useful for people to understand programming concepts or test the boundaries of programming and languages. Writing software serves, at minimum, for the purpose of learning (some virii falls into that category).

          • Max Kanat-Alexander says:

            That’s all very true! :-)

            -Max

  2. Jamie says:

    I think computer games helps people with things like coordination and the likes as well as entertainment.A screen saver can enhance the looks and feel of one’s desktop as well.

  3. nor says:

    nowadays,purpose of software and the benefits still cannot understanding by many people.can u please explain it to me,step by step?
    i really need to know it to complete my learning…………

  4. Pingback: 编程巨星的唯一秘诀 – The Singular Secret of the Rockstar Programmer « huanghuangde

  5. Pingback: The Singular Secret of the Rockstar Programmer | 有心故我在

  6. Pingback: The Purpose of Software | Minimal Movement Development

  7. Wow! This is an old thread, but the easy answer you provide about the software purpose was truly shocking (maybe I am overreacting, but I did not quite expect it to be… that simple).

    But now that I think about it, my sole purpose as software developer is to make my clients life easier, by automating some tasks or avoiding a lot of manual work, making them happier. Thanks for this post, pretty much needed.

  8. Johnd645 says:

    erythromycin medication drug kkkeckkebbfe

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>