tag:blogger.com,1999:blog-4045671445828312434.post2308121142855880610..comments2024-03-25T15:11:30.341+05:30Comments on Born to Automate : Resharper series – Replacing constructors with creation methodsPrajeesh Prathaphttp://www.blogger.com/profile/10973885615112785714noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4045671445828312434.post-26243272925175196802011-08-02T10:05:16.323+05:302011-08-02T10:05:16.323+05:30Hi,
During development, if we have multiple overl...Hi, <br />During development, if we have multiple overloaded constructors on a class it is hard to decide<br />which constructor to call while initializing the object.<br /><br />Replacing the constructors with intention-revealing creation Methods can avoid this confusion.Prajeesh Prathaphttps://www.blogger.com/profile/10973885615112785714noreply@blogger.comtag:blogger.com,1999:blog-4045671445828312434.post-14329895414787344692011-07-31T21:21:13.886+05:302011-07-31T21:21:13.886+05:30Don't you think that creating xx different met...Don't you think that creating xx different methods to create object is worse than multiple constructors with summary description? In my opinion it is easier and more natural to check overloaded constructors than to look for some other method (i didnt write your code, i dont know which functions should i use to create object in particular situatuin, so i have to check them all...)Anonymousnoreply@blogger.com