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

Pages: 1-4041-

Perl is not ugly

Name: Anonymous 2012-01-20 3:53

If you think Perl is ugly, you don't know how to use it.

Discuss.

Name: Anonymous 2012-01-20 3:55

If you think your girlfriend is ugly, you don't know how to use it.

Name: Anonymous 2012-01-20 3:56

You're mother isn't ugly. I just didn't know how to use her.

Discuss.

Name: Anonymous 2012-01-20 6:35

Beauty is subjective.

Name: Anonymous 2012-01-20 11:38

Cameltoe

Name: Anonymous 2012-01-20 12:59

Could you show me some perl you have written >>1?

Name: Anonymous 2012-01-20 13:03

If you think perl is beautiful, you're not actually getting anything done in it.

Name: Anonymous 2012-01-20 14:44

>>7
If you think Perl is ugly, you don't know how to use it.

Name: Anonymous 2012-01-20 14:48

>>8
goto :>>2

Name: Anonymous 2012-01-20 14:50

You're mother isn't ugly. I just didn't know how to use her.

Discuss.

Name: Anonymous 2012-01-20 15:03

>>9
Nice missing semi-colon, faggot.

Name: Anonymous 2012-01-20 15:11

if you think perl is ugly, you care more about syntax than actually programming

Name: Anonymous 2012-01-20 15:19

If you think Perl is ugly, you're absolutely right.

Name: Anonymous 2012-01-20 15:36

If you think Perl is ugly, you're a homosexual.

Name: Anonymous 2012-01-20 15:39

>>13
>>14
Why not put both of the statements in a singal conditional, rather than checking the same thing twice? Sloppy girls.

Name: Anonymous 2012-01-20 16:07

if ($perl == "ugly") {
    $you = "fucking idiot";
}

Name: Anonymous 2012-01-20 16:16

>>16
I don't like how Perl requires braces for single line statements. If I can do it in C, I want to be able to do it in a higher level language.

Name: Anonymous 2012-01-20 16:20

>>17
You should always use curly braces around one statement conditionals/loops, even in C.

Name: Anonymous 2012-01-20 16:23

>>17

curly braces just make it read nicer honestly

Name: Anonymous 2012-01-20 16:42

>>18,19
Stop trying to tell me what syntax you think looks nicer. It's the same exact thing just more compact.
As long as you still indent that statement there is no problem.

Name: Anonymous 2012-01-20 16:43

>>20
ok

Name: Anonymous 2012-01-20 17:48

check 'em

Name: Anonymous 2012-01-20 17:59

>>16
if ($perl eq "ugly") {
    $you = "fucking idiot";
}


FTFY

Name: Anonymous 2012-01-20 18:01

Ugly way of extracting function arguments inherited from shell languages, ugly improvised characters like -> for essential operations, ugly pseudo shortcuts like $_ which most of the time aren't even shorter, $ aka the ugliest ascii character all over the code for no good reason, ugly syntax for class declarations because OO is tacked on etc.

Sigils are especially horrendous with lots of short variable names, e.g., in array based algorithms as seen in this snippet from rosettacode:

sub permute (&@) {
        my $code = shift;
        my @idx = 0..$#_;
        while ( $code->(@_[@idx]) ) {
            my $p = $#idx;
            --$p while $idx[$p-1] > $idx[$p];
            my $q = $p or return;
            push @idx, reverse splice @idx, $p;
            ++$q while $idx[$p-1] > $idx[$q];
            @idx[$p-1,$q]=@idx[$q,$p-1];
        }
}


If you don't think this is ugly you should have your eyes checked.

Name: Anonymous 2012-01-20 18:08

>>23
i prefer == to eq but sure

Name: Anonymous 2012-01-20 18:16

>>25
== is for numerical comparisons whilst eq is for string comparisons. Maybe you should try learning perl before ``defending'' it?

Name: Anonymous 2012-01-20 18:23

'perl' == 'ugly' # => true

Name: Anonymous 2012-01-20 18:26

>>12

What if I think Perl is semantically even more ugly than syntactically?

The shit perl syntax is only the visible stump of the rotten plant that is above ground.

Name: Anonymous 2012-01-20 18:36

>>25
You might want to brush up Perl:
~$ re.pl
$ my $perl;

$ $perl == "ugly";
Argument "ugly" isn't numeric in numeric eq (==) at (eval 271) line 6.


>>25
That example is indeed ugly, on the other hand don't you find it rather odd that all Scottish sheep are black?

