Re: Namespaces, file names,...

2014-09-13 Thread Frank H. Ellenberger
I fully agree with Derek. Frank ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Re: Namespaces, file names,...

2014-09-10 Thread Derek Atkins
Christian Stimming writes: > Zitat von Derek Atkins : >>> I agree that filenames should reflect the class that they implement, >>> when they do so, and I’ll add that in general a file should implement >>> only one class. Capitalization is OK as long as one keeps in mind that >>> the Mac file syst

Re: Namespaces, file names,...

2014-09-10 Thread John Ralls
On Sep 10, 2014, at 4:51 AM, Christian Stimming wrote: > Zitat von Derek Atkins : > >> I agree that we don't need to have a directory for the namespace, and I >> also don't think we need to have namespaces for each "module/library". >> E.g., I don't think we need GnuCash::Engine::Account. I su

Re: Namespaces, file names,...

2014-09-10 Thread Christian Stimming
Zitat von Derek Atkins : I agree that filenames should reflect the class that they implement, when they do so, and I’ll add that in general a file should implement only one class. Capitalization is OK as long as one keeps in mind that the Mac file system is normally case-preserving but case-insen

Re: Namespaces, file names,...

2014-09-09 Thread Derek Atkins
John Ralls writes: > I agree that filenames should reflect the class that they implement, > when they do so, and I’ll add that in general a file should implement > only one class. Capitalization is OK as long as one keeps in mind that > the Mac file system is normally case-preserving but case-ins

Re: Namespaces, file names,...

2014-09-08 Thread John Ralls
On Sep 8, 2014, at 11:22 AM, Christian Stimming wrote: > Am Sonntag, 7. September 2014, 15:10:13 schrieb John Ralls: >>> I strongly prefer namespaces in all-lowercase. I have somewhat a >>> preference >>> for "gnc" as namespace name, but we are an application anyway and not a >>> library, so we'

Re: Namespaces, file names,...

2014-09-08 Thread Christian Stimming
Am Sonntag, 7. September 2014, 15:10:13 schrieb John Ralls: > > I strongly prefer namespaces in all-lowercase. I have somewhat a > > preference > > for "gnc" as namespace name, but we are an application anyway and not a > > library, so we're basically free to choose whatever we want as interface >

Re: Namespaces, file names,...

2014-09-08 Thread Derek Atkins
John Ralls writes: [snip] > Since we want to make the API useful outside of GnuCash we should declare a > namespace to wrap everything in, maybe Gnc. That way an application that > wants to extend our Account class could still call their child class Account, > like so: > class Account : pub

Re: Namespaces, file names,...

2014-09-07 Thread John Ralls
On Sep 7, 2014, at 1:09 PM, Christian Stimming wrote: > Just for there record, here's my take on potential coding conventions: > > Am Samstag, 6. September 2014, 11:06:13 schrieb Geert Janssens: >>> Yes, using GnuCash is less ambiguous that Gnc. Sold. For the record I >>> don’t care about snake

Re: Namespaces, file names,...

2014-09-07 Thread Christian Stimming
Just for there record, here's my take on potential coding conventions: Am Samstag, 6. September 2014, 11:06:13 schrieb Geert Janssens: > > Yes, using GnuCash is less ambiguous that Gnc. Sold. For the record I > > don’t care about snake vs. camel as long as we pick one. > > John, thanks for elabor

Re: Namespaces, file names,...

2014-09-06 Thread Geert Janssens
On Saturday 06 September 2014 08:09:45 John Ralls wrote: > On Sep 6, 2014, at 2:06 AM, Geert Janssens wrote: > > On Friday 05 September 2014 12:13:49 John Ralls wrote: > > > On Sep 5, 2014, at 10:02 AM, Mike Alexander wrote: > > > > On Sep 5, 2014, at 11:26 AM, Buddha Buck wrote: > > > >> When e

Re: Namespaces, file names,...

2014-09-06 Thread John Ralls
On Sep 6, 2014, at 2:06 AM, Geert Janssens wrote: > On Friday 05 September 2014 12:13:49 John Ralls wrote: > > On Sep 5, 2014, at 10:02 AM, Mike Alexander wrote: > > > On Sep 5, 2014, at 11:26 AM, Buddha Buck wrote: > > >> When every method name has to be Hungarian-notated to work with > > >>

Re: Namespaces, file names,...

2014-09-06 Thread Geert Janssens
On Friday 05 September 2014 12:13:49 John Ralls wrote: > On Sep 5, 2014, at 10:02 AM, Mike Alexander wrote: > > On Sep 5, 2014, at 11:26 AM, Buddha Buck wrote: > >> When every method name has to be Hungarian-notated to work with > >> pseudonamespaces, short namespace abbreviations make sense. > >

Re: Namespaces, file names,...

2014-09-05 Thread John Ralls
On Sep 5, 2014, at 10:02 AM, Mike Alexander wrote: > On Sep 5, 2014, at 11:26 AM, Buddha Buck wrote: >> >> When every method name has to be Hungarian-notated to work with >> pseudonamespaces, short namespace abbreviations make sense. >> >> But with true namespaces, using directives, and names

Re: Namespaces, file names,...

2014-09-05 Thread Mike Alexander
On Sep 5, 2014, at 11:26 AM, Buddha Buck wrote: > > When every method name has to be Hungarian-notated to work with > pseudonamespaces, short namespace abbreviations make sense. > > But with true namespaces, using directives, and namespace aliasing > available in C++, I see benefits in readabili

Re: Namespaces, file names,...

2014-09-05 Thread Buddha Buck
On Fri, Sep 5, 2014 at 11:08 AM, John Ralls wrote: > So the question becomes: > * Is Gnc OK for the namespace name? > * Do we want to use camel-case or underscore-separated function and > variable names? > > N.B. The C++ code above mirrors the old C code to emphasize the different > naming and ca

Re: Namespaces, file names,...

2014-09-05 Thread John Ralls
On Sep 5, 2014, at 2:46 AM, Geert Janssens wrote: > This topic was lightly touched in the doxygen/design thread currently active > on this list. I > thought it to be important enough to start a new thread on it. > > Historically, gnucash as acquired a lot of namespaces (think function and >