DEV Community

Cover image for How User Stories Changed My Development Process
Milecia
Milecia

Posted on • Updated on

How User Stories Changed My Development Process

The agile development process is something that all developers encounter at some point in their career. Depending on how well a company implements agile, developers develop (heh) an opinion of whether they like it or not. There are a lot of ways you can start using the agile process and not all of them are great. But there are certain components of agile, like user stories, that are just incredibly useful.

Learning how user stories are created when the agile process is applied correctly has changed the way I think about development. Even if the place I work at doesn't have any type of agile process in place, I always try to bring user stories. Here are a few ways user stories have made my development process better.

They keep me focused on the user

Writing a user story is not the same as writing a task list. Thankfully, a product owner or someone else closer to the business side will usually create the initial user stories. They have heard directly from the users they are targeting, so they are telling you exactly what a user expects.

This crucial part gets lost when developers are going through writing a task list. User stories give important context to those tasks that let me know what should happen for the user when I complete those tasks. Being user-focused is an invaluable skill as a web developer because all of the code you write will eventually face some user you don't know.

By thinking of the user while I'm writing the code, I come up with more test scenarios than I would ever think of from a task list. Task lists are great, but they should only come after user stories have been written. When you can tie a task to a story, you get to see the real impact that it will have on user experience.

They help me figure out how I should set up permissions

Most of the applications I have worked with involve different user permissions. Some users have admin rights and others have read-only rights to specific parts of the application. Without user stories, it's more difficult to figure out what, when, and how I should show things to different users.

The beauty of user stories is that you can write them from different user perspectives called personas. So you can have a persona for admin users, read-only users, restricted access users, and all the other kind of users that will interact with your application. Most user stories are written in this format: As a [user persona], I [want to], [so that]. This format allows developers to use multiple personas to figure out how to complete the same tasks for different users.

They setup the framework you need to put yourself in the shoes of multiple users easily. Most user stories are created from conversations so you'll be able to go talk to another developer or a product manager and ask more questions about what a certain type of user should see or be able to do.

They keep me and my team on the same page

When you and three other developers are looking at the same task list without user stories, it can be easy to forget why we are doing a task in the first place. The invaluable context that comes from user stories keeps this from happening. When the tasks are a break-down of a user story, everyone can see why they are doing things.

Many times the "why" behind a task gets lost and developer teams get rid of them. Then a user tries to do something and everyone remembers why that task was there. User stories help you avoid that. There's never a question of "why" when the answer is a little sentence explaining what the user needs to do.

This will save you a lot time trying to sift through all of the interpretations each developer has and it'll save you brainpower from constantly trying to remember why you all are doing this stuff in the first place.

They are easier to understand than a requirements document

My favorite part about user stories is that they don't have any jargon. It's just like a user walked up to you and told you what they want to do and what it will accomplish. That's why easier to handle than a 10+ page document where there is so much jargon that not even the person who wrote it can understand. User stories are informal sentences that describe something a user wants to do.

Then it's up to the development team how they want to break that sentence down into technical jargon. User stories might not be able to fully replace requirements documents, but they definitely make more sense of them. When you need to see the reasoning behind all the jargon, user stories help a lot.

They keep me entertained

My sense of humor has been… updated since I started web development. You would be surprised by what can sneak into user stories or the crazy expectations users have. You don't find them every day, but user stories can carry their own sense of entertainment. Sometimes developers go down rabbit holes and you end up with some outrageous user stories that never leave the room.

It's not a real function of user stories, but it helps the day go by a little faster. You can even get creative with them within your team. It makes the sprint feel a little easier and it makes the developer group laugh. Why not be entertained?

User stories really should be a big part of any agile process because they define the exact thing you need, the things that users are going to expect in the next release. Talking through what a user wants to do and why they want to do it will bring out potential issues before they get to the user. It also gives you and your co-workers a literal reason to do the work you have been assigned.

How do you feel about user stories? I think they're pretty great for how simple they are. Have you seen any ridiculous user stories before?


Hey! You should follow me on Twitter because reasons: https://twitter.com/FlippedCoding

Top comments (4)

Collapse
 
workingwebsites profile image
Lisa Armstrong

"all of the code you write will eventually face some user you don't know."
So very true! Producing a product that people use is really what we do all day. They don't care how clever it is, they just want it to make their lives easier.

I'd add, "Some day, some poor developer is going to have make sense of your code."

Keep both these people in mind when coding. ;-)

Collapse
 
jtenner profile image
jtenner • Edited

Stories are truly the only way we teach children how to understand the world. The three little pigs is a story about making sure your house is built well. Sleeping beauty? Don't overprotect those you love from the world.

Narrative spins a web of value, which in turn, allows others to intuitively understand what they need to understand about what they see.

Nice post! Keep it up!

Collapse
 
saraahmed626 profile image
Sara °°°

A very good and entertaining read.
I haven't write a full user story for an application yet but back when i was doing the free code camp challenge, in the projects part they describe what you need to do through user stories, it's so simple and useful to put the main building blocks for the software, directly to the main points.

Collapse
 
tailcall profile image
Maria Zaitseva • Edited

User stories are also an awesome way to communicate with the customer. When an out-of-scope change is requested, it's obvious to everyone it's out-of-scope because there's no user story for it.