[Info-vax] Fortran
Dave Froble
davef at tsoft-inc.com
Fri Dec 7 12:05:36 EST 2018
On 12/7/2018 8:27 AM, Simon Clubley wrote:
> On 2018-12-06, Arne Vajhøj <arne at vajhoej.dk> wrote:
>>
>> What constructs in PHP are making it difficult to read?
>>
>> The above code is unrealistic short.
>>
>> But most real world PHP code even though longer use very
>> few language constructs. Often it is just function, if,
>> for loop, foreach loop and a few PHP functions that are
>> often very C inspired.
>>
>
> Along with a range of other languages, I write both PHP and C code.
>
> My PHP code looks just like my C code, and the only real difference
> is the use of the higher level constructs available in PHP.
>
> For example, it has the same code layout, same types of variable
> names, same brace style (Whitesmiths), etc.
>
> I wonder if what Bill is _really_ claiming is more about the
> difference in coding styles between different programmers and
> less about the syntax of PHP as such. IOW, is Bill really
> claiming that he doesn't like the coding style of the PHP
> programmers whose code he has looked at ?
>
> Simon.
>
Coding style can have a lot to do with understand code.
I knew a couple of guys who bragged to the head of customer support one
day that no one would understand their code. His response, "then whet
good is it?".
I once ran across some code that had been added to some of my programs.
I had to believe that it was deliberately formatted to be as
unreadable as possible. Just a mass of characters, all run together, no
CR and such. A compiler could read it, a human really could not.
--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef at tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486
More information about the Info-vax
mailing list