How much work should the constructor for an HTML parsing class do?
I normally follow one easy principle: Everything that is mandatory for the correct existence and behavior of the class instance should be passed and done into the constructor. Every other activity is done by other methods. The constructor should never: use other methods of the class with the purpose of using overriding behavior act on … Read more