Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Perl in general

by talexb (Chancellor)
on Oct 03, 2016 at 20:39 UTC ( [id://1173186]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl in general
in thread Perl in general

I have been meaning to look at Python for some time now, but I've had plenty of other things to do. I find Python's enforced formatting a little irritating, but I should just put that aside and try the language out -- it's just a long way down my list of cool things to try out.

I finally did some PHP for $work[-2] about eighteen months ago -- it was an authentication plugin for Roundcube -- and it was fine. I spent some time during that project looking stuff up in the PHP documentation, but apart from that, it was web development as usual -- no biggie.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Replies are listed 'Best First'.
Re^4: Perl in general
by stevieb (Canon) on Oct 03, 2016 at 20:51 UTC

    To be honest, it's a very easy language to grasp, especially if you have any Object Oriented experience whatsoever, as the whole premise of Python is that everything is an object.

    If anything, I'd say Python is closer to Perl6 than it is to Perl5, due to the OO approach alone.

    I'd go as far as saying that Python is probably the easiest language I've learned so far overall. It is a fun language to write in.

    Install PyCharm, and you'll be on your way. Note that PyCharm, with the Camelcade Perl 5 plugin, you'll have a full blown IDE that works with both Python and Perl seamlessly (this is what I do, but I use intelliJ at home as opposed to PyCharm at work).

Re^4: Perl in general
by RonW (Parson) on Oct 04, 2016 at 20:11 UTC

    I've also coded in Python and dislike its required indentation. Have to make sure your editor/IDE is set up to not mix spaces and tabs, otherwise you can easily end up with code that looks right, but the Python compiler "sees" it differently.

    Though, I started coding in BASIC, then C, so working with a language where indentation is part of the syntax was and still is alien to me.

    (Yes, indentation makes code easier to read, but I don't rely on it. Sometimes, I will use a "pretty printer" tool to reformat C code to help me read it. That has actually helped me find some bugs. With Perl, you can use <c>perl -MO=Deparse -c</o> to see how Perl's compiler "sees" your code.)

    You mention using PHP. PHP's syntax is closer to Perl's than it is to Python's. That can be both good and bad when moving from PHP to Perl. While Perl will feel less alien, it's somewhat easy to try doing something the "PHP way" while coding Perl (and vice-versa).

Re^4: Perl in general
by Anonymous Monk on Oct 04, 2016 at 07:18 UTC

    I was working at one job in Perl for ~7 years. Now I am mainly using Python (2.7! BOOOooo!). Besides initial irritation of enforced indentation (and other ongoing minor annoyances), it seems to be just as easy to pick up, and programming as Perl.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1173186]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-16 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found