Under the Code

Tag: PHP

The Codereck Model Generator

by Ryan Zec on Sep.02, 2009, under Codereck PHP, General Programming, PHP

I am up a little later than normal reworking my model generation code in the new version of my Codereck PHP framework. While all the back-end work flow is still the same, I have reworked the way I use XML in order to make the XML a lot smaller and easier to read.  I will post some code up later (once I figure out how to get a code highlighter with Wordpress working) but instead of using a bunch of tags, I have been able to compress the code by using attributes and in all honesty, I should have been using attributes from the beginning.  Changing this has reduced the number of lines in the XML file generated from an example database (with only 11 tables) from 750 lines to 135 lines (also note that I only needed to write about 15 lines manually and the rest was auto generated by the framework) which is 5X+ smaller in line count (file size is probably closer 2X smaller).  I imagine that the line count will range from 6X to 9X smaller with more tables.  While the file size reduction is not as dramatic as the line count reduction, the XML in none the less a lot easier to read.

1 Comment :, , more...

Welcome To My Blog

by Ryan Zec on Apr.17, 2009, under Random Posts

My name is Ryan and welcome to my blog.  I am starting this blog for 2 main reasons.  The first reason it to get my name out into the community of programming.  I have 2 open source projects and plan on using this blog as one main way to promote them.  One project is a set of jQuery plug-ins that is available through google code called codereck javascript suite (I know “javascript suite” is lame but at least codereck is kinda cool) and a PHP MVC framework called Codereck.  If you google codereck you might find the older version of the framework but the newer version, and a bit better, it still under under development but will be made public sometime after PHP 5.3 is officially released (since it requires PHP 5.3).  The second main reason is just to share my views and thought on programming and see what other people think.  This will probably be a place that I will also post about random topics, hot button issues, and just about anything else I feel like.

Most of my posts are probably going to be programming and technology related but I am sure I will also post some pretty random things too.  As with this post and any others, I am very interested in getting your feedback so please feel free to leave as many comments as you like and check back often as I plan to consistently replying to those comments.

Also for all you Word Press users out there, let me know what you think of this theme and if you have suggestions for themes that you think are better as I really only did a quick search for free and clean word press themes.

Leave a Comment :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

Archives

All entries, chronologically...