Hi guys,
I want to ask if there's any interest from the community in working
together on some kind of project code generation automation.
Witty itself seems to be going the direction of adding higher and higher
level libraries, but keeping mega flexibility. For example the auth module,
you have to plug together a bunch of pieces to get password auth going.
What about either a library on top that says, just give me password auth.
Then just give me a form with basic controls for these DB fields.
But better than a library, what about a command line code generation
script, similar to django-manage, but less magic.
The code generation would be better than a library in that you could
customize the code after you generated it.
It'd be better than django-manage as it'd generate explicit code and not a
bunch of airy-fairy magic giving us no idea how it works.
Here's my initial thoughts to kick off the conversation; it'd be nice if we
could get together a good list of features and a bit of a spec.
Here's my initial feature wish list:
* Gen app - asks for the app name and stuff, generates you a main.cpp, a
MainWindow.?pp CMakeLists.txt, and builds and runs it for you, so you can
get into witty quickly.
* Gen tests - Creates a tests dir, CMakeLists file (with a nice 'addTest'
function that you can use), and an initial test using boost test framework
* Gen Password Auth - Generates an Auth.?pp that just does password auth
* Gen DB - Generates a db directory, CMakeLists.txt, and a User model, and
source code for a DB reset/repopulate util app
* reset DB - runs the app from the line above
* Gen Form - Parses a model source file, and generates a form for it, just
choosing the simplest widgets it can.
You could possibly have different backends, that generate the code in
different ways; for example one that uses CSS for layout, one that uses
WLayout controls and so on. Or different styles, but if we could
standardize the feature list and possibly some sort of calling convention
between the layers, this could all happen.
That's it for starters for me, it'd be very useful in reducing the learning
curve getting into Wt, and encouraging noobs to write pretty code, and for
people that write a lot of apps in Wt, could reduce the time to market for
each app.
I'm sure a lot of us will already have some bits and pieces cobbled
together. It might just take a little planning and a little sharing and we
can do this.
All comments and thoughts appreciated.
Matthew Sherborne
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest