open navigation menu
AiFolder
Tools for a smarter you
Discover
Tools
AI
Games
Interviews
Blog
More
Search AiFolder
Toggle theme
Toggle theme
Sign in
Exit
00:00
Submit test
Layering & Middleware · Advanced
5 questions · Question 1 of 5
20%
Multiple Choice
Senior
Why should you structure your solution by components?
A
Each component should contain 'layers' a dedicated object for the web, logic and data access code.
B
The fundamental motivation is this: You want to be able to rip an entire layer out and substitute a completely different (rewritten) one, and NOBODY SHOULD (BE ABLE TO) NOTICE THE DIFFERENCE.
C
I would stick with two basic rules: 1.
D
For medium sized apps and above, monoliths are really bad having one big software with many dependencies is just hard to reason about and often leads to spaghetti code.
Previous
Next