Login | Register
My pages Projects Community openCollabNet

Discussions > dev > class prefixing

propel
Discussion topic

Hide all messages in topic

All messages in topic

PHPIDE (was Re: [propel-dev] class prefixing)

Reply

Author hlellelid
Full name Hans Lellelid
Date 2006-12-25 09:11:43 PST
Message Hi David,

David Zülke wrote:
> Doesn't seem to work here... $this->getDatabaseManager() gets
> auto-completed and also hints the return type as specified in the PHPDoc
> (AgaviDatabaseManager), but won't autocomplete after that. It works if I
> do $foo = new AgaviDatabaseManager(), though. :(
>
> Yeah they really should have xdebug integration, that would be ultra cool.
>
> I'll try the "integration build" now, whatever that is. They should get
> their act together a bit and at least write a "what to download" guide.
> "0.7 stable" is a bit misleading, I guess.

I'm playing w/ 0.7M4 (released last week) and it does appear to support
using the @return phpdoc to determine class type. Very nice -- I'm
switching for real now (from PHPEdit, which has always been a little
flaky) :)

Hans

Re: [propel-dev] class prefixing

Reply

Author Carl Parrish <cparrish at pcl-consulting dot com>
Full name Carl Parrish <cparrish at pcl-consulting dot com>
Date 2006-12-06 11:44:06 PST
Message Hans Lellelid wrote:
> PHPIDE is the newer one that Zend is working on with the Eclipse folks.
> I actually never really got PHPEclipse to work for me.
>
> See: http://www.eclipse.org/php/
>
> I've found it easiest to just grab the whole bundled thing rather than
> wading through all the dependencies for the PHPIDE piece in a stock
> Eclipse install.
>
> Clearly I haven't played with it too much, but if it's doing good
> completion, I'll definitely have to switch.
>
>
(yes, I'm going though old threads).
I'm still using Zend Studio, does anyone know if the new Zend Studio 5.5
beta is using PHPIDE?

Re: [propel-dev] class prefixing

Reply

Author =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com>
Full name =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com>
Date 2006-11-21 14:25:13 PST
Message Doesn't seem to work here... $this->getDatabaseManager() gets auto-
completed and also hints the return type as specified in the PHPDoc
(AgaviDatabaseManager), but won't autocomplete after that. It works
if I do $foo = new AgaviDatabaseManager(), though. :(

Yeah they really should have xdebug integration, that would be ultra
cool.

I'll try the "integration build" now, whatever that is. They should
get their act together a bit and at least write a "what to download"
guide. "0.7 stable" is a bit misleading, I guess.

David


Am 21.11.2006 um 23:12 schrieb Soenke Ruempler:

> On 21.11.2006 23:07, Hans Lellelid wrote:
>> I think it's working fine for basic stuff. I also assumed I'd wait a
>> bit -- but if it really does already have decent code completion,
>> then
>> I'll happily give it another try. I certainly love Eclipse for Java
>> development and I don't usually use a full PHP debugger anyway
>> (which I
>> assume is part of the stuff that isn't done yet).
>
> Code completition works as good as in Zend Studio. Even with nested
> objects. And you have nice subversion integration (Zend Studio
> integration really sucks because it's hacked in ugly).
>
> The debugger is propretary Zend stuff unfortunately (not XDebug). But
> most time var_dump and echo "blah" do their jobs ;)
>
> --
>
> Best regards / Mit freundlichen Gruessen
>
> Sönke Ruempler
> soenke at ruempler dot eu
> http://www.ruempler.eu/
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: dev-unsubscribe@prop​el.tigris.org
> For additional commands, e-mail: dev-help at propel dot tigris dot org
>
>

Re: [propel-dev] class prefixing

Reply

Author Soenke Ruempler <soenke at ruempler dot eu>
Full name Soenke Ruempler <soenke at ruempler dot eu>
Date 2006-11-21 14:12:48 PST
Message On 21.11.2006 23:07, Hans Lellelid wrote:
> I think it's working fine for basic stuff. I also assumed I'd wait a
> bit -- but if it really does already have decent code completion, then
> I'll happily give it another try. I certainly love Eclipse for Java
> development and I don't usually use a full PHP debugger anyway (which I
> assume is part of the stuff that isn't done yet).

Code completition works as good as in Zend Studio. Even with nested
objects. And you have nice subversion integration (Zend Studio
integration really sucks because it's hacked in ugly).

The debugger is propretary Zend stuff unfortunately (not XDebug). But
most time var_dump and echo "blah" do their jobs ;)

--

Best regards / Mit freundlichen Gruessen

Sönke Ruempler
soenke at ruempler dot eu
http://www.ruempler.eu/

Re: [propel-dev] class prefixing

Reply

Author hlellelid
Full name Hans Lellelid
Date 2006-11-21 14:07:24 PST
Message I think it's working fine for basic stuff. I also assumed I'd wait a
bit -- but if it really does already have decent code completion, then
I'll happily give it another try. I certainly love Eclipse for Java
development and I don't usually use a full PHP debugger anyway (which I
assume is part of the stuff that isn't done yet).

Hans

David Zülke wrote:
> Aaah right I remember looking at it but I figured they never ever get it
> finished so I tried PHPEclipse. Well I'll give it a shot then. Or wait
> till 0.7, but that's been pushed back for months it seems. Or maybe I'm
> wrong ;)
>
> David
>
>
>
> Am 21.11.2006 um 23:00 schrieb Hans Lellelid:
>
>> PHPIDE is the newer one that Zend is working on with the Eclipse folks.
>> I actually never really got PHPEclipse to work for me.
>>
>> See: http://www.eclipse.org/php/
>>
>> I've found it easiest to just grab the whole bundled thing rather than
>> wading through all the dependencies for the PHPIDE piece in a stock
>> Eclipse install.
>>
>> Clearly I haven't played with it too much, but if it's doing good
>> completion, I'll definitely have to switch.
>>
>> Hans
>>
>> David Zülke wrote:
>>> I tried that the other day, and it's rather frustrating. Besides the
>>> fact that you seem to need a master's degree in nerd science to even
>>> download and install the proper stuff, it doesn't seem to work that
>>> well on instances etc. I know Zend Studio uses PHPDoc comments to know
>>> what class type a method returns, soo $foo->getBar()-> would actually
>>> still allow code completion etc... wait, is PHPIDE the same thing as
>>> PHPEclipse?
>>>
>>> David
>>>
>>>
>>> Am 21.11.2006 um 21:14 schrieb Soenke Ruempler:
>>>
>>>> On 21.11.2006 20:46, Hans Lellelid wrote:
>>>>> Ok, it looks like "Lingua" might be winning out, as I think that 1) it
>>>>> should be compatible w/ Propel's naming scheme and 2) I'm inclined to
>>>>> think agree that one- or two-letter prefixes (while attractive to lazy
>>>>> programmers like me!) are not very safe from namespace collisions.
>>>>>
>>>>> Of course we all know what the real solution is ... :) in the
>>>>> meantime,
>>>>> though, I think that "Lingua" seems to be the right way to go.
>>>>
>>>>
>>>> +1, too.
>>>>
>>>> Hans, just use Eclipse and PHPIDE plugin with code inspection so you
>>>> don't have to type the whole class/method names. *g
>>>>
>>>> -soenke
>>>>
>>>> --------------------​--------------------​--------------------​---------
>>>> 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
>>>
>>
>> --------------------​--------------------​--------------------​---------
>> 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
>

