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.
Results 26 to 36 of 36
-
Dec 31, 2006, 20:34 #26
- 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!
-
Jan 1, 2007, 08:23 #27
- 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, MarcusMarcus Baker
Testing: SimpleTest, Cgreen, Fakemail
Other: Phemto dependency injector
Books: PHP in Action, 97 things
-
Jan 1, 2007, 09:29 #28
- Join Date
- Jun 2003
- Location
- Iowa, USA
- Posts
- 3,749
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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.
-
Jan 1, 2007, 11:12 #29
- Join Date
- Apr 2003
- Location
- London
- Posts
- 2,423
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Marcus Baker
Testing: SimpleTest, Cgreen, Fakemail
Other: Phemto dependency injector
Books: PHP in Action, 97 things
-
Jan 1, 2007, 16:01 #30
- Join Date
- Jul 2006
- Location
- South Dakota
- Posts
- 77
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Cups
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.
-
Jan 2, 2007, 02:18 #31
- Join Date
- Jan 2004
- Location
- Oslo, Norway
- Posts
- 894
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Dagfinn Reiersøl
PHP in Action / Blog / Twitter
"Making the impossible possible, the possible easy,
and the easy elegant" -- Moshe Feldenkrais
-
Jan 2, 2007, 07:24 #32
- Join Date
- Mar 2005
- Posts
- 251
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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.
-
Jan 2, 2007, 07:34 #33
- Join Date
- Mar 2005
- Posts
- 251
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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?
-
Jan 2, 2007, 07:48 #34
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
-
Jan 2, 2007, 08:18 #35
- Join Date
- Jun 2003
- Location
- Iowa, USA
- Posts
- 3,749
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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.
-
Jan 2, 2007, 08:59 #36
- Join Date
- Mar 2005
- Posts
- 251
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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