Good developers are fundamentally "lazy" in that they will find a smart way to code something once rather than repeating code or actions unnecessarily.
One tool that developers use to reduce coding is ui.Form.setDefaultInitiailizer. This is a method that defines a function that will be called every time a form is opened. This function can then be used to do things liking adding elements to the form, adding attributes to widgets and containers, or make changes to the form based on certain conditions.
Read more at
https://4js.com/ask-reuben/ig-220/