Jump to content

Love PHP but hate speghetti code


luke101

Recommended Posts

Hello,

Just wanted to know if there is anything out there or any technique that prevents speghetti code in php? I am really considering .NET because the maintainence is so much easier. But i am really trying to find a reason to use PHP because I know the support is much better. So do you guys know anything or way to prevent speghetti code?

Link to comment
https://forums.phpfreaks.com/topic/110324-love-php-but-hate-speghetti-code/
Share on other sites

By speghetti code I guess you mean code appearing all over the page for different reasons?

 

In that case OO techniques would reduce this or alternatively look at smarty templates. These templates abstract the PHP  code giving a clear definition between the business layer and the user interface.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.