@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26



Comments:

<0> integral: joel is mostly annoying
<0> integral: almost annoying as jeffrey zeldman... that idiot
<1> pravus: he means the real one where you're annotating with high-level stuff not the same as the actual variable's type
<2> oh that's right... he has a different definition of hungarian notation than i was taught
<3> heng: it means your code is unreadable and makes me want to scratch my eyes out.
<1> a better, *proper* definition
<3> yes.
<4> heyhey undef fixed my problem,
<4> can you use undef on an array
<4> ?
<2> integral: not sure about that since it is attributed to starting at microsoft, iirc
<2> i think a new term should have been introduced
<1> pravus: microsoft actually has lots of good coders and so forth.
<5> :-S
<5> sorry :-p
<1> it's just really crap at turning that into good code and products :-/



<0> Jack_S: lexical scoping is the answer
<3> Jack_S: scope it properly, then you don't even need to undef it!
<0> perlbot: coping with scoping
<6> Coping with Scoping - http://perl.plover.com/FAQs/Namespaces.html
<0> read it.
<1> I mean we *could* have all been using microsoft branded VMS by now, but they screwed it up
<2> integral: yes, but i think a group at microsoft is credited with starting the variable-type-in-name hungarian notation... and also named it that as well
<1> hmm
<2> but then it has been a while since i've read up on it... so my facts could be mixed up
<0> who cares.
<4> ARG ok can someone please answer this question: If i have a variable scoped to a for loop will the variable reinitialize on each iteration of the loop?
<1> anyway, all I know is that singletons, OO, and "normal" hungarian are bad.
<1> Jack_S: no, you get a new variable.
<1> so yes, there'll be an initilisation but of a *new* variable.
<2> integral: and i would definitely agree with you
<1> So references taken always refer to the same variable they always did.
<1> eval: for (1..5) { my $a = $_; push @a, \$a; } print "$$_:" for @a
<7> integral: 1:2:3:4:5:Return:
<2> isn't that one way to leak memory in perl?
<1> pravus: nah, it always used to be closure that were leaky
<1> but most of that's fixed in later 5.8s, and it's all totally fixed up in 5.9/10
<2> i remember a friend accidently fell into a leak once
<1> that'd be a lake, not a leek :-P
<8> musta been a big leak
<8> beat me.
<8> literally
<2> the biggest evar!
<4> ok thanks for the answer, i dont wanna change my code because it works, even if it is ***backwardretarded
<4> which is a word in my language
<1> Jack_S: the buzzword to justify rewriting working code is "refactoring"
<2> integral: wrong... it is the enterprise buzzword
<1> just look at pugs! incomplete and it's been rewritten on the order of 5 times!
<2> we are beyond the 90's... everything is enterprise
<1> metarecursive buzzword bingo
<2> i've actually been trying to use the term 'refactor' as much as possible the past week.
<2> no one has caught on yet
<9> pravus, I just thought you were an idiot.
<2> q[ender]: i am ?
<9> pravus, dunno
<9> could be i guess
<2> more likely than you think :{
<9> oh, damn
<5> figrued it out, thanks, anyway :-)
<10> Hi. I was wondering if there is a way to get my big perl scripts chunked in smaller ones. Anyone could tell me ? Thanks you !
<2> Asyx: yes you can! it's called refactoring!
<3> Asyx: there's this magical CS concept called "functions"
<11> Burrito! Taco!
<10> Ho great ! I have many functions in a single file. Can I separate them in many files then include each of them in a single main file ?
<3> perldoc Exporter
<12> The perldoc for Exporter - is at http://perldoc.perl.org/Exporter.html
<2> Asyx: there are several ways to do it. a common way is to use modules. perldoc perlmod for more information.
<12> The perldoc for perlmod - Perl modules: how they work is at http://perldoc.perl.org/perlmod.html
<3> perldoc perlmod
<3> etc
<13> perlbot Botje
<6> He looks like a chicken.
<10> pravus> Ok thank you a lot.
<4> score my super ausome perl script just saved me 2 weeks of data entry
<14> don't tell your boss and make him believe you worked so hard it only took you one week
<14> then you will have one week of free time



