Zach (zachkessin) wrote in zkessin,
Zach
zachkessin
zkessin

  • Mood:
  • Music:

Code that writes itself

I have realized that much of the code that I write is rather stock in its format. So I decided to automate it. After all computers are good at automating things. SO I wrote a set of programs in PHP that will take a MySQL table definition and from it create a PHP class to allow access to that table, it will write a row, update one, get one or more rows according to the indexes and delete a row. It will also create the wrappers to expose those classes as SOAP services. From the PHP class it will generate a set of Javascript interface files to access them. So I can take a MySQL table definition and build about 75% of the application in less then a second.

Next steps: Validation of data and Automated unit test creation.

This is very cool.
  • Post a new comment

    Error

    default userpic
  • 0 comments