Humour, tech, software, reviews, essays, articles and HOWTOs intermingled with random philosophy now and thenI think it reflects the focus of my writing as it has evolved over a period of time. Not that the previous tagline didn't; I just thought that it was a bit vague.
Hari's Corner
Humour, comics, tech, law, software, reviews, essays, articles and HOWTOs intermingled with random philosophy now and thenA change of tagline
Filed under:
Site management by
Hari
Posted on Tue, Dec 4, 2007 at 14:14 IST (last updated: Tue, Dec 4, 2007 @ 14:15 IST)
PHP templating systems - pros and cons
Filed under:
Software and Technology by
Hari
Posted on Sat, Dec 1, 2007 at 10:42 IST (last updated: Wed, Jul 16, 2008 @ 20:38 IST)
- Makes application logic much easier to follow and PHP code much more easier to read.
- Allows you to "skin" your website by using multiple templates. Thus the way your data is displayed is completely in the hands of designers who need no knowledge of PHP code to change the appearance of your application.
- Provides a shorter development cycle. It also allows you to plan exactly how your data should be extracted from source. It makes visualization of your application much easier by providing you quick, alternative views of presenting your data.
- Obviously it allows separation of skills as I mentioned above. A team of developers can be clearly separated into the "programmers" - the ones in charge of the PHP code, and the "designers" - the ones who actually lay out the presentation of the data.
- Using a third-party templating system is a good way to avoid "reinventing" the wheel, thus speeding up development time considerably. It also ensures that you need have no worries about maintaining the template library yourself.
- Processing of templates is an additional overhead you might wish to avoid. In spite of "fast" template parsers around (and Smarty is one of them) they still process text files in the ultimate analysis and any extra file processing increases execution time marginally.
- Sometimes you encounter situations where the application logic can simply not be separated from the content presentation. Yes, this does happen in practical development although finding examples theoritically is tough.
- Template designing can become extremely time-consuming because you are tempted to constantly refine and tweak the content presentation (because it's so easy to). As a result, if you are an individual programmer, you will find your priorities constantly shifting between coding and template development. This can be wearisome, since it involves working with two sets of files and you constantly need to co-ordinate your data fed by the PHP code with the template code.
- Using a templating system in the middle of a project forces you to rewrite or even discard large chunks of your existing PHP code. Even if you strip out all the HTML from PHP, you would need to write a set of "feeder" functions which would allow you to submit the data to the templating system in a format that it can understand. (currently I am forced to consider doing this, since the admin panel of my blogging system is completely written in the old style - PHP intermingled with XHTML).
Oldies: selected posts from November 2005
Filed under:
Bits and Bytes by
Hari
Posted on Wed, Nov 28, 2007 at 20:55 IST (last updated: Thu, May 7, 2009 @ 21:34 IST)
Why I don't debate online these days - Ask any experienced online forum user and you will get the answer to this question. Meaningless debate over the same topics over and over, adding nothing new to the original topic can become very tiresome as I found out during my extended stint at LinuxQuestions.org forums.
phpBB upgrade tips - I never really regretted giving up phpBB 2.0 after an endless cycle of security problems followed by quick, patchy updates. Upgrading a well-modded phpBB forum is akin to a visit to the dentist. And till date phpBB 3.0 is still officially "unstable."
The bloggers' definition of success - This article will tell you my blogging philosophy. It is somewhat long-winded by my current standards, but it's still worth a read. Till now I guess I've broadly followed those principles.
SUSE 10 review - A (surprisingly positive) review of SUSE 10. Since then, I've changed my views. I don't currently want to use SUSE and I guess I will never really use SUSE Linux. A big yawn probably sums up my current attitude to SUSE Linux (and many other Linux distributions) better than any words. I'm currently at the stage where Linux by itself doesn't interest me so much as what productive work I can do with it. I guess the novelty factor wore off long ago.
That's all for this edition. Oh, and don't forget to check the full archives for November 2005. There are some other good articles I've left out, among them some cricket articles (I was actively blogging about cricket those days). So feel free to leave behind your thoughts on any of them. :>> Geeky and Meeky 15 - Evil twin
Filed under:
Geeky and Meeky comic by
Hari
Posted on Sun, Nov 25, 2007 at 08:50 IST (last updated: Thu, May 7, 2009 @ 21:22 IST)
Why end-users prefer blogs to CMSes and more
Filed under:
Software and Technology by
Hari
Posted on Fri, Nov 23, 2007 at 09:04 IST (last updated: Wed, Jul 16, 2008 @ 21:12 IST)
My first GIMP video tutorial - lighting and bump mapping
Filed under:
Tutorials and HOWTOs by
Hari
Posted on Mon, Nov 19, 2007 at 09:57 IST (last updated: Sun, Apr 5, 2020 @ 15:19 IST)
I thought it would be cool to create a video tutorial showing how easy it is to use GIMP to create 3d objects using lighting and bump-mapping effects, combined with the 2d blending mode. More than words, this video shows how simple GIMP really is. Writing a full fledged tutorial would have complicated the whole process. I created the following video using XVidCap.
(Yes, YouTube does blur the video even though I tried to keep the captured region as small as possible)