Use an iterator? Template. I assume that you are using many templates without even realizing that you are using them. Created a buffered reader from a file reader? decorator; template. Do not try to use patterns - let the problem detect them. They are everywhere, therefore they are patterns.
Things like facades, decorators, iterators, factories, etc., appear in every single domain. Select everything you are interested in writing and find existing templates. The rector mercilessly - patterns.
source share