Re: "Tricks" of the "Trade"
Re: "Tricks" of the "Trade"
- Subject: Re: "Tricks" of the "Trade"
- From: "David W. Halliday" <email@hidden>
- Date: Thu, 07 Jun 2001 15:38:50 -0500
- Organization: Latin AmeriCom, formerly Latino Online
Enrique Zamudio wrote:
>
On jueves, junio 7, 2001, at 02:36 AM, Erik Thorteran wrote:
>
>
>
>
> BTW Inline functions are truly cool, because they are like #defines,
>
> except much more powerful. I guess I just hate scrolling through one
>
> source code file that is miles long, I guess I could use categories, but
>
> then again, then the main class cannot access the methods in the
>
> categories.
>
>
>
I think the issue here is OO design. Maybe you're cramming all the
>
functionality of your application into one class, instead of really
>
modeling several objects depending on the different functions you need to
>
perform. Perhaps someone can recommend a good book on OO design?
>
>
Enrique Zamudio Lopez
>
...
I most heartily agree.
Though I cannot suggest a good OOD book, I can point out that this problem
of having "miles long" source code files is a common malady of procedural
programming done in objects. This is a similar malady to FORTRAN or Pascal
done in C, only worse (since at least FORTRAN, Pascal, and C are procedural
languages).
Though a good OOD book may well help convert the thinking of such a
practitioner, it all boils down to helping the programmer make the paradigm
shift from old procedural thinking to Object Oriented thinking.
(Incidentally, I have found that having a "strange new syntax", like SmallTalk
or Objective-C [though not when using the bastardized, so called, "modern"
syntax], rather than a data-structure like syntax, as used by C++ and Java,
helps the programmer in making this paradigm shift, because the newness of the
syntax helps jar their thinking, at least a little. Obviously, however, this
is not always sufficient. Additional instruction on the nature of Object
Oriented Programming is certainly helpful. [Though I didn't have any of this
when I was first introduced to SmallTalk, and then Objective-C, but the
difference may be my background as a Physicist---objects are my natural
tongue.])
David email@hidden