Over a million developers have joined DZone.

Give Options, Not Configuration Nightmares

· Java Zone

What every Java engineer should know about microservices: Reactive Microservices Architecture.  Brought to you in partnership with Lightbend.

You have probably heard about convention over configuration, especially if you follow Ruby on Rails, the Play Framework or similar projects.

Taken from Wikipedia:

Convention over configuration (also known as coding by convention) is a software design paradigm which seeks to decrease the number of decisions that developers need to make, gaining simplicity, but not necessarily losing flexibility.

What I propose is that you not only praise the advantages this paradigm brings to you as a developer, but that you apply the same principles to the software you create and then empower the users and support staff that will use it.

In my experience almost all software products (both standard and tailor made) require configuration. Some of this configuration is needed for the system to work, and some of it is used to customize the system’s behaviour according to the users needs and preferences.

If you force your user (be it the actual final user or the IT staff from some company) to review and complete every one of the possible configuration parameters before the software can be used for the first time you will most likely end up with a very annoyed person and a poorly configured system.

Wouldn’t it be great if all software would “just work”? And I don’t mean just your word processor or video player, I mean a highly customizable world-class ERP as well. Why can’t we provide software that requires only the bare minimum configuration questions answered to be up and running? And why can’t those questions be answered in a friendly and informative environment?

And the best part is that you don’t need to loose flexibility or depth in your software because of this, you just have to provide a working default configuration set and give the user the option to adjust it later, *after* the software is up and running and he got to see all the awesome features it has.

Microservices for Java, explained. Revitalize your legacy systems (and your career) with Reactive Microservices Architecture, a free O'Reilly book. Brought to you in partnership with Lightbend.

Topics:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}