Re: [propel-dev] class prefixing

Reply

Author =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com>
Full name =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com>
Date 2006-11-21 14:03:14 PST
Message Aaah right I remember looking at it but I figured they never ever get
it finished so I tried PHPEclipse. Well I'll give it a shot then. Or
wait till 0.7, but that's been pushed back for months it seems. Or
maybe I'm wrong ;)

David



Am 21.11.2006 um 23:00 schrieb Hans Lellelid:

> PHPIDE is the newer one that Zend is working on with the Eclipse
> folks.
> I actually never really got PHPEclipse to work for me.
>
> See: http://www.eclipse.org/php/
>
> I've found it easiest to just grab the whole bundled thing rather than
> wading through all the dependencies for the PHPIDE piece in a stock
> Eclipse install.
>
> Clearly I haven't played with it too much, but if it's doing good
> completion, I'll definitely have to switch.
>
> Hans
>
> David Zülke wrote:
>> I tried that the other day, and it's rather frustrating. Besides the
>> fact that you seem to need a master's degree in nerd science to even
>> download and install the proper stuff, it doesn't seem to work that
>> well on instances etc. I know Zend Studio uses PHPDoc comments to
>> know
>> what class type a method returns, soo $foo->getBar()-> would actually
>> still allow code completion etc... wait, is PHPIDE the same thing as
>> PHPEclipse?
>>
>> David
>>
>>
>> Am 21.11.2006 um 21:14 schrieb Soenke Ruempler:
>>
>>> On 21.11.2006 20:46, Hans Lellelid wrote:
>>>> Ok, it looks like "Lingua" might be winning out, as I think that
>>>> 1) it
>>>> should be compatible w/ Propel's naming scheme and 2) I'm
>>>> inclined to
>>>> think agree that one- or two-letter prefixes (while attractive
>>>> to lazy
>>>> programmers like me!) are not very safe from namespace collisions.
>>>>
>>>> Of course we all know what the real solution is ... :) in the
>>>> meantime,
>>>> though, I think that "Lingua" seems to be the right way to go.
>>>
>>>
>>> +1, too.
>>>
>>> Hans, just use Eclipse and PHPIDE plugin with code inspection so you
>>> don't have to type the whole class/method names. *g
>>>
>>> -soenke
>>>
>>> --------------------​--------------------​--------------------​--------
>>> -
>>> 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
>>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: dev-unsubscribe@prop​el.tigris.org
> For additional commands, e-mail: dev-help at propel dot tigris dot org
>
>

Re: [propel-dev] class prefixing

Reply

Author hlellelid
Full name Hans Lellelid
Date 2006-11-21 14:00:22 PST
Message PHPIDE is the newer one that Zend is working on with the Eclipse folks.
I actually never really got PHPEclipse to work for me.

See: http://www.eclipse.org/php/

I've found it easiest to just grab the whole bundled thing rather than
wading through all the dependencies for the PHPIDE piece in a stock
Eclipse install.

Clearly I haven't played with it too much, but if it's doing good
completion, I'll definitely have to switch.

Hans

David Zülke wrote:
> I tried that the other day, and it's rather frustrating. Besides the
> fact that you seem to need a master's degree in nerd science to even
> download and install the proper stuff, it doesn't seem to work that
> well on instances etc. I know Zend Studio uses PHPDoc comments to know
> what class type a method returns, soo $foo->getBar()-> would actually
> still allow code completion etc... wait, is PHPIDE the same thing as
> PHPEclipse?
>
> David
>
>
> Am 21.11.2006 um 21:14 schrieb Soenke Ruempler:
>
>> On 21.11.2006 20:46, Hans Lellelid wrote:
>>> Ok, it looks like "Lingua" might be winning out, as I think that 1) it
>>> should be compatible w/ Propel's naming scheme and 2) I'm inclined to
>>> think agree that one- or two-letter prefixes (while attractive to lazy
>>> programmers like me!) are not very safe from namespace collisions.
>>>
>>> Of course we all know what the real solution is ... :) in the
>>> meantime,
>>> though, I think that "Lingua" seems to be the right way to go.
>>
>>
>> +1, too.
>>
>> Hans, just use Eclipse and PHPIDE plugin with code inspection so you
>> don't have to type the whole class/method names. *g
>>
>> -soenke
>>
>> --------------------​--------------------​--------------------​---------
>> 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
>

Re: [propel-dev] class prefixing

Reply

Author =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com>
Full name =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com>
Date 2006-11-21 13:57:24 PST
Message I tried that the other day, and it's rather frustrating. Besides the
fact that you seem to need a master's degree in nerd science to even
download and install the proper stuff, it doesn't seem to work that
well on instances etc. I know Zend Studio uses PHPDoc comments to
know what class type a method returns, soo $foo->getBar()-> would
actually still allow code completion etc... wait, is PHPIDE the same
thing as PHPEclipse?

David


Am 21.11.2006 um 21:14 schrieb Soenke Ruempler:

