 |
 |
 |
 |
| Programming & Packaging A place to discuss programming and packaging. |

23rd August 2004, 09:21 AM
|
 |
Retired Community Manager
|
|
Join Date: Mar 2004
Location: Scotland
Age: 34
Posts: 1,019

|
|
|
Perl of PHP - What do you prefer?
I am starting to love Perl.
__________________
http://blog.suretecsystems.com
|

23rd August 2004, 03:39 PM
|
 |
Registered User
|
|
Join Date: May 2004
Location: Seattle
Posts: 77

|
|
|
I really like PHP. Object Oriented and fast, terrific database integration and lot's of good documentation and scripts available. I've been doing all my web programming as well as starting to use it for scripting and haven't found any limitations. I hear you can also do GUI app with it now. I've got to give that a try.
|

23rd August 2004, 03:42 PM
|
 |
Retired Admin
|
|
Join Date: Jan 2004
Location: Penguin Land
Age: 63
Posts: 1,939

|
|
i like php but for shell scripts i rather use perl, perl have more control however need to be careful  because that control could be double edge sword
|

23rd August 2004, 03:49 PM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 23

|
|
Python.
Its a scripting language like Perl, but it is cleaner, has better OO, has really simple syntax and lots of packages that come with it.
Check it out, its already in Fedora. Type: python at a prompt.
For docs and a really good tutorial, visit the offical Python webpage: www.python.org
|

23rd August 2004, 03:52 PM
|
 |
Registered User
|
|
Join Date: Jul 2004
Location: Canada
Age: 27
Posts: 504

|
|
|
I like python alos, Yet a good programer knows that each language has its pro's and con's so i some times use all 3 of them, but mostly python!!!
|

24th August 2004, 04:30 AM
|
 |
Retired Community Manager
|
|
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423

|
|
|
I tend to avoid Perl when possible - I've been subjected to the gawd-awful obfuscation that you can do with it and some of it just made my head hurt - a lot! For the large majority of what I need to do via shells, I just use plain ol' Bash. Right now I don't have a "middle-ground" - but from what I've seen I'd probably lean towards Python. If I can get over code blocks being defined by indentation. BLECH!
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
|

24th August 2004, 03:42 PM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 23

|
|
Quote:
|
Originally Posted by crackers
I've been subjected to the gawd-awful obfuscation that you can do with it and some of it just made my head hurt - a lot!
|
Yup, thats Perl!
But you get so used to the $_ and some other operators. It makes it easy, but in a bad way... A really bad way!
|

24th August 2004, 03:50 PM
|
 |
Registered User
|
|
Join Date: Nov 2003
Location: Regensburg, Germany
Age: 42
Posts: 447

|
|
|
I use PHP for web development but also for command line scripting when bash gets too complicated.
Although I'm pretty familiar with PHP by now, I'd like to know more PERL and am really eager to learn Python
(especially when it comes to GUI programming - pygtk comes to mind).
__________________
/(bb|[^b]{2})/ -- that is the question!
|

24th August 2004, 04:36 PM
|
 |
Retired Community Manager
|
|
Join Date: Jun 2004
Location: lair of a unix daemon
Posts: 1,155

|
|
IMO, i've never seen a "clean" (read: easy to understand) perl script.. I much more prefer tcl.. can be used in cgi's as well and is just lovely
__________________
Man will always find a difficult means to perform a simple task
(Rube Goldberg)
Having fun with Tcl at
Mat's Playground
|

25th August 2004, 01:39 AM
|
 |
Registered User
|
|
Join Date: Mar 2004
Location: Tennessee
Posts: 73

|
|
It's always a matter of taste. I use PHP for web development. For scripting I mostly use Python. I've used perl and written a lot of bash. Scripting and Languages all have good and bad. My rule, is write it so some one else can maintain it and don't go for the tricks to make yourself look smart. It'll byte you in the core dump every time.
|

25th August 2004, 04:30 AM
|
 |
Retired Community Manager
|
|
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423

|
|
Quote:
|
Originally Posted by zjimward
is write it so some one else can maintain it and don't go for the tricks to make yourself look smart.
|
Write COMMENTS!!!! That means it also won't get you when you're trying to figure out whatinhell it does 6 months later...
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
|

25th August 2004, 08:11 PM
|
 |
Registered User
|
|
Join Date: Mar 2004
Location: Tennessee
Posts: 73

|
|
Quote:
|
Originally Posted by crackers
Write COMMENTS!!!! That means it also won't get you when you're trying to figure out whatinhell it does 6 months later... 
|
Comments are great too. Also use variables that make sense and not just x, x, z. Nothing like a loop that contains a = 1 to 500. Much better when it is nEmployees = 1 to 500. Then some one actually knows what it's counting.
|

26th August 2004, 04:56 AM
|
 |
Retired Community Manager
|
|
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423

|
|
Quote:
|
Originally Posted by zjimward
Nothing like a loop that contains a = 1 to 500. Much better when it is nEmployees = 1 to 500. Then some one actually knows what it's counting.
|
Er, sometimes. Some of us old fogeys still use i,j,k,l for loops - especially when it's "just a loop" and the counter really has no significance beyond being used in a loop.
Now, five extra points to anyone under 40 years of age that can tell the rest of the class where the "i,j,k,l" idiom came from...
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
|

27th August 2004, 09:50 AM
|
 |
Retired Community Manager
|
|
Join Date: Mar 2004
Location: Scotland
Age: 34
Posts: 1,019

|
|
If anyone wants a yourname@perl.me.uk just let me know. Just bought the domain and hosting a few things on there.
__________________
http://blog.suretecsystems.com
|

27th August 2004, 12:57 PM
|
|
Registered User
|
|
Join Date: Jul 2004
Posts: 7

|
|
Quote:
|
Originally Posted by ghenry
I am starting to love Perl.
|
Well, you cannot compare Perl and PHP at all. They've got completely different aims.
Perl is a scripting language for every kind of text processing/manipulation, while PHP
was developed for dynamic webpage generation.
I like perl pretty much (and I also like PHP for webpage generations), I even once wrote a large app with GUI and database backend, but to be honest - coding that in perl is a bit masochistic, and today, I'd definitely not recommend it any more. Maybe, it's because I'm converted to Java.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 14:17 (Saturday, 25-05-2013)
|
|
 |
 |
 |
 |
|
|