API / Apache Grails Interview questions
What is scaffolding in Grails?
Scaffolding is Grails' feature for automatically generating a full working create/read/update/delete (CRUD) interface — controller actions and GSP views — for a domain class, based entirely on its properties and constraints, without a developer writing that boilerplate by hand.
It comes in two flavors: dynamic scaffolding generates the controller and views entirely at runtime, with nothing written to disk, ideal for quickly prototyping or exploring a domain model; static (generated) scaffolding writes actual controller and GSP files to the project via a CLI command, giving the developer real, editable source code to customize once the generated starting point needs to diverge from the default behavior.
Scaffolding is commonly used early in a project to get a working admin interface or demo instantly from just the domain model, and then gradually replaced or customized as the application's real requirements diverge from the generic CRUD pattern it produces.
More Related questions...