Home      Updates      RSS Feed      About      Code      Contact

  Done! ish May  8 2011  9:45 AM EST

Well, I'm sort of done. I did a lot of refactoring, with nearly 30 git commits between this one and the last update. Now, I'll be honest, if you looked at a lot of those you would think "What the hell was he thinking?" because quite frankly I was doing some copy-pasta so I didn't have to learn how php classes work. Boy, did that backfire. So, there are several commits after I read a bit fixing my own stupidity.

I heard something about the php include statement being bad, but, meh XD I'm using it. I've split out header/footer code into their own files/functions, and made an src/updates.php to provide a function for processing the udates file and dumping a post. Works much better this way, I think. Plus, there is much less duplicate code. Maybe I'll try to find out why includes are so horrible later on.

As you can see, I've only half implemented my idea, as posts are only chopped into links at some point. In the future, I'd like to try to abbreviate all posts to some limit, and after an addition n posts after abbreviation to links start, just put an "All posts" link. We'll see how much time I have later.

 

My name is Jeff Chapman; You can reach me at: [email protected]