tag:blogger.com,1999:blog-36345871.post6118886713457039900..comments2023-07-11T05:39:57.966-07:00Comments on Perl Alchemy - notes of a programmer: Templateszbyhttp://www.blogger.com/profile/04636763782334128869noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-36345871.post-89769030774729105852010-11-07T12:17:36.962-08:002010-11-07T12:17:36.962-08:00Thanks for the comments. I think the main point h...Thanks for the comments. I think the main point here is that it is easy to have this 'what the fuck' feeling for trivial reasons, but it is not that easy to retract this. Human mind is very good in rationalizing.zbyhttps://www.blogger.com/profile/04636763782334128869noreply@blogger.comtag:blogger.com,1999:blog-36345871.post-55758217563465761192010-11-07T10:55:02.988-08:002010-11-07T10:55:02.988-08:00As Gabor said in TT it's just configurable.
M...As Gabor said in TT it's just configurable.<br /><br />My personal feeling first days about [% was a bit wtf ...<br /><br />But as soon as you get familiar to it, it's excellent, like everything in TT in general.<br /><br />The same for sigils... it's easy to blame sigils, verbose syntax, etc (it's easy to blame anything). But when you get used to, you loose them in other languages.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-36345871.post-66577706869928704632010-11-07T09:39:55.477-08:002010-11-07T09:39:55.477-08:00Mini-language template systems provide you with a ...Mini-language template systems provide you with a layer of sandboxing from the application code, and provide a simpler learning curve than learning perl, and specifically which subset of perl you can use within the template.<br /><br />You may not find that useful, many people however, rather like being able to allow their designers to perform basic tasks in the template, rather than having to pull a full-time developer of their current project to deal with it.Illusorihttp://www.illusori.co.uk/noreply@blogger.comtag:blogger.com,1999:blog-36345871.post-63262361394216023092010-11-06T22:28:45.107-07:002010-11-06T22:28:45.107-07:00I guess you know that you can change the tags in T...I guess you know that you can change the tags in TT to be <% aned %> or anything else using the START_TAG and END_TAG options. <a href="http://perldancer.org/" rel="nofollow">Dancer</a> defaults to that which tripped me as I was not expecting it.<br /><br />Which is just what I think is the source of the "bla is ugly" comments of many people. "I am not used to it..." or "I did not expect it..." and so now "I hate it". Very human reaction.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-36345871.post-19922818376838220732010-11-06T15:46:56.554-07:002010-11-06T15:46:56.554-07:00I don't my $ but -> is ugly... at least for...I don't my $ but -> is ugly... at least for object access... looking forward to Perl 6 . accessor... though I kind alike the . as a concatenation.<br /><br />[% is just ... too much couldn't it have been just one character? case insensitivity in the names would be alright. Though my biggest complaint is how much finicking I have to do to get the [%- right.Anonymoushttps://www.blogger.com/profile/08185254298048097278noreply@blogger.comtag:blogger.com,1999:blog-36345871.post-15555947547636941362010-11-06T15:03:15.109-07:002010-11-06T15:03:15.109-07:00I think anyone of the mindset that are better tha...I think anyone of the mindset that are better than [tags] should be forced to work with HTML::Template for a project. They will see the error in their waysAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-36345871.post-11348783503350622322010-11-06T14:23:39.118-07:002010-11-06T14:23:39.118-07:00the sigils thing is surely a matter of taste. I p...the sigils thing is surely a matter of taste. I personally find them useful although it is true with perl they are slightly less consistent then one might hope. I know this was a big early focus of Perl6, but not sure if everyone agrees that was successful. I think like a lot of perl programmers I tend to use refs a lot, so my code is scatter with '$'. I don't know if this is good or not.<br /><br />The TT2 thing I think the biggest problem is for template authors that are more designers the big html editors don't have great hilighting support for the syntax and that is problematic. That I think is more a reflection on the priority (or lack of it) given to Perl by some of the companies that author these tools.<br /><br />AFAIK you can use lowercase in TT2, there's a switch in there somewhere. Personally I've been moving away from TT style templating, although Xslate has some interesting features.John Napiorkowskihttps://www.blogger.com/profile/14413684212565071596noreply@blogger.com