C Board  

Go Back   C Board > Community Boards > Tech Board

Reply
 
LinkBack Thread Tools Display Modes
Old 12-12-2004, 05:04 AM   #1
Registered User
 
Join Date: Jul 2004
Posts: 99
What programming languages to use, what prohgramming language is it?

As many others webmasters in here i use google adsense and would like to ask:
For example when you see ...support/adsense/bin/answer.py?answer=9727 the .py means that all thi sgoogle adsense is programmed by python?
What programming language is google.com/adsense programmed anyway? with python, that is my question?

and the other i would like to ask what is the differnce bewteen PHP and PERL(cgi)?
thanks
would be happy if you answered
cogeek is offline   Reply With Quote
Old 12-12-2004, 08:42 AM   #2
Super Moderator
 
Join Date: Sep 2001
Posts: 4,746
PHP is very similar to C++. If you know C++, it'll be easy to make the move to PHP. IMO, PHP is better for most general-use cases.

Perl is more like a traditional procedural language. It's very good at searching and processing strings, but it's rare that you'll need that.

They can both do CGI and Internet Apps quite easily, and are readily available, though PHP seems to be becoming the new generally accepted standard (Perl used to be).

edit: Google does use Python extensively for it's software - so I would assume you are correct regarding adsense. Have a look at the other links at Google besides the search portion - some interesting stuff.
sean is offline   Reply With Quote
Old 12-12-2004, 10:53 AM   #3
Registered User
 
Join Date: Jul 2004
Posts: 99
Hey,
i wanna make a sit elike google.com/adsense that why i'am asking what programming language to learn to do this,
php don't seems me so proffesional
cogeek is offline   Reply With Quote
Old 12-12-2004, 10:56 AM   #4
Super Moderator
 
Join Date: Sep 2001
Posts: 4,746
Look at the file extension of this page. Looks pretty professional to me. PHP is used for almost everything. Secure online shopping, MySQL, you name it.
sean is offline   Reply With Quote
Old 12-12-2004, 11:05 AM   #5
& the hat of GPL slaying
 
Thantos's Avatar
 
Join Date: Sep 2001
Posts: 5,732
Quote:
Perl is more like a traditional procedural language.
Except that perl is actually OO.
Thantos is offline   Reply With Quote
Old 12-12-2004, 11:10 AM   #6
Code Goddess
 
Prelude's Avatar
 
Join Date: Sep 2001
Posts: 9,664
>Except that perl is actually OO.
Perl supports OO, just like C++, but it was originally procedural.
__________________
My best code is written with the delete key.
Prelude is offline   Reply With Quote
Old 12-12-2004, 11:20 AM   #7
Registered User
 
Join Date: Jul 2004
Posts: 99
what does OO means? and why has google done it in python when php is better ?
cogeek is offline   Reply With Quote
Old 12-12-2004, 11:22 AM   #8
& the hat of GPL slaying
 
Thantos's Avatar
 
Join Date: Sep 2001
Posts: 5,732
Object Oriented
Thantos is offline   Reply With Quote
Old 12-12-2004, 11:26 AM   #9
Registered User
 
Join Date: Jul 2004
Posts: 99
oh!!! i still don't know what bject oriented mean but why does google uses python?
cogeek is offline   Reply With Quote
Old 12-12-2004, 11:32 AM   #10
& the hat of GPL slaying
 
Thantos's Avatar
 
Join Date: Sep 2001
Posts: 5,732
Do some research then
Thantos is offline   Reply With Quote
Old 12-12-2004, 04:20 PM   #11
Super Moderator
 
Join Date: Sep 2001
Posts: 4,746
Object oriented simply means that instead of a list of instructions, a language is more capable of dealing with data structures in ways that help you to model the real world. Still do some research, as this is the fundamental difference between C and C++, and it needs to be understood clearly.

Quote:
why does google uses python?
Why is the sky blue? It's not's that PHP is necessarily "better". Someone who says that any language is "better" than another without specfying other factors is demonstrating ignorance. Every language has it's week points and strong point. Languages become popular if they are versatile. C++ for example, offers pretty much all the power of a low level language like C (the ability to work directly with memory, etc...), but includes classes and OO (ah ha!) to allow for easier programming of real-world tasks. Obviously, C++ is enormously popular.

I don't know why Google uses Python. I have not used Python myself and do not know for sure, but it probably offers the ability to deal with serious computing power. It takes a lot to create an index capable of measuring and storing practically the whole internet. I wouldn't use PHP to create Google. Definately not. But if you're just creating something like AdSense, all you need to do is analyze the text on a page, make some simple logic decisions*, and then send back some ads. This is all well within PHP's abilities.

* The creators of the original Google search engine wrote a paper about how it worked. Not only will they probably explain why the use Python, but I remember they talked about how the Engine's spiders/bots would read the text in a page, count the number of occurences, and their locations, and used a statistics algorithm to determine basically what the page was about. This is why google gives you such relevant results. I'll have a look for it and let you know if I can still find the paper.
sean is offline   Reply With Quote
Old 12-12-2004, 10:37 PM   #12
Registered User
 
Join Date: Jul 2003
Posts: 85
Quote:
Originally Posted by sean_mackrory
* The creators of the original Google search engine wrote a paper about how it worked. Not only will they probably explain why the use Python, but I remember they talked about how the Engine's spiders/bots would read the text in a page, count the number of occurences, and their locations, and used a statistics algorithm to determine basically what the page was about. This is why google gives you such relevant results. I'll have a look for it and let you know if I can still find the paper.
http://www.google.com/technology/pigeonrank.html
__________________
Free iPod?!
scrappy is offline   Reply With Quote
Old 12-12-2004, 10:51 PM   #13
Toaster
 
Zach L.'s Avatar
 
Join Date: Aug 2001
Posts: 2,686
Quote:
Originally Posted by Prelude
>Except that perl is actually OO.
Perl supports OO, just like C++, but it was originally procedural.
Perl is everything... To everyone... All of the time. Which helps a bit to make other people's scripts completely incomprehensible to mere mortals (a category into which the original programmer probably falls after a few months of not looking at the code).

That's what makes Perl so fun.
__________________
The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.
Zach L. is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why C Matters DavidP General Discussions 136 01-16-2008 09:09 AM
Strange loop D@rk_force C++ Programming 22 12-18-2004 02:40 PM
Language of choice after C++ gandalf_bar A Brief History of Cprogramming.com 47 06-15-2004 01:20 AM
Language Script.. vasanth A Brief History of Cprogramming.com 12 03-30-2003 06:48 AM
Visual J# mfc2themax A Brief History of Cprogramming.com 0 10-08-2001 02:41 PM


All times are GMT -6. The time now is 04:38 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22