Python or Perl?
Python or Perl?
I can't decide which one I want to use ....
I need a new scripting language that I can use for general purpose coding, C/C++ is for my bigger projects, and PHP just wont cut it any more. And let's not speak about Java, it's a horrible language (just don't like it, no reason needed)
I think the best thing to do is to buy 2 books, one on Perl and one on Python, and try them both.
Anyone have any thoughts about any of them that would help me in my decision? ; )
I need a new scripting language that I can use for general purpose coding, C/C++ is for my bigger projects, and PHP just wont cut it any more. And let's not speak about Java, it's a horrible language (just don't like it, no reason needed)
I think the best thing to do is to buy 2 books, one on Perl and one on Python, and try them both.
Anyone have any thoughts about any of them that would help me in my decision? ; )
"The best place to hide a tree, is in a forest"
A little joke that I read when trying to decide which language to learn. After reading this I asked around and found unanimously python accepted as the better choice... but it's also the only one that I've become functional with, so I may be a bit narrow minded
EXTERIOR: DAGOBAH--DAY
With Yoda strapped to his back, Luke climbs up one of the
many thick vines that grow in the swamp until he reaches the
Dagobah statistics lab. Panting heavily, he continues his
exercises--grepping, installing new packages, logging in as
root, and writing replacements for two-year-old shell scripts
in Python.
YODA: Code! Yes. A programmer's strength flows from code maintainability. But beware of Perl. Terse syntax... more than one way to do it... default variables. The dark side of code maintainability are they. Easily they flow, quick to join you when code you write. If once you start down the dark path, forever will it dominate your destiny, consume you it will.
LUKE: Is Perl better than Python?
YODA: No... no... no. Quicker, easier, more seductive.
LUKE: But how will I know why Python is better than Perl?
YODA: You will know. When your code you try to read six months from now.
EXTERIOR: DAGOBAH--DAY
With Yoda strapped to his back, Luke climbs up one of the
many thick vines that grow in the swamp until he reaches the
Dagobah statistics lab. Panting heavily, he continues his
exercises--grepping, installing new packages, logging in as
root, and writing replacements for two-year-old shell scripts
in Python.
YODA: Code! Yes. A programmer's strength flows from code maintainability. But beware of Perl. Terse syntax... more than one way to do it... default variables. The dark side of code maintainability are they. Easily they flow, quick to join you when code you write. If once you start down the dark path, forever will it dominate your destiny, consume you it will.
LUKE: Is Perl better than Python?
YODA: No... no... no. Quicker, easier, more seductive.
LUKE: But how will I know why Python is better than Perl?
YODA: You will know. When your code you try to read six months from now.
knuffeltjes voor mijn knuffel
[img]http://i911.photobucket.com/albums/ac320/stuphsack/Sig.jpg[/img]
[img]http://i911.photobucket.com/albums/ac320/stuphsack/Sig.jpg[/img]
- bad_brain
- Site Owner
- Posts: 11636
- Joined: 06 Apr 2005, 16:00
- 19
- Location: In your eye floaters.
- Contact:
well, personally I would say "go for Perl!!"....but I have to admit it's more because of a romantic old-school Unix sympathy and not because of logic...
actually Python the "better" language because it forces you to write clean code....the only disadvantage compared to Perl is the lack of documentation (maybe not really for the Python core itself, but at least for APIs that enable Python to work together with other platforms like Apache for example).
actually Python the "better" language because it forces you to write clean code....the only disadvantage compared to Perl is the lack of documentation (maybe not really for the Python core itself, but at least for APIs that enable Python to work together with other platforms like Apache for example).
-
- cyber messiah
- Posts: 1201
- Joined: 30 Apr 2006, 16:00
- 17
- Location: 127.0.0.1
-
- cyber messiah
- Posts: 1201
- Joined: 30 Apr 2006, 16:00
- 17
- Location: 127.0.0.1
pseudo_opcode wrote:btw i am really curious as to why php wont cut it?
And it wont cut what?
Because it's more meant for dynamic sites. And it's too nice, allows sloppy code. I simply want something new to chew on, a scripting language that I can use as my "standard" scripting language when I just need to write some random script, and imo php feels too small for that purpose sometimes.
And it wont cut my bread in the mornings.
"The best place to hide a tree, is in a forest"
-
- cyber messiah
- Posts: 1201
- Joined: 30 Apr 2006, 16:00
- 17
- Location: 127.0.0.1
I have written system applications and monitoring scripts in php, they are in action as we speak, I wrote a complete security monitoring suite for 30+ servers in php, all run via command line.cats wrote:pseudo_opcode wrote:btw i am really curious as to why php wont cut it?
And it wont cut what?
Because it's more meant for dynamic sites. And it's too nice, allows sloppy code. I simply want something new to chew on, a scripting language that I can use as my "standard" scripting language when I just need to write some random script, and imo php feels too small for that purpose sometimes.
And it wont cut my bread in the mornings.
Why? i found the specific functions and libraries required were better supported in php than they were in perl.
About sloppy coding, every language allows it, if one didnt then Information Security would only have been a hypothesis.
But many people say perl is system admin's best friend, where bash limits you, perl will expand your possibilities.
cats wrote:That's awfully convenient =olilrofl wrote: Python cuts my bread in the morning... and fries and egg on it...
Yeah, it's good about that... however it forgets to add milk to the eggs which makes them come out flat :/
knuffeltjes voor mijn knuffel
[img]http://i911.photobucket.com/albums/ac320/stuphsack/Sig.jpg[/img]
[img]http://i911.photobucket.com/albums/ac320/stuphsack/Sig.jpg[/img]