Category: PHP

Aggregating RSS Feeds

Pull from several RSS feeds on a high traffic site for too long and you’ll wonder if there is a better way. Fortunately for you there is. Aggregating your RSS feeds solves several problems for both you and the source of the RSS. First it reduces the bandwidth required from both the source site and your site. Imagine a site that gets several requests per hour. Now imagine this site pulling from another site via RSS every time that a client loads the page. The result is the same data getting pulled over and over again. There is a better way!

Continue reading »

A beginners guide to programming

I read a lot of tutorials on the Internet. One thing that always fascinates me is the large amounts of tutorials for programmers in the intermediate and advanced stages. Some are on the border of bad programming and I believe this has to do with the poor programming methods learned in the beginning. Simple things like code structure, even though it doesn’t seem like it at first, can drastically improve programming skills.

Continue reading »

Calendar Math

Calendars are sometimes the most difficult thing to design. I think the main reason is the complex set of variables that are needed to be handled. With each month comes a different number of days, a different starting day is always an obstacle too. Another difficult situation to some is the previous days in the first week (prior month) and then the days that are in the remaining days in the last week (next month’s days). Sometimes we tend to over think certain programming tasks. We think about how difficult it will be to figure all of these things out at once to make the perfect calendar. This leads me to the creation of this article, a simple way to use math to develop a calendar.

Continue reading »