Hacker News new | past | comments | ask | show | jobs | submit login

"it was horrible. Procedural, PHP inline with HTML, calls directly to mysql library functions"

There is NOTHING wrong with any of that! Making something more complicated does not make it better.

PS: I use a very strong templating library personally. It's called PHP.




Good point. I was trying to convey that, taken all together, the code was an unmaintainable mess of spaghetti. It was difficult to read and it was difficult to change.

When done right, all of those things have a place. My point is usually (with PHP at least) it's not done right.


> Making something more complicated does not make it better.

I think the confusion here is that strong OOP is actually simpler. Breaking code into smaller chunks (such as objects) makes it more modular and easier to understand. That's the point.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: