i want to write some automated tools for myself to reduce the current work . i am wonderring which language is better, i haved learned jave and c. how about php and python ?
6:09 am on Jul 17, 2010 (gmt 0)
Thanks for bringing this issue up. You posted this in the Link development forum, so I guess you want to create some tools for link checking, the automation of link requests etc.
There is no such thing as the perfect programming language. It really depends on the type of work you want to do, the computer platform you are working on and which language you feel comfortable with.
That said, C is a language which can create extremely fast code, but you are working very close to the internals of the computer. If with SEO tools you mean programs which check links, rankings, etc then C might not be the right language.
PHP is on the other side of the spectrum. It is an easy scripting language with a syntax which is nor far from C or Java. If you know those two languages it is not difficult to grasp the fundamentals of PHP. PHP is easy to write, has a huge library with network type functionality but its drawback is that it is interpreted, hence a significant factor slower than C or Java. But for scripting to automate work and glue processes together it might be a good choice. PHP is especially a good language if you want your SEO tools to be web enabled. PHP seamlessly integrates with the Apache webserver and many websites are entirely written in this scripting language.
Python is in my feeling something in between. Still good for scripting but a little bit higher level. If my memory serves me well, Google is a happy user of python for many tasks.
i would suggest perl as a well-suited option for such tools. if you know java and c you will have no problem adapting to perl. there is an extensive list of resources in the Perl Server Side CGI Scripting forum Charter [webmasterworld.com]. be sure to look at the extensive archive of Perl modules on CPAN [cpan.org]. you would be especially interested in the LWP [search.cpan.org] module. the first paragraph of this article explains why "Perl is the duct tape of the Internet." [oreillynet.com]
2:57 am on Jul 18, 2010 (gmt 0)
Thanks phranque,lammert. Much appreciated for your great answer. i found the grammar of PHP ,it is some thing wired for me , so i will give Python a try.
12:24 pm on Jul 20, 2010 (gmt 0)
i think perl is the best
12:58 am on Jul 21, 2010 (gmt 0)
i know Perl is very good at dealing with text. i learned for web that Perl is used for administration of Unix-like servers most of time.