Showing posts with label management. Show all posts
Showing posts with label management. Show all posts

Tuesday, 7 July 2015

Writing the right software

Writing software is easy. Writing the right software is hard. A lot of the time, that's the problem: teasing out the requirements from the client, and then separating the blue-sky dreams from what should actually be done. A lot of software projects, even if they're on track for budget and time get into trouble when the clients ask for more. Cowboy developers who grew up writing their own software on their own time for their own amusement can take a while to learn that "could" and "should" are different. That is, in a way, even more important than the correct architecture. Badly written software that still functions is a pain, but software written to the wrong requirements doesn't do anyone any good.

Mokalus of Borg

PS - You have probably encountered both kinds.
PPS - Older software can drift either way, depending on whether the requirements change over time.

Thursday, 18 June 2015

Mature software project management

I have a feeling and a hope that, as the software development industry gains maturity, it will also gain some better, more solid theories and practices of project management. We have had some false starts in this area, I think, and also some very good developments, too. New languages and new tools are always being advanced, enabling new features that let us set up some really solid patterns of architecture. However, I still run into as many bad managers as good ones - those who don't understand software projects in general, or those who don't understand programmers. The clients, also, underestimate how long it takes to get something done, so unrealistic expectations are set. There is as much bad software as good in the world, or probably even more.

Would it help to teach everyone to program as part of the school curriculum? Yes, of course. It doesn't mean it's something we really need to do, though. I'm sure there are plenty of accountants, pastry chefs, firefighters and jet pilots who wish everyone knew more about their jobs to better appreciate how hard they are and how to set realistic expectations. It's probably better to develop a specialised course - "Programming For Non-Programmers" - to instill some of the necessary skills and knowledge for people when they need it.

Mokalus of Borg

PS - I've made it as far as that title before.
PPS - Maybe someday I'll put together at least a hypothetical course outline.

Thursday, 11 June 2015

Democratic work approvals processes

Could you run a business where a team's approvals are democratic? I'm thinking of things like timesheets and leave approvals, and using online tools to keep visibility for everyone. That way, everyone can see what days everyone else wants off work and can approve or reject it based on that, or can see what time everyone has spent on which projects, and whether that might be a problem.

Mokalus of Borg

PS - Of course, it gives everyone more work to do, too.
PPS - And doesn't relieve the need for managers entirely.

Monday, 11 May 2015

The real problem with nepotism

The reason nepotism is a problem is not necessarily that the wrong people get the jobs. If a relative does a terrible job but his family refuses to fire him, the company will just collapse or, at best, not fulfil its potential, and then the job goes away entirely. No, the real problem with nepotism is the mixing of power structures. If I work for you, but then you hire your son as my subordinate, I can't actually tell him he's doing a bad job or fire him if necessary, because that counts as a slight against you, my boss. The person who is supposed to be my responsibility is actually someone I have to treat as my superior, even if you tell me not to.

Mokalus of Borg

PS - That particular arrangement won't usually happen, though.
PPS - Because, if you're going to hire your son, you won't put him more than one level below you.

Monday, 4 May 2015

The full cost of cheap software

You should always count the ongoing cost of software you buy for your business. You might pay less for a particular package, but if it takes a lot more time and effort to set up and maintain to do the job you want it to do, the long-term cost is more than other software that's easier to use. Even if that other software costs more up front, the lower maintenance costs will quickly overtake the "cheaper" option.

Mokalus of Borg

PS - Also, consider how rare and expensive are the skills needed for the software.
PPS - There are a lot of factors to consider.

Tuesday, 14 April 2015

Domestic training

I used to take some offense at the idea of women "training" their men. It sounds so degrading, like teaching a pet a new trick. It puts the woman in charge and the man in a subservient role, and it's not truly enjoyable for either person. It's not a partnership at that point, but more of a matriarchal dictatorship. Neither side is supposed to be "in charge" of a healthy relationship.