Name: Anonymous 2012-01-20 18:45

>>29
There's nothing special about that snippet. It's not like i handpicked it from a code obfuscation contest. All code with lots of short variables looks about equally ugly.

Name: Anonymous 2012-01-20 19:13

>>30
The Scottish sheep wasn't handpicked either.

The code was obviously somewhat golfed, and the C version probably reads much the same anyway. On the other hand, if you'd care to prove that it can't be written much more clearly then you can make your point.

Name: Anonymous 2012-01-20 19:33

>>29

using warnings is for fags

Name: Anonymous 2012-01-20 20:21

Chuck my debs

Name: Anonymous 2012-01-20 20:29

>>32

Warnings are for fags? Is that so?

In that case, I'm hiring me some coding fags, and sending the non-warning-using real hetero men back to drywall installation where they belong.

(Not real construction though. That requires safety devices.)

Name: Anonymous 2012-01-20 20:35

>>24
You purposely wrote the code ugly. We are trying to have an intelligent debate here.

Name: Anonymous 2012-01-20 20:42

>>33
I already don't use aptitude

Name: Anonymous 2012-01-20 20:56

>>35
as seen in this snippet from rosettacode

Name: Anonymous 2012-01-20 21:15

>>31
Who said anything about clarity. My point is lots of short variable names close together look extremely ugly.

Name: Anonymous 2012-01-20 21:18

>>38
Sure they do. That doesn't have anything to do with Perl though.

Name: Anonymous 2012-01-20 21:32

>>39
Well yes, they look ugly because of sigils. In average perl code maybe 4% of all characters are THE UGLIEST A$$ KEY CHARACTER while in one-letter variable heavy code that number goes up to maybe 20%.

It's also harder to tell $i, $j and $l apart than i,j and l or at least it is for me.

Name: Anonymous 2012-01-20 22:09

it's not nearly as elegant as javascript

Name: Anonymous 2012-01-20 22:43

>>40
I once read a very compelling argument that special characters serve to help the readability of code. I didn't want to believe it since I try to avoid scripting languages, but the evidence was fairly strong.

As far as sigils go, all I can say is "deal with it." Ranting about it like you are is just stupid.

Name: Anonymous 2012-01-21 3:41

>>23


$you = "fucking idiot" if perl eq "ugly";


FTFY

Name: Anonymous 2012-01-21 3:41

I like being able to put the statement of a single statement loop on the same line as the conditional operator, but without parentheses. I like to use as little space as possible on the screen, not for obfuscation but so that more of the code is on screen at any given time.

I personally don't see what's wrong with @, or $ in courier, but in times or arial or whatever the fuck the posts are published as by default they are indeed hideous (because the font itself is hideous to begin with). In fact I rather like how @ and $ look in courier.

And how subjective is the claim of any ascii character being any more or less than another when they vary between fonts? What are you writing in? Verdana? And as if just because you think the character in whatever font you use is the ugliest character known to man, doesn't mean anyone else will feel the same way or care when they don't even use that font or hold your concept of beauty.

Maybe you should make a thread for inventing the most beautiful programming language, >>40.

Name: Anonymous 2012-01-21 3:46

>>41
javascript
elegant

yeah ...


(function(){
 ...
})()


elegant scopes!

constant binding of functions to this , with no way to tell what this an already bound function has, truly elegant

every variable global by default... elegant


" -0000 \n\t\r " == false      // true

 1  == "00001"     // true
[1] == "00001"     // false
[1] == "1"         // true
[1] == 1           // true
[1] == [1]         // false

null == undefined  // true

[[], undefined, null] == ",,"  // true

var a = [0]
a == a      // true
a == !a     // true


=='s coercion... elegant!

Name: Anonymous 2012-01-21 4:54

I don't think the sigils are ugly. And I appreciate the mnemonic of what context a variable is used in when reading someone else's code in particular.

Name: Anonymous 2012-01-21 9:00

>>46
Most of the time if you don't know what a variable holds you must look it up anyway. Just knowing whether it's a list or hash isn't very useful.

Sure, in some rare cases it is, but there's no way that compensates for the loss of readability from cluttering the whole code with dollar signs.

I like to use as little space as possible on the screen, not for obfuscation but so that more of the code is on screen at any given time.
That's exactly why sigils are horrible. They blow up the code for no good reason.

Name: Anonymous 2012-01-22 2:42

>>47
Except there's no loss of readability. That is not a fact, it is your opinion. Your little, insignificant opinion on aesthetic issue.

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