Dec 08

Today I started on a private project with one of my friends, where we are looking at creating a fitness and healthstyle website, and this time around I wanted to design a very robust, hack-safe website which will keep you going for a few years.

I’ve evaluated some of the FREE templating system available under the gnu licenses and found two in particular very interesting, namely:

1. patTemplate
2. Smarty

SO of course I did and went some reading about the different systems, and found an excellent tutorial/blog-entry that Havard Lindset wrote about patTemplate on DevArticles.com .

At the end of the day I selected Smarty, why I really don’t know, maybe because I got it to work the fastest and am now running a multi-theme, multi-language web interface with this engine.

Now just waiting for our first advertisers … mmm

Other interesting reads:

Zend and Templates
Template Engines

written by admin

Dec 05

Well, as you all know, I’m reselling web hosting, well, the company I’m reselling for have upgraded their packages to offer you event more that usual.

They now offer you 15 Gig of disk space and 300 Gig of Transfers which is more than enough for any normal-large sized website with a average of 100 visitors per day.

They have 24/7 support and have been in the industry quite some time, I think they have about 24/25 servers that are just shared hostings, so they know their stuff!

All this for a very reasonable $5 per month, and they have really excellent support, just check the average response time I’ve received:

Response Times

So if you are interested look at Pulse Hostings website.

I’m not trying to start selling stuff here, but this really is an excellent offering.

written by admin

Dec 05

I was just wondering about commenting of code lately, how do you guys comment your code.

When I started to program everybody always told me to comment almost every little step, like

// open file
fhandle = fopen() ;

// read line-per-line of the file until eof
while(!feof(fhandle)) {
}

Anyways, lately I’ve become lazy and just programmed as the thoughts came to me, but then my manager visited my desk one day and notified me to start commenting my code thoroughly.

Since then I respected my “elders” and started coding by first writing all the steps as comments

// open file
// if file not exist do this, otherwise continue
// read line
// analyze line
// if junk do nothing, if not junk handle with care

and then filling in all the “code”

// open file
fopen()
// if file not exist do this, otherwise continue
if(!fread)
// read line
freadln
// analyze line
// if junk do nothing, if not junk handle with care
if(read == junk) blablabla

written by admin