Re: stupid beginner question

[prev] [thread] [next] [Date index for 2005/06/28]

From: Hartmaier Alexander
Subject: Re: stupid beginner question
Date: 16:51 on 28 Jun 2005
This is a multi-part message in MIME format.

------=_NextPart_000_01A7_01C57C12.6B906D50
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

1. Can you explain 'factory class' to me?

2. I need some self defined functions in various packages. Currently I
declare them in my base class 'NAC::DBI' and use the oo inheritance to =
call
them with '__PACKAGE__->functionname(variable1, variable2)' although I =
don't
use $self inside the function -> BAD THING.
Should I create an independent library for them and 'use' them in all
packages where I need them?

-Alex


> -----Urspr=FCngliche Nachricht-----
> Von: William Ross [mailto:will@xxxxxxx.xxx]
> Gesendet: Dienstag, 28. Juni 2005 12:21
> An: Hartmaier Alexander
> Cc: Class::DBI list
> Betreff: Re: stupid beginner question
>=20
> On 28 Jun 2005, at 10:24, Hartmaier Alexander wrote:
>=20
>=20
> > So far so good, now the first things start to work.
> > What I want to know now is:
> > If I use e.g. NAC::ScanInterface in NAC::Device do I have to 'use
> > NAC::ScanInterface;' in NAC/Device.pm?
> >
>=20
> This is usually done for you: when you declare a relationship, cdbi
> will take care of loading the foreign class. You only need to
> explicitly 'use NAC::ScanInterface' when there's no relationship and
> your code includes a direct reference to =
NAC::ScanInterface->something.
>=20
> This hardly ever happens, and if you find that need to explicitly use
> another data class, that could be taken as a warning that either your
> relationships are slightly off or you should be moving functionality
> into the base class.
>=20
> imho.
>=20
> will
>=20
> ps. but I explicitly load everything up front, in a factory class, so
> I could be way off.


------=_NextPart_000_01A7_01C57C12.6B906D50
Content-Type: application/x-pkcs7-signature;
	name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIISkjCCApow
ggIDoAMCAQICASQwDQYJKoZIhvcNAQEEBQAwcTELMAkGA1UEBhMCREUxHDAaBgN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BgNVBAoT
HFQtU3lzdGVtcyBJbnRlcm5hdGlvbmFsIEdtYkgxJTAjBgNVBAsTHFQtU3lzdGVtcyBJbnRlcm5h
dGlvbmFsIEdtYkgxHTAbBgNVBAMTFFQtU3lzdGVtcyBDb21wYW55IENBAgJHFTAJBgUrDgMCGgUA
oIIBrTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0wNTA2MjgxNjUx
NDBaMCMGCSqGSIb3DQEJBDEWBBR+syEVn46SaGyYdQQ8tGZEabnP9jAkBgkqhkiG9w0BCQ8xFzAV
MAoGCCqGSIb3DQMHMAcGBSsOAwIaMIGRBgkrBgEEAYI3EAQxgYMwgYAwejELMAkGA1UEBhMCREUx
JTAjBgNVBAoTHFQtU3lzdGVtcyBJbnRlcm5hdGlvbmFsIEdtYkgxJTAjBgNVBAsTHFQtU3lzdGVt
cyBJbnRlcm5hdGlvbmFsIEdtYkgxHTAbBgNVBAMTFFQtU3lzdGVtcyBDb21wYW55IENBAgJHFjCB
kwYLKoZIhvcNAQkQAgsxgYOggYAwejELMAkGA1UEBhMCREUxJTAjBgNVBAoTHFQtU3lzdGVtcyBJ
bnRlcm5hdGlvbmFsIEdtYkgxJTAjBgNVBAsTHFQtU3lzdGVtcyBJbnRlcm5hdGlvbmFsIEdtYkgx
HTAbBgNVBAMTFFQtU3lzdGVtcyBDb21wYW55IENBAgJHFjANBgkqhkiG9w0BAQEFAASBgA2u2o9u
l2WNPgRj9Ni183wDJtGNLwixj9W2kSXeZDnkN0ISDRKm5EzDBwuCuNgRBKjyxCi0oyjEcwiYlwfl
dvRWPrMGssDxJeY592EIehPSwYsfZdGBiOcmCNtHLJ27MxawuCyeM+9/iFJqt56Vix9ZqGekD5n6
4u14Uygbth64AAAAAAAA

------=_NextPart_000_01A7_01C57C12.6B906D50--

stupid beginner question
Hartmaier Alexander 13:47 on 24 Jun 2005

Re: stupid beginner question
Matt S Trout 18:26 on 24 Jun 2005

Re: stupid beginner question
Hartmaier Alexander 07:11 on 27 Jun 2005

Re: stupid beginner question
William Ross 09:35 on 27 Jun 2005

Re: stupid beginner question
Hartmaier Alexander 09:46 on 27 Jun 2005

Re: stupid beginner question
Hartmaier Alexander 09:24 on 28 Jun 2005

Re: stupid beginner question
William Ross 10:21 on 28 Jun 2005

Re: stupid beginner question
Hartmaier Alexander 16:51 on 28 Jun 2005

Re: stupid beginner question
Rob Kinyon 19:59 on 28 Jun 2005

Generated at 16:35 on 28 Jul 2005 by mariachi v0.52