News for hackers. Stuff that matters.
Re:PHP the Wrong Way by iamd3vil on Friday August 19, 2016 @06:55AM (#12319159)
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).
Re:PHP the Wrong Way by phillu on Friday August 19, 2016 @07:07AM (#12319211)
In my experience using a framework does not prevent spaghetti code.
Re:PHP the Wrong Way by iamd3vil on Friday August 19, 2016 @07:10AM (#12319224)
If you want to write spaghetti code, you can write it whichever approach you take. It's more about making it difficult to shoot yourself in the foot.
Re:PHP the Wrong Way by pcunite on Friday August 19, 2016 @07:59AM (#12319428)
Frameworks allow you to shoot yourself in the foot with a Tank.
Re:PHP the Wrong Way by reitanqild on Friday August 19, 2016 @09:26AM (#12319780)
Perfect example. You nailed it!

(Anyone close to familiar with tanks will know it will take quite some effort compared to any of the smaller alternatives ;-)

Re:PHP the Wrong Way by TeMPOraL on Friday August 19, 2016 @11:29AM (#12320715)
But you can easily get yourself crushed by a tank, and also "why oh WHY DID YOU DRIVE A TANK TO PICK UP OUR KIDS FROM THE SCHOOL?!?"
Re:PHP the Wrong Way by reitanqild on Friday August 19, 2016 @12:07PM (#12321026)
Have my upvote.

Then again, most frameworks are more comparable to cars than tanks and people use cars all the time to pick up kids at school even if they could just walk.

Convenient you know and less chance of getting mistaken for a hipster :-]