I had to buy something tonight. I had researched it this afternoon and now I was ready to buy. And while I was in my shopping cart, they took they site offline for scheduled maintenance. At 9 pm on a weekday? Who does that?
I tried finding a competitor, but no one was coming close. None of the competitors gave me the peace of mind that I was buying precisely what I needed. After about 15 minutes their site came back online and I was able to finish my transaction.
But the checkout was horribly designed - the fields you fill out were in a random layout and the explanation of what was in each field was in the field, so as soon as you clicked on it, you no longer knew what you were expected to put in that field. And then on the last screen, you get this bit of awesomeness.
Order acceptance policy: The order acknowledgement is not a contract and does not constitute an acceptance of your order, but only a record of your offer to purchase a particular item at a particular price.
After you place an order, [COMPANY] will determine whether or not to fill the order, and [COMPANY] may refuse or limit your order for any reason. By placing your order, you agree to accept all terms and conditions set for anywhere on this site, including [COMPANY]'s terms and conditions of sale.
[COMPANY] reserves the right to accept, refuse, or limit your order for any reason, including, but not limited to, credit review, the unavailability of a product or errors in the prices and product descriptions posted on this website. By placing your order, you agree that [COMPANY]'s total liability, under any legal theory or claim, shall be limited to the purchase price actually paid to [COMPANY] for the product giving rise to [COMPANY]'s liability.
Sad. Doesn't make me feel appreciated as a customer.
Wednesday, September 10, 2014
Sunday, September 07, 2014
Book Review: Birthmarked
Birthmarked by Carah M. O'Brien
Review by James Lamb (Sept. 7, 2014)
Yes, one of these days I need to read another non-fiction book. But I do love the escapism provided by the YA post-apocalyptic and dystopian genre.
I enjoyed Birthmark - it was a pretty easy read with a great ending - satisfying as a read but with a decent cliffhanger to make you want to read the next one. This book would fall into the "haves/have nots" subgenre - facing an end to petroleum and declining sources of water, an enterprising group formed a walled community, designed to be self-sufficient, ruled by a benevolent first family. Situated on the shore of one of the now empty Lake Michigan (or "unlake"), its scale is difficult to understand - they are big enough to be able to produce intricate technology like watches and water bottles (despite the lack of petroleum?), but it's small enough that the only forms of transportation mentioned are walking or carts and beasts of burden like horses or donkeys. Inside the wall, they enjoy lights on motion-sensors, but both inside and out use gutters and cisterns to capture water for drinking and bathing.
Around the outside of the walls, communities formed. They have bakers and tailors and small business, but they don't have full autonomy - the militia of the walled community may interfere in the business of the people outside, including arresting them. In time a co-dependency formed - the "Enclave" would provide valuable things (like water, mycroprotein - a manufactured food - and passes to an entertainment complex it maintained for the have nots) and eventually grew to a requirement to provide the first two children born each month to the Enclave. For a brief moment, I wondered about the connection between the babies and the mycoprotein and had a worry that it was going to be a Soylent Green thing but I was relieved that it wasn't. Without giving away too much, the founders miscalcuated the size of population needed for the Enclave and now after too many generations the gene pool is contaminated and weak and the Enclave needs outsides to add diversity back in - they are having trouble conceiving children and too many who are born die young from diseases like hemophilia.
Our heroine is a 17-year-old girl named Gaia who was burned by hot wax when she was 10-months old. At that time, the Enclave chose children once a month from all one-year-olds, so she had been passed over because of her scarring, and that was not the last time she'd be passed over. Later, the Enclave decided that babies would need to be surrendered within 90 minutes of birth. Gaia followed in her mother's footsteps, becoming a midwife, a lucrative job. She had apprenticed with her mother, but the story picks up the night she's forced to deliver a baby on her own after she can't find her mother. The delivery goes well but she returns home to news from her neighbors that her parents have been arrested and to find a member of the Enclave militia in her living room.
An interesting distinction from a lot of this genre, the relationship between the haves and have nots is not as adversarial as you might expect. It's not great - despite promises that all children who wish to leave the Enclave on their 13th birthday to return to their birth parents, none ever do. But it's also not a war. There is subversion, but I liked that it's not an out-and-out war where every single person is suspect. You can't trust people's motives, but the book lacks that sort of paranoia and edge of fear that can be a little wearying. Maybe I've been reading too many zombie books.
I also liked how well things were described - it was easy to get a picture in my mind of surroundings, even when they passed quickly during action sequences. It just seemed effortless to read.
I'm looking forward to book 2. Right now, you can read the first five chapters for free
on a Kindle, Kindle app or the web Kindle cloud reader.
Yes, one of these days I need to read another non-fiction book. But I do love the escapism provided by the YA post-apocalyptic and dystopian genre.
I enjoyed Birthmark - it was a pretty easy read with a great ending - satisfying as a read but with a decent cliffhanger to make you want to read the next one. This book would fall into the "haves/have nots" subgenre - facing an end to petroleum and declining sources of water, an enterprising group formed a walled community, designed to be self-sufficient, ruled by a benevolent first family. Situated on the shore of one of the now empty Lake Michigan (or "unlake"), its scale is difficult to understand - they are big enough to be able to produce intricate technology like watches and water bottles (despite the lack of petroleum?), but it's small enough that the only forms of transportation mentioned are walking or carts and beasts of burden like horses or donkeys. Inside the wall, they enjoy lights on motion-sensors, but both inside and out use gutters and cisterns to capture water for drinking and bathing.
Around the outside of the walls, communities formed. They have bakers and tailors and small business, but they don't have full autonomy - the militia of the walled community may interfere in the business of the people outside, including arresting them. In time a co-dependency formed - the "Enclave" would provide valuable things (like water, mycroprotein - a manufactured food - and passes to an entertainment complex it maintained for the have nots) and eventually grew to a requirement to provide the first two children born each month to the Enclave. For a brief moment, I wondered about the connection between the babies and the mycoprotein and had a worry that it was going to be a Soylent Green thing but I was relieved that it wasn't. Without giving away too much, the founders miscalcuated the size of population needed for the Enclave and now after too many generations the gene pool is contaminated and weak and the Enclave needs outsides to add diversity back in - they are having trouble conceiving children and too many who are born die young from diseases like hemophilia.
Our heroine is a 17-year-old girl named Gaia who was burned by hot wax when she was 10-months old. At that time, the Enclave chose children once a month from all one-year-olds, so she had been passed over because of her scarring, and that was not the last time she'd be passed over. Later, the Enclave decided that babies would need to be surrendered within 90 minutes of birth. Gaia followed in her mother's footsteps, becoming a midwife, a lucrative job. She had apprenticed with her mother, but the story picks up the night she's forced to deliver a baby on her own after she can't find her mother. The delivery goes well but she returns home to news from her neighbors that her parents have been arrested and to find a member of the Enclave militia in her living room.
An interesting distinction from a lot of this genre, the relationship between the haves and have nots is not as adversarial as you might expect. It's not great - despite promises that all children who wish to leave the Enclave on their 13th birthday to return to their birth parents, none ever do. But it's also not a war. There is subversion, but I liked that it's not an out-and-out war where every single person is suspect. You can't trust people's motives, but the book lacks that sort of paranoia and edge of fear that can be a little wearying. Maybe I've been reading too many zombie books.
I also liked how well things were described - it was easy to get a picture in my mind of surroundings, even when they passed quickly during action sequences. It just seemed effortless to read.
I'm looking forward to book 2. Right now, you can read the first five chapters for free
on a Kindle, Kindle app or the web Kindle cloud reader.
(Amazon
Monday, September 01, 2014
Leading in Challenging Situations (A Work-Related Post)
I recently attended a leadership workshop where a model was presented that could be used to "foster [trait] in [person]" or "bolster [person/team] during challenging times."
As I've had opportunity to apply the model since then, I've refined it and wanted to share my refined version.
Essentially, this model takes you along the page from WHO to WHY to HOW to WHAT. (WHEN and WHERE are ultimately covered in HOW and WHAT.)
The model was presented as rings arranged in a circular fashion, it was suggested that you could traverse the ring in any fashion. Depending on the situation, you may start at different points. You may start with WHAT (what you want, what must happen) but don't make that the default. In some cases, you may leave the HOW and some of the WHAT to the staff themselves. I do recommend starting with "Understand the Situation" - that wasn't in the original model. Perhaps it was implied, but I thought it was important to call it out.
WHO -> WHY (relational)
UNDERSTAND THE SITUATION
This may be the behavior or actions of an employee that you wish to change, or it may be a situation external to (but impacting the employee). The situation may seem unclear at first but as you start writing you'll get it - or you'll have written down "the situation is unclear" which is in fact a legitimate situation.
In one to three sentences, summarize the situation. (Two examples: Bob seems to offend people when delivering bad news; it's Saturday morning and the server has crashed and the CEO is screaming into my boss' phone and Erika's already looking into it but we don't know any more beyond that)
UNDERSTAND THE PERSON, UNDERSTAND THEIR MOTIVATION
Again, two to three sentences about the person and why they're reacting the way they are.
Bob delivers the truth logically and unemotionally. He thinks he's being helpful by getting right down to the point, but without any preamble people think he's being aloof and without any context they don't know what to think about the data he's providing.
Erika has quickly responded to the server failure and diagnosed it's a problem with the hardware. She's called the hardware team but they're not responding. Erika has a strong sense of duty and gets things done, but she tends to quickly become frustrated when she has to rely on others who she doesn't think are working as hard. Also, her family is in the car waiting for her so they can head off to the beach.
WHY -> HOW
EXAMINE TEAM CULTURE (Set the Vision)
This is a pervasive and ongoing process that you should be regularly investing in - what is the identity of the team? What is its voice, branding, engagement model? How is it expected to behave? This helps build a framework that can be used in all situations. In this particular situation does team culture fit? And is the team member exhibiting it?
MODEL (Lead by example)
This is how you personify the team culture as you expect it to exist. This happens before, during and after any challenging situation - you must be consistent and you must know what you expect and what you want others to perceive.
HOW -> WHAT
EXAMINE PROCESS (Foundational, Vision-in-action)
For all situation, some sort of framework should exist. Even in the case of a true "fire" where little is known, people are running around crazy, process should exist (and have been defined during a period where there is no "fire"). This is the vision being carried out. This should allow people to act in new situations in a manner consistent with the vision.
ESTABLISH CLEAR EXPECTATIONS/LAY DOWN CLEAR CHALLENGE (Direct)
At a certain point, it may become appropriate to step in and identify what you expect will occur. This may be a change in behavior or a final deliverable or a resolution to a problem. You are identifying what you want. This may be a coaching opportunity.
IDENTIFY/UNDERSTAND THE DESIRED OUTCOME
In most cases, you may leave the outcome or the method of getting there up to the staff themselves. If this is the case, you need to make sure you understand their plans so that you can affirm, course correct or manage up as appropriately.
WRAP IT ALL UP
The issue at hand does not truly exist until you acknowledge it and begin the process (until you're involved, the situation is someone else's). By working this model, you are also clearly stating that you expect the situation to have an end point. A lot of this work is internal, you'll keep it to yourself. But taking the time to think through the steps will help you to make sure you have a solid, honoring approach to resolution.
As I've had opportunity to apply the model since then, I've refined it and wanted to share my refined version.
Essentially, this model takes you along the page from WHO to WHY to HOW to WHAT. (WHEN and WHERE are ultimately covered in HOW and WHAT.)
The model was presented as rings arranged in a circular fashion, it was suggested that you could traverse the ring in any fashion. Depending on the situation, you may start at different points. You may start with WHAT (what you want, what must happen) but don't make that the default. In some cases, you may leave the HOW and some of the WHAT to the staff themselves. I do recommend starting with "Understand the Situation" - that wasn't in the original model. Perhaps it was implied, but I thought it was important to call it out.
WHO -> WHY (relational)
UNDERSTAND THE SITUATION
This may be the behavior or actions of an employee that you wish to change, or it may be a situation external to (but impacting the employee). The situation may seem unclear at first but as you start writing you'll get it - or you'll have written down "the situation is unclear" which is in fact a legitimate situation.
In one to three sentences, summarize the situation. (Two examples: Bob seems to offend people when delivering bad news; it's Saturday morning and the server has crashed and the CEO is screaming into my boss' phone and Erika's already looking into it but we don't know any more beyond that)
UNDERSTAND THE PERSON, UNDERSTAND THEIR MOTIVATION
Again, two to three sentences about the person and why they're reacting the way they are.
Bob delivers the truth logically and unemotionally. He thinks he's being helpful by getting right down to the point, but without any preamble people think he's being aloof and without any context they don't know what to think about the data he's providing.
Erika has quickly responded to the server failure and diagnosed it's a problem with the hardware. She's called the hardware team but they're not responding. Erika has a strong sense of duty and gets things done, but she tends to quickly become frustrated when she has to rely on others who she doesn't think are working as hard. Also, her family is in the car waiting for her so they can head off to the beach.
WHY -> HOW
EXAMINE TEAM CULTURE (Set the Vision)
This is a pervasive and ongoing process that you should be regularly investing in - what is the identity of the team? What is its voice, branding, engagement model? How is it expected to behave? This helps build a framework that can be used in all situations. In this particular situation does team culture fit? And is the team member exhibiting it?
MODEL (Lead by example)
This is how you personify the team culture as you expect it to exist. This happens before, during and after any challenging situation - you must be consistent and you must know what you expect and what you want others to perceive.
HOW -> WHAT
EXAMINE PROCESS (Foundational, Vision-in-action)
For all situation, some sort of framework should exist. Even in the case of a true "fire" where little is known, people are running around crazy, process should exist (and have been defined during a period where there is no "fire"). This is the vision being carried out. This should allow people to act in new situations in a manner consistent with the vision.
ESTABLISH CLEAR EXPECTATIONS/LAY DOWN CLEAR CHALLENGE (Direct)
At a certain point, it may become appropriate to step in and identify what you expect will occur. This may be a change in behavior or a final deliverable or a resolution to a problem. You are identifying what you want. This may be a coaching opportunity.
IDENTIFY/UNDERSTAND THE DESIRED OUTCOME
In most cases, you may leave the outcome or the method of getting there up to the staff themselves. If this is the case, you need to make sure you understand their plans so that you can affirm, course correct or manage up as appropriately.
WRAP IT ALL UP
The issue at hand does not truly exist until you acknowledge it and begin the process (until you're involved, the situation is someone else's). By working this model, you are also clearly stating that you expect the situation to have an end point. A lot of this work is internal, you'll keep it to yourself. But taking the time to think through the steps will help you to make sure you have a solid, honoring approach to resolution.
Sunday, August 31, 2014
Book Review: Dreams of Gods and Monsters (@lainitaylor)
Dreams of Gods and Monsters by Laini Taylor
Review by James Lamb (Aug. 31, 2014)
As book three of the Daughter of Smoke and Bone trilogy, we bring the trilogy to a close. But no mere end-cap, this book (613 pages in print), like the last two, is an epic in its own right. We learn why the Chimera and Seraphim are both living on Eretz and why portals exist between Eretz and Earth, amongst a lot of other things. Truly a lot happens in this book and to describe any of it to someone who hasn't read books 1 & 2 would be silly (go read those books!) or to someone who has read books 1 & 2 (go read book 3!). Which leaves me with short review as is often the case with the final book of a series I've made it all the way through.
I recommend this book, I recommend this series. Taylor creates a world all its own that feels unique, thought out and yet plausible. It doesn't break any of the laws of nature or physics that we know today, but offers a much larger potential world and then explores its implications, woven throughout a complex story of beings wanting a better future and dreaming big.
Love has brought Karou and Akiva together multiple times, their nature has allowed them to weather the circumstances. Back also are the always fabulous Mik and Zuzu. And with a race of beings in which regeneration is possible, there's always hope and that hope will be rewarded - but this isn't some fantasy where "they all live happily ever after" - this is a war - there will be death as well, the permanent kind.
A really great read.
As book three of the Daughter of Smoke and Bone trilogy, we bring the trilogy to a close. But no mere end-cap, this book (613 pages in print), like the last two, is an epic in its own right. We learn why the Chimera and Seraphim are both living on Eretz and why portals exist between Eretz and Earth, amongst a lot of other things. Truly a lot happens in this book and to describe any of it to someone who hasn't read books 1 & 2 would be silly (go read those books!) or to someone who has read books 1 & 2 (go read book 3!). Which leaves me with short review as is often the case with the final book of a series I've made it all the way through.
I recommend this book, I recommend this series. Taylor creates a world all its own that feels unique, thought out and yet plausible. It doesn't break any of the laws of nature or physics that we know today, but offers a much larger potential world and then explores its implications, woven throughout a complex story of beings wanting a better future and dreaming big.
Love has brought Karou and Akiva together multiple times, their nature has allowed them to weather the circumstances. Back also are the always fabulous Mik and Zuzu. And with a race of beings in which regeneration is possible, there's always hope and that hope will be rewarded - but this isn't some fantasy where "they all live happily ever after" - this is a war - there will be death as well, the permanent kind.
A really great read.
(Amazon
(Amazon
(Amazon
Thursday, August 28, 2014
How-to: Light up your @NewRelic Apdex
| the super-bright blink(1) mk2 |
My problem was that I didn't have, well, a really practical use. I already had methods for learning about new mail and I really didn't care to constantly be informed of new Facebook updates, it's not like I'm using Facebook at work anyhow.
But I realized yesterday I did have a good use for it - passive/ambient real-time information about the health of our systems at work.
Several of the members of my team handle On-Call responsibilities. We use NewRelic, KeyNote, WebMetrics integrated with Zapier, PagerDuty, StatusPage.io, Atlassian, etc. for our work. But for the most part, unless it's a "hard down," an incident must be happening for a period of time before notifications start going off. If we're in the tools, we might see an alert sooner, but otherwise, we're all busy working. No one's sitting around watching monitors. (We have a desire for more of an NOC but right now it's pretty reactive.)
It occurred to me that since NewRelic offered an API I could use my hacky AppleScript skills (ok, more like awesome Googling skills) and translate NewRelic's red/yellow/green lights for our systems into, literally, red/yellow/green lights that I could see as I worked, even if I wasn't in NewRelic. Since we have that requirement of sustained impairment before notification, sometimes we hear about something in a drive-by before alarms are ringing. That's embarrassing.
I figured if I could have a closer to real-time look into the system but without spending time in the system that we could have a little bit more of a warning if something was starting to go wibbly-wobbly.
And so with a little work I cobbled together a script that pings the NewRelic API, gets the apdex_score of five sites, displaying a red/yellow/green status. It shows each one for 5 seconds and then shows a blue light (to help you know the cycle is restarting) and then goes again. It can poll all five systems in about 30 seconds and in the AppleScript log window I have a running history of the apdex_scores.
It's also been a great conversation-starter the past two days, carrying my laptop to meetings and then leaving it sitting there with the laptop mostly closed, the little light quietly pulsing, only stopping to open the laptop and look if something starts to trend down. It's building up credibility for our group as having, literally, our finger on the pulse of the system and it was fun to code it. I'm a little dismayed at a few of the shortcuts I took, but my main job isn't programming, so I didn't want to spend a lot of time on it.
So here's the code, it should be pretty clear where you swap in your api key and your transaction or application IDs. Click the photo of the blink(1) to go and buy one for yourself. (Again, I have no financial interest here, I just think it's cool.)
Lori's Cupcakes (All-Natural Coloring)
Lori was recently(ish) commissioned to do cupcakes for a church event. Because of some of the research on dyes and their impact on some children (including observed behavioral changes in our daughter when she's had red dye #40), Lori's been only using natural colorings. Because this was a children's event, she saw it as the perfect opportunity to expand her available color palette of natural colors with the goal of also being tasty as frosting. I think it was incredibly successful. (See the Flickr collection.)
Here's what her research yielded:
Here's what her research yielded:
- Pink: beet powder + strawberry purée
- Magenta: blackberry purée with powdered freeze-dried blueberries
- Purple: purple yam with natural cherry extract
- Green: fresh spinach with lime juice
- Orange: sweet potato with powdered freeze-dried oranges
- Yellow: mango in both powdered and reduced purée forms
We hope to someday turn her creative genius into a business.
Tuesday, August 26, 2014
Coding a Car (A Work-Related Post)
There are a million (I'm guessing) things that can go wrong with a car. Tires can go flat, lights can stop working, batteries can go dead. Hoses can rupture. It can run out of fuel. The driver can drive it off a cliff.
As the car manufacturer, you can't control for all of these things. But you can design the car to work well and be intuitive, things that will make it easy for someone who's never driven your car before to get behind the wheel and not drive it off a cliff whilst trying to change the turn on the turn signal. You can source quality parts and stress test to make sure hose ruptures and timing belt failures are rare. And you can test it under extreme conditions to make sure that your car can handle most of the crazy things your customers might throw at it, even if you hadn't intended for the car to be able to do that in the first place. Because let's face it, your customers are humans - inquisitive, irrational, unpredictable.
But there's two really important things to do.
Documentation - you create guides for mechanics who will do much of the repair for you.
Awareness - you anticipate some of the most common problems the car can have and you build in systems to monitor, record, track and alert. They may tell the driver (a chime and light to tell you "low fuel"), they may call ahead to the mechanic ("a part has failed" or "a part is about to fail, please order it and call my owner to schedule service"), they may simply record for later review by the manufacturer or law enforcement ("the car was going 45 mph in reverse with the windshield wipers on when it went off the cliff")
Good software will go through all of this thought as well. A lot has been said about these first few:
Good design:
Compliance:
Testing:
But less thought and attention may be given to these - and that's dangerous.
Documentation:
While the goal may be to produce a product so perfect that everyone just instinctively knows how to use it, that's just wishful/prideful thinking. You need to see how real people interact with your product and then tweak and adjust as you go. But you also need to know that you probably can't make it foolproof. You will need labels, guides, self-service documentation that allows the user to figure out some tasks without coming back to you.
It also may be that you're going to hand the product off to a different team to support once you've written it. Perhaps an On-Call team or a Network Operations Center who will be watching your system. They need to know how to support the product, how it works, what levers and pulleys are at their disposal to right the ship if things start to go sideways. (And who to wake up if it completely falls over.)
System Health - Monitoring, Alerting, Notification, Logging:
You want your system to be resilient, to never fail, to just work perfectly and flawlessly all the time. If you think that's possible, you're incredibly vain or prideful. Or you have an unlimited budget and your product will never ever actually ship because you'll be coding forever.
The developers who build the system must spend time imagining how it can break down. Those scenarios must be turned into things that can generate logs, monitors, alerts and notifications. There is a tendency to overlook these items during planning - they aren't sexy, they aren't business requirements from the business, they are extra work for the developers, but they must be considered, must be added to the product backlog, must be delivered before the product goes live. These are your insurance policy. Unless you're willing to be making payments on a car that someone has stolen.
Logs - call it the black box of your software program - you need to know what was happening when things went south. In the midst of the crisis, you may be too busy trying to keep the thing flying to stop and ask what went wrong, but you need a way later to go back and better understand the original causes. This is only possible if you take the time to build in the code that captures snapshots of what was happening.
Monitoring - computer software is easy to set and forget. There's often no tangible product. Monitoring is at-a-glance statistics and measurements elevated to a pretty screen. It may tell you about network connectivity or disk space, about how many successful logins have occurred in the past 15 minutes or how many orders have been placed. It will be real-time and where appropriate should show trending/trailing stats so you know if something has changed.
Alerting - something has gone yellow. It's not yet time to wake someone up, but it's an early warning sign that something might go bad. It could be something innocent (a commercial drove a lot of traffic to your site) or something not so innocent (a distributed denial-of-service attack has just started against your system). These appear within your monitoring tool (on the screen if you're watching it) and your logs.
Notifications - ok, now there's a fire. Something is "hard down" or something's been in the yellow state for more than 15 minutes or some metric is so off (shopping cart creation vs completed order, signin attempts vs successful signins) that it's time to wake someone up. People are getting text messages or automated phone calls at this point.
And there's actually one more piece beyond that, a place where the car analogy no longer works so well.
Your software product must be resilient. As products become more complex, you eventually find that you don't control the entire stack. You may depend on someone else's API to tokenize your credit card, to process your credit card, to place the order. The product catalog may be on a different system, curated by non-technical people. There may be physical components - perhaps your software controls robots that assemble and ship orders or even cars.
It's time to stop making assumptions and start honoring chain of custody. If your system has a particular piece of information that it must pass to another system, it cannot simply assume that a hand-off was successful. It now needs a way to safely and securely store that piece of information (an order, complete with credit card details, for instance) until it is assured that the next system has successfully received (and confirms receipt of the data). This is a somewhat newer mindset, but if you want to make sure nothing falls through the cracks, you must be willing to be responsible for your data until you have proof positive that it's been accepted by the next layer in the stack.
So when you hear "I just want to code" be very afraid. You may need some code written, but far more importantly, you need really solid end-to-end thinking and you need a culture that says isn't "making babies" but "raising a child" - if you're churning something out and you're tossing it over the fence as soon as the commit is made, you're solving for today but you won't need to worry about tomorrow because your company will go off the cliff and you won't know why.
As the car manufacturer, you can't control for all of these things. But you can design the car to work well and be intuitive, things that will make it easy for someone who's never driven your car before to get behind the wheel and not drive it off a cliff whilst trying to change the turn on the turn signal. You can source quality parts and stress test to make sure hose ruptures and timing belt failures are rare. And you can test it under extreme conditions to make sure that your car can handle most of the crazy things your customers might throw at it, even if you hadn't intended for the car to be able to do that in the first place. Because let's face it, your customers are humans - inquisitive, irrational, unpredictable.
But there's two really important things to do.
Documentation - you create guides for mechanics who will do much of the repair for you.
Awareness - you anticipate some of the most common problems the car can have and you build in systems to monitor, record, track and alert. They may tell the driver (a chime and light to tell you "low fuel"), they may call ahead to the mechanic ("a part has failed" or "a part is about to fail, please order it and call my owner to schedule service"), they may simply record for later review by the manufacturer or law enforcement ("the car was going 45 mph in reverse with the windshield wipers on when it went off the cliff")
Good software will go through all of this thought as well. A lot has been said about these first few:
Good design:
- Looks good.
- Placement of controls are logical and use existing conventions or best practices.
- Workflows make sense, tasks can be completed.
- The product is true, authentic, real, accurate. (That is, a salesperson can sell it without lying or guessing.)
- Is it going to hold up reasonably well under wear and tear.
Compliance:
- Does it meet policy/law regarding the safe provision and transit of publicly identifiable information or payment processing and financial?
- Is it secure?
Testing:
- Meets intended scenarios and business requirements.
- Withstands innocent incorrect usage. (Better yet, recognizes these lost users and guides them back to the path.)
- Withstands hacking attempts - doesn't let you hide SQL commands inside form fields, protects itself against DDOS attack, etc. Hire people to try to break your system.
- You've pushed it to its limits to see how it responds.
But less thought and attention may be given to these - and that's dangerous.
Documentation:
While the goal may be to produce a product so perfect that everyone just instinctively knows how to use it, that's just wishful/prideful thinking. You need to see how real people interact with your product and then tweak and adjust as you go. But you also need to know that you probably can't make it foolproof. You will need labels, guides, self-service documentation that allows the user to figure out some tasks without coming back to you.
It also may be that you're going to hand the product off to a different team to support once you've written it. Perhaps an On-Call team or a Network Operations Center who will be watching your system. They need to know how to support the product, how it works, what levers and pulleys are at their disposal to right the ship if things start to go sideways. (And who to wake up if it completely falls over.)
System Health - Monitoring, Alerting, Notification, Logging:
You want your system to be resilient, to never fail, to just work perfectly and flawlessly all the time. If you think that's possible, you're incredibly vain or prideful. Or you have an unlimited budget and your product will never ever actually ship because you'll be coding forever.
The developers who build the system must spend time imagining how it can break down. Those scenarios must be turned into things that can generate logs, monitors, alerts and notifications. There is a tendency to overlook these items during planning - they aren't sexy, they aren't business requirements from the business, they are extra work for the developers, but they must be considered, must be added to the product backlog, must be delivered before the product goes live. These are your insurance policy. Unless you're willing to be making payments on a car that someone has stolen.
Logs - call it the black box of your software program - you need to know what was happening when things went south. In the midst of the crisis, you may be too busy trying to keep the thing flying to stop and ask what went wrong, but you need a way later to go back and better understand the original causes. This is only possible if you take the time to build in the code that captures snapshots of what was happening.
Monitoring - computer software is easy to set and forget. There's often no tangible product. Monitoring is at-a-glance statistics and measurements elevated to a pretty screen. It may tell you about network connectivity or disk space, about how many successful logins have occurred in the past 15 minutes or how many orders have been placed. It will be real-time and where appropriate should show trending/trailing stats so you know if something has changed.
Alerting - something has gone yellow. It's not yet time to wake someone up, but it's an early warning sign that something might go bad. It could be something innocent (a commercial drove a lot of traffic to your site) or something not so innocent (a distributed denial-of-service attack has just started against your system). These appear within your monitoring tool (on the screen if you're watching it) and your logs.
Notifications - ok, now there's a fire. Something is "hard down" or something's been in the yellow state for more than 15 minutes or some metric is so off (shopping cart creation vs completed order, signin attempts vs successful signins) that it's time to wake someone up. People are getting text messages or automated phone calls at this point.
And there's actually one more piece beyond that, a place where the car analogy no longer works so well.
Your software product must be resilient. As products become more complex, you eventually find that you don't control the entire stack. You may depend on someone else's API to tokenize your credit card, to process your credit card, to place the order. The product catalog may be on a different system, curated by non-technical people. There may be physical components - perhaps your software controls robots that assemble and ship orders or even cars.
It's time to stop making assumptions and start honoring chain of custody. If your system has a particular piece of information that it must pass to another system, it cannot simply assume that a hand-off was successful. It now needs a way to safely and securely store that piece of information (an order, complete with credit card details, for instance) until it is assured that the next system has successfully received (and confirms receipt of the data). This is a somewhat newer mindset, but if you want to make sure nothing falls through the cracks, you must be willing to be responsible for your data until you have proof positive that it's been accepted by the next layer in the stack.
So when you hear "I just want to code" be very afraid. You may need some code written, but far more importantly, you need really solid end-to-end thinking and you need a culture that says isn't "making babies" but "raising a child" - if you're churning something out and you're tossing it over the fence as soon as the commit is made, you're solving for today but you won't need to worry about tomorrow because your company will go off the cliff and you won't know why.
Subscribe to:
Posts (Atom)
