From: matt d. <mm_...@ya...> - 2007-05-25 06:01:58
|
Trust me- I inherited a Smarty mess and you don't want to go there. As much as I want to vent, I won't bore anyone. I mostly build data driven business apps and prefer using PHP, JSON and AJAX. One thing I'm interested in is building javascript template stores and just sending data with JSON (from PHP data row objects) and letting JS format the template. I use PHP to parse regular HTML into JS template fragments and assemble them on demand. It handles huge chunks of data very quickly. Think of a quote that has 200 parts. If I sent HTML from the server it would be about 10MB. Much too long for a sales reps attention span. (We also use Apache's compression mod but sometimes that has issues). I also use Prototype library and other Proto add on's like Event.Selectors. If you haven't checked out Event.Selectors do it now: http://www.encytemedia.com/event-selectors/ Instead of 50 different repetitive onchange or onclicks you can move all that logic out of the template and the library loads it as a CSS event listener you define once. Anyone else doing apps like this? I also recommend anyone on the list subscribe to Ajaxian. I'm always seeing really cool techniques from the newsletter. http://ajaxian.com/ Lastly- Our company also tried an India remote team experiment and although I got a nice trip to New Delhi and Chennai out it, it was not worth enduring the bad phone connections and really bad programming we got tired of re-writing from scratch. If you think 3 years experience is weak here. 3 years experience from India gets you some really tortuous spaghetti coding. I noticed things that I never knew drove me crazy. Like someone always using a var $int_ID instead of $ID even though all our tables use ID as an integer? It's pointless. Trivial? You tell me. I'm sure there are good India programmers out there in a country that big. We just didn't find them- they tend to move here. Side-note- India programming operations have really cool communal lunches which are amazing and quite tasty. I just wish I didn't see the condition of the lunch truck on my way out. Matt ----- Original Message ---- From: Larry Garfield <la...@ga...> To: chi...@li... Sent: Thursday, May 24, 2007 10:19:43 PM Subject: Re: [chiPHPug-discuss] Rails was [ Re: PHP programmer opening (phpWalter) ] Smarty used as a tag library, yeah, over-engineered. Smarty used as a pull-based architecture, I can see being nice. One of these days I should try using it that way to see if I'm right. :-) On Thursday 24 May 2007, matt donohue wrote: > You forgot ColdFusion. > And throw Smarty into the bad idea category (and don't anyone try and > convince me otherwise). > > > > ----- Original Message ---- > From: Richard Lynch <ce...@l-...> > To: Nola Stowe <mrn...@gm...> > Cc: chi...@li...; Anacreo <an...@gm...> > Sent: Thursday, May 24, 2007 11:50:37 AM > Subject: Re: [chiPHPug-discuss] Rails was [ Re: PHP programmer opening > (phpWalter) ] > > > I dunno... > > I mean, okay, Ruby/Rails, Python, Perl are all great and have their > place even if they're not for me. > > But you're gonna have a hard time convincing me that ASP and VB don't > suck, by any objective measure. :-) > > To be fair, AppleScript also sucks, mainly because there are about a > hundred ways you COULD express anything, but only 5 of them work, and > with no rationale behind the 1-in-20 I could ever discern... I found > myself more frustrated by its English-like syntax and loosely-defined > documentation than helped... But maybe that's just me. > > COBOL pretty much sucks too, come to think of it... > > On Wed, May 23, 2007 5:50 pm, Nola Stowe wrote: > > what a subject change! > > > > I love ruby .... and rails is a great framework. It all depends on > > your need. PHP, Perl, Ruby all have their place... Its is my new goal > > in life to end language hate. People who spew blanket statments like > > "XX language sucks!" ... of which I have been guilty to some extent > > over the past ... i've learned there are purposes for language and in > > some cases, they can work together :) I wrote some posts about php > > and rails getting along last summer at CodeSnipers. > > > > On 5/23/07, Anacreo <an...@gm...> wrote: > >> Regarding that... boy am I impressed with the video tours of Ruby on > >> Rails... I can't believe I'm going to start learning another > >> language... > >> Has anyone endeavored down that road and have any thoughts about the > >> Rails > >> framework? > >> > >> On 5/23/07, phpWalter <php...@to...> wrote: > >> > I must apologize to the group, and to Jennifer. > >> > > >> > I should not have "ranted' like that. It was out of place. > >> > > >> > This is not the venue to share my frustration at the state of > >> > >> affairs of > >> > >> > the economy and the development community at large. > >> > > >> > Walter > >> > > >> > ---------------------------------------------------------------------- > >> >--- This SF.net email is sponsored by DB2 Express > >> > Download DB2 Express C - the FREE version of DB2 express and take > >> > control of your XML. No limits. Just data. Click to get it now. > >> > http://sourceforge.net/powerbar/db2/ > >> > _______________________________________________ > >> > chiPHPug-discuss mailing list > >> > chi...@li... > >> > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > >> > >> ------------------------------------------------------------------------ > >>- This SF.net email is sponsored by DB2 Express > >> Download DB2 Express C - the FREE version of DB2 express and take > >> control of your XML. No limits. Just data. Click to get it now. > >> http://sourceforge.net/powerbar/db2/ > >> _______________________________________________ > >> chiPHPug-discuss mailing list > >> chi...@li... > >> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > > > -- > > http://rubygeek.com - my blog featuring: Ruby, PHP and Perl > > http://DevChix.com - boys can't have all the fun > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > chiPHPug-discuss mailing list > > chi...@li... > > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss -- Larry Garfield AIM: LOLG42 la...@ga... ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ chiPHPug-discuss mailing list chi...@li... https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |