Promoting Solid Code Architecture in AEM
summary
Claims that AEM follows MVVM not MVC, so Sling Models act as view‑models and business logic belongs in reusable OSGi services; warns against stuffing logic into models and using adaptTo, recommending PageManagerFactory and Optional instead. Describes turning experience notes into Confluence coding guidelines, enforcing them with ArchUnit unit tests for architecture and custom SonarQube rules (SonarLint + PR decoration) to block merges on major issues, and reports that automation improves testability, reuse and cross‑project alignment.
AI-written summary · about
