[Info-vax] Fortran

Jan-Erik Söderholm jan-erik.soderholm at telia.com
Fri Dec 7 09:36:16 EST 2018


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 ?
> 
> Simon.
> 

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
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.

Well-written code from the same or similar programmers, should
not have any major differnces between PHP and C.





More information about the Info-vax mailing list