Re: How to motivate use of OO?




<nassegris@xxxxxxxxx> schreef in bericht
news:1151999442.600805.230670@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
| Hello all!
|
| Yesterday I found myself in a peculiar situation. One of my friends
| runs an Internet site with education-related information. The site is
| written in ASP (VBScript), but now he has to rewrite the code in C#
| because the web hosting company he uses are dropping ASP support.... So
| this guy invited me over to explain OO to him - I've been working as
| systems developer and architect for a while now...
|
| So I explained the basics of OO to him, encapsulation, inheritance,
| that kind of basic concepts.... Then after a while he said that he has
| a nice structure in his old ASP code, so he thought the best way would
| be to just convert the old function libraries (files) to classes with
| static methods. Naturally I was horrified and told him he really
| shouldn't do it, but instead build an object model and redesign the
| solution. And then he asked me: WHY? It works great as it is, wouldn't
| a new design just make things worse? And I really had NO answer to that
| why...
|
| So now I'm asking you people, what should I tell him? Why should he use
| objects instead of plain functions? Please give me some good arguments
| to use!!!

I came here two years ago asking for lessons on OOD because I noticed that there
was a pattern in my design problems. The reason I had design problems is because
I like to think in terms of (reusable) objects. So a "problempattern" was
acknowledged, and thus people here tought me the basics of design patterns. So
it was me who made the first step: I needed something, then I received a
solution which was inherent to my problem.
That's the way to go I think.

However, your friend didn't complain about design. He mentioned there was a lot
of re-coding to do. That's a different problem - not related to Object
Orientation. So why give him a solution related to design while he never
addressed design issues? Only because you love it? If you would like to be
helpfull to your friend you should realize that is not about you, but about
assisting your friend in his needs.

That's how I think. Absolutely not critisizing you: you only try to help, I
know.

~Val


.



Relevant Pages

  • Re: What happened to Paul Miller?
    ... If I had no resources, ... when you won't provide even the minimum to design the ... said from the start, I'm not a physicist, but my friend is. ... Like with a pass/fail criterion. ...
    (sci.physics.relativity)
  • Re: Brute Force Examination of a PLD
    ... When my friend and I discussed this "directed back in to the Array " ... that no one could be sure how many flip-flops were wired to go back in to ... As far as I can tell from a design standpoint there are so many flip-flops ... a mystery to me as I'm not a Math major. ...
    (comp.arch.fpga)
  • Re: Roto-Rooting Steves, aft space... for intestinal parasites and $hit, looking for the Big "C"
    ... I have a close friend currently being audited by the IRS. ... more interesting from a design standpoint but inexplicably, ... with debris from all the stuff dropping down into our patio. ... wearing just my jeans at midnight clearing out the drain ports. ...
    (rec.music.classical.guitar)
  • Re: Word of mouth
    ... You know that picnic table I made based on your design? ... with that much time and materials ... uninitiated consumer will actually expect to pay for a handcrafted piece. ... during yourself, and the friend you built it for, a favor. ...
    (rec.woodworking)
  • Re: I taught myself a lesson today; good idea learned from experience
    ... speaker builders recommended MDF but my friend said playwood was the ... transmission line design. ... reproduced with a 'real' 100 watt amplifier. ...
    (rec.woodworking)