PHP4 and 5
#1
Posted 16 December 2005 - 09:24 PM
Get Firefox
Spread Firefox
hi, i'm a signature viruz, plz set me as your signature and help me spread :)
#2
Posted 16 December 2005 - 09:55 PM
Lead Designer/Project Manager - White Epsilon
#3
Posted 17 December 2005 - 12:27 AM
-
Currently working on: the 3D engine for Tomb Raider.
#4
Posted 17 December 2005 - 05:21 AM
The only difference I've encountered in practice was that PHP4 is missing a few date/time manipulation functions that PHP5 has. But this was just a minor inconvenience (difference between writing idate(blah) and intval(date(blah))).
#5
Posted 17 December 2005 - 04:30 PM
But the pro's end there, the con's are that it's a terribly hobby project gone bad. The whole language and library is inconsistent and poorly designed. They tried to give PHP a more professional image with PHP 5 by implementing better OO functionality but they failed miserably.
If you ask me, it's time for the Zend team to start completely from scratch with a good designed language. But I don't want to turn this thread in a PHP discussion, my previous post was more meant as a joke than as a troll, so I'll keep my mouth shut from now on
-
Currently working on: the 3D engine for Tomb Raider.
#6
Posted 17 December 2005 - 04:37 PM
#7
Posted 17 December 2005 - 04:48 PM
I once had the idea to create an alternative loose-typed scripting language with a syntax more closer to C++, but I don't really have the time to write it
-
Currently working on: the 3D engine for Tomb Raider.
#8
Posted 17 December 2005 - 04:59 PM
#9
Posted 18 December 2005 - 02:24 PM
Have a look at Ruby On Rails, though. The concept is pretty interesting, even if I doubt it's usefullness in real situations.
#10
Posted 18 December 2005 - 06:11 PM
That said, PHP has a definite advantage of being almost ubiquitous and being very easy to write in.
Personally I don't mind PHP. I haven't done much PHP5, but PHP4 + Smarty usually makes me pretty happy. :)
#11
Posted 19 December 2005 - 10:49 AM
geon said:
No, I'm talking about the actual bad design of the language. The current concepts of globals and references, for example, are a crime and definitely need to go. And why is null equal to a zero-length string or 0? And why is "12ab" equal to 12? And why don't the [] and () operators work on the result of a function call, while all other operators do work? And continue in a switch, what's up with that?
-
Currently working on: the 3D engine for Tomb Raider.
#12
Posted 20 December 2005 - 07:25 AM
.oisyn said:
The "12ab" == 12 part seems natyural to me. At least if you are comparing a string with an int, without any preparations of the string. Remember, you could easily make it "12ab" == 12."" if you wanted the comparision to be more strict. Or you could be even more strict by making it "12ab" === 12, but that would only be usefull to protect you from type missmatch.
I agree totally though on the [] and () operators. Totally stupid. Should be fixed.
#13
Posted 20 December 2005 - 10:35 AM
Quote
If you really want to check if a value is an int you should do $a == (string)(int)$a. I'm sorry, but that's just bad design in my book. The autoconversion routines should be way more strict than they currently are, this will also solve a lot of newbie problems.
-
Currently working on: the 3D engine for Tomb Raider.
#14
Posted 26 December 2005 - 06:42 PM
BTW, like these forums? They're written in PHP :lol:
Get Firefox
Spread Firefox
hi, i'm a signature viruz, plz set me as your signature and help me spread :)
#15
Posted 27 December 2005 - 12:46 AM
-
Currently working on: the 3D engine for Tomb Raider.
#16
Posted 27 December 2005 - 01:17 AM
monjardin said:
I've heard many people saying Ruby was a very well designed scripting language. I haven't tried it yet though.
#17
Posted 27 December 2005 - 08:38 AM
Me, I love PHP, it is my favourite language, but after all, I'm not a coder. I think Perl is good for more extensive things, and if you really want to go hard, ASP code-behind is undeniably powerful. At the end of the day though, for most situations, PHP makes sense, and damn it makes it easy.
Lead Designer/Project Manager - White Epsilon
#18
Posted 27 December 2005 - 12:37 PM
Get Firefox
Spread Firefox
hi, i'm a signature viruz, plz set me as your signature and help me spread :)
#19
Posted 28 December 2005 - 02:40 AM
I've never heard of a "Masters in C++" myself, either.
[/pedantic]
#20
Posted 28 December 2005 - 03:18 PM
eddie said:
I've never heard of a "Masters in C++" myself, either.
[/pedantic]
Get Firefox
Spread Firefox
hi, i'm a signature viruz, plz set me as your signature and help me spread :)
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












