You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. Laravel originally used view - section - include - template way of composing the view/presentation layer. View files are files where interesting content is defined.
Mentally, it was "middle-up-down" approach, because developers let the view extend a layout (middle-up) and then developers included children into the view (middle-down). And also, it was unpractical to create deep element/component hierarchy from the view file (where interesting content is defined). It should not be unpractical to create deep element/component hierarchy - HTML and DOM is so popular because elements can be nested nicely.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. Laravel originally used view - section - include - template way of composing the view/presentation layer. View files are files where interesting content is defined.
Mentally, it was "middle-up-down" approach, because developers let the view extend a layout (middle-up) and then developers included children into the view (middle-down). And also, it was unpractical to create deep element/component hierarchy from the view file (where interesting content is defined). It should not be unpractical to create deep element/component hierarchy - HTML and DOM is so popular because elements can be nested nicely.
Deep nesting (like in HTML) gives a context - a high level overview of what is deeper in view - and what is view.
As it turns out, deep nesting was invented way before HTML :)
Atoms, Molecules, Organisms (+ Templates and Pages/Screens) https://atomicdesign.bradfrost.com/chapter-2/
React perspective on Atomic Design Methodology https://paulonteri.com/thoughts/atomic-design-react
I think Atomic Design Methodology could be mentioned or explained directly in Laravel docs.
Beta Was this translation helpful? Give feedback.
All reactions