#perl
08 October 2007
Total 42 pages. You are browsing page 3/42.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
01:48 <****> omg, no kidding the docs are wrong.
01:49 <****> TomCox, That's... a bad idea, at least without official docs.
01:49 <****> apeiron: well i've been googling as I have questions
01:49 <****> Just ten minutes ago we saw some code pasted by nelgin here about a published CPAN module that does something absolutely silly and misleading.
01:49 <****> that's even worse
01:50 <****> just saw the my command being used in a way that looked like it was referencing a global variable within a local sub. think I figured out what's going on though
01:50 <****> If you're Googling and reading scripts, you pick up bad habits, unless you limit yourself to good code.
01:50 <****> (and know what code is good ahead of time)
01:50 <****> What does the "global" function in php do?
01:50 <****> Local sub?
01:51 <****> the server opens a socket and the the client also opens up a socket... the client writes it's socket and a random number to the server socket... the server then connects up to the client socket that was provided and provides the random number
01:51 <****> and thoughs on that?
01:51 <****> Is it roughly like a use vars?
01:51 <****> in php global allows you to use a global variable in a local function. By default global variables can't be referenced in local functions without first defining that you want to access them.
01:52 <****> TomCox: Wow, how utterly annoying that must be.
01:52 <****> Why are they called global then? =\
01:52 <****> Because you can call global() to import them :)
01:53 <****> ick. I'm glad I do Perl.
01:53 <****> jagerman: it was put into the language because of all the lousy programmers who wrote insecure code
01:53 * Khisanth prefers to think of scope as a concentric ring of one way mirrors :)
01:53 <****> PHP does implicit scoping
01:53 <****> Thanks for your help. Later gaters.
01:53 <****> course I'm probably one of those lousy programmers :-p
01:53 <****> TomCox: That sounds very scary.
01:54 <****> it's just the brain damage suffered from using PHP
01:54 <****> I just do it for a hobby. Tried to do it as a job but it took the fun out of it
01:54 <****> Sort of like "Let's set the speed limits to 5km/h so that no one will get into an accident"
01:54 <****> php rots your brain
01:54 <****> probably does, but I enjoy it *shrug*
01:54 <****> PHP rots my brain, and I don't even use it!
01:54 <****> Hi there
01:54 <****> I've heard perl is better so I figured i'd force myself to pick it up
01:55 <****> Perl is a programming language, PHP is a one-use hacking language.
01:55 <****> Can someone point me to a module that allows me to normalize time intervals such as "5 min", "2 hours", etc into minutes/hours?
01:55 <****> i'm assuming perl is faster than php?
01:55 <****> perlbot: be TomCox
01:55 <****> How I can make teh web wit pearl?!?!
01:55 <****> perlbot: be TomCox
01:55 <****> Hi, can I paste this very long script I downloaded and let you fix it for me plz??
01:55 <****> perlbot, fastest
01:55 <****> If you want to know which approach is fastest, BENCHMARK!!
01:55 <****> TomCox: Well, yes, but that's hardly important
01:56 <****> perlbot: be TomCox
01:56 <****> OMG u r teh gr8est 10x thx k bye!
01:56 <****> urgh
01:56 <****> TomCox, These days, programmer time is incredibly more expensive than machine time.
01:56 <****> TomCox: perl can shit gold, and is made out of CANDY
01:56 <****> WHY USE PEARL!? PHP IS FASTAR?!?!?
01:56 <****> perlbot: 8ball is pkrumins ever going to get the one he's looking for?
01:56 <****> Magic 8ball says: Yes
01:56 <****> indeed.
01:56 <****> TomCox: (it's true)
01:56 <****> sheesh, just wondering
01:56 <****> apeiron: http://www.3sat.de/3sat.php?http://www.3sat.de/nano/cstuecke/113833/index.html
01:57 <****> mauke's url is at http://xrl.us/66rf
01:57 <****> "Schlecht geschriebener Code ist ein Klimakiller." Denn wenn der Prozessor wegen komplizierter Software-Befehle mehr arbeiten muss als nötig, wird entsprechend mehr Strom verbraucht. "Wir haben durch schlecht geschriebene PHP-Skripte eine hohe Ressourcenbelastung", sagt Schmidt.
01:57 <****> I just know more programs seem to allow perl plugins so I wanted to learn it
01:57 <****> hmm
01:57 <****> fokat: use Time::Duration; or search.cpan.org
01:57 <****> 'ressourcenbelastung' that doesn't sound good.
01:58 <****> mauke, I have to admit that my... hm, German, is it? is not so great.
01:58 <****> NOTevil: Already tried cpan and failed miserably :-)
01:58 <****> NOTevil: Thanks
01:58 * CPAN upload: Geo-ECEF-0.10 by MRDVT
01:58 * CPAN upload: RPC-Async-1.02 by TLBDK
01:59 <****> Ressourcenbelastung?
01:59 <****> "Bad written code is a climatic killer." Because if the processor must work because of complicated software instructions more than necessary, according to more river is used. "We have a high resources load" by badly written PHP Skripte, say Schmidt.
02:00 <****> Ah, thank you for the translation. :)
02:00 <****> What a horrible translation :)
02:01 <****> "...according to more river is used" is nice
02:01 <****> I suspect, though, that badly designed database layouts are more to blame than the actual php code
02:02 <****> Schlechter HTML-Code, umständliche Skripte und nicht gepflegte Datenbanken verlängern die Ladezeiten von Webseiten. [...] In MySQL-Datenbanken sollten überflüssige Daten entfernt werden, um die Zugriffszeiten kurz zu halten.
02:03 <****> fefe? :)
02:03 <****> "mysql sucks" :)
02:03 <****> Patterner: :-)
02:05 <****> so if statements have to be within a switch block?
02:05 <****> ...
02:05 <****> considering the fact that switch blocks don't exists ... :)
02:06 <****> perlbot, beginning perl
02:06 <****> http://www.perl.org/books/beginning-perl/
02:06 <****> TomCox, You're encountering the problems with learning from code you read.
02:06 <****> I have a script here that has SWITCH: {} in it, and when I comment those lines out the code dies
02:07 <****> that is a bare block with a label
02:07 <****> the label just happens to be named SWITCH
02:07 <****> that's a named block, the name happens to be "SWITCH"
02:08 <****> ahh. got it. thanks. that makes more sense
02:09 <****> perldoc -q case
02:09 <****> er.. perldoc -q switch
02:09 <****> :-}
02:09 <****> lol that's funny
02:09 <****> badly written code = bad for climate
02:11 <****> next on geraldo: vista: is it the cause of global warming?
02:11 <****> or.. hot air on the political stage: cause of global warming? :)
02:12 <****> more likely. :)
02:14 <****> It was 40 degrees outside today. I welcome global warming.
02:16 <****> thanks for the help everyone! gotta run
02:22 <****> perlbot, karma global warming
02:22 <****> global warming doesn't have any karma
02:22 <****> (global warming)++
02:22 <****> perlbot, karma global warming
Total 42 pages. You are browsing page 3/42.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
