NYCPHP Meetup

[nycphp-talk] Best practices for naming conventions & coding style?

Eddie Drapkin oorza2k5 at gmail.com
Tue Apr 28 11:54:17 EDT 2009


To be fair, despite the talk about what's best or what isn't, in the end it
really doesn't matter what the code looks like, given two things. One, most
importantly, it works (well).  And two, it's consistent.  It doesn't matter
if your variables are named $like_this or $likeThis as long as it's one and
not both :)

On Tue, Apr 28, 2009 at 11:35 AM, Ajai Khattri <ajai at bitblit.net> wrote:

> On Mon, 27 Apr 2009, Kristina Anderson wrote:
>
> > Lastly anyone who tries to impose THEIR conventions on you is to be
> ignored.  This is all
> > about you, and what widget YOU think is easiest to use.  Worrying about
> where to put a
> > curly bracket is not worth it -- put it where you like it!  As long as
> the code works you are
> > golden.
>
> The only problem with this is when in a team and different members work on
> the same bits of code. Can you imagine a class written in two or three
> different bracing styles is like?! Your team HAS to agree on some
> standards and stick to them. Some of these might go against your own
> personal grain but such is the price of teamwork and consistent code.
>
> So no, a free-for-all is not always good advice.
>
>
>
> --
> Aj. (who had to formulate team rules early on... :-)
>
> _______________________________________________
> New York PHP User Group Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> http://www.nyphp.org/show_participation.php
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20090428/69f9523b/attachment.html>


More information about the talk mailing list