Pages

Showing posts with label crunch. Show all posts
Showing posts with label crunch. Show all posts

Wednesday, March 9, 2011

Book Review: Death March: The Complete Software Developer's Guide to Surviving 'Mission Impossible' Projects

A great book by Edward Yourdon, Death March: The Complete Software Developer's Guide to Surviving 'Mission Impossible' Projects. Being part of a crunch turned to death march projects, this book speaks volumes on the subject and is a worthwhile read (hopefully before you start on a project). For a death march project to occur, one or more project parameters exceed the norm by more than, 50%, time or resources needed that are not available results in a death march. Yourdon continues with the disturbing news that "Death projects are the norm, not the exception", even with the data that "the average project is likely to be 6 to 12 months behind schedule and 50 to 100 percent over budget."

How do death marches occur? The book describes a number of possible catalysts: company political reasons, naive promises made by marketing, senior executives or naive project managers, naive optimisim of youth (build any system over the weekend), "marine corps" mentality (no sleep necessary for "real programmers"), intense competetion, startup mentality, or unexpected crises. Yourdon stresses the political aspect as the most likely candidate of a death march. The politics can boder on the completely irrational: "Hysterial optimism, which is when everyone in the organization desperately wants to believe that a complex project, which has never been attempted before, but which has been realistically estimated to require three years of effort, can somehow be finished in nine months" (pg 10).

Why do people participate? High risk, high reward, naivete or optimism of youth, buzz of working closely together, Mt. Everest syndrome, alternative is unemployment, or revenge. The results are sacrifice personal health, mental health and personal relationships. I also talked about some of this in my post: http://gameprogrammertechnicalartist.blogspot.com/2011/01/why-do-people-crunch.html

If management expects time and budget to be padded they are expecting the estimation of schedules to be some "negotiating game", but is also likely to be some degree of naivete and lack of understanding of what really goes on. The owner of a death march is often a much higher-level manager than would be normal for the software project, usually with a long hierarchy of shareholders, stakeholders, project managers and customers in between and around. A long hierarchy often gets distorted on the way down to the project manager, where (on the way down) additional elements are tacked on to the message, bloating the project scope and timeline, with additional requirements, constraints and processes.

The major cause of death march projects is politics, often related to the negotiating games. Management always wants the enormous luxury of a promise of what something will cost, how long it will take and not have to worry about these factors, and also gives them a scapegoat for blame if the promise is broken. Senior management needs to share the burden of uncertainty and allow for changes at all levels, not bringing in someone for an on the spot estimate and building their entire project around something that has not been careful worked through. Always defer instant estimates, and always give +- estimates like 3 to 6 months, or 6 months +-50%

The book talks about four different categories for death marches:

High moral & High chance of success = Mission Impossible (a lot of hard work, but exciting)
Low moral & High chance of success = Ugly (marine corp mentality, whips cracking).
High moral & Low chance of success = Kamikaze (try and go out with one last hurrah)
Low moral & Low chance of success = Suicide (no alternative)

The interesting thing is that these values are all relative to the individual programmer. Some programmers may feel they are on a Suicide project, while others feel like the same project is a Mission Impossible one. People's commitment changes over time, almost always in a worse way.

Work has to be mutually beneficial, and if the threat of being fired or bypassed for a raise or promotion are common, then the strongest bargaining chip you have is displaying that you are ready to walk away from the relationship, if the results aren't mutually acceptable. Two specific issues that also have a significant impact on motivation, and which are usually under the manager's direct control: rewards and overtime. Bonuses are tricky and can backfire, at a startup with part of stock option available they may be a good modivation (like tens of thousands, or millions of dollars), support for the whole family, taxi service, grocery service, and helping to provide medical attention to the whole family. This costs money, but usually a very small amount. Give extended vacation (they will need it) not just a few days but extended period of time. Consider a paid sabbatical (6 months to just work on whatever they want it to be), and loaning project equipment.

The main focus of the dealing with death marches is "triage", where each task is separated into "must-do," "should-do," and "could-do" categories. After all the tasks have been separated, all work is done on the must-dos, then the should-dos and then the could-dos (if there is time). The idea behind this is if "80-20" rule holds true, the project team might be able to deliver 80 percent of the "benefit" of the system by implementing 20 percent of the requirements (if they implement the right 20 percent). Stephen Covey puts it in First Things First [I], "the main thing is to make sure that the main thing is the main thing."

