#perl - Tue 27 Mar 2007 between 19:02 and 19:09



Jmax-michoelc: if it's already OO just pass it to the constructor and store it in the object
mofinohobbs, no love for the abstract.
MorphineChildRandal anyway in my case it's not that pointless as it appears.. having $name for <input name="$name" /> and %names for all values that are connected to that input %{$input . 's'} is just sweet to use
michoelcJmax-, it comes from redesigning a program that wasn't modular..
Jmax-michoelc: so make it modular
actionCPAN upload: DateTime-Format-ISO8601-0.05 by JHOBLITT
CPANupload: DateTime-Format-ISO8601-0.05 by JHOBLITT
actionCPAN upload: JSON-1.09 (+++ ) by MAKAMAKA
CPANupload: JSON-1.09 (+++ ) by MAKAMAKA
buuEEK
hobbsMorphineChild: uh, no.
Jmax-non-reusable code is worse than non-functional code
buuMorphineChild: Welcome to the land of security holes.
MorphineChildsecurity holes in what would that be?
michoelcJmax-, it's a major inconvience, and the code is not resuable really. It's only a module so that I can work with more than one file
psybachsometimes i wonder why there can't be some sort of autoop in pl
hobbsMorphineChild: that's not sweet, that's awful. And it means you have no choice but to fool with global data.
MorphineChildbuu if im checking what im passing as $name, i dont see what security holes i might have
Jmax-michoelc: regardless you're munging up scoping. it's inefficient
buuMorphineChild: How are you checking it?
hobbsMorphineChild: all you need is a hash, with valid $names as keys, and you end up with more efficiency, half the code, no complaints from strict, and a LOT less opportunities to completely break your program :)
Jmax-not to mention confusing for the code maintainer
MorphineChildbuu defined()
michoelcJmax-, would you be able to look at the program (its on a trac) and tell me what you think?
buuergh
Jmax-michoelc: i already told you what i think. pass it to each necessary function or store it in the object
MorphineChildhobbs yeah hash will work, ty
michoelcJmax-, passing it to the function doesn't seem feasable
hobbs%main:: is also just a hash, it's just one that you can rape globally, and strict cries when you do that ;)
Jmax-michoelc: then store it in a function
er
the object
michoelcJmax-, okay.. I guess I will go for that then. Do you know where I can read up on it?
dazjorz_bah
MorphineChildhobbs ugh let's stick to something more simple, like %hash =('foo'=>{});:P
Jmax-michoelc: objects? perldoc perlobj; perldoc perlboot; perldoc perltoot; etc.
dazjorzbah
well, gotta go
bye
michoelcJmax-, okay.. thanks for the time. I'll go read.
hobbsMorphineChild: have you ever tried typing something coherent?
Jmax-:)

Page: 1 8 15 22 29 36 43 50 57 64 71 78 85 92 99 106 113 

IrcArchive