Newanz Resource - .Nzr
Creating a file structure for future applications and systems.
Description
While developing
NewsOffice, we came to a realisation. We need a defined and very well thought through structure on how to save information for applications and systems which don't use databases.
".nzr" is the file extension we are using to mark the file type. The file will be a normal file, like a .txt and a .php, but the file extension will help recognize the file to users and developers.
Project files
New: You can download the .Nzr Version 1.0 Beta 2.1 V4 draft.
Old:
You can download the .Nzr Version 1.0 Beta 2.0 V3 draft.
Old:
You can download the .Nzr Version 1.0 Beta 2.0 V2 draft.
Old:
You can download the .Nzr Version 1.0 Beta 2.0 V1 draft.
Old:
You can download the .Nzr Version 1.0 Beta 1 draft.
Old:
You can download the .Nzr Version 0.5 Final draft.
Updates
2009-03-16
Currently I am thinking about a "cache" kind of thing for .Nzr. If no action is preformed between a certain type of .Nzr function the variables won't have to loaded all again. This could mean a huge speed boost for some scripts. The permission editor for
NewsOffice would profit from this as it won't have to regenerate the user permissions file 200 times each time you save the permissions. I really hate to do that, so it's the cache thing or..... keeping the old .Nzr code! (For this function only

)
2009-03-10
PHP 4 is no longer supported. We could run a final test for PHP4, but don't get your hopes up.
I will tell you about a nice feature of the save function I want to point out. It does no longer matter if you have changed the contents of the .nzr file. You can add new columns and put comments in (manually) and they will be saved by the save function. It no longer holds a certain amount of columns which will be reverted to from the parent application.
You can't deleted required columns.
NewsOffice for instance does this now, but no more when this version of .Nzr is implemented.
2009-03-05
.Nzr save function is done! First tests were a total success! Now the fools proof method..
Nzr now has an build in encoder and decoder for it's values so no manual converters are needed anymore. The code has gotten bigger, more functions == more code. The main code on the other hand, reading the .Nzr files, has actually shrunken 100 lines of code and gotten a little faster. Very nice if I say so myself.
2009-03-04
.Nzr is becoming a class. In PHP it was a function untill now. I have successfully converted into a better working class. .Nzr is now faster and easier to configure.
The class will replace the current function in the new
NewsOffice version. It will support a search function and with some luck it will as well have an integrated save function. This will be very usefull as now every save has to be done seperatly, rewriting the same code over and over again.
2009-02-25
Latest version is 1.0 Beta 1. Included in
NewsOffice 2+.
It's not a download package. It's integrated into
NewsOffice and a standalone version is yet to be released. The version is
NewsOffice is modified to work better in the application. We do not recommend using that version for other applications than
NewsOffice.
Comments