Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [propel-dev] class prefixing

propel
Discussion topic

Back to topic list

Re: [propel-dev] class prefixing

Reply

Author Robert Bruce <rob at thirddimensiondesign dot co dot uk>
Full name Robert Bruce <rob at thirddimensiondesign dot co dot uk>
Date 2006-11-21 08:17:01 PST
Message Ron Rademaker wrote:
> One vote for 2 (why? because thats pretty much how I do it whenever I
> use prefixing anywhere).
>
> Ron
>
> Hans Lellelid wrote:
>> Hi guys,
>>
>> I'm copying propel-dev on this email, as I'd like linguafranca
>> convention to be adopted for Propel 2 also.
>>
>> We had a brief mention of this before, but I think we should probably
>> prefix the classes in the LinguaFranca project. I think Sven proposed
>> using lf_. That works, but I think the underscore is not a good idea
>> since it means specific directory structure system for the Pear classes
>> -- a directory structure system that I don't think we plan to implement.
>>
>> So, I see a few options:
>>
>> 1) lowercase "Symfony-style" prefix: lfDatabase, lfObject
>> 2) uppercase initials: LFDatabase, LFTable
>> 3) single letter "Prado-style" prefix: LDatabase, LTable
>> 3) Full project prefix: LinguaFrancaDatabase, LinguaFrancaTable (I
>> think we probably agree that's too long)
>> 4) Shortened project name prefix: LinguaDatabase, LinguaTable
>>
>> Personally, I lean toward 1,2, or 3. Other suggestions? Opinions on
>> these?
>>
>> Hans
>>
>>
>> --------------------​--------------------​--------------------​---------
>> To unsubscribe, e-mail: dev-unsubscribe@prop​el.tigris.org
>> For additional commands, e-mail: dev-help at propel dot tigris dot org
>>
>>
>>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: dev-unsubscribe@prop​el.tigris.org
> For additional commands, e-mail: dev-help at propel dot tigris dot org
>
I would say 4, I prefer object names which give a description of what
they are, plus when 'eyballing' code it's easier to spot 'Lingua' than
options 1, 2 or 3.

« Previous message in topic | 3 of 18 | Next message in topic »

Messages

Show all messages in topic

class prefixing hlellelid Hans Lellelid 2006-11-21 07:57:47 PST
     Re: [propel-dev] class prefixing Ron Rademaker <r dot rademaker at virtualbuilding dot nl> Ron Rademaker <r dot rademaker at virtualbuilding dot nl> 2006-11-21 08:03:25 PST
         Re: [propel-dev] class prefixing Robert Bruce <rob at thirddimensiondesign dot co dot uk> Robert Bruce <rob at thirddimensiondesign dot co dot uk> 2006-11-21 08:17:01 PST
     Re: [propel-dev] class prefixing Cameron Brunner <cameron dot brunner at gmail dot com> Cameron Brunner <cameron dot brunner at gmail dot com> 2006-11-21 08:22:53 PST
         Re: [propel-dev] class prefixing =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-11-21 10:20:21 PST
             Re: [propel-dev] class prefixing hlellelid Hans Lellelid 2006-11-21 10:37:59 PST
                 Re: [propel-dev] class prefixing Alan Pinstein <apinstein at mac dot com> Alan Pinstein <apinstein at mac dot com> 2006-11-21 11:33:34 PST
                     Re: [propel-dev] class prefixing hlellelid Hans Lellelid 2006-11-21 11:46:25 PST
                         Re: [propel-dev] class prefixing =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-11-21 11:54:47 PST
                         Re: [propel-dev] class prefixing Soenke Ruempler <soenke at ruempler dot eu> Soenke Ruempler <soenke at ruempler dot eu> 2006-11-21 12:14:44 PST
                             Re: [propel-dev] class prefixing =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-11-21 13:57:24 PST
                                 Re: [propel-dev] class prefixing hlellelid Hans Lellelid 2006-11-21 14:00:22 PST
                                     Re: [propel-dev] class prefixing =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-11-21 14:03:14 PST
                                         Re: [propel-dev] class prefixing hlellelid Hans Lellelid 2006-11-21 14:07:24 PST
                                             Re: [propel-dev] class prefixing Soenke Ruempler <soenke at ruempler dot eu> Soenke Ruempler <soenke at ruempler dot eu> 2006-11-21 14:12:48 PST
                                                 Re: [propel-dev] class prefixing =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-11-21 14:25:13 PST
                                                     PHPIDE (was Re: [propel-dev] class prefixing) hlellelid Hans Lellelid 2006-12-25 09:11:43 PST
                                     Re: [propel-dev] class prefixing Carl Parrish <cparrish at pcl-consulting dot com> Carl Parrish <cparrish at pcl-consulting dot com> 2006-12-06 11:44:06 PST
Messages per page: