A side note on rules

Before continuing. Opinions might be a better word to use in this article. I’ll let you, the reader, decide.

To me, rules suggest black and white. The word rules suggests something that is unbreakable.

Here’s an excerpt from ‘Keep Calm and Code On’ by Alex Lau:

“Most coding rules can and should be broken from time to time, but breaking them requires careful thought and justification.”

Why I like rules ( opinions )

Two experiences have led me this conclusion:

  1. Lately I’ve been working with a team of engineers building a Next.js application, specifically APIs with Next.js;
  2. Personally I’ve been building a project using tsoa (pronounced so·uh - an OpenAPI-compliant REST APIs using TypeScript and Node).

Frameworks

Both Next.js and tsoa are frameworks and have opinions on how to write software. Someone else decided how I should structure certain parts of my code.

Next.js

Next.js is a full stack framework.