Home » U++ Library support » U++ Library : Other (not classified elsewhere) » User lists of "bad" naming of classes, functions etc in U++...
Re: User lists of "bad" naming of classes, functions etc in U++... [message #23732 is a reply to message #23725] |
Wed, 18 November 2009 12:05 |
andrei_natanael
Messages: 262 Registered: January 2009
|
Experienced Member |
|
|
luzr wrote on Wed, 18 November 2009 09:41 |
I would not bother 2 more key presses.
|
Then why we have << operator in TopWindow, THISBACK macro, etc.?
Regarding this, i like more to write win.Add(widget) than win << widget, and callback(this, &Window::Something) instead of THISBACK(Something) even if you type more because even if someone is a newcomer to U++ he figure out that win.Add(widget) will add the widget to win window.
Now that i'm talking about that i may summarize the things which i don't like at U++.
We say about U++ that it's a modern framework using advanced C++, though i don't see many design patterns used here, the platform abstraction is not so well implemented(IMO Chameleon it's not so good, dirty code inside ) and there are a lot of macros (some have a good reason why them exists).
GUI_APP_MAIN // U++ initialization is hidden by this macro
{
TopWindow w;
w.Run();
}
It could be written:
int main(int argc, char *argv[]) // it is possible to write main() for GUI applications in Windows too
{
Application app(argc, argv); U++ initialization is hidden in Application class
TopWindow w;
return app.Run(w);
}
Don't get me wrong, i like U++ that's why i'm using it but here are some bits that i don't agree with because they could be better.
Back to naming conventions if you're using STL with camelCase you may make the difference between you functions, algorithms, etc. and those provided by STL and say: Hey this Sort is provided by U++ not STL (because different naming conventions). However Mirek if you are supposed to re-create U++ which naming convention would you use?
|
|
|
|
|
User lists of "bad" naming of classes, functions etc in U++...
By: fudadmin on Thu, 09 March 2006 03:50
|
|
|
Arijus' list of "renames"
By: fudadmin on Thu, 09 March 2006 03:51
|
|
|
Re: User lists of "bad" naming of classes, functions etc in U++...
By: Coder on Sun, 31 December 2006 04:20
|
|
|
Re: User lists of "bad" naming of classes, functions etc in U++...
By: Werner on Mon, 01 January 2007 18:44
|
|
|
Re: User lists of "bad" naming of classes, functions etc in U++...
By: tvanriper on Tue, 18 September 2007 02:43
|
|
|
Re: User lists of "bad" naming of classes, functions etc in U++...
By: unodgs on Tue, 18 September 2007 08:44
|
|
|
Re: User lists of "bad" naming of classes, functions etc in U++...
By: mirek on Tue, 18 September 2007 14:38
|
|
|
Re: User lists of "bad" naming of classes, functions etc in U++...
By: mr_ped on Thu, 20 September 2007 15:16
|
|
|
Re: User lists of "bad" naming of classes, functions etc in U++...
By: mirek on Fri, 21 September 2007 14:56
|
|
|
Re: User lists of "bad" naming of classes, functions etc in U++...
By: darkwyrm on Sun, 09 March 2008 14:19
|
|
|
Re: User lists of "bad" naming of classes, functions etc in U++...
By: unodgs on Sun, 09 March 2008 18:22
|
|
|
Re: User lists of "bad" naming of classes, functions etc in U++...
By: ag_newb on Tue, 17 November 2009 10:00
|
|
|
Re: User lists of "bad" naming of classes, functions etc in U++...
|
|
|
Re: User lists of "bad" naming of classes, functions etc in U++...
By: koldo on Tue, 17 November 2009 16:48
|
|
|
Re: User lists of "bad" naming of classes, functions etc in U++...
By: mirek on Wed, 18 November 2009 08:41
|
|
|
Re: User lists of "bad" naming of classes, functions etc in U++...
|
|
|
Re: User lists of "bad" naming of classes, functions etc in U++...
By: mirek on Wed, 18 November 2009 12:48
|
|
|
Re: User lists of "bad" naming of classes, functions etc in U++...
By: tojocky on Wed, 18 November 2009 13:56
|
Goto Forum:
Current Time: Mon May 13 02:21:44 CEST 2024
Total time taken to generate the page: 0.02658 seconds
|