Yourdon offers some other project manager tips as well.

- Project leaders should put in as many hours as possible to lead by example.
- Target 60-80 hours a week, but know your limits, everyone reaches a point of diminishing returns.
- Need to be trueful with the team, disillusioning to find out crucial information later.
- Make sure people are compatible.
- Show work in increments, but avoid prototypes which only perpetuate an illusion of completed work.
- Modifications to baseline requirements should be made public for all to see.
- Don't introduce new processes to a death march project.

At some point the death march is likely to reach an "ugly crisis" where it is shown that the project will not be completed on time, and the project manager is fired and replaced with a new project manager who is supposed to "get it out on time". The work-in-progress created by the project team before the "ugly crisis" occurs usually ends with the sad result of being thrown away: "The real reason why all of this partially-completed work ends up being wasted inventory is that no one will ever have time to come back to it. Assuming that the project team members (now under the control of a new manager, whom they may or may not respect) is able to deliver the "bare minimum" of critical functionality, they're usually so exhausted that half of them quit. And the users are so disgusted with the project that they never bother asking for the rest of the unfinished functionality; or conversely, they're so satisfied with the minimal functionality that they never bother asking for the rest of the system".

Even though everyone understands the issues intellectually, the political battles surrounding death march projects makes it almost impossible to reach a consensus on a reasonable triage. It's only when the "ugly crisis" occurs that the various parties finally agree on something that they should have agreed upon when the project began.

Try to focus on what works, not the process or methodology, or buracracy. Not to say not to have a process, since that can be a significant process, but be reflective of what works and what doesn't. Minimize number of tools needed, like a mountain climber, just bring the essentials.

Finally, Yourdon recommends quitting or leaving if it is a viable option, learning something new for less pay will make you a happier person. If any of these succeed, what is to say that they won't try it again? Some companies need to fail to see what they are capable of, hopefully it doesn't ruin the company. It is important to not measure the success of a project by the number of divorces, broken relationships and ulcers.

I have been part of a few death marches, and while a few can be bearable for a little while, in the long run you will almost always regret it. Avoid these types of projects if at all possible, everyone needs balance in their lives. If you find yourself on this type of project, the most important thing to remember is this: Life > Job

Best of luck,
Michael Hubbard
http://michaelhubbard.ca

P.S. Or if you prefer Life > Work (Life is greater than Work, for my non-programming friends), I should make it a t-shirt :P

Sunday, February 20, 2011

Day in the Life of a Game Programmer/ Team Lead (in Crunch)

Well, the day still starts at 7:00 AM, but the timeline is a bit different in a crunch. See my original post for comparison: http://gameprogrammertechnicalartist.blogspot.com/2010/10/day-in-life-of-game-programmer-team.html

07:00-07:14 (00:14) Wake up to an alarm, keep hitting snooze.
07:14-07:32 (00:18) Shower, (skip breakfast) and leave.
07:32-07:51 (00:19)
Leave apartment walk to bus stop.
07:51-08:30 (00:39) Get on bus, rest my eyes, but do not sleep.
08:30-08:33 (00:03) Walk to office, drop stuff off at my desk.
08:33-08:37 (00:04) Grab one of the many coffees of the day.
08:37-08:44 (00:07) Update code, check email, some admin stuff.
08:44-08:54 (00:10) Talk with one of the dev, answer questions.
08:54-09:15 (00:21) Update and print out bug list from QA.
09:15-09:30 (00:15)
Stand up meeting for half the dev team.
09:30-09:45 (00:15)
Stand up meeting for the other half of team.
09:45-10:00 (00:15) Meeting with server leads, about bug list.
10:00-10:06 (00:06) Grab another coffee, talk about a bug.
10:06-10:36 (00:30) Code.
10:36-10:42 (00:06) Clarify some code standard.
10:42-10:50 (00:08) Give current status.
10:50-10:54 (00:04) Answer some questions about specific feature.
10:54-11:38 (00:44) Code.
11:38-12:18 (00:40) Test and submit some bug fixes.
12:18-12:24 (00:06) Walk to get some lunch, call girlfriend.
12:24-12:36 (00:12) Buy some lunch (Subway), take it to my desk.
12:36-01:07 (00:31) Update repository, eat, and continue to code.
01:07-01:10 (00:03) Give status.
01:10-01:14 (00:04) Code.
01:14-01:21 (00:07) Answer important emails for clarification.
01:21-01:26 (00:05) Code.
01:26-01:29 (00:03) Help answer a developer question.
01:29-01:35 (00:06) Code.
01:35-01:43 (00:08) Grab another coffee, and coffee related break.
01:43-01:48 (00:05) Answer some questions in email.
01:48-01:51 (00:03) Code.
01:51-02:33 (00:42) Help developer debug an issue.
02:33-02:35 (00:02) Grab another coffee.
02:35-02:57 (00:22) Code.
02:57-03:01 (00:04) Answer email.
03:01-03:36 (00:35) Merge code and look over changes.
03:36-03:46 (00:10) Answer questions.
03:46-04:11 (00:25) Code.
04:11-04:20 (00:09) Give status.
04:20-04:24 (00:04) Code.
04:24-04:47 (00:23) Grab coffee with another dev.
04:47-05:59 (01:12) Code.
05:59-06:14 (00:15) Discuss implementation issue with other dev.
06:14-06:27 (00:13) Pizza arrives, grab a few slices and a pop.
06:27-07:17 (00:50) Code.
07:17-07:36 (00:19) Talk with developer, write email for tomorrow.
07:36-09:58 (02:22) Code.
09:58-10:09 (00:11) Add notes and tasks for tomorrow.
10:09-10:43 (00:34) Talk with other devs about tasks, status.
10:43-10:58 (00:15) Leave and walk/wait for bus.
10:58-11:36 (00:38) Rest on bus, phone and reading.
11:36-11:46 (00:10) Walk home.
11:46-12:02 (00:16) Talk with girlfriend, get ready for bed.
12:02-12:36 (00:34) Personal email, brief web surf.
12:36-07:00 (06:24) Sleep, so the whole thing can start again.


Breakdown:

Work:
Administration (email, delegating tasks, status): 2 hour 8 minutes.
Breaks (lunch, dinner, coffee): 1 hour and 14 minutes.
Coding: 8 hours and 33 minutes.
Helping Others: 1 hour and 30 minutes.
Meetings: 45 minutes.

Home:
Computing (web surfing, project coding): 34 minutes.
Exercise: 0 minutes.
Personal Maintenance (food, shower, etc.): 48 minutes.
Reading (including bus travel time): 38 minutes.
Sleep: 6 hours 24 minutes.
Travel (not including bus reading time): 1 hour 26 minutes.

Other Facts:
Read 48 emails.
Sent 13 emails.
No code review.

If you compare this with the previous day in the life entry there are a few substantial differences. Even though I am spending approximately 16 hours and 14 minutes away from home, the coding time still only amounts to half of my day. All the other aspects including meetings, admin and help have gone up, and nothing has gone down (on the work side).

The home side is where all the time goes. Sleep takes a hit (about half and hour less), exercise is non-existent, and coupled with fast food for lunch and dinner is going to make me gain weight and have less energy overall. This plays into attempting to sleep on the bus, but really turns into wasted time, since I want to sleep in the morning (and am too tired to read), but can't really get to sleep on the bus with all the noise and crowded seats in the morning. I also tend to miss making breakfast, but will try and grab something like a banana, apple or bagel on my way out the door to eat on the way to the bus.

There are still a lot of interruptions, a lot more status updates and emails. Organizing the crunch is tricky since there are always "fires" that have to be put out, and as things move faster, more coordination is needed to make everything work smoothly.

With so much time at work, there is very little personal time for any time with loved ones, projects, additional reading, or relaxation. I try and phone when I have free time (lunch and on the bus), but this is not the same as being around. If you are at this pace (or worse) for a prolonged period of time, that means you are on a death march. If this lasts longer than a few weeks (longer than three weeks maximum) it will start to take a toll. This is not the worse pace I have been on (I slept under my desk multiple consecutive nights earlier in my career), but it is a difficult one to maintain.

With so many tired devs, so much extra coordination, many interruptions, minimal code reviews, extra status updates, it becomes a tricky situation to balance. Throw in low energy, running on coffee and a lot of other tired developers and co-workers, it can quickly turn ugly if spirits are not high. Everyone wants to see the project out, but there is still a lot of work to do. I should probably take my vitamins.

Wish me luck,
Michael Hubbard
http://michaelhubbard.ca

Sunday, February 13, 2011

One day at a time

How do projects succeed or fail? One day at a time. What is your focus during the day, do you always work on the most important aspects first, or do you get swept up in the tiny details each time. Too often it is these tiny details that become death by a thousand cuts. Sure it is great to have all those little features done and edge cases for functionality, but it so often comes at the expense of major features.

What is your time for iterations, how many iterations do you usually require?

This is often a major issue in larger teams, especially across departments. Tightening up iterations is essential and the decision making needs to be given to the people actually doing the work. Whenever there is someone who says that they could handle all aspects of a project in a day, or week or month, they are often talking about single person efforts where they created the art, game play mechanics and everything else without outside influence. If art or creative requires some feature to be "just so", then the individual who has the final say should be working side-by-side with whoever is developing it until it is complete. If the need for a server call or API to work a certain way, the server dev should be the one writing and using the test cases from the client code. Everytime you introduce a task that requires two people and there exists a separation between those two people, the results will be extremely slow. Instead, having the participants nearly sequestered until the result comes through is essential.

What is better in most cases is to have people that can handle both roles, so there is not a need for two people on those crucial elements. It is also important to understand how much iterations cost. If there are ever more than three iterations on a single element it needs to get hammered out and finalized immediately. Iterations often come from too many individuals involved in the decision making, and the people doing and monitoring the work not being involved enough in the process. If it is not right by the third iteration of a completed work of functionality and can not have the details finalized, it should be put on the bottom of the work pile as a "nice to have". Granted this usually becomes a highly visible topic that makes it difficult to ignore, but it is essential not to waste time on something that can not be decided. When asked for status, ask instead for requirements and also ask for confirmation that these are the final requirements. If there are still issues, ask the people involved to all sit down and get it to work as intended. If those people do not have the time, then it is very likely trivial anyway, and the numerous iterations a product of their ego, and thus good enough as is.

Another big problem is the lack of tools development. Consider tools as the scaffolding to build your project. If you don't spend a little time building tools that improve workflow and minimize time for iterations you will waste a lot of time getting these things done manually. There does need to be a balance though as too much time on tools is also not put into the final product. In most cases tools are somethings you wish you had time to develop for, but don't have time to do for "this" project, having a few people working on tools throughout the project will help minimize this issue when in a crunch.

What it all comes down to is how much closer do you get to your final goal each day? So often time is spent on trivial things that in the end don't really matter to the end result. With every day of effort you should ask yourself, did I focus on implementing the feature that would make the game the most fun, stable or maintainable? If the answer is no, what were you working on, and why were you working on it instead? Often the answer to this is A: it was an iteration on an existing requirement, B: it was a new feature or request, C: it will only take a day to implement, so why not just get it done and over with now.

Every day matters, especially in a crunch.

There is a saying that I always liked, since games are notorious for feature creep and changes in requirements: You will have a good idea today, a better idea tomorrow, but the best idea... never! This is because the best idea today, is not the best idea for tomorrow. Hardware, software, opinions and markets all change, so sometimes you just have to go with a good idea.

Best of luck,
Michael Hubbard
http://michaelhubbard.ca

Sunday, January 30, 2011

Why do people crunch?

I was asked by a friend an colleague: "why do people crunch"? This is not an easy one to answer. I suppose for everyone it is a little different, and is often based on the person themself, their attitude, personality and history. For me, I usually enjoy the work, and like the challenge and the feeling of accomplishment when all is said and done (to a point). There are others who will feel it is their duty and responsibility to complete a task to the best of their ability. Others still will fear the consequences if they do not get their work done, and for many it is likely a different combination of all of these responses (and more).

What a crunch can be, is a way of finally pushing the efforts of your labor out into the real world. It can be a symbol of pride to get your work out there, and to finally see it stand by itself. It is hopefully something to be proud of, to feel a sense of accomplishment and satisfaction of what was achieved (often the more difficult projects are the most rewarding in the end). Hopefully along the way you have gelled with the other developers and created a great and fun team.

The opposite end of the spectrum is a situation where whips crack, and people yell. Where all of your blood, sweat and tears is just going towards making someone else richer, and everyone on the team feels that way. While some overtime is almost always expected with any sort of programming job, a ridiculous work schedule should not be accepted for any job. Do what you can, and make sure that whatever you do, you work as a team. Making games should be fun, if it is not, something is going seriously wrong.

Best of luck,
Michael Hubbard,
http://michaelhubbard.ca

Saturday, January 29, 2011

Code Reviews in Crunch

Code reviews are important (yes, really). If you have a code review tool like Rietveld, Crucible or CodeStriker it is nice to have a central place to do code reviews, especially for a large team. But how often to do the code reviews and is there time?

The benefit of code reviews is difficult to measure and is different from team to team. In a large team with hundreds of thousands (or millions) of lines of source code, no one individual knows all the code, and duplication of code often will happen for those unaware that the functionality already exists. Code reviews are useful for both the reviewer and the reviewee as it shares knowledge and gives feedback on the code quality and implementation. Unfortunately, like many practices during a crunch, code reviews are often one of the first to go. This is understandable, but is important to maintain some form of code reviews throughout the project, especially for crucial pieces or for the more junior developers. They don't have to be as formal, but a quick sanity check of the code your tired developers is putting in will help catch some bugs, flaws in design and other aspects that happen when a project is rushed.

Some people would suggest code reviews for every check in, but I feel it depends on the team. Knowing that someone will review your work is helpful in maintaining a high standard, but at least doing a few key ones with some random spot checks will hopefully help catch a number of issues. Even if team wide the time spent doing code reviews a few hours a week, it will at least bound to catch a few things, and teach you more about the code.

If your project (for some reason) hires new people onto it while in crunch mode, one of the best things you can do is have the person on (nearly) full time code review. This benefits in a few ways. First, the new developer will learn what kind of code is expected, what is being worked on, who is working on it and how the code progresses. Second it will give you information about the new developers skill set, by what kinds of questions they ask and what kind of comments they make. Third, it keeps the new developer out of the code base for a little while, since unless there is something trivial to do, a new developer is more likely to take time away from others with questions and training then they are able to contribute. At least one senior developer should still spend some time as part of the code review, but limiting their time in a crunch is understandable.

If you aren't doing some code reviews, it is a beneficial practice. More time is often spent reading code than writing it, so giving feedback and making the code the best it can be, will help in both the short and long run.

Keep on reviewing,
Michael Hubbard
http://michaelhubbard.ca

Saturday, January 22, 2011

Estimating "How Long will it Really Take"

First off, I want to say I love Star Trek, especially The Next Generation, and still consider it one of my all time favorite shows. Here is a great scene from Captain Montgomery Scott (James Doohan) and Lieutenant Commander Geordi La Forge (LeVar Burton). Season 6, Espisode 4 "Relics"

Scotty: "Do you mind a little advice? Starfleet captains are like children, they want everything right now, and they want it their way. But the secret is to give them only what they need, not what they want."

La Forge: "Yeah, well I told the captain I would have this analysis done in an hour."

Scotty: "How long will it really take?"

La Forge: "An hour."

Scotty: "Oh, you didn't tell him how long it would REALLY take did you?"

La Forge: "Of course I did."

Scotty: "Oh laddy, you've got a lot to learn if you want people to think of you as a miracle worker..."

So, you have a task to do. How long does it take? The boss wants it done ASAP, you of course want to deliver it with the right estimate.

How best to estimate how long it will REALLY take?

Is it like anything that you have done before?
Do you have to learn anything?
How many unknowns in the specification?
How big is the scope of the project?
How many people have to interact with finishing the task?
How complex is the task?
What dependencies (if any) do you have for finishing the task?
How many other tasks do you have to handle simultaneously?
Is it something new, or something you have to build on?

