News for hackers. Stuff that matters.
Re:PHP: The Right Way by gbog on Saturday July 07, 2012 @09:40PM (#4213278)
I used PHP for five years professionally, I consider myself as well positioned as many to have an informed opinion about PHP weaknesses and strengths. My diagnostic is that PHP weaknesses are structural, and no amount of guidance can fix that. If facing the choice, one should not choose PHP over other solutions. (It happens also that I am working in Chinese tech sphere, where many startup choose PHP just because it is used by Facebook and Wikipedia, which is really sad.)

However, I appreciate very well the need for such a guide when you have no other choice. I did not read all of it, but it is certainly necessary to have strong coding conventions and a defined set of "must do/musn't do". I remember we had even built a code checker that was forbiding the use of many php functions and syntax, and had a set of wrappers around basic functionalities like string functions or date functions.

Re:PHP: The Right Way by jasonlotito on Saturday July 07, 2012 @11:55PM (#4213554)
> I used PHP for five years professionally, I consider myself as well positioned as many to have an informed opinion about PHP weaknesses and strengths.

Yeah, that doesn't mean anything. In fact, to be frank, when I read that, I fill in the underlying context:

"I used PHP for fives years professionally, and the code was horrible. Granted, it was code I wrote because PHP let me write code that way..."

or

"I used PHP for fives years professionally, almost a decade ago..."

> I remember we had even built a code checker that was forbiding the use of many php functions and syntax, and had a set of wrappers around basic functionalities like string functions or date functions.

Yeah, that didn't do much to change my mind.

Re:PHP: The Right Way by adeelk on Sunday July 08, 2012 @07:04AM (#4214317)
Any reason for the personal attack (based on unfounded assumptions)?...
Re:PHP: The Right Way by jasonlotito on Sunday July 08, 2012 @08:20AM (#4214418)
No personal attack. You used your experience to justify your position, which really means nothing. You then went on to describe practices that, if written accurately aren't in anyone's book of good things to do.

If you take it personally, thats your issue, not mine,

Re:PHP: The Right Way by adeelk on Sunday July 08, 2012 @08:26AM (#4214424)
I’m not the OP.
Re:PHP: The Right Way by andyfleming on Saturday July 07, 2012 @10:52PM (#4213418)
He doesn't defend PHP as a language.

He is sharing some useful guidelines to approach it more properly and help people that are still using it.

I, for one, am a fan.