On 07/16/2013 01:30 AM, deadalnix wrote:
My policy is to require the bare minimum to construct a valid object, in order to avoid initialization hell.
+0.33
Not knowing what/when to initialize thing is really painful as well. It also introduce sequential coupling and wrongly initialized object tends to explode far away from their construction point.
+0.33
What goes in this category ? Any state that can't have any default value that make sense, as well as any state that is expansive to initialize.
+0.33 And to complete: +0.01 :p Ali
