Re: Code beautifier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 24 Jul 2008, at 20:01, mike wrote:
On 7/24/08, Stut <stuttle@xxxxxxxxx> wrote:

Obviously you can run your team the way you want to, but personally I prefer to get all my developers singing from the same hymn sheet such that after a couple of weeks they can go to any part of the code and not see a horrific mess because they're used to the coding style and be able to conform to that
style when they make changes.

Heh, I'd love to see you try to tackle the team I'm on. No matter how
many times I show them things, no matter how many simpler methods of
coding we provide (I have a custom library to make life easier) they
still find new ways since PHP is so open to create obtuse and
overengineered solutions for the simplest of things. It's a
never-ending evolutionary process that will probably continue to be
never-ending.

Showing them is rarely enough, even when accompanied by a reasonable logical argument. Developers get stuck in their ways (I know I am), but if you enforce a certain standard on them you don't leave it open to their preferences.

Any half-decent developer should be able to adopt any style they're told to.

I never said the quality of developers I had to work with :p Most are
decent in their respective fields, but PHP is new to most people here.
It appears that most .NET/Microsoft style coders don't care about
whitespace, tab however they wish, etc, even though VS editors try to
help them, it always comes out with extra white noise.

It really doesn't matter what language they're used to using, it's all text and I'd have to say that my experience is that there are too many developers of any language out there who don't care about formatting their code. I've even seen poorly formatted Python code which I thought would be difficult to accomplish, but apparently I was wrong.

Likewise they should be able to use any editor you tell them to, but even if you would prefer to be flexible in the name of productivity there are very few editors beyond Notepad that can't use a particular EOL and auto- strip trailing spaces. As far as extra linefeeds "etc" that's all coming from the
developer unless you're using WYSIWYG editors. I've met far too many
developers who don't care about formatting their code and unless you slap
their nose for it they won't change.

Eh, I've shown my way many times... it doesn't really help. Besides,
most of the time I have to review this stuff anyway, or go back and
fix bugs in it, so I'm already messing with the code to begin with.

But you must see that if you only needed to fix the bugs not modify the entire file that would benefit you and the team. In addition it keeps asset management diff's clean and focused.

Anyhoo, on with the daily grind.

-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux