Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

Python vs. Perl

Name: Anonymous 2008-01-29 12:45

My dad's electrical engineering friends are bring up the old debate again, and some are trying to back up perl.

I need some good ammunition against Perl, courtesy of /prog/. Most likely something to poke fun at regex.

Name: Anonymous 2008-01-29 13:00

$_;$@)!&^)!*&!*!{&%#)^!@*&#!){@&()&#@^@#&)&!@!{*}

Valid Perl code

Name: Anonymous 2008-01-29 13:14

http://www.CPan.org/

Name: Anonymous 2008-01-29 13:25

/r/ valid Haskell code.

Name: Anonymous 2008-01-29 16:20

MOAR

Name: Anonymous 2008-01-29 16:28

Perl is only good for quick hacks, not for larger programs.

Name: Anonymous 2008-01-29 16:30

/r/ valid Haskell code.

Name: Anonymous 2008-01-29 16:31

module Main where{import List;import System;
 import Data.HashTable as H;(???????)=(concat
 );(??????)(???)(????)=((groupBy)(???)(????))
 ;(??????????????????????)(????)=((??????????
 )((tail).(???????))((????????????????????)((
 ??????)(?????????????????????)(????))));(??)
 =([' ']);(??????????????)=((hashString));(?)
 =((>>=));(???????????????????????)([((???)),
 (????)])=((?????????????)(???))?(\(?????)->(
 (????????????????)(==)(??????????????))?(\((
 ???))->((??????????????????)(???????????????
 )(???)(?????))>>((?????????????????)(???))?(
 \((?????))->((((???????????????????)((????))
 ((??????????????????????))((?????))))))));((
 ???????????????????????))(??)=(????????????)
 ("usage f dic out");(?????????????????????)(
 (???),(??????))((????),(????????????????????
 ))=((???)==(????));(?????????????????)(???)=
 (toList)(???);(????????????????????)(????)=(
 ((??????????)(((??????????)(snd)))((????))))
 ;(??????????????????)(???????????????)(???)(
 (?????))=(((mapM)(((???????????????)(???)))(
 (lines)(?????))));(???????????????????)(????
 )(???????????????????????)(?????)=(?????????
 )(????)((unlines)((???????????????????????)(
 ?????)));(????????????????)(???)((????))=(((
 new)(???)(????)));(main)=((???????????)?(((\
 (???)->((???????????????????????)(???))))));
 (???????????????)(???)(????)=((????????)(???
 )((sort)(????))((??)++(????)));(???????????)
 =(getArgs);(????????????)(???)=((((print))((
 ???))));(??????????)(???)(????)=(((map)(???)
 (????)));(????????)((???))(????)(?????)=((((
 H.insert))((???))(????)(?????)));(?????????)
 ((???))((????))=(((writeFile)(???)((????))))
 ;(?????????????)(???)=(((readFile)((???))))}

Name: Anonymous 2008-01-29 16:32

Name: Anonymous 2008-01-29 16:32

>>8
VALID HASKELL CODE

Name: Anonymous 2008-01-29 17:08

http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html is always a good place to start a balanced discussion about Perl's readability and maintainability.

Name: Anonymous 2008-01-29 17:15

>>11
That's a regular expression, faggot

Name: Anonymous 2008-01-29 17:45

>>12
No shit? I thought it was a red/black tree at first.

Name: Anonymous 2008-01-29 19:06

>>12
Actually, it's valid perl cod

Name: Anonymous 2008-01-29 20:49

>Valid Perl Cod
[code]
  o           .'`/
      '      /  (
    O    .-'` ` `'-._      .')
       _/ (o)        '.  .' /
       )       )))     ><  <
       `\  |_\      _.'  '. \
         '-._  _ .-'       '.)
     jgs     `\__\[/code]

Name: Anonymous 2008-01-29 21:02

>>15
>Invalid BBCode Cod

Name: Anonymous 2008-01-29 23:14

>>14
valid haskell halibut.

Name: Anonymous 2008-01-30 1:01

poke fun at regexp? perl invented regexp, what ever puny implementation of regexp you have in pythin it's probably PCRE, HAVE YOU ANY IDEA WHAT THAT MEANS?!?!?!?

it means Perl's not Compatible Regular Expressions, GNU BABY!

Name: Anonymous 2008-01-30 3:26

What does the ``P'' stand for?

Name: Anonymous 2008-01-30 4:36

>>18
Yes. It means it's faster than Perl in a lot of regexps

Name: Anonymous 2008-01-30 5:25

What I want to know is why the hell are regular expressions so hard? It's like someone decided one day, oh, I'm going to make something which does pattern matching and create the most bizarre ass-backwards bubble gum syntax for it. I honestly think whoever invented it is actually the greatest troll of all time, truly worthy of /prog/ trolls.

Name: Anonymous 2008-01-30 5:38

>>21
Write your own faggot

Name: Anonymous 2008-01-30 5:41

>>21
Write your own faggot

Name: Anonymous 2008-01-30 6:02

(lreg-match '(\^ (* \w) l o , \s ([^ (- a z)) ([ a b o) r l (* \w) ! \$)
            '(H e l l o , #\sp W o r l d!))


Because polish notation, expression trees and finite state machines are just begging to be mixed.

Name: Anonymous 2008-01-30 6:15

>>21
They're not hard. It's just that the symbol set used to describe regexes also includes symbol that you may want to match, so you have to use escaping, which makes it look unwieldy.

Name: Anonymous 2008-01-30 6:45

Should I learn Perl, /prog/?

Name: Anonymous 2008-01-30 6:50

>>26
Just the basics.

Name: Anonymous 2008-01-30 6:54

Should I learn Prog, /perl/?

Name: Anonymous 2008-01-30 7:03

>>21
Regexes are very simple.

Perl "regexes" with that ``bubble gum syntax'' are a big FAIL!

Name: Anonymous 2008-01-30 10:09


  o           .'`/
      '      /  (
    O    .-'` ` `'-._      .')
       _/ (o)        '.  .' /
       )       )))     ><  <
       `\  |_\      _.'  '. \
         '-._  _ .-'       '.)
     jgs     `\__\

Name: Anonymous 2008-01-30 10:10

(SAGE)

Name: Anonymous 2008-01-30 10:26

>>29
Regexs are simple to write, but impossible to read.

Name: Anonymous 2008-01-30 10:32

>>32
Not unlike PERL.

Name: Anonymous 2008-01-30 10:32

i don't see what the hell is so bad with perl regexp, i honestly can't complain and i've used them for a long time, and still use them constantly

if anyone can give a valid argument against perl regexp syntax that doesn't have anything to do with your personal taste in syntax then i will stfu and gtfo

Name: Anonymous 2008-01-30 10:56

Fish rule at dick-sucking because they don't have to breathe

Name: Anonymous 2008-01-30 11:12

>>35
but how can they suck with no lungs?

Name: Anonymous 2008-01-30 11:21

>>35
>>36
They breathe oxygenated water through their gills, you stupid cunts.

Name: Anonymous 2008-01-30 11:22

>>37
but how do they suck dick through their oxygenated gills?

Name: Anonymous 2008-01-30 11:32

>>38
The sucking part is irrelevant, the fishes are able to move forward and backward really fast.

Name: Anonymous 2008-01-30 11:39

>>39
Lies; mine didn't.

Name: Anonymous 2008-01-30 11:40

>>40
Upgrade to iFish 2.0.

Name: Anonymous 2008-01-30 11:51

Getting back on topic somewhat, this reminds me of a photo I saw once where a guy had his dick shoved halfway up a snake's shithole. It may have been a python.

Name: Anonymous 2008-01-30 14:01

>>42
Getting back on topic somewhat,
Noo!
this reminds me of a photo I saw once where a guy had his dick shoved halfway up a snake's shithole. It may have been a python.
l;opl;

Name: Anonymous 2008-01-30 14:05

>>43
gtfo

Name: Anonymous 2008-01-30 15:39

>>28
Just the basics

Name: Anonymous 2010-12-17 1:39

This post brought to you by the Gay Nigger Association of America

Name: Anonymous 2011-02-03 0:21

Don't change these.
Name: Email:
Entire Thread Thread List