DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Join us tomorrow at 1 PM EST: "3-Step Approach to Comprehensive Runtime Application Security"
Save your seat

Friends Don't Let Friends Add Options to Code

Two roads diverged in an open source code can create more headache than happiness.

Suri Patel user avatar by
Suri Patel
·
Dec. 18, 18 · Opinion
Like (1)
Save
Tweet
Share
3.58K Views

Join the DZone community and get the full member experience.

Join For Free

Sometimes, when trying to make it easier to work in an application, our instinct is to add optional features that users can enable if their situations require a specific functionality. Our intentions may be good, but these actions can actually cause more problems, since we invite users to second-guess their choices by adding extra steps into the user experience.

One of the most celebrated aspects of open source is the freedom that allows developers to brighten a user's day by adding an optional feature that may not be for everyone, but allows a small portion of users to engage with a project in a specific way. While it may seem like a great idea to cater to individual needs, there are several disadvantages to making something an option.

It Creates More Work for Developers

Creating extra options means more work for both frontend and backend teams. These features add additional code, tests, and documentation for each setting, and the various states alter the UI. Adding options hurts you in every step of the development process.

It Places a Burden on The User to Choose

When we solve problems by including options, we force a user to think about the function and consider its purpose and drawbacks, placing a burden on them to control how they use an application. A user hesitates and has to make a decision about whether this is something that should be enabled. After all, if an option significantly enhanced the user experience, then wouldn't it have been automatically integrated?

It Makes Future Functionality More Difficult to Implement

There's also the long-term impact of additional options. Just one extra option can lead to one of two paths, which might influence other parts of an application. So, every time we add an option, the number of states of the application doubles. That's exponential growth and it adds up quickly, making it harder to diagnose errors. Multiple options can lead to the creation of states of which we're unaware, so it's harder for the user to understand how an application should behave, because they don't know whether errors are due to an option or not. And, if it is an option causing the error, which option is the problem?

How We Avoid Adding Options: Bask in The Glow of Iteration

So, how do you know if a feature should be optional or not? At GitLab, we ship the first iteration and keep delivering based on user feedback. Some of the features that we anticipated may never roll out, because users didn't request them. Iteration allows us to reduce the scope of development and avoid including features that aren't popular or useable.

Whenever users need something new, try to create a solution that's acceptable for the most number of people. Rely on your development and operations teams to provide feedback and ask them to relate to the end user. Conducting UX research with your users also helps identify pain points and needs.

Teams are continually constrained by development capacity, and adding options to applications can absorb previous time and effort. We suggest shipping your application without an option and waiting to see whether people request it or make a feature proposal for it. In the end, our role is to solve users' problems, and our goal is to identify the underlying cause of a challenge and fix it in a way that doesn't need an option.

application

Published at DZone with permission of Suri Patel, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Upgrade Guide To Spring Data Elasticsearch 5.0
  • Understanding gRPC Concepts, Use Cases, and Best Practices
  • Key Considerations When Implementing Virtual Kubernetes Clusters
  • How To Use Terraform to Provision an AWS EC2 Instance

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: