Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I think he misses THE biggest obstacle. All these youngsters had been told for years that they are being taught the end of all languages, the one and only language they are ever gonna need ... and now, two weeks into their work life they are forced to learn another language and next to nothing they learned holds. You are hurting their pride.

"There's the fact that Perl is interpreted, not compiled." ... erm ... especially compared to Java, compiled to some intermediate code and then interpreted and/or Just In Time compiled to actual machine code, this statement really causes a chuckle.

"the fact that in Perl execution just starts at the top of the page, not in public static void main(String[] args)." And the absolutely pointless boilerplate required by Java doesn't end there.

"You use $var[0] to get information out of an array called @var, which is different from a scalar called $var." Yeah, a huge deal. The sigil is not part of the variable name, but rather specifies what is it you want to obtain. "I want the 0-th scalar from variable named 'var'." How long does it take to explain that? Two minutes? Show them slices and ask them to write equivalent code in Java!

"Perl has no boolean data type" - Perl has no integer or float or string data type either. It has scalar, array and hash and when it comes to scalar the values get converted between strings, numbers and booleans as needed.

"You can't put a list inside another list." How do you put a list inside another list in Java? Exactly? Speaking about literals, yeah, in Perl you can't write @foo = ( (1,2,3), (4,5,6));, you have to use @foo = ([1,2,3], [4,5,6]); well ... as far as I can tell in Java, if you wanted an array of array you'd end up with something like Int[][] foo = new Int[][]{ new Int[]{1,2,3}, new Int[]{4,5,6} };, but yeah, Perl is complicated. Now imagine you dared to want an ArrayList of ArrayLists. Yes, you have to explain that they have to store references in arrays and hashes. In Java you have to explain the difference between value and reference types. How much time did they spend on that?

"Creating elementary nested data structures is difficult, as is getting information out of them." I'd really love to see an explanation of this nonsense. With comparison to Java pretty please!

Jenda
Enoch was right!
Enjoy the last years of Rome.


In reply to Re: Teaching Perl by Jenda
in thread Teaching Perl by ambrus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (1)
As of 2024-04-18 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found