[bt-devel] refactoring

Jaak Ristioja Ristioja at gmail.com
Sun Jul 4 11:10:38 MST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Olaf!

On 04.07.2010 19:16, Olaf Radicke wrote:
> == 1.) ==
> 
> In frontend/display/cdisplay.h i have found two classes in a file. is
> that clean?  here find it differently:
> http://devel.bibletime.info/wiki/Programming_Guidelines#Headers_and_implementations
> 
> 
> == 2.) ==
> 
> The same in Flie
> frontend/searchdialog/btsearchresultarea.h
> 
> You can find there: 
> 	class BtSearchResultArea, 
> 	class StrongsResultClass, 
> 	typedef QList<StrongsResult> StrongsResultList, 
> 	class StrongsResult
> 
> what is the reason??

One major class per file. I guess its to keep the number of files to a more-or-less
reasonable minimum.

> == 3.) ==
> 
> Which means "Bt" in the name of "BtSearchResultArea"? It this meaning
> "BibleTime? Why you doesn't use name spaces? like this:

Yes, the codebase is not high-quality... yet. We try to improve the code as much as we can.

> BibleTime.GUI.Search.ResultArea.funktionOne();
> 
> now you can cut the name:
> 
> using BibleTime.GUI.Search.ResultArea
> 
> an write:
> 
> ResultArea _ra;
> _re.funktionOne();

I guess you meant :: between namespaces.


> The name of the typ "StrongsResultList" is not really shorter then
> "QList<StrongsResult>" (three char different). So, what is the profit?
> 
> 
> Same name for different things....
> 
> class StrongsResultClass
> class StrongsResult
> 
> Both are classes. Not only "StrongsResultClass". I think, that am no
> good idea. The name should say that the class is. "Class" is no
> characteristic of a class. So which is differentiated of StrongsResult
> and StrongsResultClass?

After receiving your letter I started refactoring the BtSearchResultArea files. I am not
familiar with that code myself, but I agree that at least StrongsResultClass should be
renamed. Any suggestions on the name are welcome.

Thank you for pointing out these things. As has also been said by others, the original
BibleTime code was written by people with not much C++ and/or programming experience,
hence it needs a lot of refactoring. Unfortunately, we are a bit understaffed lately.

Jaak Ristioja
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)

iQgcBAEBAgAGBQJMMM6bAAoJEFqwhAoGc/hvPfY//3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