LIQUID (UN-SOLID) PRINCIPLES

LIQUID code principles as opposed to SOLID

Hello!

Today I want to talk about bad practices!
And a great way that me and a great friend
Came up with, to remember them by

Intro:

There is the famous SOLID acronym
Which specifies a set of neat architecture practices that could be
A great tool in your arsenal for designing clean and easier to maintain
Applications.

I like to think also about KISS AHA YAGNI and APO
When designing code.

So let’s talk about bad practices!
Kind of the opposites of the principles mentioned above.

The opposite of SOLID is of course LIQUID!

LIQUID Principles:

Large:

Large! large modules, files, functions, classes

Imperative:

Imperative code, numerous statements that manipulates state
In order to acquire the application’s goals.
Often most of the code we read and write, consists of implementation
Details and almost nothing is encapsulated and declarative.

Quasi Readable:

Unclear variables names, complex, nested statements
And functions, lots of unclear and outdated comments.

Unified:

Small amount of modules and functions, that are doing most of the heavy lifting, Everything in one place, no design principle is taken into account.

Ineffective:

Lots of unnecessary code
Lots of unnecessary operations
Synchronized when possible

Deprecated:

Use lots of bad practices, old libraries, frameworks, languages,
And APIs that are nearing their end of life.

Sounds familiar?? :)))

Full Stack engineer working with Node, React and TypeScript, loves lots of other technologies and especially Clean Code