All of these questions are important to run through your head (as well as others I've missed) and you should be realistic with your expectations. This isn't to say you should pad your estimates to give yourself a lot more time, but instead understand that giving accurate estimates can effect the direction that the project manager will take and will likely affect the direction of other tasks (and dependencies) based on your estimates.

One of the things that is worthwhile, is to document your estimates on everything you work on (both professional and at home) and keep track of how close you are to your estimates. The only real way of getting good at estimating is to do a lot of them.

Scotty also has important advice, that it is more important to deliver within the time you have given than it is to be constantly late.

It is important to give accurate estimates, but unless you are Geordi La Forge, you will likely make mistakes on your estimates. Once you have given your word on an estimate, you are responsible. Often this can have a cascading effect, where promises can be made on delivery dates that are now based on your estimate. Be careful with your estimates, it is better to deliver ahead of schedule than behind it, although right on schedule is obviously the best. Research your estimates always, and sometimes they will shift the course of the project.

From another episode "The Ensigns of Command" Season 3, Episode 2:

Riker: Gentlemen, we're giving you an assignment. The one thing we don't want to hear is that it's impossible.
Picard: I need the transporters to function, despite the hyperonic radiation.
La Forge: Yeah, but that's imp... Yes, sir.

Wesley Crusher: He wants the impossible!
La Forge: That's the short definition of 'captain'.

La Forge: Captain - we can do it. We can modify the transporters.
Picard: Excellent.
La Forge: It'll take fifteen years and a research team of a hundred...
Picard: Mr. La Forge... I believe we will postpone.

It would be really great if all my blog posts were related to TNG episodes :P

Engage,
Michael Hubbard
http://michaelhubbard.ca

Sunday, January 16, 2011

Deadlines in a crunch

Deadlines are like dominos. If you miss one, it can cascade to all the other following deadlines making it very difficult to catch up. You need to stop this from happening, immediately. If you do not catch up, it can be very difficult, or even impossible, to get on track, and you can end up being stuck in a perpetual crunch if the deadlines are always falling behind.

If the deadlines are always impossible to acheive there is a good chance that the initial estimates were not correct. How to correct this? In an agile environment where the team creates the task list for the coming weeks it can quickly be amendend to allow for time to fix the deadlines. Hopefully you find yourself in this situation, but if you are in a crunch you need to merge the deadlines together to allow any traction you have in other areas to catch up for this.

Get rid of demos, there is no time for throw away code.
Get rid of presentations for anyone involved in getting the project out the door.
Lock down everything, no feature creep, no requirement changes.
Get QA to test the daily build, anything older is a waste of time to test.
Avoid creating tools, if you don't have it now, they will have to wait.

Always try and avoid creating "throw away" code, if you are having to maintain the code or build off it, you should always do things right, it will always save you time. In a crunch it is easy to want to hack. If you really have to, make sure you document every hack with a prefix like "HACK_" infront of every variable and function that you create. At least if you do this you should be able to find these easily, and hopefully clean this up if you have time (although realistically you won't have time).

Just do your best to get it done, but there will be more code than you will have time to do. During this time the quality will go way down, and management pressures will likely push the quality even lower. You will be tired, you will not be at your best, maintenance will be difficult, but with a lot of luck you can get it out the door with minimal hacks.

Best of luck,
Michael Hubbard
http://michaelhubbard.ca

Sunday, January 9, 2011

Dunning-Kruger effect

The worst part about a crunch is the toll it takes on the people. Everyone starts to get tired and cranky (shame programmers don't have cheerleaders). Anyway, for whatever reason my mind wandered over to the Dunning-Kruger effect taken from wikipedia (I know I know, I will try and find a better site for sourcing): http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect

The Dunning–Kruger effect is a cognitive bias in which unskilled people make poor decisions and reach erroneous conclusions, but their incompetence denies them the meatcognitive ability to appreciate their mistakes. The unskilled therefore suffer from illusory superiority, rating their ability as above average, much higher than it actually is, while the highly skilled underrate their own abilities, suffering from illusory inferiority. Actual competence may weaken self-confidence, as competent individuals may falsely assume that others have an equivalent understanding. As Kruger and Dunning conclude, "the miscalibration of the incompetent stems from an error about the self, whereas the miscalibration of the highly competent stems from an error about others"

A lot of attitudes come out of a crunch, more often than not poor attitudes, with people being "thrown under the bus" or "getting yelled at". It is sad really, but such is the nature of business. The Dunning-Kruger effect is important to think about, during this time, as everyone seems to have an opinion at these times. However, it is also important to consider this related to your own abilities.

How much do you know about a subject? It has been suggested that it requires around 10,000 hours for mastering something (which in most cases is ~10 years). The game dev community is fairly young, and finding a lot of people with 10+ years in a specific field is rare, couple that with the enormous amount of research and different elements that game dev and tech art consists of and you will never find someone who has mastered it all. I always like to compare know-it-alls to the socratic intelligence, where claiming to know nothing is considered the greatest intelligence:

"I know that I know nothing"
Social gadfly · Trial of Socrates

This is a much better attitude in my opinion, as it leaves you open to possibilities that you never would have considered before. It can get a little cheesy if you take it too far, but still it is good to consider all options and occassionally the source of opinions too.

Do I know that I know nothing?
Michael Hubbard
http://michaelhubbard.ca

Friday, January 7, 2011

Crunch together

A team in crunch has a good chance of jelling, it is often during this time that a team can really learn more about each other and bond. Working long hours after many of the other employees have gone home does not feel quite so bad when you are not alone. It gives a better feeling of teamwork if you are all sitting together working away, bouncing ideas of one another and helping solve problems that is often more personal than during the regular work day.

This time can often generate some great war stories, I remember at a previous company one time another developer and I stayed up until 2 am Saturday night (Sunday morning) working away on some sync server integration. After banging our head against the wall of a server call that was blocking us, we went to the Subway for a midnight snack. When we came back, I began hacking into some server code (totally different language and code base than what we were working on) and hooked it up to give us the parameters we needed for syncing game elements so we could continue working. It was a lot of fun, and gave a great sense of accomplishment and while it was modified and properly "fixed" by one of the other server programmers the following Monday, it was great to remove the blockage to allow us to continue working and was rewarding to overcome these kinds of challenges together.

Until next time, try not to work too hard,
Michael Hubbard
http://michaelhubbard.ca

Wednesday, January 5, 2011

Crunch

Crunch, overtime, force-overtime, deathmarch. Call it what you want, no one likes it, no one wants it, and yet it seems to happen in far too many places, and far too often (will have to read that Deathmarch book soon I think).

So, how do you deal with significant amount of overtime? Well, hopefully, you are doing something fun, like a cool game, animation, film or whatever project that you are excited to go to work for, and that will get you by for a little while (if you are lucky for the remainder of the crunch). Either way here are a few tips that I have come up with, that may help you too.

1. Eat: if all you are thinking about is how hungry you are, you are not thinking about how to solve that complex problem. Eating will also give you a bit of a break, hopefully a chance to talk to a few other tired soliders about their battles, and gives your body extra energy for the next attack (managers you should be getting food for your team, variety is nice, try and get from as many different places as possible, eating pizza everyday is only fun for the first week). Oh, and yes you will gain weight during the crunch :P

2. Drink: avoid overdoing too much caffeine (use sparingly or save it for the final few days, if you need it). Too often, people ramp up too fast and can't maintain the pace. Go slow, drink lots of water as well as some other things (I like green tea, but go with whatever you like (I like energy drinks occassionally too, but use in moderation)). Remember, this isn't a sprint, this is a marathon.

3. Call your loved ones: you won't be seeing them very much, so try and call them during your lunch break or whenever you get a chance during the day, and make sure you do it, and be consistent. Too often it is easy to get wrapped up in the world of the job, but while it is taking all the time of your current life, don't let it take your future life too (a project should success should not be measured by number of divorce papers, heart breaks and forgotten kids).

4. Take some breaks: get up, walk around, stretch, do some pushups (or consider doing some pushups) to ward of some of the pizza, grab another cup of coffee or tea or water. All this sitting and you will be getting tired, having a quick break and tiny use of energy will still let your brain think on the backburner while giving your body a chance to adjust and feel more alive. Whenever you get really stuck and have been stuck for a long time, get up and take a break.

5. Sleep: you will not be able to do all the things you like to do during a crunch period. Instead, focus on getting some sleep when you get home. If you are lucky, you will have someone else who can help with things (clean laundry is nice), but only focus on the essentials and be sure to sleep as much as you can (you are taxing your body and will need the recovery time).

6. Take a weekend: sometimes things will pile up (laundry?) that you will need to take care of them. You should try and take one weekend a week if possible, or at least half a day on the weekend to see those people you have been calling, and take some personal time.

7. Try and do some work from home: if possible working from home will help, you won't be as productive or have as much team building as you would at the office, but you will at least be able to help around the house if necessary and see those people you haven't for a while.

8. Keep track of your time: it is worth knowing how much time you put in. This is time you are unlikely to get back (hopefully you will get some undertime or lieu days) but it becomes far more important for future project planning. When someone says, of course you can get that done in a month you can say no, actually it took four, 70-hour weeks to accomplish, which is more like seven, 40-hour weeks to finish, which becomes a huge difference.

All in all, crunch is usually something that should be minimized (in my experience, 3-weeks of hard straight crunch is usually about most people's limit). Extended crunch for months on end becomes a death march, and often it is not just the project that is in danger, but also keeping the team intact.

Best of luck in the crunch,
Michael Hubbard
http://michaelhubbard.ca