> On 21.11.2006 20:46, Hans Lellelid wrote:
>> Ok, it looks like "Lingua" might be winning out, as I think that
>> 1) it
>> should be compatible w/ Propel's naming scheme and 2) I'm inclined to
>> think agree that one- or two-letter prefixes (while attractive to
>> lazy
>> programmers like me!) are not very safe from namespace collisions.
>>
>> Of course we all know what the real solution is ... :) in the
>> meantime,
>> though, I think that "Lingua" seems to be the right way to go.
>
>
> +1, too.
>
> Hans, just use Eclipse and PHPIDE plugin with code inspection so you
> don't have to type the whole class/method names. *g
>
> -soenke
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: dev-unsubscribe@prop​el.tigris.org
> For additional commands, e-mail: dev-help at propel dot tigris dot org
>
>

Re: [propel-dev] class prefixing

Reply

Author Soenke Ruempler <soenke at ruempler dot eu>
Full name Soenke Ruempler <soenke at ruempler dot eu>
Date 2006-11-21 12:14:44 PST
Message On 21.11.2006 20:46, Hans Lellelid wrote:
> Ok, it looks like "Lingua" might be winning out, as I think that 1) it
> should be compatible w/ Propel's naming scheme and 2) I'm inclined to
> think agree that one- or two-letter prefixes (while attractive to lazy
> programmers like me!) are not very safe from namespace collisions.
>
> Of course we all know what the real solution is ... :) in the meantime,
> though, I think that "Lingua" seems to be the right way to go.


+1, too.

Hans, just use Eclipse and PHPIDE plugin with code inspection so you
don't have to type the whole class/method names. *g

-soenke

Re: [propel-dev] class prefixing

Reply

Author =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com>
Full name =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com>
Date 2006-11-21 11:54:47 PST
Message +1



Am 21.11.2006 um 20:46 schrieb Hans Lellelid:

> Ok, it looks like "Lingua" might be winning out, as I think that 1) it
> should be compatible w/ Propel's naming scheme and 2) I'm inclined to
> think agree that one- or two-letter prefixes (while attractive to lazy
> programmers like me!) are not very safe from namespace collisions.
>
> Of course we all know what the real solution is ... :) in the
> meantime,
> though, I think that "Lingua" seems to be the right way to go.
>
> Hans
>
> Alan Pinstein wrote:
>> I like LF* or Lingua*.
>>
>> Alan
>>
>> On Nov 21, 2006, at 1:37 PM, Hans Lellelid wrote:
>>
>>> Ok, I agree for Propel. How 'bout LinguaFranca? Would a
>>> shortened form
>>> be close enough to be consistent ? -- LinguaDatabase,
>>> LinguaTable, etc
>>>
>>> Hans
>>>
>>> David Zülke wrote:
>>>> Am 21.11.2006 um 17:22 schrieb Cameron Brunner:
>>>>
>>>>> +1 for 1, studlyCaps seems to be pretty common with everything im
>>>>> using these days
>>>>
>>>> ... and totally against any class name convention.
>>>>
>>>> I'm voting for PropelCriteria etc. That's the only class name
>>>> people
>>>> use in runtime code anyway, so a "Propel" prefix is not a big
>>>> deal. It
>>>> puts us on the safe side, who knows who else uses PCriteria etc.
>>>>
>>>> - David
>>>>
>>>>
>>>> --------------------​--------------------​--------------------​-------
>>>> --
>>>> 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
>>>
>>
>> --------------------​--------------------​--------------------​---------
>> 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
>
>

Re: [propel-dev] class prefixing

Reply

Author hlellelid
Full name Hans Lellelid
Date 2006-11-21 11:46:25 PST
Message Ok, it looks like "Lingua" might be winning out, as I think that 1) it
should be compatible w/ Propel's naming scheme and 2) I'm inclined to
think agree that one- or two-letter prefixes (while attractive to lazy
programmers like me!) are not very safe from namespace collisions.

Of course we all know what the real solution is ... :) in the meantime,
though, I think that "Lingua" seems to be the right way to go.

Hans

