Friday, February 26, 2021

LIFT Principle for Application Structure (Angular)

Structure your app to follow these 4 basic guidelines.

Locating your code is easy

Make locating your code intuitive, simple and fast.

Identify code at a glance

When you look at a file you should instantly know what it contains and represents.

Flat structure as long as we can

Keep a flat folder structure as long as possible. When you get to 7+ files, begin considering separation.

Try to stay DRY (Don’t Repeat Yourself) or T-DRY

Be DRY [TWOTW], but don’t go nuts and sacrifice readability.

source: http://bguiz.github.io/js-standards/angularjs/application-structure-lift-principle/


No comments:

Post a Comment