Live data from Hacker News

PHP the Wrong Way

phpthewrongway.com

1–10 of 194 posts

Re: PHP the Wrong Way

#4
I just skimmed the website, and I am still not sure if it's meant seriously or if it's some kind of joke? Feels a bit contradictory eg. "dont use framework" vs "make software secure by default". Isn't a security one of the gains of using frameworks, beside other things? You would need to be a security expert to cover all potential security issues when writing something from a scratch.

Re: PHP the Wrong Way

#5
post #3

Wait, is this satire or not? Does it advocate people don't use frameworks? Loved the opening paragraph though

It's definitely not a satire. They are some valid points. It's not against using frameworks. I think it's more about finding the right solution for the problem.

Re: PHP the Wrong Way

#7

I just skimmed the website, and I am still not sure if it's meant seriously or if it's some kind of joke? Feels a bit contradictory eg. "dont use framework" vs "make software secure by default". Isn't a security one of the gains of using frameworks, beside other things? You would need to be a security expert to cover all potential security issues when writing something from a scratch.

The very existence of PHP is a contradiction, so I wouldn't sweat to much about it.

But speaking of boolean logic, negating "always use a framework" does not yield your interpretation.

Re: PHP the Wrong Way

#8
post #5
post #3

Wait, is this satire or not? Does it advocate people don't use frameworks? Loved the opening paragraph though

It's definitely not a satire. They are some valid points. It's not against using frameworks. I think it's more about finding the right solution for the problem.

What I take from is not to use PHP, which I do as it pays the bills, but why would anyone choose it for a new project baffles me. This article doesn't help it.

Re: PHP the Wrong Way

#9

I just skimmed the website, and I am still not sure if it's meant seriously or if it's some kind of joke? Feels a bit contradictory eg. "dont use framework" vs "make software secure by default". Isn't a security one of the gains of using frameworks, beside other things? You would need to be a security expert to cover all potential security issues when writing something from a scratch.

You don't have to be a security expert in general, but you should aim to be one in the language you use, or do you intend to blame the framework everytime the shit hits the fan?

Re: PHP the Wrong Way

#10
I generally agree with the view of keeping your application simple and not using big frameworks but after seeing so many PHP programmers write spaghetti and insecure code, I pretty much recommend frameworks now. You can say the problem is not with writing PHP without any framework but with the programmers, the problem lies with the low barrier for entry into PHP. Frameworks atleast teach you how to make your code modular and make your application secure (atleast sane defaults).
Post reply on HN