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
- Next message: H. S. Lahman: "Re: class diagram question"
- Previous message: Uncle Bob (Robert C. Martin): "Re: To understand OOP better..."
- In reply to: Tsolak Petrosian: "Re: Is casting ever necessary?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: H. S. Lahman: "Re: class diagram question"
- Previous message: Uncle Bob (Robert C. Martin): "Re: To understand OOP better..."
- In reply to: Tsolak Petrosian: "Re: Is casting ever necessary?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|