Alan Pinstein wrote:
> I like LF* or Lingua*.
>
> Alan
>
> On Nov 21, 2006, at 1:37 PM, Hans Lellelid wrote:
>
>> Ok, I agree for Propel. How 'bout LinguaFranca? Would a shortened form
>> be close enough to be consistent ? -- LinguaDatabase, LinguaTable, etc
>>
>> Hans
>>
>> David Zülke wrote:
>>> Am 21.11.2006 um 17:22 schrieb Cameron Brunner:
>>>
>>>> +1 for 1, studlyCaps seems to be pretty common with everything im
>>>> using these days
>>>
>>> ... and totally against any class name convention.
>>>
>>> I'm voting for PropelCriteria etc. That's the only class name people
>>> use in runtime code anyway, so a "Propel" prefix is not a big deal. It
>>> puts us on the safe side, who knows who else uses PCriteria etc.
>>>
>>> - David
>>>
>>>
>>> --------------------​--------------------​--------------------​---------
>>> 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
>>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: dev-unsubscribe@prop​el.tigris.org
> For additional commands, e-mail: dev-help at propel dot tigris dot org
>

Re: [propel-dev] class prefixing

Reply

Author Alan Pinstein <apinstein at mac dot com>
Full name Alan Pinstein <apinstein at mac dot com>
Date 2006-11-21 11:33:34 PST
Message I like LF* or Lingua*.

Alan

On Nov 21, 2006, at 1:37 PM, Hans Lellelid wrote:

> Ok, I agree for Propel. How 'bout LinguaFranca? Would a shortened
> form
> be close enough to be consistent ? -- LinguaDatabase, LinguaTable, etc
>
> Hans
>
> David Zülke wrote:
>> Am 21.11.2006 um 17:22 schrieb Cameron Brunner:
>>
>>> +1 for 1, studlyCaps seems to be pretty common with everything im
>>> using these days
>>
>> ... and totally against any class name convention.
>>
>> I'm voting for PropelCriteria etc. That's the only class name people
>> use in runtime code anyway, so a "Propel" prefix is not a big
>> deal. It
>> puts us on the safe side, who knows who else uses PCriteria etc.
>>
>> - David
>>
>>
>> --------------------​--------------------​--------------------​---------
>> 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
>

Re: [propel-dev] class prefixing

Reply

Author hlellelid
Full name Hans Lellelid
Date 2006-11-21 10:37:59 PST
Message Ok, I agree for Propel. How 'bout LinguaFranca? Would a shortened form
be close enough to be consistent ? -- LinguaDatabase, LinguaTable, etc

Hans

David Zülke wrote:
> Am 21.11.2006 um 17:22 schrieb Cameron Brunner:
>
>> +1 for 1, studlyCaps seems to be pretty common with everything im
>> using these days
>
> ... and totally against any class name convention.
>
> I'm voting for PropelCriteria etc. That's the only class name people
> use in runtime code anyway, so a "Propel" prefix is not a big deal. It
> puts us on the safe side, who knows who else uses PCriteria etc.
>
> - David
>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: dev-unsubscribe@prop​el.tigris.org
> For additional commands, e-mail: dev-help at propel dot tigris dot org
>

Re: [propel-dev] class prefixing

Reply

Author =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com>
Full name =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com>
Date 2006-11-21 10:20:21 PST
Message Am 21.11.2006 um 17:22 schrieb Cameron Brunner:

> +1 for 1, studlyCaps seems to be pretty common with everything im
> using these days

... and totally against any class name convention.

I'm voting for PropelCriteria etc. That's the only class name people
use in runtime code anyway, so a "Propel" prefix is not a big deal.
It puts us on the safe side, who knows who else uses PCriteria etc.

- David

Re: [propel-dev] class prefixing

Reply

Author Cameron Brunner <cameron dot brunner at gmail dot com>
Full name Cameron Brunner <cameron dot brunner at gmail dot com>
Date 2006-11-21 08:22:53 PST
Message +1 for 1, studlyCaps seems to be pretty common with everything im
using these days

On 11/22/06, Hans Lellelid <hans at velum dot net> 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

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.

Re: [propel-dev] class prefixing

Reply

Author Ron Rademaker <r dot rademaker at virtualbuilding dot nl>
Full name Ron Rademaker <r dot rademaker at virtualbuilding dot nl>
Date 2006-11-21 08:03:25 PST
Message 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
>
>
>

class prefixing

Reply

Author hlellelid
Full name Hans Lellelid
Date 2006-11-21 07:57:47 PST
Message 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
Messages per page: