There are pros&#x2F;cons to dirty checking vs. getters&#x2F;setters, dirty checking seems to be more popular because it saves you a few lines of code, although I prefer getters&#x2F;setters as it&#x27;s much more efficient and cleaner.