However, I do recognise that many men grow up with terrible domestic habits. We leave wet towels on the floor, we don't cook or clean or tidy up, things like that. These are habits and behaviours that we should have grown out of, but if a boy has his mother picking up after him all of his life, it won't even occur to him that towels should go anywhere else. Why would it? Don't count on self-awareness and consideration developing naturally. We do need to be told things sometimes. If you pick up after a man and wait for the guilt to set in after self-reflection, you'll never get what you want. If you ramp-up the consequences of inconsiderate actions ("Put his wet towels under his pillow!") then you will grow to see your man as a child. I think the better move is to talk about it. It's still training, in a way, but respectful.

Mokalus of Borg

PS - Also remember: nobody is the perfect partner.
PPS - Not even you.

Monday, 9 March 2015

Estimating software is really hard

Are software estimates valuable? It's hard to say. We, as programmers, feel that estimates are very difficult to obtain, usually inaccurate and therefore something of a waste of time. Managers, on the other hand, have a certain budget available and often a certain time frame, too. They want to know if a project will fit into those constraints or, if they are a particularly talented manager, what subset of the blue-sky-dream requirements can be completed within that budget and time. Estimates are the way budgets turn into project plans.

The problem is that software estimates are always a tricky beast. Software isn't like constructing a building. It's more like designing a building for a swarm of robots to build in seconds for no cost. All the effort in software is design effort, not construction, and design is the hard part to pin down.

When you design a building, you have some solid requirements to work from. It will be this tall, with this many floors, we want this many units or offices inside, and this many car parking spaces. That, in turn, leads to some other calculated requirements - to serve that many floors, you need this many lifts. Fire stairwells are this size and regulations require two of them. Concrete can support this much weight per unit surface area. You know what you're getting into.

Software, so far, doesn't have any of that, and might never do. Also, by the time you're done finding out how large the project is, that's part of the design work. If, for instance, you're trying to measure business software by the number of database tables required, then you need to find out what tables are needed and count them. Finding out what tables are needed, though, means gathering all the requirements and designing tables to store the relevant data and oh, look, now you've done a database schema to estimate how long it will take to develop a database schema. It's almost as if the nature of software rebels against being quantified before it is completed. Unfortunately, "I'll know how much it will cost when I'm done spending the money" isn't a satisfying or wise answer to the question of budgets.

So what can we do? Maybe skilled managers have better intuition about how large a project will be, based on some imprecise metrics. If I know we're dealing with five kinds of business data here, then we'll probably have (for instance) 50 tables (10 per data type) and 10 major processes to write (interactions between the major data types), and from there we can guess how long that will take (assuming we know our team well).

The best way, probably, is to say "This is what we want to get done. We have up to this amount of money, or up to this time to do as much as we can. How close might we get to perfection?"

Mokalus of Borg

PS - I have to plead ignorance on how other industries estimate their work.
PPS - Except sometimes when I saw managers give a gut-feel guess and everyone called it good.

Thursday, 18 December 2014

Snowdrift could fund free software

I really like the idea put forward by snowdrift.coop, encouraging people to set aside some money to fund beneficial open-source projects so that everyone can benefit. The more people pledge to support a given project, the more funding that project gets, growing exponentially. On the receiving end, it seems like a great way to get this kind of project funded, since the people - particularly big companies - each give a little money to build up the common goods in software.

On the other hand, it still relies on charitable giving. Yes, if you fund the development of, say, OpenSSL, which almost everyone uses, then you get active development and the benefits of a well-supported library with motivated developers and proper funding instead of a library casually (but passionately) developed by volunteers in their spare time. But if everyone else funds the project and you don't, you still get that benefit. I'm not clear how Snowdrift solves that problem, except that witholding your funding means a greater chance that the development will stall and you won't get the benefits at all.

Mokalus of Borg

PS - Which is just a statement of the snowdrift problem, I realise.
PPS - I'm not quite sure if that counts as circular.

Tuesday, 9 December 2014

Importance

Sometimes it happens that a particular subgroup of employees will go on strike for better pay or better conditions. I don't have a problem with fighting for your rights or for your basic living requirements, but I think sometimes people lose sight of the fact that they are part of a much bigger machine. "You can't run a hospital without nurses." That's true. It doesn't make you the only important part, though. You also can't run a hospital without doctors. You can't run it very well for very long without janitors or administrators, either. You can't run a (modern) city without sanitation workers, but you also can't run it without power workers or water supply or police or firefighters or ambulances.

