SitePoint Sponsor

User Tag List

View Poll Results: What other programming languages do you use in production besides PHP?

Voters
73. You may not vote on this poll
  • None. I am a purest of the pure PHP coder.

    9 12.33%
  • Browser scripting: Javascript, VBScript, etc.

    52 71.23%
  • DB processing: SQL in other words.

    54 73.97%
  • Older scripting: Perl, Awk, VB, etc.

    12 16.44%
  • Modern OO scripting: Ruby, Python.

    19 26.03%
  • VM compiled OO: Java, C#, etc.

    21 28.77%
  • Native compiled OO: C++, Objective C, Delphi, Eiffel, etc.

    12 16.44%
  • Native compiled non-OO: C, Haskell.

    3 4.11%
  • Parse tree functional: Lisp, Scheme.

    0 0%
Multiple Choice Poll.
Page 2 of 2 FirstFirst 12
Results 26 to 36 of 36
  1. #26
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Does PHP, its philosophy, or any of strengths affect other languages?

    Funny lot, we only seem to focus on what other langs effect us....
    Last edited by Cups; Dec 31, 2006 at 20:34. Reason: Happy new year all!

  2. #27
    ********* Victim lastcraft's Avatar
    Join Date
    Apr 2003
    Location
    London
    Posts
    2,423
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Hi...

    PHP certainly affected Rails. Hanmeier-Hanson was a PHP'er before switching to Ruby.

    Regarding the Java influence from Voostinde, I believe he switched to Java later. Most of his posts were pretty generic OO I'd say. Certainly more Design Patterns than any specific language.

    How would Python influence PHP? I don't know as I don't use Python. PHP has become so Java'esque now, there doesn't seem much room for manouver.

    Possibly metaclasses and a decent lambda syntax would be possible funky extensions. I think a ruby block syntax would be too much for the average PHP user out there. It would be nice if any class can override things like array operators and iteration. We could lose the SDO beaurocracy then.

    If PHP had listened more to it's existing users rather than aiming at the new corporates, I'm sure we would have seen namespaces before type hints and interfaces.

    yours, Marcus
    Marcus Baker
    Testing: SimpleTest, Cgreen, Fakemail
    Other: Phemto dependency injector
    Books: PHP in Action, 97 things

  3. #28
    eschew sesquipedalians silver trophy sweatje's Avatar
    Join Date
    Jun 2003
    Location
    Iowa, USA
    Posts
    3,749
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by lastcraft View Post
    If PHP had listened more to it's existing users rather than aiming at the new corporates, I'm sure we would have seen namespaces before type hints and interfaces.
    I am not sure anything which is called namespaces in PHP will even be that useful. It appears the current proposal basically to allow for a namespace delimiter (probably ::: ) in the class name. Internal to the class, everything will have to be prefixed with the name space. There will be no capability to import classes and apply a namespace to them It could be I have misunderstood the proposal, but from the email traffic on the internals mailing list, that is what I understand.

    I would love real namespace capability, but I have become pretty jaded regarding what is being proposed for PHP.
    Jason Sweat ZCE - jsweat_php@yahoo.com
    Book: PHP Patterns
    Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
    Detestable (adjective): software that isn't testable.

  4. #29
    ********* Victim lastcraft's Avatar
    Join Date
    Apr 2003
    Location
    London
    Posts
    2,423
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Hi...

    Quote Originally Posted by sweatje View Post
    There will be no capability to import classes and apply a namespace to them It could be I have misunderstood the proposal, but from the email traffic on the internals mailing list, that is what I understand.
    That is pretty pointless. I wonder what they consider to be a use case for this.

    yours, Marcus
    Marcus Baker
    Testing: SimpleTest, Cgreen, Fakemail
    Other: Phemto dependency injector
    Books: PHP in Action, 97 things

  5. #30
    SitePoint Enthusiast
    Join Date
    Jul 2006
    Location
    South Dakota
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Cups
    Does PHP, its philosophy, or any of strengths affect other languages?

    I certainly can't say one way or another how it affects other languages, but I can say that programming in multiple languages has an effect on how I view each one. I think that looking at how things are done in other languages helps me to keep a look out for ways to improve in different ones.

    For example, when using ASP, I found out that it was much better to not concatenate strings together as it is a very slow process. But if you add all the parts that you would concatenate into an array, then join the array when done, I increased the speed of that operation more than tenfold. So I had to see if the same issue affected PHP as well (it was negligable).

    I would certainly keep that in mind with any other language that I found myself using if the application I was building seemed to be excessively slow.
    TDDJournal: An Experiment in Test Driven Development.

  6. #31
    SitePoint Guru dagfinn's Avatar
    Join Date
    Jan 2004
    Location
    Oslo, Norway
    Posts
    894
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by lastcraft View Post
    If PHP had listened more to it's existing users rather than aiming at the new corporates, I'm sure we would have seen namespaces before type hints and interfaces.
    yours, Marcus
    They did try and fail to include namespaces in PHP 5, though. I can see why this feature might be hard to implement.
    Dagfinn Reiersøl
    PHP in Action / Blog / Twitter
    "Making the impossible possible, the possible easy,
    and the easy elegant"
    -- Moshe Feldenkrais

  7. #32
    SitePoint Addict
    Join Date
    Mar 2005
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by lastcraft View Post


    What sort of things?
    Sorry, haven't kept up with the thread.
    Mainly things to do with managing projects, so we've introduced migrations into our php framework, and also automated our deployment processes much more, as inspired by using capistrano.

    I know the Rails concept of MVC doesn't meet with everyone's approval, but since we're working with both technologies simultaneously our PHP framework and the way it organises applications has converged with Rails since it makes it easier to switch between technologies.

  8. #33
    SitePoint Addict
    Join Date
    Mar 2005
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by lastcraft View Post
    That is pretty pointless. I wonder what they consider to be a use case for this.
    I can think of a use case -
    When you are writing templates, there should be a way to mixin your html helper functions, that way you could make your specific template functions and then import them into the template class.

    At the moment the only option for using functions in templates, without calling them statically, is to have them in the global namespace.


    And in respect to things PHP could learn from ruby, I love the concept of open classes, I find being able to redeclare certain methods of a class extremely useful in reducing the amount of code you write... anyone disagree?

  9. #34
    _ silver trophy ses5909's Avatar
    Join Date
    Jul 2003
    Location
    NoVa
    Posts
    5,467
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    C# for me. After things die down a bit, I plan on tackling RoR. I'd still like to get better at PHP.. a never-ending battle.
    Sara

  10. #35
    eschew sesquipedalians silver trophy sweatje's Avatar
    Join Date
    Jun 2003
    Location
    Iowa, USA
    Posts
    3,749
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by rossriley View Post
    I can think of a use case -
    When you are writing templates, there should be a way to mixin your html helper functions, that way you could make your specific template functions and then import them into the template class.

    At the moment the only option for using functions in templates, without calling them statically, is to have them in the global namespace.
    Except, as I understand the proposed "namespace" feature for PHP, it would not help your use case in the least. It would not allow you to call an objects methods inside the object any shorter than now, and it would not allow you to import functions into an "html" namespace which these could be looked up in. I think your idea of a namespace feature is more in line with what I believe would be functional, but it does not appear to be in line with what may eventually be deployed in PHP.
    Jason Sweat ZCE - jsweat_php@yahoo.com
    Book: PHP Patterns
    Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
    Detestable (adjective): software that isn't testable.

  11. #36
    SitePoint Addict
    Join Date
    Mar 2005
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sweatje View Post
    Except, as I understand the proposed "namespace" feature for PHP, it would not help your use case in the least. It would not allow you to call an objects methods inside the object any shorter than now, and it would not allow you to import functions into an "html" namespace which these could be looked up in. I think your idea of a namespace feature is more in line with what I believe would be functional, but it does not appear to be in line with what may eventually be deployed in PHP.
    No I gather that from reading through the PHP proposal, but if you can't import a module and assign a namespace then essentially the PHP namespace is not going to be much of an advance on what we have now is it? The only problem it will solve is that of simplifying class naming and reducing the occurence of clashes, unless there's something else I'm missing.


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
  •