Creative techniques for writing modular code

Creative techniques for writing modular code

Why and how to write modular code

Using variables to isolate logical expressions 🎲

Using nested functions πŸ“š to encapsulate blocks of code

Preventing data access πŸ”’ with block-scoped variables

Why should I apply this stuff?

Modularity sometimes causes more problems than it solves πŸ›‘

Excessive object-oriented structure

Modules that are too small

Centralization of dependencies

Refactoring for the sake of it

Conclusion

Comments

Popular posts from this blog

A Tailwind CSS Preset for Laravel 5.5

Short and safe array iteration

PHPStorm's performance