[ciapug] Web Professionalism
David Champion
dave at visionary.com
Wed Nov 30 10:45:53 CST 2005
IMHO using the "." seperator in PHP would be a poor choice at this
point, due to its usage as a string concatenator, and coders that tend
to not like to use spaces. i.e :
$x = $y.$z;
Other languages I've done OO in (like VFP, Python, Javascript...) that
use the "." it works well in.
I've never been a fan of the Perl "::" seperator, and ":::" just looks
ridiculous.
The "->" may be slightly harder to type, but it is visibly easy to
recognize, and I use it so often now it's just automatic.
-dc
Tony Bibbs wrote:
> To be clear the agrument on syntax I was eluding to was for the import.
>
> Thus
>
> import net.geeklog.mvcnphp.views;
>
> versus
>
> import net:::geeklog:::mvcnphp:::views;
>
> You would do the import only once at the top of the file where you need
> the package and then start using the classes you've imported. Imports
> are similar to include's except you are able to import an entire library
> in one call versus a single file. Also, using this sort of a thing
> you'll be able to make use of, say, a class called User that is used in
> two different classes without getting a ton of errors.
>
> -Tony
>
> Carl Olsen wrote:
>
>> I've only looked at PEAR briefly.
>>
>> I see what you mean about the search and replace, so that makes me feel
>> better about it.
>>
>> Right now, I have to type a "-" and a ">" to do a method call or fetch a
>> property. I'd much rather type a "." since that's a key I'm much more
>> familiar with. I can usually hit the "." key without looking at the
>> keyboard. "Three colons" doesn't sound like much fun to me.
>>
>> Carl
>>
>> -----Original Message-----
>> From: Tony Bibbs [mailto:tony at tonybibbs.com] Sent: Tuesday, November
>> 29, 2005 8:56 AM
>> To: carl-olsen at mchsi.com; ciapug at cialug.org
>> Subject: Re: [ciapug] Web Professionalism
>>
>>
>>
>> Carl Olsen wrote:
>>
>>> I'm hoping they get that fixed before too much code gets written that
>>> way.
>>
>>
>>
>> Have you seen PEAR? That's all they use (for better or worse). The
>> PHP DEV's seem to not look at namespaces as a big issue. In fact, I
>> believe the phrase that rings in my head is "syntactic sugar".
>>
>> Anyway, the good thing about doing it this way is when/if namespace
>> support is implemented, you will only have to do search/replace.
>>
>> FWIW, there's been a lot of recent discussion about this on php-dev.
>> Sounds like they maybe getting more serious about it because they are
>> arguing about what to use as the separator (e.g. '.' versus ':::', etc).
>>
>> --Tony
>>
> _______________________________________________
> ciapug mailing list
> ciapug at cialug.org
> http://cialug.org/mailman/listinfo/ciapug
>
More information about the ciapug
mailing list