<2> yes, i would be heading out to the beach right about now
<15> "As part of Mr. Lee's good neighbor policy, all Rat Things are programmed never to break the sound barrier in a populated area. But Fido's in too much of a hurry to worry about the good neighbor policy. Jack the sound barrier. Bring the noise."
<16> how would do 'pairs' in perl... and i don't mean key-value pairs, but pair of strings for example
<14> Elly, thats from snow crash ^^
<17> DeVol: What do you want to do with them?
<13> DeVol: @pairs = ['a', 'b'], ['c', 'd'], ['e', 'f']
<16> search for them in files and replace them
<1> mmm, perl6-on-perl5 source filter goodness
<13> DeVol
<4> its to bad i live in the desert
<13> DeVol: see tr// then
<1> this is going to be *so* cool
<4> no beach to go to
<11> Mr. Fido :D
<1> Jack_S: dude, the desert is nothing *but* beach!
<4> i could go to a strip club, (im in vegas btw)
<2> vegas++
<4> because i code for an online escort service i could even consider it research
<16> Sound; tr// doesn't seem to handle all of regex's... and doesn't seem to right tool to replace blocks (multiple lines) of strings
<18> Can I resolved this problem: Problem in Amavis::DB or Amavis::DB::SNMP code: Can't locate BerkeleyDB.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i486-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i486-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl) at (eval 35) line 12.
<1> install BerkeleyDB.
<18> integral: but db3-3.3.11-i486-4 is installed
<18> integral: I need install on cpan??
<19> What the heck is "db3-3.3.11etc"
<2> buu: what kind of SATA controllers/drives did you get a while back?
<18> buu db3-3.3.11-i486-4 is installed on slackware
<19> brusso: Yes, but what does that mean?
<13> brusso: perl -MCPAN -e 'install BerkeleyDB'
<19> pravus: Seagatess..
<20> hey all - what's the best module to do bottom-up traversal of arbitrary datastructures?
<13> shift8: for comparison?
<18> Sound: ok. Thanks
<20> Sound: for anything.
<13> shift8: there's a Data::Traverse module, but I never used it.
<20> Sound; in my case, testing for ref()
<19> pravus: The cards seem to be "VIA Technologies VT6421"
<13> shift8: if you need to compare two data structures, there's the good Data::Compare.
<19> Oh wait, here's a box
<2> buu: those are 2-channel, right? do they have RAID?
<20> Sound: i'm not looking for eqaulity. will check on Data::Traverse
<19> pravus: I don't believe they have any hardware raid, but I'm not sure, I never checked.
<19> pravus: They come with a bunch of drive utilities so I just ***umed it was software
<19> It claims "supports raid 0 and raid 1"
<2> buu: ok... i'm thinking about getting a couple of controllers and 4 drives
<2> not sure what to go with yet
<19> pravus: These ones weren't bad, they were like $10 so real cheap, the only problem was you need a relatively new kernel to see them
<19> 2.6.15+
<19> They're fairly nice actually, each card can support 4 sata disks and 2 ide drives
<20> Sound: thanks! it's perfect. i'm parsing the results of XML::Simple
<2> well, i'm running 2.6.15 here so that shouldn't be a problem
<13> shift8: nice to know it works.
<2> buu: oh, i thought they were just 2 SATA drives each
<19> pravus: Well, it was a bit of a h***le on debian =]
<19> Mostly because I wanted debian stable
<2> yes, i can see that :)
<2> stable probably comes with a 2.4.x?
<19> Hrm. It says "two serial ata interface. Supports internal phy with each phy supporting up to two sata disks. dual channel master mode pci supporting up to two sata devices"
<19> pravus: 2.6.8 or some such
<20> another example of why i love perl so very much.
<2> i just need to figure out how much space i want and then find a new PSU
<19> pravus: Just don't try to stick 6 pci cards in a mobo =]
<2> buu: :)
<19> Well, and access them all simultaneously
<19> Other than that it was really fairly simple
<2> i'll probably only have the 2 SATA controllers, a SCSI controller, and maybe a sound card
<19> Pssh
<19> You wuss
<2> did you put 1 drive per controller? or 2?
<19> I have two disks per card
<2> my case will only hold 6 drives (well, 7 i guess, but that's the OS drive)
<19> ****er
<19> Heh, I had to find a 12 slot case
<21> buu: i love u :|
<19> I know.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #perl
or
Go to some related logs:

qemu real directory
warpedcoders
ubout linux
dos2unix tar
iproute mark bridge
#suse
#osdev
egghelp tcl notes
+linux +nagraedit
mn-120 linux



Home  |  disclaimer  |  contact  |  submit quotes