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 #23725 is a reply to message #23721] |
Wed, 18 November 2009 08:41 |
|
mirek
Messages: 13976 Registered: November 2005
|
Ultimate Member |
|
|
andrei_natanael wrote on Tue, 17 November 2009 09:41 |
ag_newb wrote on Tue, 17 November 2009 11:00 | Boost C++ naming system should be adopted.
reason: delimiting by underscore is safer than capitalization, IMHO.
|
Have you an argument for this?
void DoSomething(const String& paramOne) {}
void do_something(const string& param_one) {}
IMO, using second version(with underscores) takes more time to write because when you write _ you have to press Shift+_ and that means 2 key press more than camel case naming.
|
I would not bother 2 more key presses.
But what I do not like about undescores is that it makes the line wider - in quite a lot more cases, it will break statements into more lines. That I believe reduces code readability.
However, I have removed 'sticky' flag of this post. I guess at this stage, any massive renaming is impossible. And as it seems the topic is quite subjective, current naming might not be the best, but is definitely usable...
Mirek
|
|
|
|
|
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: Sat May 11 06:15:31 CEST 2024
Total time taken to generate the page: 0.02836 seconds
|