Re: Is casting ever necessary?

From: Uncle Bob (Robert C. Martin) (u.n.c.l.e.b.o.b_at_objectmentor.com)
Date: 12/19/03


Date: Fri, 19 Dec 2003 15:51:10 -0600

tsolakp@yahoo.com (Tsolak Petrosian) might (or might not) have written
this on (or about) 19 Dec 2003 07:48:52 -0800, :

>Dont you think its best practice not to call functions in constructor
>(even function on private and public objects)?
>

I don't know if I'd call it a "best practice". However, I do find
that complex constructors are a source of error; and probably indicate
that the class has gotten too large and complicated.

Robert C. Martin | "Uncle Bob"
Object Mentor Inc. | unclebob @ objectmentor . com
501 N. Riverside Dr.| Tel: (800) 338-6716
Suite 206 | Fax: (847) 775-8174 | www.objectmentor.com
                    | | www.XProgramming.com
Gurnee, IL, | Training and Mentoring | www.junit.org
60031 | OO, XP, Agile, C++, Java, C# | http://fitnesse.org



Relevant Pages

  • Re: Acuvue Oasys - soon?, but venturing off topic here, for sure...
    ... Well, it happens, in private and commercial settings. ... > Then you try to imply that lower prices for contact lenses that are ... > private practice, in an optometry school, and with a group Ophthalmology ... I believe my current commercial practice gives patients excellent ...
    (sci.med.vision)
  • Re: Is NHS Dentistry Near Collapse?
    ... children and patients on benefits. ... You will not be able to provide NHS services only to children or ... practice and your goodwill to them. ... rags about some practice going private. ...
    (sci.med.dentistry)
  • Re: STARTING DENTIST SALARY and Chain Dental vs Private Practice
    ... cautious about private offices. ... She has to find an office where her ethics and practice style match ... She has also talked to couple of private pracitces and they are interested. ... How does it compare to join as an associate ...
    (sci.med.dentistry)
  • Re: sick of astigmatism (soft torics)
    ... It is NOT common for this to happen in a private practice. ... A "private practice" where a patient has one doctor perform the exam, ... another perform the contact lens exam, ...
    (sci.med.vision)
  • Re: Im tired of being the oddball in the group.
    ... Arthur Anderson is 4 years away and in fact I plan to go into private ... practice. ... Fraudster? ... but I fail to see what you are attempting to say? ...
    (alt.os.linux)