Mokalus of Borg

PS - Being critical to a complex system's success doesn't make you more important than anyone else.
PPS - You're just important. Be happy with that, and get what you need.

Thursday, 20 November 2014

Software shortcuts can make you a worse programmer

I read recently of some people lamenting the lack of skill shown by modern software developers and the difference between using tools to take over from already-mastered, mechanical processes in your work vs bypassing the learning of that branch of practice entirely. The argument was that it's perfectly fine to use tools to get around the parts of your job that you've already mastered, so that you can focus on more interesting, higher-level challenges, but a lot of modern software development provides tools that let you jump over that mastery from the start, which means you have no idea how it actually works. To make up an example, you might use a framework to read and write data from a database once you know how that works, because that's stock-standard boilerplate code you don't need to rewrite every time. However, if you use that code from the beginning, you'll never know how to connect to a database without it.

The problem is that you can't keep tools from people who don't know how to use them. You can't force a carpenter to use a hand saw until he understands it enough to graduate to a power saw. This goes doubly true in software. The tools don't care who uses them or what their skill level would be without the tool. The only thing you can do is challenge yourself. Start from scratch in everything and build up your own set of tools and frameworks over a career instead of picking up the biggest, baddest set of power tools from the start and demolishing a house by accident. That has to be self-enforced, though. If you couldn't have built it on your own, don't use it yet.

Mokalus of Borg

PS - You can't make people earn shortcuts, is my point.
PPS - Once they're open, they're open to everyone. That's kind of the point of software.

Tuesday, 11 November 2014

Guerilla office maintenance

I tend to harbour plans for guerilla office maintenance. For example, the bathrooms at my current place of work feature too few paper towels for a typical day and one bin that is too small for the towels that are used. I figure I could buy a large-ish plastic bin and just leave it there myself, fixing the problem and creating a better work atmosphere for myself and others. I also note that there is far too little cutlery to go around at lunchtime, and I wonder how to get around that problem, too - probably by buying forks and teaspoons in bulk.

To date, I have not enacted any of my plans in any workplace. It's not the money. It's more the expectation that I'll get a "concerned" email saying "Some time last week, a mysterious extra bin appeared in the men's bathrooms on level 8. Security were called, the building evacuated and the plastic bin destroyed with extreme prejudice. It turned out to be just a bin, but this incident illustrates the need for vigilant employee security blah blah blah". Basically, I don't trust that upper management encourages this kind of pseudo-nesting behaviour.

Mokalus of Borg

PS - I just see a problem with an easy solution and I want to help.
PPS - The best I've done is carry in extra paper towels from the kitchen.

Friday, 7 November 2014

Office peer security

Recognising official uniforms as opposed to fake ones is a big problem for security. If you walk confidently into some official location in an official-looking uniform, it is very likely nobody will look twice at you. How do you guard against that? How do you guard against fake IDs in an office building where there are guests coming and going from all areas at all times and you will only ever recognise a handful of faces? Really, the only thing you can do is to encourage an office culture where absolutely everyone spends their time stopping each other and demanding to see ID, and then calling into a central place to verify, because the ID could be fake. That's going to take a lot of time, and if you're doing it properly, lunchtime in the break room is going to be a nightmare. I pass at least a dozen strangers at lunchtime every weekday, and it would take far longer than my lunch break to stop them and call in all their ID. That's what would be needed, however, to provide true peer-to-peer security checks. Oh, and you don't get to stop doing that once you know and recognise people, either, because you don't know if they have been fired but kept their ID since you saw them last time, even if that was the same day.

I counted the strangers I saw in the office over 4 hours before lunch. It was about 30. If I spend 2 minutes checking on each one, that's an hour out of every 4, or 20% of my time. An entire workday per week just checking IDs. At that point, considering that we're asking everyone to spend 20% of their time checking IDs, it is far more worthwhile to hire several security guards to check ID for everyone as they come and go from the lifts.

Mokalus of Borg

PS - It's funny what becomes feasible when you actually count the cost of asking employees to do it in their "spare time".
PPS - Because, really, there is no spare time.

Tuesday, 4 November 2014

