Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Dhcpclient module

by drip (Beadle)
on Mar 28, 2008 at 01:47 UTC ( [id://676890]=note: print w/replies, xml ) Need Help??


in reply to Re: Dhcpclient module
in thread Dhcpclient module

thank you for the suggestion ^_^...i am stuck because i am not quite sure if what i am doing is right..
1.)is it ok if i use a lot of modules to create another module?is that advisable?
2.)would it be better if i use pack/unpack(i still need to learn it though) to decode the packet rather than using the modules?
3.)how do i use the full potential of OOP?
=)

Replies are listed 'Best First'.
Re^3: Dhcpclient module
by pc88mxer (Vicar) on Mar 28, 2008 at 19:05 UTC

    1) It's perfectly fine to build upon the work of others. OOP was developed with the idea of making it easy to reuse software.

    2) Becoming comfortable with pack and unpack is always a good idea, but using a CPAN module is fine too, if it solves your problem.

    3) Mastering the full potential of OOP could take a lifetime. In fact, I doubt anyone knows what its full potential really is. I would suggest incrementally improving your OOP skills whenever you can. Look at other people's code, and see how they solve problems using OOP. OOP techniques are especially helpful in managing the complexities that occur in large programs. Also look at modules that get used a lot like the standard modules which come with perl. Their interfaces have been carefully crafted to make them useful in a general purpose setting. As you see more examples of well-written OOP code, you should get a feel for when certain methods are better than others. The OOP system in perl is very flexible, so it's difficult to lay down hard and fast rules about when to do things one way or another.

    My main question, though, is: does your code work the way you want it to?

      yes, the code works the way i want it to be..thank you..

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://676890]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-03-28 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found