Command line

Nexista from the command line? Sure, why not!

Nexista has primarily been a web application framework, but over the past few days I've been working on accessing it from the command line. It is a different mode of operation, but it will work. It is even transforming XSL templates for output to a terminal. That is very cool.This will allow for the reuse of application resources across interfaces. For example, I've written a bunch of specific SQL queries for PBooks, and there's no reason why I shouldn't be able to use them from the command line, even if the output will be much different than the usual XHTML output of PBooks. I'm going to take this process slowly so that I don't paint myself into a corner. There are also so many great command line libraries I don't want to reinvent the wheel.

Kind of like FastCGI

So far its been a great exercise. Programming for the command line is quite different that programming for the web. In this case, the main script is called only once for the duration of its use, which is sort of like how I understand FastCGI is able to operate. There are many steps involved with a single nexista process, and it would be nice if the steps that are the same each time nexista is instantiated could be isolated from each command or click of the mouse. While that would probably have a small effect on an individual process, it would allow Nexista applications to scale much better.
By Albert on October 21, 2007 1:31 PM