Defining Non-Functional Requirements

The chapter starts with this quote:

The Internet was done so well that most people think of it as a natural resource like the Pacific Ocean, rather than something that was man-made. When was the last time a technology with a scale like that was so error-free?

— Alan Kay, in an interview with Dr. Dobb's Journal (2012)

So interesting... This is not directly related to the chapter, but what if the LLM and AI revolution created a new Internet? One that is not entirely man-made, or at least not 100% human-made. What if the new Web were like the ocean, with every single drop being an LLM creation?

Non-functional requirements include:

  • Performance
  • Reliability
  • Scalability
  • Maintainability

There are no easy answers to achieving these goals, but one approach that can help is building applications using well-understood building blocks that provide useful abstractions.

Our main enemy: complexity.

But what is complexity? I think it's the difficulty developers face when trying to understand and reason about a system, the number of hidden assumptions, and the potential for unintended consequences and unexpected outputs. In that sense, complexity is closely related to developers' ability to understand the system.

There are two kinds of complexity:

  • Essential complexity: inherent to the problem domain itself.
  • Accidental complexity: introduced by the limitations of our tools, techniques, or expertise.

Our main goal: making life easier.

What's the best tool for dealing with complexity? Abstractions. A good abstraction can hide a great deal of implementation detail behind a clean, simple-to-understand facade.

Another idea I liked in this chapter is the concept of evolvability: minimizing irreversibility improves flexibility and makes a system more adaptable to future changes.