Thread: What programming languages to use, what prohgramming language is it?

  1. #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

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    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.

  3. #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

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    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.

  5. #5
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Perl is more like a traditional procedural language.
    Except that perl is actually OO.

  6. #6
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >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.

  7. #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 ?

  8. #8
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Object Oriented

  9. #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?

  10. #10
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Do some research then

  11. #11
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    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.

    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.

  12. #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

  13. #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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why C Matters
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 136
    Last Post: 01-16-2008, 09:09 AM
  2. Strange loop
    By D@rk_force in forum C++ Programming
    Replies: 22
    Last Post: 12-18-2004, 02:40 PM
  3. Language of choice after C++
    By gandalf_bar in forum A Brief History of Cprogramming.com
    Replies: 47
    Last Post: 06-15-2004, 01:20 AM
  4. Language Script..
    By vasanth in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 03-30-2003, 06:48 AM
  5. Visual J#
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 10-08-2001, 02:41 PM