[Info-vax] Fortran

Arne Vajhøj arne at vajhoej.dk
Fri Dec 7 19:27:57 EST 2018


On 12/7/2018 9:36 AM, Jan-Erik Söderholm wrote:
> Den 2018-12-07 kl. 14:27, skrev Simon Clubley:
>> 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 ?
> 
> There is two differences here. PHP has a higher % of younger programmers
> and the PHP code is often mixed with HTTP code making the whole solution
                                        HTML
> to look more messed up.
> 
> The way a lot of PHP i written (agile, or "trial-n-error") might also
> contribute to the less thought-over end result.

In many ways I think PHP's problem is the exact opposite of
what Bill thinks.

It is so easy to read and write that anybody can code in it.

And guess what - anybody does. Including a a lot that should
stay away from programming.

Arne




More information about the Info-vax mailing list