Non-disruptive protests aren't protests

I don't think you can really have a designated protest zone where protest disruption is minimised. If a protest is completely non-disruptive and draws no attention because it was pre-corralled away from the press and from anyone whose attention might matter, then it might as well not happen. It's a tree falling in the woods. It is a protest in name only, de-fanged and technically still extant, but utterly without point.

The G20 summit is happening in Brisbane soon. There will be protests, because some people see the G20 as a colossal waste of time and money where big government officials get together and talk about how great they are and how to screw over the dirty little poor nations some more. Ahem. Anyway, they know there will be protests. These protests will be placed inside fenced-off areas specially designated for protesting, far away from anyone who could matter and with an assigned police negotiator to keep them under control. That's not a protest. That's camping in the city, and it means nothing. If you've been pre-handled as a protester, if you have to give advance notice that you will be protesting, filling out forms in triplicate and returning them to the relevant authorities, you're not protesting any more. You're registering a formal complaint within a system that will file it away and ignore it completely as much as possible, even though you might be present in some capacity. It's a farce.

Mokalus of Borg

PS - The best you can hope to do is raise awareness.
PPS - Not in the people that matter, though. Just everyone else who never gets near them.

Monday, 27 October 2014

How to keep your office chair from being borrowed

I'm sitting near some "quiet rooms" at work these days, which should be familiar to anyone who has worked in an open-plan office. Basically, because open-plan sucks and allows the slightest noise to carry everywhere, there are meeting rooms provided that are big enough for a couple of people to use for short stretches of time for things like conference calls or stand-up meetings. Anything that might make distracting noise, really.

Okay, down to the point: chairs. These rooms often host meetings of four or more people, and only contain two chairs by default. My coworkers frequently fall victim to chair borrowing, since two of them are part-time. I, however, have managed not to have my chair kidnapped yet, and I think it's down to one simple difference: my chair has a jacket on it all the time.

If you're going to borrow a chair for a short meeting, you want one that isn't in use. That's the bare minimum of consideration in this situation. My chair with the jacket looks like it's always in use. To borrow it, you'd have to either take the jacket with you or remove it from the chair and place it on my desk. If you take the chair with the jacket, I will find you, like an overzealous interpretation of a Liam Neeson movie. Most people will be too courteous to move the jacket when there are other, undecorated chairs right there. So maybe that will work for you in a similar situation.

Mokalus of Borg

PS - Also, because of the design of our chairs, it keeps them from shearing off the buttons from my back pockets.
PPS - It's a weird and specific bonus, but it matters.

Tuesday, 14 October 2014

When you're allowed to fail

Always remember: you are allowed to fail. I mean, unless you've failed before at this particular thing. Or someone else is counting on you as part of their job, or you set a budget or a deadline, or it's extremely public, or if someone else gave you money to do what you're doing, or if you're talking on TV, because we'll make fun of you for that, or if you're making art that you're going to show someone. Then it's not okay to fail. But mostly, you know, as a rule, it's totally okay to fail and to learn from it.

Mokalus of Borg

PS - I'm a bit bitter about the "fail early, fail often" school of thought.
PPS - Mostly because I've never felt like I actually have permission to fail at anything.

Monday, 13 October 2014

Convenient bank opening hours

If I ran a bank, our branch opening hours would be Tuesday to Saturday, 12pm to 7pm. I figure we can keep the labour costs exactly the same, but boost customer convenience significantly. It's still only 35 opening hours per week, but now 15 of those hours are outside "normal" business hours. Banks could really do with this kind of bending-over-backwards-to-please-you attitude, given how people feel towards the entire financial sector right now. I'm not asking for much, I don't think. Just a bit of consideration that, for services like banking, regular business hours can be really inconvenient.

Mokalus of Borg

PS - I'll also need doctors, dentists and the post office to do this.
PPS - Actually, our dentist is open on Saturdays, and it's pretty great.

Thursday, 9 October 2014

Three answers to prepare for a job interview

There are three questions I prepare for in every interview: why this career, why this company and why this job? You'll find it covers an astounding amount of what interviewers want to hear.

Mokalus of Borg

