Page 1 of 5 123 ... LastLast
Results 1 to 10 of 46

Thread: Google programming languages

  1. #1
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default Google programming languages

    I was talking to some guys who work at google the other day, and it turns out, most google employees hate php. Turns out, google is actually programmed in python, java and c++, just thought I might share that with everyone.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    PHP is good for small scale development, especially for newer coders. Personally, as a fairly serious coder, I think it's perfect for me, perhaps because I already know it. I rarely find myself needing anything PHP can't do, but I also don't stress it too much. The only time I find PHP to be too limited is when I want to work with images (beyond the basics), but that's not too frequently, at least not at the moment.

    I think it's traq who has posted a few links here about trouble with PHP on larger-scale projects. I can't remember the details, but one of them was about facebook being run on PHP and having trouble because of scale.

    PHP isn't perfect, but I don't get why people would "hate" it. If you want to move on, go for it
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    the reason they hate it, (and they were quite specfic with the term hate), seems to be because it's basically easier to write new code then to maintain old code, the crux of their argument is that php is terrible to maintain, I just thought this was interesting as prior to this, I had thought google was done in php.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    That's a very interesting point. I don't know any other languages well enough to compare them, but I do agree that maintaining with PHP can be difficult.
    It's easy to maintain your own code, and I also recommend/try to always comment my code in a very detailed way (sometimes each line).
    But there's nothing worse than trying to take apart badly written code and make it work again.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    I assume the problem comes when many people are working on the same code.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  6. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Yeah, I can see that. I wouldn't be surprised at all. In that case, they may be right. But I still think "hate" is an exaggeration-- they just have different needs.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  7. #7
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    maybe it has more to do with how fast php is still evolving. php has never been *overly* concerned with backwards-compatibility - it is "for the most part", but every major release brings at least a few (usually obscure) changes that can "break" older code.

    Additionally, new releases often bring new functionality that, while not being "incompatible" in the strictest sense, makes aspects older coding completely obsolete by comparison. The object model between php4 and php5, for example. I recently upgraded from 5.3 to to 5.4 - and WOW, big additions. traits, anonymous functions (similar to javascript's), lots more. Even the little things (such as the new array syntax) is amazing in terms of convenience. I'm never going to write array( ) again.

    There is also the simple fact that php is viewed as a "kiddie" language by many simply because of its origins as a web language. A huge portion of php programmers are amateurs or beginners, there's a lot of blind cut-and-pasting going on in the community, and that leads to a big collection of "not-quite-bad-enough-to-fix" code. It's interpreted rather than compiled, so there's the general (not always accurate) expectation that it is slow and inefficient. There is also a good number of php coders, who are generally recognized as "experts" by the amateur community, but (to put it mildly) really aren't very good at programming at all.

    As far as documenting php code, or working on large projects collaboratively, it's certainly as possible with PHP as any other mainstream language. PHPdoc is a sort of de facto standard for documenting code (and it works very well), and version control systems (e.g., git) are language-agnostic anyway.


    --- edit ---
    I'm learning python too, though, and I do like it quite a bit.

  8. The Following User Says Thank You to traq For This Useful Post:

    djr33 (09-10-2012)

  9. #8
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Weird. I didn't know about the short array syntax. I suppose I can try that
    I don't really mind array(), though. It seems logical to me, and it's not excessive to type. I'd like to see some shorter ways to write the annoying ones, like mysql_real_escape_string().
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  10. #9
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    The reason is more to do with maintaining it, and how they believe the sacred languages (java, c++ and python) are easier to maintain, and thusly, better for a long term, large scale site such as google.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  11. #10
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    C++ is the "sacred" language (if you want to call it that). Java used to have almost as many haters as PHP does. and Python is still a fairly "new".

    Daniel: I didn't think I'd really care about array( ) vs. [ ] , either. But then I tried it.

Similar Threads

  1. Date in other languages
    By Rohan72 in forum PHP
    Replies: 2
    Last Post: 12-28-2007, 10:34 AM
  2. What languages do you speak?
    By techno_race in forum The lounge
    Replies: 25
    Last Post: 07-06-2007, 11:56 PM
  3. Other Programming Languages
    By Shotgun Ninja in forum The lounge
    Replies: 9
    Last Post: 02-21-2007, 07:37 PM
  4. How many scripting languages do you know?
    By Freeman in forum The lounge
    Replies: 16
    Last Post: 02-20-2007, 07:57 PM
  5. XML with other languages dificulties!!
    By pavmoxo in forum PHP
    Replies: 0
    Last Post: 10-24-2006, 10:07 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •