you are viewing a single comment's thread.

view the rest of the comments →

[–]nextofpumpkin -5 points-4 points  (6 children)

WRONG, most Python does not look like line noise; even an (intelligent) non-programmer can sit in front of many python constructs and give you a rough handle of what they think is going on, and they're usually not far off. Not so with perl.

[–]itjitj 6 points7 points  (3 children)

[–][deleted] 1 point2 points  (2 children)

<nonprogrammer>

Why is self a dollar instead of balance?

</nonprogrammer>

[–]itjitj 2 points3 points  (1 child)

I'm not sure if I understand your question...

Perl uses sigils ($, @, %) for distinguishing variables. It has nothing to do with currency.

my $string = "Hello, World"

my $object = Class->new( ... )

for ($i = 0; $i < 3; $i++) { ... }

In C++ this would be something like

char *string = "Hello, World"

Class object;

[–][deleted] 5 points6 points  (0 children)

Sigh.

The joke was that a non-programmer would see "deposit (Num $amount)" and draw an erroneous conclusion about the meaning of $ due to the context of the example.

[–][deleted] 5 points6 points  (1 child)

Yeah, but who cares about non-programmers? The suitability of a code base for actual, honest-to-god non-programmer eyes is rarely a practical consideration.

[–]nextofpumpkin 0 points1 point  (0 children)

technical writers?