PS - Also be ready to answer "Tell me about yourself".
PPS - Because that's about the first thing you'll be asked.

Friday, 22 August 2014

Setting priorities

I don't think priorities of "low", "medium" and "high" are very helpful. You'll focus on the "high" priority tasks until it's pretty clear that the "low" and "medium" ones aren't getting done at all. More jobs will be classified as "high" priority just to make sure they get done, and a new "critical" category is usually added to differentiate the "high" priority jobs that need to come first. You can just keep climbing that ladder forever, if you want, until it starts looking ridiculous, with "hyper-critical" over "super-critical" and so on down in an ever-advancing "popcorn sizing" model.

If you want to actually set priorities, you need to compare pairs of tasks and say that one is more important than the other. Keep that up and you'll eventually get the top-level task that is more important than all the others. When that one is complete, you'll see the others below it and you can rank them relative to each other until you find the top priority among them. "Top priority" is an emergent property of knowing which tasks are more important than others. That's how you set priorities.

Mokalus of Borg

PS - You may never get to those that get voted down to the bottom.
PPS - But you weren't getting to them anyway, so what's the difference?

Thursday, 31 July 2014

Software project estimation will always be hard

Software estimation has always been an issue. There's just no way around it, as long as people demand to know long in advance how long a software project is going to take, and especially if they'll get upset if it takes longer. While I appreciate that finance and budgets work a certain way - you have this much money, this much time and this project to do, is it possible? - I also recognise that software is notoriously difficult to predict.

We don't even have a great way to measure software project size. If you're building a bridge, you know how long it will have to be to go from here to there. Estimating a software project is like asking how many blueprints will be needed to design the bridge, but without any clear definition of "blueprint", or even "how many". Probably the best measurement to use is a nebulous Task, which must be broken down far enough that it will probably take an average programmer less than a day to do, and can be clearly seen to be done or not done (never, ever "90% done").

The problem is generating that task list. At that stage of a project, you won't know how big the project is, nor how complex the tasks it requires. To find that out, I think you just have to start. You might not even get a good idea of how large and complex a software project is until it's a quarter of the way complete. The most honest and accurate answer to the feasibility of the project at the beginning is "I can't know".

It seems the only way to get good at estimating software is to spend years trying and failing first, until you develop a good enough intuition about project sizes and how to break them down into tasks.

Once you do have that task list, however, you can start projecting a finish date by using "velocity charts". If you have a record of all your required tasks, then you can track how many are active at any given time and, as long as you're completing them at a rate faster than you're adding them, that graph will, eventually reach zero. If you add a margin around that, based on how far out it is, then you'll get a range estimate for your release date. As that date nears, you'll get more and more certain about exactly when all your tasks will be complete.

Mokalus of Borg

PS - A velocity chart can be depressing if it only goes up.
PPS - Or even if it just stays level.

Friday, 13 June 2014

Late communication

Late communication with support staff (I'm thinking IT support in particular, because that's my area of experience) leads to poorer service. It's not because they're bad at their jobs - far from it, in most cases - but when you only call them at the point where it's last-minute urgent, they can't set priorities in their work. They have to drop everything and focus on you, and then focus on the next catastrophe and so on. It leaves no time to keep the system as a whole in working order. It also means that your service is going to remain in its worst possible, barely-functional state at all times, because none of the issues are going to get fixed until the last minute.

I see it in software development, too. Clients will sometimes withhold information on requirements until the last minute, either to avoid "overwhelming" the development team or to manage the sequence of development. Neither one works very well, because decisions can only be based on what is known so far, and sometimes a wildly different decision would be made with all the information up front. If a developer doesn't know that, for instance, the next requirement up from "get this working for one user" is "now make it work for my whole team", a decision may be made to work on a single-user-focused platform like Access rather than something suited to teams.

The lesson is to do as much communication as possible up front. That way, everyone knows what's coming, conflicts come up right away when they're cheapest to fix, priorities and plans can be set and everyone knows what everyone else is thinking. Even if you don't know what's coming, communicate what you can. I promise it will go better that way.

Mokalus of Borg

PS - Some things will still be missed, I know.
PPS - Mostly it's because some things seem obvious to one person and not to another.