in reply to Stereotypes about perl

The professor said we can use any language we want but strongly advised us to use Matlab.

When a professor strongly advises something, it is generally safe to assume you will probably be graded down if you don't take the advice. When he said you *can* use any language you want, that means he won't flunk you outright for it. What costs more, Matlab, or the tuition for the course? Think of it like buying a textbook for the course, only it's software.

If you want to make a point, turn in side-by-side Matlab and Perl results. (Not knowing Matlab, I don't know whether this will effectively make the point you want, but if it won't then there isn't a better way to make it either probably.) If you just want a good grade, take the professor's advice.


;$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$;[-1]->();print

Replies are listed 'Best First'.
Re: Re: Stereotypes about perl
by ambrus (Abbot) on Feb 25, 2004 at 13:13 UTC

    The big difference is that you can lend a book from the library for almost free, but you cannot lend Matlab.

Re: Re: Stereotypes about perl
by adamsj (Hermit) on Feb 25, 2004 at 16:01 UTC
    If you're going to efffectively deal with this teacher and continue using Perl, you're going to have to do additional work. Handing in a Matlab version of one or two assigments, along with Perl versions, is a good start. You also need to annotate the code, explaining where you've made different choices for what you're doing, and why, according to the possibilities inherent in the tools. If you can do this in a firm yet respectful manner, you may be able to win him over.

    You also need to make sure you aren't getting around the guts of the assignment by using special features of Perl. If you're asked to implement pattern matching and you do it by using Perl regexes, you probably deserve to be failed, since the assigment is to implement, not to use someone else's implementation.

    adamsj

    They laughed at Joan of Arc, but she went right ahead and built it. --Gracie Allen