Hi, Hugh, great to have that kind of feedback and offering your assistance in helping to make the coding style configurable. :-)
> > Sigh, nobody seems to read the official information. :-( > > I did, and have been very worried. Good to know it works. ;-) > > Given that it is possible to auto-migrate existing applications with > > just a few (if not single) shell command(s) and almost no manual > > action like in your quite successful case, I think it's a fair > > compromise to have the code style modified in a consistent way. > > Again, if that is a no-go for someone, the migration to 0.7 could > > still be done manually. YMMV. > > I very strongly agree with Derrell in that I would want to maintain > our own coding style, which has been preserved over 15 years of > development of all sorts of programs in many different languages, with > many different developers from all over the world. I also fully agree that maintaining the individual coding styles as far as possible is an ambitious goal but worth an extra amount of labor. Besides the current stage of the pretty printer that allows for working migrated code (which is not trivial itself), it would certainly be useful to offer configuration options. The communities contribution would certainly help to have this task accomplished in reasonable time, though. > Key features include 3 spaces indent, braces are on their own lines and are > indented, > [...] I omitted your excerpts of individual coding style in this reply. Guess I use a wiki page where people could put up the formatting rules that are most important for them? That should allow to focus on the most common styles for the extension of the pretty printer. > If that gets rewritten to the qooxdoo standard it's going to lose a > lot of visual formatting designed to make it easier to read for > maintenance. As we don't have automatic IDE code analysis tools for > Javascript yet (like: "go to definition"), layout is important to us > to aid the developer. > > > This area of development would definitely need contributors to > > accomplish such a configurable custom coding style. Volunteers!? > > For our 400k of Javascript code I would much rather work on the > generator to put in the options I want than spend a week fixing up all > your "formatting", or doing the migration by hand. Yes, it would be great if you could invest some time in extending the generator for you as well as for other users instead of spending time for manual corrections. > What's going to happen when upgrading from 0.7 to 0.8, 0.9 etc? Will > it all get changed around again? The new class declaration and OO features for 0.7 most likely lead to more significant restructurings than are expected for the next releases. But there is no guarantee. Nevertheless, it is more important to have such an auto-migration feature at hand anyway. I assume other sufficiently big frameworks would love to have such a powerful migration possibility ... > The options I want would be: > - indent spaces or tabs (we use spaces) > - number of spaces for indents > - indent or outdent braces > - opening brace on own line or not > - preserve comments, including the starting column for > trailing comments > - layout multiple map values starting at consistent columns Once such info is published in the wiki, we might help by adding pointers to the relevant places in the pretty printer code to get people started. > However, I'm not going to be able to do that before the end of Feb. Well, that sounds familiar. ;-) That some features aren't just there in qooxdoo (like maintaining individual coding style in auto-migration or feature XY) often is caused by time restrictions or priorities (see roadmap), not by a missing intention to implement them. Feedback and contribution is always appreciated, Andreas ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel