3 ms·
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 ins
by iamd3vil 10y ago
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).
- phillu 10y agoIn my experience using a framework does not prevent spaghetti code.
- iamd3vil 10y agoIf 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.
- pcunite 10y agoFrameworks allow you to shoot yourself in the foot with a Tank.
- deleted 10y ago[deleted]
- reitanqild 10y agoPerfect 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 ;-)
- TeMPOraL 10y agoBut 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?!?"
- reitanqild 10y agoHave 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 :-]