in reply to Honest question about Perl, Python and Ruby
For example, php, Visual Basic and Delphi are the most popular languages, because they are easy to learn and use. PHP, however is mostly, if not only, suitable for web projects. You can use it for standalone programs, but, it's difficult. Visual Basic and Delphi are the languages made for nonprogrammers or beginners. They are inflexible. It's easy to do simple programs, using them, but, when your projects grow, they crumble under their weight and there is a lot of bad quality code. For example, to do a simple procedure of justifying a text in a Visual Basic, took me almost 3 pages of code, while in perl, I did it in about 15 lines of code (about a half of the screen), that was more readable than in Visual Basic. The code from Visual Basic, Delphi and, to some extent, from php is very difficult to almost impossible to reuse on other projects.
In comparison to other languages, Perl has an best regular expression power. Also, it has a difficult to learn, but the best unicode support. With Perl, you can easily build very complex data structures (nested arrays, code references, associate arrays (hashes), within arrays, within hashes etc.)
Python, is object based from the ground up, while Perl has a support for object oriented programs. I like the mandatory documentation that you have to do in Python code. You can embed documentation in Perl programs, but it's not mandatory. I want to learn Python mostly, because it has a support in Paint Shop Pro, GIMP and Blender, gedit, gnome, etc., so I can automate things in those environments. There is a disadvantage, though, that there is no compatibility from Python 2 branch to Python 3 branch. Python 3, is pretty much a new language in comparison to Python 2. The abundance of Python 2 programs will not run under Perl 3.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Honest question about Perl, Python and Ruby
by eyepopslikeamosquito (Archbishop) on Feb 07, 2015 at 05:39 UTC | |
by Anonymous Monk on Feb 07, 2015 at 09:03 UTC | |
by pme (Monsignor) on Feb 07, 2015 at 12:51 UTC | |
by igoryonya (Pilgrim) on Feb 07, 2015 at 08:15 UTC | |
by eyepopslikeamosquito (Archbishop) on Feb 07, 2015 at 10:06 UTC | |
|
Re^2: Honest question about Perl, Python and Ruby
by Anonymous Monk on Feb 07, 2015 at 13:33 UTC | |
|
Re^2: Honest question about Perl, Python and Ruby
by doom (Deacon) on Feb 11, 2015 at 20:01 UTC |