View Single Post
Old 03-18-2010, 01:44 PM  
BestXXXPorn
Confirmed User
 
BestXXXPorn's Avatar
 
Join Date: Jun 2009
Location: Asheville, NC
Posts: 2,277
Quote:
Originally Posted by Varius View Post
I love Smarty and have for years (so you are welcome to shoot me out back, BestXXXPorn )

The main issue is just like PHP, people dive right into using it based off some examples they found on the web or Smarty's Crash Course. I would wager that most people use only 5% of Smarty's features and functionality if that. This leads to messy, redundant coding and complex templates.

In my case, I write many of my own Smarty extensions and modifiers and it allows both my PHP code and Smarty Templates to be extremely simple and clean

BestXXXPorn, you are correct in your statement that you are adding a layer upon another layer, but if you take advantage of all it has to offer, it IMO is a very useful tool.
Everything you've written to extend Smarty could have been written more efficiently in PHP ;)

Smarty takes way longer to parse... before people jump my case about it not being noticeable, it's not. However when you manage top 100 alexa sites and you have 100+ machines deployed per colo... Oh man do you notice... Smarty does NOT scale well... not when you reach a certain size...

My main point is that you can do all of those things more efficiently by cutting out Smarty... less hardware resources, cleaner and more readable code base, and you're not introducing... ANOTHER fucking language into the mix...

If you develop third party apps and force other people to use smarty then being shot out back is not enough for you...

The ONLY place I see Smarty used is in the adult space...
__________________
ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com
BestXXXPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote