Every day we use a programming pattern that makes software needlessly expensive to build and maintain. It causes countless bugs and security vulnerabi

A mistake more expensive than ‘null’

submited by
Style Pass
2021-05-28 08:00:11

Every day we use a programming pattern that makes software needlessly expensive to build and maintain. It causes countless bugs and security vulnerabilities. It needs constant refactoring. It’s difficult to test, it’s tedious to document, and it’s flexibility makes every implementation a unique snowflake that leads to unending code duplication.

One of the first things we learn w hen programming is how to reuse logic. This invariably leads to the function, the building block of all software. Functions aren’t bad all on their own, but relying on them as the primary reusable component is the reason why software is so expensive to write, maintain, and scale.

Any developer can write reusable code regardless of experience. Languages like JavaScript, Python, Ruby, and Go are built on millions of small, shared modules that show how easy it is to write reusable source code. Writing reusable code is easy.

I̶t̶ ̶i̶s̶ ̶d̶i̶f̶f̶i̶c̶u̶l̶t̶ ̶t̶o̶ ̶w̶r̶i̶t̶e̶ ̶r̶e̶u̶s̶a̶b̶l̶e̶ ̶c̶o̶d̶e̶.̶ It is difficult to reuse code.

Leave a Comment